ChangeLog 743 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115
  1. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed the bug that if filename in Content-Disposition header
  3. includes ';', aria2 cuts filename after ';'.
  4. * src/util.cc
  5. * test/UtilTest.cc
  6. 2010-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Release 1.9.2
  8. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Fixed compiler warning on opensolaris.
  10. * src/StringFormat.h
  11. * src/XORCloser.h
  12. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Updated doc
  14. * test/array_funTest.cc
  15. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Fixed segmentation fault when running unit tests on opensolaris.
  17. * src/SocketCore.cc
  18. * src/bittorrent_helper.cc
  19. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Updated Russian translation. Thanks to all translators.
  21. * po/ru.po
  22. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Updated po templates.
  24. * po/aria2.pot
  25. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Print warning when trying to add file descriptor >= FD_SET or < 0
  27. to fd_set for other than MinGW32 build. For MinGW32 build, print
  28. warning when trying to add file descriptor to fd_set when it
  29. already contains FD_SET file descriptors.
  30. * src/SelectEventPoll.cc
  31. * src/SocketCore.cc
  32. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Updated doc for --event-poll option.
  34. * doc/aria2c.1.txt
  35. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Bump up version number to 1.9.2
  37. * configure.ac
  38. * doc/aria2c.1.txt
  39. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Defined FD_SETSIZE 1024 for MinGW32.
  41. * src/a2netcompat.h
  42. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Fixed compile error on the system which lacks poll()
  44. * src/DownloadEngineFactory.cc
  45. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. In SocketCore::isReadable()/isWritable(), use poll() if it is
  47. available otherwise use select(). Removed epoll/port from there
  48. because poll() does the good enough job for single socket event
  49. notification.
  50. * src/SocketCore.cc
  51. * src/SocketCore.h
  52. * src/main.cc
  53. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Added kqueue support. We use poll() for
  55. SocketCore::isReadable()/isWritable() when kqueue is used.
  56. * configure.ac
  57. * src/DownloadEngineFactory.cc
  58. * src/KqueueEventPoll.cc
  59. * src/KqueueEventPoll.h
  60. * src/Makefile.am
  61. * src/Makefile.in
  62. * src/OptionHandlerFactory.cc
  63. * src/main.cc
  64. * src/prefs.cc
  65. * src/prefs.h
  66. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Added missing timespec.h to SRCS
  68. * src/Makefile.am
  69. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Fixed the bug that aria2.unpause fails with -s1.
  71. * src/FileEntry.cc
  72. * src/XmlRpcMethodImpl.cc
  73. 2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Added missing #ifdef HAVE_PORT_ASSOCIATE
  75. * src/DownloadEngineFactory.cc
  76. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Added opensolaris port_associate() support.
  78. * src/DownloadEngineFactory.cc
  79. * src/Makefile.am
  80. * src/OptionHandlerFactory.cc
  81. * src/PortEventPoll.cc
  82. * src/PortEventPoll.h
  83. * src/SocketCore.cc
  84. * src/SocketCore.h
  85. * src/configure.ac
  86. * src/main.cc
  87. * src/prefs.cc
  88. * src/prefs.h
  89. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Fixed the bug that _e is passed where e should be passed.
  91. * src/HttpListenCommand.cc
  92. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Increased _epEvents size if necessary.
  94. * src/EpollEventPoll.cc
  95. * src/EpollEventPoll.h
  96. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Removed EventRType template parameter
  98. * src/EpollEventPoll.cc
  99. * src/EpollEventPoll.h
  100. * src/Event.h
  101. * src/PollEventPoll.cc
  102. * src/PollEventPoll.h
  103. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Use Event in EpollEventPoll
  105. * src/EpollEventPoll.cc
  106. * src/EpollEventPoll.h
  107. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  109. AsyncNameResolverEntry class.
  110. * src/Event.h
  111. * src/Makefile.am
  112. * src/PollEventPoll.cc
  113. * src/PollEventPoll.h
  114. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Supported poll() for socket event notification. --event-poll can
  116. take value "poll". Fixed the bug that timeout for
  117. SocketCore::isReadable()/isWritable() is ignored when epoll is
  118. used.
  119. * src/OptionHandlerFactory.cc
  120. * src/a2io.h
  121. * src/prefs.h
  122. * src/SocketCore.h
  123. * src/Makefile.am
  124. * src/main.cc
  125. * src/PollEventPoll.h
  126. * src/SocketCore.cc
  127. * src/DownloadEngineFactory.cc
  128. * src/PollEventPoll.cc
  129. * src/prefs.cc
  130. * configure.ac
  131. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Reverted previous change to DownloadCommand.cc with additional
  133. commentary.
  134. * src/DownloadCommand.cc
  135. 2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Fixed compile error with openssl 1.1.0 and mingw32.
  137. * src/AsyncNameResolver.cc
  138. * src/LogFactory.cc
  139. * src/Logger.cc
  140. * src/Logger.h
  141. * src/SocketCore.cc
  142. * src/SocketCore.h
  143. * src/a2netcompat.h
  144. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Release 1.9.1
  146. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Bump up version number to 1.9.0
  148. * doc/aria2c.1.txt
  149. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  151. translation. Thanks to all translators.
  152. * po/de.po
  153. * po/el.po
  154. * po/ru.po
  155. * po/uk.po
  156. * po/zh_CN.po
  157. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  159. needs -lnsl for inet_aton.
  160. * configure.ac
  161. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Updated po templates.
  163. * po/aria2.pot
  164. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  166. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  167. method to aria2rpc
  168. * doc/xmlrpc/aria2rpc
  169. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Use elapsed time between two mach_absolute_time() calls.
  171. Fixed compile error in Mac OS X.
  172. * src/clock_gettime_osx.cc
  173. * src/timespec.h
  174. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  176. * configure.ac
  177. * src/Makefile.am
  178. * src/a2time.h
  179. * src/clock_gettime_osx.cc
  180. * src/clock_gettime_osx.h
  181. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Implemented clock_gettime() using timeGetTime in mingw.
  183. * configure.ac
  184. * src/Makefile.am
  185. * src/a2time.h
  186. * src/clock_gettime_mingw.cc
  187. * src/clock_gettime_mingw.h
  188. * src/timespec.h
  189. * test/Makefile.am
  190. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Ensure that std::ofstream is destroyed before renaming.
  192. * src/SessionSerializer.cc
  193. * src/util.cc
  194. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Fixed the bug that user specified path is escaped using
  196. util::escapePath() where it should not.
  197. * src/DownloadContext.cc
  198. * src/DownloadContext.h
  199. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Hold reference to PieceStorage when paused in order to provide
  201. progress information via XML-RPC.
  202. * src/RequestGroup.cc
  203. * src/RequestGroup.h
  204. * src/RequestGroupMan.cc
  205. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Defined struct timespec if it is not available.
  207. * src/a2time.h
  208. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Added missing serialize_session.meta4 to EXTRA_DIST
  210. * test/Makefile.am
  211. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Fixed compile error without BitTorrent support.
  213. * src/Metalink2RequestGroup.cc
  214. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Fixed compile error on Mac OS X
  216. * src/TimerA2.h
  217. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Added warning for the system which lacks clock_gettime with
  219. CLOCK_MONOTONIC.
  220. * src/MultiUrlRequestInfo.cc
  221. * src/TimerA2.cc
  222. * src/TimerA2.h
  223. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Removed redundant method call for DownloadEngine.
  225. * src/DownloadCommand.cc
  226. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Fixed the bug that hash check hangs when aria2.pause is issued
  228. while aria2 is checking piece hashes. Fixed the bug that the
  229. download is paused after file allocation completion even if
  230. aria2.pause is issued during file allocation.
  231. * src/CheckIntegrityCommand.cc
  232. * src/FileAllocationCommand.cc
  233. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Added nsl to search-libs for getaddrinfo on opensolaris
  235. * configure.ac
  236. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. Fixed compile error on opensolaris
  238. * configure.ac
  239. * src/Logger.h
  240. * src/GZipEncoder.h
  241. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  243. XML-RPC method.
  244. * doc/aria2c.1.txt
  245. * src/XmlRpcMethodFactory.cc
  246. * src/XmlRpcMethodImpl.cc
  247. * src/XmlRpcMethodImpl.h
  248. * test/XmlRpcMethodTest.cc
  249. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Added aria2.forcePause XML-RPC command.
  251. * src/XmlRpcMethodFactory.cc
  252. * src/XmlRpcMethodImpl.cc
  253. * src/XmlRpcMethodImpl.h
  254. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Use global::wallclock
  256. * src/DHTBucket.cc
  257. * src/DHTMessageTrackerEntry.cc
  258. * src/DHTMessageTrackerEntry.h
  259. * src/DefaultBtInteractive.cc
  260. * src/Peer.cc
  261. * src/PeerAbstractCommand.cc
  262. * src/PeerStat.h
  263. * src/RequestSlot.h
  264. * src/TimeBasedCommand.cc
  265. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  267. usable to prevent from aria2 from being affected by system time
  268. change.
  269. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  270. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  271. pauses the download denoted by gid. gid is of type string. The
  272. status of paused download becomes "paused" and the download is
  273. placed on the first position of waiting queue. As long as the
  274. status is "paused", the download is not started. To change status
  275. to "waiting", use aria2.unpause method. This method returns GID of
  276. paused download. aria2.unpause changes the status of the download
  277. denoted by gid from "paused" to "waiting". This makes the download
  278. eligible to restart. gid is of type string. This method returns
  279. GID of unpaused download.
  280. * doc/aria2c.1.txt
  281. * src/DownloadContext.cc
  282. * src/FileEntry.cc
  283. * src/OptionHandlerFactory.cc
  284. * src/RequestGroup.cc
  285. * src/RequestGroup.h
  286. * src/RequestGroupMan.cc
  287. * src/XmlRpcMethodFactory.cc
  288. * src/XmlRpcMethodImpl.cc
  289. * src/XmlRpcMethodImpl.h
  290. * src/prefs.cc
  291. * src/prefs.h
  292. * src/usage_text.h
  293. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Added --save-session=FILE option. This option saves
  295. error/unfinished downloads to FILE on exit. You can pass this
  296. output file to aria2c with -i option on restart. Please note that
  297. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  298. method are not saved.
  299. * src/BtPostDownloadHandler.cc
  300. * src/DownloadResult.h
  301. * src/Makefile.am
  302. * src/MetadataInfo.cc
  303. * src/MetadataInfo.h
  304. * src/Metalink2RequestGroup.cc
  305. * src/MetalinkPostDownloadHandler.cc
  306. * src/MultiUrlRequestInfo.cc
  307. * src/OptionHandlerFactory.cc
  308. * src/RequestGroup.cc
  309. * src/RequestGroup.h
  310. * src/SessionSerializer.cc
  311. * src/SessionSerializer.h
  312. * src/UTMetadataPostDownloadHandler.cc
  313. * src/download_helper.cc
  314. * src/download_helper.h
  315. * src/prefs.cc
  316. * src/prefs.h
  317. * src/usage_text.h
  318. * test/Makefile.am
  319. * test/SessionSerializerTest.cc
  320. * test/XmlRpcMethodTest.cc
  321. * test/serialize_session.meta4
  322. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Fixed the bug that FTP data connection is not established via
  324. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  325. --proxy-method=tunnel.
  326. * src/AbstractCommand.cc
  327. * src/AbstractCommand.h
  328. * src/FtpNegotiationCommand.cc
  329. * src/FtpNegotiationCommand.h
  330. * src/InitiateConnectionCommand.cc
  331. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Updated po templates.
  333. * po/aria2.pot
  334. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Bump up version number to 1.9.1
  336. * configure.ac
  337. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Added shutdown and forceShutdown to aria2rpc
  339. * doc/xmlrpc/aria2rpc
  340. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Changed error message.
  342. * src/XmlRpcMethod.cc
  343. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  345. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  346. list options.
  347. * doc/aria2c.1.txt
  348. * doc/xmlrpc/aria2rpc
  349. * src/download_helper.cc
  350. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Fixed the bug that web-seed URI is not percent-encoded.
  352. * src/a2functional.h
  353. * src/bittorrent_helper.cc
  354. * test/BittorrentHelperTest.cc
  355. * test/url-list-multiFile.torrent
  356. * test/url-list-singleFileEndsWithSlash.torrent
  357. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  359. These methods, as their name implies, shutdown aria2. These
  360. methods are useful for Windows because it lacks signal mechanism.
  361. * doc/aria2c.1.txt
  362. * src/TimedHaltCommand.cc
  363. * src/XmlRpcMethodFactory.cc
  364. * src/XmlRpcMethodImpl.cc
  365. * src/XmlRpcMethodImpl.h
  366. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Added forceHalt argument to TimedHaltCommand.
  368. Added requestForceHalt() to DownloadEngine.
  369. * src/DownloadEngine.cc
  370. * src/DownloadEngine.h
  371. * src/TimedHaltCommand.cc
  372. * src/TimedHaltCommand.h
  373. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Possible fix for chunked encoding with Content-Length.
  375. * src/HttpResponseCommand.cc
  376. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Don't send "Accept: default, gzip" by default. This is because
  378. some server responds with "Content-Encoding: gzip" for files which
  379. itself is gzipped file and aria2 inflates them. This is a problem
  380. if user don't want to inflate the file. Apparently this is server
  381. configuration error, but I cannot do anything about this. So turn
  382. this off. Added --http-accept-gzip option. If true is given to
  383. this option, aria2 sends 'Accept: deflate, gzip' request header
  384. and inflates response if remote server responds with
  385. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  386. indicates we removed extension tgz hack in order not to inflate
  387. files with tgz extensions.
  388. * doc/aria2c.1.txt
  389. * src/HttpRequest.cc
  390. * src/HttpRequest.h
  391. * src/HttpRequestCommand.cc
  392. * src/HttpResponseCommand.cc
  393. * src/OptionHandlerFactory.cc
  394. * src/prefs.cc
  395. * src/prefs.h
  396. * src/usage_text.h
  397. * test/HttpRequestTest.cc
  398. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Made aria2 not send
  400. "application/metalink4+xml,application/metalink+xml" in Accept
  401. header for web-seeding URIs and tracker request.
  402. * src/Metalink2RequestGroup.cc
  403. * src/TrackerWatcherCommand.cc
  404. * src/download_helper.cc
  405. * src/util.cc
  406. * src/util.h
  407. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Added download_helper.{cc,h} to SRCS
  409. * src/Makefile.am
  410. * test/Makefile.am
  411. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Added --dht-message-timeout option.
  413. * doc/aria2c.1.txt
  414. * src/DHTConstants.h
  415. * src/DHTMessageDispatcherImpl.cc
  416. * src/DHTMessageDispatcherImpl.h
  417. * src/DHTMessageTracker.cc
  418. * src/DHTMessageTracker.h
  419. * src/DHTReplaceNodeTask.h
  420. * src/DHTSetup.cc
  421. * src/DHTTaskFactoryImpl.cc
  422. * src/DHTTaskFactoryImpl.h
  423. * src/OptionHandlerFactory.cc
  424. * src/prefs.cc
  425. * src/prefs.h
  426. * src/usage_text.h
  427. * test/DHTMessageTrackerTest.cc
  428. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  430. option.
  431. * doc/aria2c.1.txt
  432. * src/OptionHandlerFactory.cc
  433. * src/TrackerWatcherCommand.cc
  434. * src/prefs.cc
  435. * src/prefs.h
  436. * src/usage_text.h
  437. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Documented that specifying --seed-time=0 disables seeding after
  439. download completed.
  440. * doc/aria2c.1.txt
  441. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Code cleanup
  443. * src/BtSetup.cc
  444. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Drop connection if same Peer ID has been already seen.
  446. * src/DefaultBtInteractive.cc
  447. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Fixed the bug that waiting download unintentionally starts when
  449. URIs are added to it using aria2.changeUri XML-RPC method. This
  450. also fixes the bug that causes segmentation fault when adding URIs
  451. to waiting download, which is a regression introduced by the
  452. previous change made to src/XmlRpcMethodImpl.cc
  453. * src/XmlRpcMethodImpl.cc
  454. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Fixed compile error with g++-4.4 on FreeBSD.
  456. * src/util.h
  457. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  459. is not used immediately if there is no URIs remaining before
  460. calling aria2.changeUri and the number of connection is less than
  461. the value in -s(or -C for Metalink downloads).
  462. * src/XmlRpcMethodImpl.cc
  463. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Documented --always-resume and --max-resume-failure-tries option
  465. and exit status 8 in man page. Fixed typo.
  466. * doc/aria2c.1.txt
  467. * src/OptionHandlerFactory.cc
  468. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Added --always-resume and --max-resume-failure-tries option. If
  470. --always-resume=false is given, when all given URIs does not
  471. support resume or aria2 encounters N URIs which does not support
  472. resume
  473. (N is the value specified using --max-resume-failure-tries
  474. option), aria2 download file from scratch. The default behavior
  475. is --always-resume=true, which means if all URIs do not support
  476. resume, download fails. I think this is OK because user normally
  477. don't like to see that partially downloaded file is
  478. overwritten(this is particularly true if file size is big). This
  479. option is useful when aria2 is used as download backend and
  480. graceful falling back to overwritten behavior is preferable.
  481. Added exit status value 8, which means download failed because
  482. server did not support resume.
  483. * src/AbstractCommand.cc
  484. * src/DefaultPieceStorage.cc
  485. * src/DownloadCommand.cc
  486. * src/DownloadResultCode.h
  487. * src/FileEntry.h
  488. * src/FtpNegotiationCommand.cc
  489. * src/HttpResponse.cc
  490. * src/HttpResponseCommand.cc
  491. * src/OptionHandlerFactory.cc
  492. * src/RequestGroup.cc
  493. * src/RequestGroup.h
  494. * src/SegmentMan.cc
  495. * src/SegmentMan.h
  496. * src/prefs.cc
  497. * src/prefs.h
  498. * src/usage_text.h
  499. * test/DefaultPieceStorageTest.cc
  500. * test/SegmentManTest.cc
  501. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Added --remove-control-file option to -i list options.
  503. * doc/aria2c.1.txt
  504. * doc/xmlrpc/aria2rpc
  505. * src/download_helper.cc
  506. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Added --remove-control-file option. This option removes control
  508. file(*.aria2 file) before download. Using with
  509. --allow-overwrite=true, download always starts from scratch. This
  510. will be useful for users behind proxy server which disables
  511. resume. For such proxy user, -C1 is also recommended for Metalink
  512. downloads to avoid establishing unnecessary connections.
  513. * doc/aria2c.1.txt
  514. * src/OptionHandlerFactory.cc
  515. * src/RequestGroup.cc
  516. * src/prefs.cc
  517. * src/prefs.h
  518. * src/usage_text.h
  519. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  521. size of array at compile time.
  522. * src/array_fun.h
  523. * test/BitfieldManTest.cc
  524. * test/BtPortMessageTest.cc
  525. * test/DHTRoutingTableDeserializerTest.cc
  526. * test/DHTRoutingTableSerializerTest.cc
  527. * test/DownloadHelperTest.cc
  528. * test/LongestSequencePieceSelectorTest.cc
  529. * test/MultiDiskAdaptorTest.cc
  530. * test/OptionParserTest.cc
  531. * test/PriorityPieceSelectorTest.cc
  532. * test/array_funTest.cc
  533. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Added vbegin() and vend() for fixed sized array.
  535. * src/DownloadHandlerConstants.cc
  536. * src/FeatureConfig.cc
  537. * src/OptionHandlerFactory.cc
  538. * src/ServerStat.cc
  539. * src/TimeA2.cc
  540. * src/XmlRpcMethod.cc
  541. * src/array_fun.h
  542. * src/download_helper.cc
  543. * src/messageDigest.cc
  544. * src/util.cc
  545. * test/BittorrentHelperTest.cc
  546. * test/DHTRoutingTableDeserializerTest.cc
  547. * test/DHTRoutingTableSerializerTest.cc
  548. * test/DefaultBtAnnounceTest.cc
  549. * test/DefaultBtProgressInfoFileTest.cc
  550. * test/DownloadContextTest.cc
  551. * test/DownloadHelperTest.cc
  552. * test/FeatureConfigTest.cc
  553. * test/FeedbackURISelectorTest.cc
  554. * test/HttpRequestTest.cc
  555. * test/InOrderURISelectorTest.cc
  556. * test/MSEHandshakeTest.cc
  557. * test/MultiDiskAdaptorTest.cc
  558. * test/MultiFileAllocationIteratorTest.cc
  559. * test/PriorityPieceSelectorTest.cc
  560. * test/RequestGroupManTest.cc
  561. * test/UtilTest.cc
  562. * test/XmlRpcMethodTest.cc
  563. * test/a2algoTest.cc
  564. * test/array_funTest.cc
  565. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Simplified code using lastByteMask
  567. * src/BitfieldMan.cc
  568. * src/PieceStatMan.cc
  569. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Rewritten lastByteMask
  571. * src/bitfield.h
  572. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Redefined the maximum length of buffer used for HTTP header.
  574. * src/HttpHeaderProcessor.cc
  575. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Code cleanup
  577. * src/SleepCommand.cc
  578. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Do exact match if IP address is specified in --no-proxy.
  580. * src/AbstractCommand.cc
  581. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Fixed the bug that socket is added to EventPoll object twice. This
  583. is because derived class FtpFinishDownloadCommand adds socket to
  584. EventPoll object while base class AbstractCommand does that
  585. already.
  586. * src/FtpFinishDownloadCommand.cc
  587. * src/FtpFinishDownloadCommand.h
  588. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Defined gid_t as int64_t.
  590. * src/BtDependency.cc
  591. * src/BtStopDownloadCommand.cc
  592. * src/FtpNegotiationCommand.cc
  593. * src/HttpResponseCommand.cc
  594. * src/RequestGroup.cc
  595. * src/RequestGroup.h
  596. * src/RequestGroupMan.cc
  597. * src/TrackerWatcherCommand.cc
  598. * src/XmlRpcMethodImpl.cc
  599. * src/message.h
  600. * test/XmlRpcMethodTest.cc
  601. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  603. translatable texts because it is used in log and debugging
  604. purpose.
  605. * src/AbstractCommand.cc
  606. * src/ActivePeerConnectionCommand.cc
  607. * src/BtPieceMessage.cc
  608. * src/CUIDCounter.h
  609. * src/CheckIntegrityCommand.cc
  610. * src/CheckIntegrityDispatcherCommand.cc
  611. * src/Command.h
  612. * src/CreateRequestCommand.cc
  613. * src/DHTEntryPointNameResolveCommand.cc
  614. * src/DefaultBtInteractive.cc
  615. * src/DefaultBtMessageDispatcher.cc
  616. * src/DownloadCommand.cc
  617. * src/FileAllocationCommand.cc
  618. * src/FileAllocationDispatcherCommand.cc
  619. * src/FtpConnection.cc
  620. * src/FtpInitiateConnectionCommand.cc
  621. * src/FtpNegotiationCommand.cc
  622. * src/HttpConnection.cc
  623. * src/HttpInitiateConnectionCommand.cc
  624. * src/HttpListenCommand.cc
  625. * src/HttpResponse.cc
  626. * src/HttpServerBodyCommand.cc
  627. * src/HttpServerCommand.cc
  628. * src/HttpServerResponseCommand.cc
  629. * src/InitiateConnectionCommand.cc
  630. * src/InitiatorMSEHandshakeCommand.cc
  631. * src/MSEHandshake.cc
  632. * src/PeerAbstractCommand.cc
  633. * src/PeerConnection.cc
  634. * src/PeerInitiateConnectionCommand.cc
  635. * src/PeerInteractionCommand.cc
  636. * src/PeerListenCommand.cc
  637. * src/PeerReceiveHandshakeCommand.cc
  638. * src/SegmentMan.cc
  639. * src/SimpleBtMessage.cc
  640. * src/TrackerWatcherCommand.cc
  641. * src/message.h
  642. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Use gid_t type for gid.
  644. * src/BtRegistry.cc
  645. * src/BtRegistry.h
  646. * src/DownloadResult.h
  647. * src/RequestGroup.cc
  648. * src/RequestGroup.h
  649. * src/RequestGroupMan.cc
  650. * src/RequestGroupMan.h
  651. * src/XmlRpcMethodImpl.cc
  652. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Use cuid_t type for cuid.
  654. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Added v key in DHT message. aria2's DHT version is independent of
  656. the package version and we defined it as 1 at the moment. It is
  657. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  658. scheme is "A2"+2bytes DHT version number in network byte order.
  659. * src/DHTAbstractMessage.cc
  660. * src/DHTConstants.h
  661. * src/DHTMessage.cc
  662. * src/DHTMessage.h
  663. * src/DHTMessageFactoryImpl.cc
  664. * src/DHTQueryMessage.cc
  665. * src/DHTResponseMessage.cc
  666. * src/util.h
  667. * test/DHTAnnouncePeerMessageTest.cc
  668. * test/DHTAnnouncePeerReplyMessageTest.cc
  669. * test/DHTFindNodeMessageTest.cc
  670. * test/DHTFindNodeReplyMessageTest.cc
  671. * test/DHTGetPeersMessageTest.cc
  672. * test/DHTGetPeersReplyMessageTest.cc
  673. * test/DHTPingMessageTest.cc
  674. * test/DHTPingReplyMessageTest.cc
  675. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  676. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  677. method response is integer, while manual says it is string. When
  678. peer's port is not listening port, set '0' to port in
  679. aria2.getPeers response.
  680. * src/XmlRpcMethodImpl.cc
  681. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Lines starting "#" in -i list are treated as comments.
  683. Example:
  684. # this is comment
  685. http://example.org/file
  686. http://example.org/file2
  687. dir=/tmp
  688. # another comment
  689. out=myfile
  690. * doc/aria2c.1.txt
  691. * src/UriListParser.cc
  692. * test/filelist1.txt
  693. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Accept IPv4 network address with CIDR block in --no-proxy option
  695. and no_proxy environment variable. Current implementation does
  696. not resolve hostname in URI to compare network address. So it is
  697. only effecive if URI has numeric IP addresses.
  698. * doc/aria2c.1.txt
  699. * src/AbstractCommand.cc
  700. * src/OptionHandlerFactory.cc
  701. * src/bitfield.h
  702. * src/usage_text.h
  703. * src/util.cc
  704. * src/util.h
  705. * test/UtilTest.cc
  706. * test/bitfieldTest.cc
  707. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Reduced interval for metadatagetmode to quickly gather metadata.
  709. * src/BtSetup.cc
  710. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Release 1.9.0
  712. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Updated po templates.
  714. * po/aria2.pot
  715. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Updated doc.
  717. * doc/aria2c.1.txt
  718. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Documented about Metalink4 and LPD in README
  720. * RADME
  721. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Few adjustment for timeouts in DHT. DHT message timeout is changed
  723. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  724. it adds another 5 seconds in each retry.
  725. * src/DHTConstants.h
  726. * src/DHTGetPeersCommand.cc
  727. * src/DHTGetPeersCommand.h
  728. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Changed log level from error to info for DHT message send error.
  730. * src/DHTMessageDispatcherImpl.cc
  731. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Inspect all xt in magnet to find urn:btih.
  733. * src/bittorrent_helper.cc
  734. * test/BittorrentHelperTest.cc
  735. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Use global option for DHTSetup.
  737. * src/DHTSetup.cc
  738. * src/DHTSetup.h
  739. * src/RequestGroup.cc
  740. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Added bt-enable-lpt, reuse-uri
  742. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  743. options.
  744. * doc/aria2c.1.txt
  745. * doc/xmlrpc/aria2rpc
  746. * src/download_helper.cc
  747. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  749. * src/BtSetup.cc
  750. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Resurrected --http-proxy-user and --http-proxy-passwd option.
  752. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  753. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  754. * doc/aria2c.1.txt
  755. * src/OptionHandlerFactory.cc
  756. * src/OptionHandlerImpl.h
  757. * src/prefs.cc
  758. * src/prefs.h
  759. * src/usage_text.h
  760. * test/OptionHandlerTest.cc
  761. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  762. Updated Russian and Simplified Chinese translation. Thanks to all
  763. translators.
  764. * po/ru.po
  765. * po/zh_CN.po
  766. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Updated po templates.
  768. * po/aria2.pot
  769. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  770. For LPD sockets, bind IN_ADDRANY because binding multicast address
  771. fails under Windows.
  772. * src/LpdMessageReceiver.cc
  773. * test/LpdMessageDispatcherTest.cc
  774. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Fixed the bug that error message is not propagated to Exception.
  776. * src/SocketCore.cc
  777. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Documented --bt-lpd-interface option in man page.
  779. * doc/aria2c.1.txt
  780. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Bump up version number to 1.9.0
  782. * configure.ac
  783. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Fixed the bug that FillRequestGroupCommand is not invoked when
  785. RequestGroupMan::createInitialCommand() creates no Command object.
  786. * src/FillRequestGroupCommand.cc
  787. * src/RequestGroupMan.cc
  788. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Added debug logs.
  790. * src/FileEntry.cc
  791. * src/SegmentMan.cc
  792. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Fixed unit test error with mingw32 build.
  794. * test/LpdMessageReceiverTest.cc
  795. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Updated automake-1.11.1
  797. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Fixed compile error and unit test error without openssl and
  799. gnutls.
  800. * src/MetalinkParserController.cc
  801. * test/MetalinkProcessorTest.cc
  802. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Fixed unitest fails if openssl doesn't support sha-256.
  804. * src/MetalinkParserStateV4Impl.cc
  805. * test/MetalinkProcessorTest.cc
  806. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Wait until message arrives(again)
  808. * test/LpdMessageReceiverTest.cc
  809. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Added missing wallclock.h to SRCS.
  811. * src/Makefile.am
  812. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Fixed compile error with --disable-bittorrent
  814. * test/Metalink2RequestGroupTest.cc
  815. * test/MetalinkParserControllerTest.cc
  816. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Added --reuse-uri option. This option has existed quite long, but
  818. been hidden.
  819. * doc/aria2c.1.txt
  820. * src/OptionHandlerFactory.cc
  821. * src/usage_text.h
  822. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Ignore filename parameter if it contains directory traversal
  824. directives.
  825. * src/util.cc
  826. * test/UtilTest.cc
  827. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. urldecode -> percentDecode
  829. * src/FtpConnection.cc
  830. * src/FtpNegotiationCommand.cc
  831. * src/HttpResponse.cc
  832. * src/Request.cc
  833. * src/magnet.cc
  834. * src/util.cc
  835. * src/util.h
  836. * test/UtilTest.cc
  837. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. urlencode -> percentEncode,
  839. torrentUrlencode -> torrentPercentEncode
  840. * src/BtHandshakeMessage.cc
  841. * src/BtHandshakeMessageValidator.h
  842. * src/DHTMessageFactoryImpl.cc
  843. * src/DefaultBtAnnounce.cc
  844. * src/HandshakeExtensionMessage.cc
  845. * src/HttpRequest.cc
  846. * src/XmlRpcMethodImpl.cc
  847. * src/bittorrent_helper.cc
  848. * src/util.cc
  849. * src/util.h
  850. * test/DHTAnnouncePeerMessageTest.cc
  851. * test/DHTGetPeersMessageTest.cc
  852. * test/DHTGetPeersReplyMessageTest.cc
  853. * test/UTPexExtensionMessageTest.cc
  854. * test/UtilTest.cc
  855. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Fixed the bug that filename is percent encoded where it must be
  857. percent decoded in sendMdtm().
  858. * src/FtpConnection.cc
  859. * test/FtpConnectionTest.cc
  860. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. url -> uri in Request class.
  862. * src/AbstractCommand.cc
  863. * src/AdaptiveURISelector.cc
  864. * src/DefaultBtAnnounce.cc
  865. * src/FeedbackURISelector.cc
  866. * src/FileEntry.cc
  867. * src/FileEntry.h
  868. * src/HttpRequest.h
  869. * src/HttpResponse.cc
  870. * src/InitiateConnectionCommandFactory.cc
  871. * src/Metalink2RequestGroup.cc
  872. * src/OptionHandlerImpl.h
  873. * src/ProtocolDetector.cc
  874. * src/Request.cc
  875. * src/Request.h
  876. * src/XmlRpcMethodImpl.cc
  877. * test/AuthConfigFactoryTest.cc
  878. * test/FtpConnectionTest.cc
  879. * test/HttpRequestTest.cc
  880. * test/HttpResponseTest.cc
  881. * test/RequestTest.cc
  882. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Added getServers XML-RPC method.
  884. * doc/aria2c.1.txt
  885. * src/FileEntry.h
  886. * src/XmlRpcMethodFactory.cc
  887. * src/XmlRpcMethodImpl.cc
  888. * src/XmlRpcMethodImpl.h
  889. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  890. Pool request when download finished.
  891. * src/DownloadCommand.cc
  892. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  894. 1-based.
  895. * doc/aria2c.1.txt
  896. * src/XmlRpcMethodImpl.cc
  897. * test/XmlRpcMethodTest.cc
  898. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Call RequestGroupMan::requestQueueCheck() when
  900. max-concurrent-downloads option is changed or new downloads are
  901. added/inserted into reserved list.
  902. * src/RequestGroupMan.cc
  903. * src/XmlRpcMethodImpl.cc
  904. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Added aria2.forceRemove XML-RPC method.
  906. * doc/aria2c.1.txt
  907. * src/XmlRpcMethodFactory.cc
  908. * src/XmlRpcMethodImpl.cc
  909. * src/XmlRpcMethodImpl.h
  910. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  911. Added debug log.
  912. * src/AbstractCommand.cc
  913. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Create CreateRequestCommand to the number of -s/-C when URIs are
  915. added by XML-RPC.
  916. * src/RequestGroup.cc
  917. * src/RequestGroup.h
  918. * src/XmlRpcMethodImpl.cc
  919. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Added 'status' key to the response of getUri XML-RPC method.
  921. * doc/aria2c.1.txt
  922. * src/XmlRpcMethodImpl.cc
  923. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Replaced Time::reset() call with assigning of global::wallclock.
  925. * src/BtLeecherStateChoke.cc
  926. * src/BtSeederStateChoke.cc
  927. * src/PeerSessionResource.cc
  928. * src/RequestSlot.cc
  929. * src/ServerStat.cc
  930. * src/SpeedCalc.cc
  931. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Added changeUri XML-RPC method. This method removes/adds URIs
  933. dynamically.
  934. * doc/aria2c.1.txt
  935. * src/AbstractCommand.cc
  936. * src/DownloadContext.cc
  937. * src/DownloadContext.h
  938. * src/FileEntry.cc
  939. * src/FileEntry.h
  940. * src/Request.cc
  941. * src/Request.h
  942. * src/RequestGroup.cc
  943. * src/RequestGroupMan.cc
  944. * src/XmlRpcMethodFactory.cc
  945. * src/XmlRpcMethodImpl.cc
  946. * src/XmlRpcMethodImpl.h
  947. * test/FileEntryTest.cc
  948. * test/XmlRpcMethodTest.cc
  949. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Rewritten copy ctor of RequestSlot to use initialization list.
  951. * src/RequestSlot.h
  952. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Added Time global::wallclock to cache "current time" to reduce the
  954. call gettimeofday(). Global variables are now in namespace global.
  955. * src/AbstractCommand.cc
  956. * src/ActivePeerConnectionCommand.cc
  957. * src/AdaptiveURISelector.cc
  958. * src/BtLeecherStateChoke.cc
  959. * src/BtLeecherStateChoke.h
  960. * src/BtSeederStateChoke.cc
  961. * src/BtSeederStateChoke.h
  962. * src/BtStopDownloadCommand.cc
  963. * src/ConsoleStatCalc.cc
  964. * src/DHTBucket.cc
  965. * src/DHTGetPeersCommand.cc
  966. * src/DHTMessageTrackerEntry.cc
  967. * src/DHTNode.cc
  968. * src/DHTPeerAnnounceEntry.cc
  969. * src/DHTPeerAnnounceStorage.cc
  970. * src/DHTSetup.cc
  971. * src/DefaultBtAnnounce.cc
  972. * src/DefaultBtInteractive.cc
  973. * src/DefaultBtMessageDispatcher.cc
  974. * src/DefaultPeerStorage.cc
  975. * src/DefaultPieceStorage.cc
  976. * src/DownloadCommand.cc
  977. * src/DownloadEngine.cc
  978. * src/FileEntry.cc
  979. * src/HttpServerBodyCommand.cc
  980. * src/HttpServerCommand.cc
  981. * src/HttpServerResponseCommand.cc
  982. * src/LpdMessageDispatcher.cc
  983. * src/MultiUrlRequestInfo.cc
  984. * src/Peer.cc
  985. * src/Peer.h
  986. * src/PeerAbstractCommand.cc
  987. * src/PeerStat.h
  988. * src/RequestSlot.cc
  989. * src/RequestSlot.h
  990. * src/SegmentMan.cc
  991. * src/ServerStatMan.cc
  992. * src/SleepCommand.cc
  993. * src/SpeedCalc.cc
  994. * src/SpeedCalc.h
  995. * src/TimeA2.cc
  996. * src/TimeA2.h
  997. * src/TimeBasedCommand.cc
  998. * src/TimeSeedCriteria.h
  999. * src/UTMetadataRequestTracker.h
  1000. * src/UTPexExtensionMessage.cc
  1001. * src/wallclock.h
  1002. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Fixed the bug that util::itos(INT64_MIN) fails.
  1004. * src/util.cc
  1005. * src/util.h
  1006. * test/UtilTest.cc
  1007. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1009. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1010. static factory functions.
  1011. * src/SocketBuffer.cc
  1012. * src/SocketBuffer.h
  1013. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1015. queue maintenance is requested by RequestGroup to avoid to call
  1016. the function unnecessarily.
  1017. * src/FillRequestGroupCommand.cc
  1018. * src/RequestGroup.cc
  1019. * src/RequestGroup.h
  1020. * src/RequestGroupMan.cc
  1021. * src/RequestGroupMan.h
  1022. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Don't use hash for Peer::id. Simple concatenation of ip address
  1024. and port is enough.
  1025. * src/Peer.cc
  1026. * test/PeerTest.cc
  1027. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Enclosed log of DHTMessage::toString() with Logger::info().
  1029. * src/DHTMessageDispatcherImpl.cc
  1030. * src/DHTMessageReceiver.cc
  1031. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Rewritten util::toHex().
  1033. * src/util.cc
  1034. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Removed SocketBuffer::feedAndSend(). Renamed
  1036. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1037. * src/FtpConnection.cc
  1038. * src/HttpConnection.cc
  1039. * src/HttpServer.cc
  1040. * src/MSEHandshake.cc
  1041. * src/PeerConnection.cc
  1042. * src/SocketBuffer.cc
  1043. * src/SocketBuffer.h
  1044. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Removed unused PeerConnection::sendMessage(). Updated doc.
  1046. * src/PeerConnection.cc
  1047. * src/PeerConnection.h
  1048. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Reduced copying/std::string instantiation in sending/receiving
  1050. BitTorrent messages.
  1051. * src/BtBitfieldMessage.cc
  1052. * src/BtBitfieldMessage.h
  1053. * src/BtExtendedMessage.cc
  1054. * src/BtExtendedMessage.h
  1055. * src/BtHandshakeMessage.cc
  1056. * src/BtHandshakeMessage.h
  1057. * src/BtKeepAliveMessage.cc
  1058. * src/BtKeepAliveMessage.h
  1059. * src/BtPieceMessage.cc
  1060. * src/BtPieceMessage.h
  1061. * src/BtPortMessage.cc
  1062. * src/BtPortMessage.h
  1063. * src/BtUnchokeMessage.h
  1064. * src/DefaultBtMessageReceiver.cc
  1065. * src/IndexBtMessage.cc
  1066. * src/IndexBtMessage.h
  1067. * src/PeerConnection.cc
  1068. * src/PeerConnection.h
  1069. * src/RangeBtMessage.cc
  1070. * src/RangeBtMessage.h
  1071. * src/SimpleBtMessage.cc
  1072. * src/SimpleBtMessage.h
  1073. * src/SocketBuffer.cc
  1074. * src/SocketBuffer.h
  1075. * src/ZeroBtMessage.cc
  1076. * src/ZeroBtMessage.h
  1077. * test/BtAllowedFastMessageTest.cc
  1078. * test/BtBitfieldMessageTest.cc
  1079. * test/BtCancelMessageTest.cc
  1080. * test/BtChokeMessageTest.cc
  1081. * test/BtExtendedMessageTest.cc
  1082. * test/BtHandshakeMessageTest.cc
  1083. * test/BtHaveAllMessageTest.cc
  1084. * test/BtHaveMessageTest.cc
  1085. * test/BtHaveNoneMessageTest.cc
  1086. * test/BtInterestedMessageTest.cc
  1087. * test/BtKeepAliveMessageTest.cc
  1088. * test/BtNotInterestedMessageTest.cc
  1089. * test/BtPieceMessageTest.cc
  1090. * test/BtPortMessageTest.cc
  1091. * test/BtRejectMessageTest.cc
  1092. * test/BtRequestMessageTest.cc
  1093. * test/BtSuggestPieceMessageTest.cc
  1094. * test/BtUnchokeMessageTest.cc
  1095. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Rewritten SocketBuffer. Old implementation uses single std::string
  1097. to store data and erase sent data, which is costly. New
  1098. implementation uses deque to hold each data to avoid to mutate
  1099. string.
  1100. * src/SocketBuffer.cc
  1101. * src/SocketBuffer.h
  1102. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Removed unused FileEntry::extracted
  1104. * src/FileEntry.cc
  1105. * src/FileEntry.h
  1106. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Wait until data arrives.
  1108. * test/LpdMessageReceiverTest.cc
  1109. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. In Metalink4, if size element contains invalid size, discard whole
  1111. document. Added strict hash value check for metalink3/4.
  1112. * src/MetalinkParserController.cc
  1113. * src/MetalinkParserStateMachine.cc
  1114. * src/MetalinkParserStateMachine.h
  1115. * src/MetalinkParserStateV3Impl.cc
  1116. * src/MetalinkParserStateV4Impl.cc
  1117. * src/util.cc
  1118. * src/util.h
  1119. * test/MetalinkParserControllerTest.cc
  1120. * test/MetalinkProcessorTest.cc
  1121. * test/metalink4.xml
  1122. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Added strict attribute validation for metalink4. When
  1124. specification violation is found, discard the whole document.
  1125. * src/ExpatMetalinkProcessor.cc
  1126. * src/MetalinkParserStateMachine.cc
  1127. * src/MetalinkParserStateMachine.h
  1128. * src/MetalinkParserStateV4Impl.cc
  1129. * src/XML2SAXMetalinkProcessor.cc
  1130. * test/Makefile.am
  1131. * test/MetalinkProcessorTest.cc
  1132. * test/metalink4-attrs.xml: Removed
  1133. * test/metalink4-dirtraversal.xml: Removed
  1134. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Added test for Metaurl transaction.
  1136. * src/MetalinkParserController.cc
  1137. * test/MetalinkParserControllerTest.cc
  1138. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Avoid costly BtMessage::toString() if info level log is not
  1140. required.
  1141. * src/DefaultBtInteractive.cc
  1142. * src/Logger.h
  1143. * src/SimpleBtMessage.cc
  1144. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Reserved vector elements based on profiler results.
  1146. * src/DefaultBtInteractive.cc
  1147. * src/DefaultBtProgressInfoFile.cc
  1148. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Avoid to calculate end() iterator in each loop. std::deque is
  1150. particularly slow. Make sure that recalculate end iterator if
  1151. element is erased during loop.
  1152. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Use vector instead of deque for containers which is used for
  1154. mostly read-only purpose.
  1155. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Fixed typo
  1157. * test/Makefile.am
  1158. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1160. * test/Makefile.am
  1161. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Small optimization: In updateTransferStatFor(), don't search peer
  1163. ID twice.
  1164. * src/DefaultPeerStorage.cc
  1165. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1167. objects.
  1168. * src/Metalink2RequestGroup.cc
  1169. * src/Metalink2RequestGroup.h
  1170. * src/MetalinkEntry.cc
  1171. * src/MetalinkEntry.h
  1172. * src/MetalinkHelper.cc
  1173. * src/MetalinkHelper.h
  1174. * src/Metalinker.cc
  1175. * src/Metalinker.h
  1176. * src/main.cc
  1177. * test/MetalinkEntryTest.cc
  1178. * test/MetalinkHelperTest.cc
  1179. * test/MetalinkProcessorTest.cc
  1180. * test/MetalinkerTest.cc
  1181. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Fixed the bug that grouped FileEntry objects are not used but
  1183. instead all FileEntry objects are used for each metaurl group.
  1184. * src/Metalink2RequestGroup.cc
  1185. * test/Metalink2RequestGroupTest.cc
  1186. * test/metalink4-groupbymetaurl.xml
  1187. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Use vector instead of deque for ChunkChecksum.
  1189. * src/ChunkChecksum.h
  1190. * src/MetalinkParserController.cc
  1191. * src/MetalinkParserController.h
  1192. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1194. algorithm in Metalink properly
  1195. * src/MetalinkParserController.cc
  1196. * src/MetalinkParserController.h
  1197. * src/messageDigest.cc
  1198. * src/messageDigest.h
  1199. * test/MetalinkProcessorTest.cc
  1200. * test/metalink4.xml
  1201. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Replaced null or control characters in file path with '_'. For
  1203. MinGW32 build, additional characters which is not allowed in
  1204. Windows kernel are also replaced. util::detectDirTraversal() now
  1205. returns true if given string contains null or control characters.
  1206. * src/DownloadContext.cc
  1207. * src/DownloadContext.h
  1208. * src/Metalink2RequestGroup.cc
  1209. * src/MetalinkParserController.cc
  1210. * src/bittorrent_helper.cc
  1211. * src/util.cc
  1212. * src/util.h
  1213. * test/UtilTest.cc
  1214. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Discard metalink:file if its name attribute is empty string.
  1216. Removed FileEntry instantiation in
  1217. MetalinkParserController::setFileLengthOfEntry()
  1218. * src/MetalinkParserController.cc
  1219. * src/MetalinkParserStateV3Impl.cc
  1220. * src/MetalinkParserStateV4Impl.cc
  1221. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Discard torrent file if path data in it contains directory
  1223. traversal directives. Discard metalink:file element in Metalink3
  1224. format if its name attribute contains directory traversal
  1225. directives. Ignore name attribute of metalink:signature element
  1226. in Metalink3 format if it contains directory traversal directives.
  1227. * src/MetalinkParserStateV3Impl.cc
  1228. * src/bittorrent_helper.cc
  1229. * src/message.h
  1230. * test/BittorrentHelperTest.cc
  1231. * test/Makefile.am
  1232. * test/MetalinkProcessorTest.cc
  1233. * test/metalink3-dirtraversal.xml
  1234. * test/test.xml
  1235. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Removed useless comment
  1237. * src/MetalinkParserStateV4Impl.cc
  1238. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Supported name attribute of metalink::metaurl element and
  1240. multi-file torrent with Metalink4. Files with same metaurl are
  1241. grouped and downloaded in one RequestGroup.
  1242. * src/BtDependency.cc
  1243. * src/FileEntry.h
  1244. * src/Metalink2RequestGroup.cc
  1245. * src/Metalink2RequestGroup.h
  1246. * src/MetalinkEntry.cc
  1247. * src/MetalinkEntry.h
  1248. * src/MetalinkHelper.cc
  1249. * src/MetalinkHelper.h
  1250. * src/MetalinkMetaurl.cc
  1251. * src/MetalinkMetaurl.h
  1252. * src/MetalinkParserController.cc
  1253. * src/RequestGroup.cc
  1254. * src/RequestGroup.h
  1255. * src/bittorrent_helper.cc
  1256. * test/BittorrentHelperTest.cc
  1257. * test/BtDependencyTest.cc
  1258. * test/MetalinkHelperTest.cc
  1259. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1261. * src/MetalinkMetaurl.h
  1262. * src/MetalinkParserController.cc
  1263. * src/MetalinkParserController.h
  1264. * src/MetalinkParserStateMachine.cc
  1265. * src/MetalinkParserStateMachine.h
  1266. * src/MetalinkParserStateV4Impl.cc
  1267. * test/MetalinkProcessorTest.cc
  1268. * test/metalink4-dirtraversal.xml
  1269. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1271. element.
  1272. * src/Makefile.am
  1273. * src/Metalink2RequestGroup.cc
  1274. * src/MetalinkEntry.cc
  1275. * src/MetalinkEntry.h
  1276. * src/MetalinkMetaurl.cc
  1277. * src/MetalinkMetaurl.h
  1278. * src/MetalinkParserController.cc
  1279. * src/MetalinkParserController.h
  1280. * src/MetalinkParserStateMachine.cc
  1281. * src/MetalinkParserStateMachine.h
  1282. * src/MetalinkParserStateV4Impl.cc
  1283. * src/MetalinkParserStateV4Impl.h
  1284. * test/MetalinkProcessorTest.cc
  1285. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Added Metalink4 support. Currently, name attribute of
  1287. metalink::metaurl is ignored and multi-file torrent cannot be used
  1288. with Metalink4.
  1289. * doc/aria2c.1.txt
  1290. * src/DownloadHandlerConstants.cc
  1291. * src/ExpatMetalinkProcessor.cc
  1292. * src/Makefile.am
  1293. * src/Metalink2RequestGroup.cc
  1294. * src/MetalinkEntry.cc
  1295. * src/MetalinkEntry.h
  1296. * src/MetalinkParserController.cc
  1297. * src/MetalinkParserController.h
  1298. * src/MetalinkParserState.h
  1299. * src/MetalinkParserStateImpl.cc
  1300. * src/MetalinkParserStateImpl.h
  1301. * src/MetalinkParserStateMachine.cc
  1302. * src/MetalinkParserStateMachine.h
  1303. * src/MetalinkParserStateV3Impl.cc
  1304. * src/MetalinkParserStateV3Impl.h
  1305. * src/MetalinkParserStateV4Impl.cc
  1306. * src/MetalinkParserStateV4Impl.h
  1307. * src/MetalinkResource.cc
  1308. * src/MetalinkResource.h
  1309. * src/Metalinker.cc
  1310. * src/RequestGroup.cc
  1311. * src/RequestGroup.h
  1312. * src/XML2SAXMetalinkProcessor.cc
  1313. * src/messageDigest.cc
  1314. * src/util.cc
  1315. * src/util.h
  1316. * test/Makefile.am
  1317. * test/MetalinkEntryTest.cc
  1318. * test/MetalinkParserControllerTest.cc
  1319. * test/MetalinkProcessorTest.cc
  1320. * test/MetalinkerTest.cc
  1321. * test/UtilTest.cc
  1322. * test/metalink4-attrs.xml
  1323. * test/metalink4-dirtraversal.xml
  1324. * test/metalink4.xml
  1325. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1326. Added aiFlags argument to getInterfaceAddress(). Use
  1327. AI_NUMERICHOST to find interface specified using
  1328. --bt-lpd-interface option to avoid time-consuming address lookup.
  1329. * src/BtSetup.cc
  1330. * src/SocketCore.cc
  1331. * src/SocketCore.h
  1332. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1334. is bad in LpdMessageReceiver.
  1335. * src/LpdMessage.h
  1336. * src/LpdMessageReceiver.cc
  1337. * src/LpdMessageReceiver.h
  1338. * src/LpdReceiveMessageCommand.cc
  1339. * test/LpdMessageReceiverTest.cc
  1340. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Added --bt-lpd-interface option to specify the interface to use
  1342. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1343. own socket. LpdMessageReceiver's socket is binded to multicast
  1344. address to only receive multicast packets.
  1345. * src/BtSetup.cc
  1346. * src/LpdMessageDispatcher.cc
  1347. * src/LpdMessageDispatcher.h
  1348. * src/LpdMessageReceiver.cc
  1349. * src/LpdMessageReceiver.h
  1350. * src/LpdReceiveMessageCommand.cc
  1351. * src/LpdReceiveMessageCommand.h
  1352. * src/OptionHandlerFactory.cc
  1353. * src/SocketCore.cc
  1354. * src/SocketCore.h
  1355. * src/prefs.cc
  1356. * src/prefs.h
  1357. * src/usage_text.h
  1358. * test/LpdMessageDispatcherTest.cc
  1359. * test/LpdMessageReceiverTest.cc
  1360. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1361. Put the portion of code to get interface addresses in
  1362. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1363. * src/SocketCore.cc
  1364. * src/SocketCore.h
  1365. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Rewritten util::parseInt() and parseUInt()
  1367. * src/util.cc
  1368. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Fixed compile error with mingw32 cross compiler. Defined
  1370. a2_sockopt_t as void* for the target systems other than mingw32.
  1371. * src/SocketCore.cc
  1372. * src/a2netcompat.h
  1373. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Removed 'always true' condition
  1375. * src/util.cc
  1376. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Documented --bt-enable-lpd option in man page.
  1378. * doc/aria2c.1.txt
  1379. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Added Local Peer Discovery. It is disabled by default. Use
  1381. --bt-enable-lpd to enable the function.
  1382. * src/BtConstants.h
  1383. * src/BtSetup.cc
  1384. * src/LpdDispatchMessageCommand.cc
  1385. * src/LpdDispatchMessageCommand.h
  1386. * src/LpdMessage.h
  1387. * src/LpdMessageDispatcher.cc
  1388. * src/LpdMessageDispatcher.h
  1389. * src/LpdMessageReceiver.cc
  1390. * src/LpdMessageReceiver.h
  1391. * src/LpdReceiveMessageCommand.cc
  1392. * src/LpdReceiveMessageCommand.h
  1393. * src/Makefile.am
  1394. * src/OptionHandlerFactory.cc
  1395. * src/Peer.cc
  1396. * src/Peer.h
  1397. * src/PeerInteractionCommand.cc
  1398. * src/SocketCore.cc
  1399. * src/SocketCore.h
  1400. * src/prefs.cc
  1401. * src/prefs.h
  1402. * src/usage_text.h
  1403. * src/util.cc
  1404. * src/util.h
  1405. * test/LpdMessageDispatcherTest.cc
  1406. * test/LpdMessageReceiverTest.cc
  1407. * test/Makefile.am
  1408. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. User-defined custom request headers specified by --header option
  1410. now override builtin headers if they have same name.
  1411. * src/HttpRequest.cc
  1412. * src/HttpRequest.h
  1413. * test/HttpRequestTest.cc
  1414. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Rewirtten util::isNumber()
  1416. * src/util.cc
  1417. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1419. because without it localized error messages are not printed
  1420. correctly.
  1421. * src/Platform.cc
  1422. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Added unit tests for util::getContentDispositionFilename() from
  1424. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1425. tests are passed.
  1426. * src/util.cc
  1427. * test/UtilTest.cc
  1428. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1430. util.cc
  1431. * src/Platform.cc
  1432. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Support RFC2231 "Parameter Value Character Set and Language
  1434. Information" in Content-Disposition header.
  1435. * src/HttpResponse.cc
  1436. * src/util.cc
  1437. * src/util.h
  1438. * test/UtilTest.cc
  1439. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Print CXXFLAGS
  1441. * configure.ac
  1442. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Small optimization for A2_WOULDBLOCK(e)
  1444. * src/SocketCore.cc
  1445. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Removed test file
  1447. * test/CookieStorageTest.cc
  1448. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Check both EAGAIN and EWOULDBLOCK
  1450. * src/SocketCore.cc
  1451. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1453. SSL_peek() because the checks are done in the caller. In
  1454. SocketBuffer::send(), throw exception if nothing could be written
  1455. and socket error was not EWOULDBLOCK
  1456. * src/SocketBuffer.cc
  1457. * src/SocketCore.cc
  1458. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Fixed error code handling so that it can handle Winsock2 error
  1460. code.
  1461. * src/SocketCore.cc
  1462. * src/SocketCore.h
  1463. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Bump up version number to 1.9.0a
  1465. * configure.ac
  1466. * doc/aria2c.1.txt
  1467. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Fixed the bug that aria2 doesn't handle return value if error
  1469. occurred before download begins.
  1470. * src/MultiUrlRequestInfo.cc
  1471. * src/main.cc
  1472. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Removed SegmentManFactory class.
  1474. * src/AbstractSegmentManFactory.h
  1475. * src/DefaultSegmentManFactory.cc
  1476. * src/DefaultSegmentManFactory.h
  1477. * src/Makefile.am
  1478. * src/RequestGroup.cc
  1479. * src/RequestGroup.h
  1480. * src/SegmentManFactory.h
  1481. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Destroyed digest context after getting calculated hash.
  1483. * src/Piece.cc
  1484. * src/Piece.h
  1485. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Removed BitfieldManFactory class.
  1487. * src/BitfieldManFactory.cc
  1488. * src/BitfieldManFactory.h
  1489. * src/DefaultPieceStorage.cc
  1490. * src/Makefile.am
  1491. * src/PeerSessionResource.cc
  1492. * src/Piece.cc
  1493. * src/main.cc
  1494. * test/DefaultPieceStorageTest.cc
  1495. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Removed unused methods from BitfieldMan class. Moved
  1497. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1498. class.
  1499. * src/BitfieldMan.cc
  1500. * src/BitfieldMan.h
  1501. * src/BitfieldManFactory.cc
  1502. * src/BitfieldManFactory.h
  1503. * src/bitfield.h
  1504. * src/main.cc
  1505. * test/BitfieldManTest.cc
  1506. * test/DefaultPieceStorageTest.cc
  1507. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1509. number of appended indexes.
  1510. * src/BitfieldMan.cc
  1511. * src/BitfieldMan.h
  1512. * src/Piece.cc
  1513. * src/Piece.h
  1514. * src/bitfield.h
  1515. * test/BitfieldManTest.cc
  1516. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Added more tests.
  1518. * test/BitfieldManTest.cc
  1519. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1521. unused block indexes at once instead of calling
  1522. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1523. Piece class and DefaultBtRequestFactory class via Piece class.
  1524. * src/BitfieldMan.cc
  1525. * src/BitfieldMan.h
  1526. * src/DefaultBtRequestFactory.cc
  1527. * src/Piece.cc
  1528. * src/Piece.h
  1529. * test/BitfieldManTest.cc
  1530. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Use std::make_pair(...)
  1532. * src/DHTMessageTracker.cc
  1533. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Use std::make_pair(...)
  1535. * src/bittorrent_helper.cc
  1536. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. urlencode(removeFragment(...)) in parseUrl(...)
  1538. * src/Request.cc
  1539. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1541. * src/AbstractCommand.cc
  1542. * src/AdaptiveURISelector.cc
  1543. * src/BtPieceMessage.cc
  1544. * src/BtPortMessage.cc
  1545. * src/CreateRequestCommand.cc
  1546. * src/DHTAbstractNodeLookupTask.cc
  1547. * src/DHTBucket.cc
  1548. * src/DHTGetPeersCommand.cc
  1549. * src/DHTMessageDispatcherImpl.cc
  1550. * src/DHTMessageFactoryImpl.cc
  1551. * src/DHTMessageTracker.cc
  1552. * src/DHTPeerAnnounceStorage.cc
  1553. * src/DHTRoutingTable.cc
  1554. * src/DHTSetup.cc
  1555. * src/DefaultBtAnnounce.cc
  1556. * src/DefaultBtInteractive.cc
  1557. * src/DefaultBtMessageDispatcher.cc
  1558. * src/DefaultBtMessageReceiver.cc
  1559. * src/DefaultBtProgressInfoFile.cc
  1560. * src/DefaultBtRequestFactory.cc
  1561. * src/DefaultPeerStorage.cc
  1562. * src/DefaultPieceStorage.cc
  1563. * src/DownloadCommand.cc
  1564. * src/DownloadEngine.cc
  1565. * src/EpollEventPoll.cc
  1566. * src/FileAllocationCommand.cc
  1567. * src/FileEntry.cc
  1568. * src/FtpNegotiationCommand.cc
  1569. * src/HandshakeExtensionMessage.cc
  1570. * src/HttpListenCommand.cc
  1571. * src/HttpServer.cc
  1572. * src/HttpSkipResponseCommand.cc
  1573. * src/IteratableChunkChecksumValidator.cc
  1574. * src/Logger.h
  1575. * src/MSEHandshake.cc
  1576. * src/MetalinkPostDownloadHandler.cc
  1577. * src/MultiDiskAdaptor.cc
  1578. * src/PeerAbstractCommand.cc
  1579. * src/PeerConnection.cc
  1580. * src/PeerListenCommand.cc
  1581. * src/PeerReceiveHandshakeCommand.cc
  1582. * src/RequestGroup.cc
  1583. * src/RequestGroupMan.cc
  1584. * src/SegmentMan.cc
  1585. * src/SelectEventPoll.cc
  1586. * src/ServerStat.cc
  1587. * src/SimpleBtMessage.cc
  1588. * src/SocketCore.cc
  1589. * src/TrackerWatcherCommand.cc
  1590. * src/UTMetadataDataExtensionMessage.cc
  1591. * src/UTMetadataRequestFactory.cc
  1592. * src/UTMetadataRequestTracker.cc
  1593. * src/XmlRpcMethod.cc
  1594. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Changed log level from debug to info
  1596. * src/BtDependency.cc
  1597. * src/BtPostDownloadHandler.cc
  1598. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Removed unused PeerSessionResource::_latency.
  1600. * src/BtConstants.h
  1601. * src/BtPieceMessage.cc
  1602. * src/Peer.cc
  1603. * src/Peer.h
  1604. * src/PeerSessionResource.cc
  1605. * src/PeerSessionResource.h
  1606. * test/PeerSessionResourceTest.cc
  1607. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Fixed the bug that --file-allocation=falloc doesn't work with
  1609. single file download.
  1610. * src/AbstractSingleDiskAdaptor.cc
  1611. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Release 1.8.2
  1613. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Added Portuguese translation. Updated Ukrainian and Spanish
  1615. translation. Thanks to all translators.
  1616. * po/LINGUAS
  1617. * po/es.po
  1618. * po/pt.po
  1619. * po/uk.po
  1620. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Remove fragment from redirected URI.
  1622. * src/Request.cc
  1623. * test/RequestTest.cc
  1624. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Updated po templates.
  1626. * po/aria2.pot
  1627. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Drop legacy ifdef for ares support and code cleanup.
  1629. * src/AsyncNameResolver.cc
  1630. * src/AsyncNameResolver.h
  1631. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Call ares_library_init and ares_library_cleanup if they are
  1633. available. Some code cleanups.
  1634. * src/Platform.cc
  1635. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Call ares_process_fd() each time after epoll to handle timeout.
  1637. * src/EpollEventPoll.cc
  1638. * src/EpollEventPoll.h
  1639. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Suppressed type-cast compiler warning
  1641. * src/CookieStorage.cc
  1642. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Fixed compile error on Mac OS X.
  1644. * src/CookieStorage.h
  1645. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Removed cookietest.txt from Makefile.am
  1647. * test/Makefile.am
  1648. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Updated version number in man page.
  1650. * doc/aria2c.1.txt
  1651. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Rewritten help message for --allow-overwrite option.
  1653. * doc/aria2c.1.txt
  1654. * src/usage_text.h
  1655. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Added bittorrent key to the response of tellStatus XML-RPC method.
  1657. The associated value of the key is a struct and contains data
  1658. retrieved from .torrent file, such as name, announce-list,
  1659. comment, etc.
  1660. * doc/aria2c.1.txt
  1661. * src/XmlRpcMethodImpl.cc
  1662. * src/XmlRpcMethodImpl.h
  1663. * test/XmlRpcMethodTest.cc
  1664. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Removed parse(std::istream&) and parse(const std::string&) from
  1666. CookieParser.
  1667. * src/CookieParser.cc
  1668. * src/CookieParser.h
  1669. * test/CookieParserTest.cc
  1670. * test/cookietest.txt: Removed
  1671. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1673. a.b.c if no other cookies are stored. Fixed the bug that
  1674. Cookie::markOriginServerOnly() is not called when cookies are
  1675. loaded from file/sqlite3 database.
  1676. * src/Cookie.h
  1677. * src/CookieStorage.cc
  1678. * src/NsCookieParser.cc
  1679. * src/Sqlite3MozCookieParser.cc
  1680. * test/CookieStorageTest.cc
  1681. * test/NsCookieParserTest.cc
  1682. * test/Sqlite3MozCookieParserTest.cc
  1683. * test/cookies.sqlite
  1684. * test/nscookietest.txt
  1685. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1687. both _pieceStorage and _segmentMan are initialized or they are
  1688. not.
  1689. * src/RequestGroup.cc
  1690. * src/RequestGroup.h
  1691. * test/BtDependencyTest.cc
  1692. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Bump up version number to 1.8.2
  1694. * configure.ac
  1695. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Replaced "." with A2STR::DOT_C
  1697. * src/AbstractCommand.cc
  1698. * src/Cookie.cc
  1699. * src/DownloadContext.cc
  1700. * src/FtpConnection.cc
  1701. * src/RequestGroup.cc
  1702. * src/util.cc
  1703. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Replaced isNumberAndDotsNotation() with isNumericHost().
  1705. isNumericHost() can handle IPv6 address.
  1706. * src/Cookie.cc
  1707. * src/CookieStorage.cc
  1708. * src/util.cc
  1709. * src/util.h
  1710. * test/CookieTest.cc
  1711. * test/UtilTest.cc
  1712. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1713. Included A2STR.h
  1714. * src/CookieStorage.cc
  1715. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Rewritten Cookie storage.
  1717. * src/Cookie.cc
  1718. * src/Cookie.h
  1719. * src/CookieParser.cc
  1720. * src/CookieStorage.cc
  1721. * src/CookieStorage.h
  1722. * src/a2functional.h
  1723. * test/CookieParserTest.cc
  1724. * test/CookieStorageTest.cc
  1725. * test/CookieTest.cc
  1726. * test/HttpResponseTest.cc
  1727. * test/TestUtil.h
  1728. * test/a2functionalTest.cc
  1729. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Handle redirected URI which is not properly percent encoded.
  1731. * src/Request.cc
  1732. * test/RequestTest.cc
  1733. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1735. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1736. in a row without single '200 OK' response.
  1737. * src/RequestGroup.cc.
  1738. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1740. readout by 80 characters in mingw32 build. Catch exception in
  1741. DHTMessageReceiver::receiveMessage().
  1742. * src/AbstractDiskWriter.cc
  1743. * src/ConsoleStatCalc.cc
  1744. * src/DHTMessageReceiver.cc
  1745. * src/File.cc
  1746. * src/RequestGroupMan.cc
  1747. * src/a2io.h
  1748. * test/FileTest.cc
  1749. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Fixed compile error with intel compiler
  1751. * src/XmlRpcMethodImpl.cc
  1752. * src/XmlRpcMethodImpl.h
  1753. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Release 1.8.1
  1755. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Updated Swedish, Russian and Italian translations. Thanks to all
  1757. translators.
  1758. * po/it.po
  1759. * po/ru.po
  1760. * po/sv.po
  1761. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Fixed broken OptionParser::findByName().
  1763. * src/OptionParser.cc
  1764. * test/OptionParserTest.cc
  1765. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Fixed test error without BitTorrent support.
  1767. * test/XmlRpcMethodTest.cc
  1768. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Fixed compile error without GNUTLS/OpenSSL.
  1770. * src/util.cc
  1771. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Changed compression level to Z_DEFAULT_COMPRESSION.
  1773. * src/GZipEncoder.cc
  1774. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Added missing command line options: --http-no-cache,
  1776. --bt-save-metadata and --bt-metadata-only.
  1777. * doc/xmlrpc/aria2rpc
  1778. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1780. client accepts gzip content encoding.
  1781. * src/A2STR.cc
  1782. * src/A2STR.h
  1783. * src/GZipEncoder.cc
  1784. * src/GZipEncoder.h
  1785. * src/HttpHeader.cc
  1786. * src/HttpHeader.h
  1787. * src/HttpServer.cc
  1788. * src/HttpServer.h
  1789. * src/HttpServerBodyCommand.cc
  1790. * src/HttpServerCommand.cc
  1791. * src/Makefile.am
  1792. * src/XmlRpcResponse.cc
  1793. * src/XmlRpcResponse.h
  1794. * test/GZipEncoderTest.cc
  1795. * test/Makefile.am
  1796. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Added XML-RPC client sample code in Python.
  1798. * doc/aria2c.1.txt
  1799. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Updated po templates.
  1801. * po/aria2.pot
  1802. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Bump up version number to 1.8.1
  1804. * configure.ac
  1805. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Added version number to man page. Updated copyright year in man
  1807. page.
  1808. * doc/aria2c.1.txt
  1809. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Rewritten toTagString
  1811. * src/NameMatchOptionHandler.cc
  1812. * test/OptionHandlerTest.cc
  1813. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Added dir and files key to the response struct of aria2.tellStatus
  1815. XML-RPC method. The value associated with files key is the list
  1816. of files. Its element is the same struct used in aria2.getFiles
  1817. XML-RPC method. Added uris key to the response struct of
  1818. aria2.getFiles XML-RPC method. The value associated with uris key
  1819. is the list of URIs. Its element is the same struct used in
  1820. aria2.getUris XML-RPC method.
  1821. * doc/aria2c.1.txt
  1822. * src/XmlRpcMethodImpl.cc
  1823. * test/XmlRpcMethodTest.cc
  1824. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1826. struct containing Session ID, which is generated each time when
  1827. aria2 is invoked.
  1828. * doc/aria2c.1.txt
  1829. * doc/xmlrpc/aria2rpc
  1830. * src/DownloadEngine.cc
  1831. * src/DownloadEngine.h
  1832. * src/XmlRpcMethodFactory.cc
  1833. * src/XmlRpcMethodImpl.cc
  1834. * src/XmlRpcMethodImpl.h
  1835. * test/XmlRpcMethodTest.cc
  1836. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Moved generateRandomKey() from bittorrent_helper to util.
  1838. * src/DHTBucket.cc
  1839. * src/DHTNode.cc
  1840. * src/bittorrent_helper.cc
  1841. * src/bittorrent_helper.h
  1842. * src/util.cc
  1843. * src/util.h
  1844. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Updated doc about GID.
  1846. * doc/aria2c.1.txt
  1847. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1849. accepts a negative integer. 'offset' == -1 points last download
  1850. in the waiting queue and 'offset' == -2 points the download before
  1851. the last download, and so on. The downloads in the response are in
  1852. reversed order.
  1853. * doc/aria2c.1.txt
  1854. * src/XmlRpcMethodImpl.cc
  1855. * src/XmlRpcMethodImpl.h
  1856. * test/XmlRpcMethodTest.cc
  1857. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Added --human-readable option. This option, when true is given,
  1859. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1860. 3.4Mi) in the console readout. The default value is true and it
  1861. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1862. appears when false is given. In this case, sizes and speed are
  1863. printed without in bytes. No Ki, Mi units conversion is used.
  1864. This may be useful for a program to parse the output of aria2.
  1865. * doc/aria2c.1.txt
  1866. * src/ConsoleStatCalc.cc
  1867. * src/ConsoleStatCalc.h
  1868. * src/OptionHandlerFactory.cc
  1869. * src/main.cc
  1870. * src/prefs.cc
  1871. * src/prefs.h
  1872. * src/usage_text.h
  1873. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1875. option accepts empty string "". When "" is given, it erases
  1876. previously defined proxy.
  1877. * doc/aria2c.1.txt
  1878. * src/OptionHandlerImpl.h
  1879. * src/usage_text.h
  1880. * test/OptionHandlerTest.cc
  1881. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Code cleanup for proxy URI handling.
  1883. * src/AbstractCommand.cc
  1884. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. Added --bt-metadata-only option. If true is given to this option,
  1886. aria2 downloads metadata only. The file(s) described in metadata
  1887. will not be downloaded. This option has effect only when
  1888. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1889. * doc/aria2c.1.txt
  1890. * src/OptionHandlerFactory.cc
  1891. * src/UTMetadataPostDownloadHandler.cc
  1892. * src/download_helper.cc
  1893. * src/prefs.cc
  1894. * src/prefs.h
  1895. * src/usage_text.h
  1896. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1898. deleted when exception is thrown. Make sure that when passing
  1899. std::deque<Command*> to function to store Commands, handle
  1900. exception and delete these Commands.
  1901. * src/AbstractCommand.cc
  1902. * src/CheckIntegrityCommand.cc
  1903. * src/FileAllocationCommand.cc
  1904. * src/RequestGroup.cc
  1905. * src/TrackerWatcherCommand.cc
  1906. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1908. * src/A2STR.cc
  1909. * src/A2STR.h
  1910. * src/FtpNegotiationCommand.cc
  1911. * src/HttpResponseCommand.cc
  1912. * src/util.cc
  1913. * src/util.h
  1914. * test/UtilTest.cc
  1915. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Treat --dir="" as --dir="."
  1917. * src/FtpNegotiationCommand.cc
  1918. * src/HttpResponseCommand.cc
  1919. * src/Metalink2RequestGroup.cc
  1920. * src/UTMetadataPostDownloadHandler.cc
  1921. * src/bittorrent_helper.cc
  1922. * src/download_helper.cc
  1923. * src/util.cc
  1924. * src/util.h
  1925. * test/UtilTest.cc
  1926. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Code clean up.
  1928. * src/main.cc
  1929. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Reset GID to 1 when they reach maximum value. Rewritten
  1931. CUIDCounter::newID()
  1932. * src/CUIDCounter.h
  1933. * src/RequestGroup.cc
  1934. * src/RequestGroup.h
  1935. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Documented --http-no-cache option in man page.
  1937. * doc/aria2c.1.txt
  1938. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1939. Added --http-no-cache option. When true is given, aria2 sends
  1940. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1941. cached content. If false is given , these headers are not sent
  1942. and you can add Cache-Control header with a directive you like
  1943. using --header option.
  1944. * src/HttpRequest.cc
  1945. * src/HttpRequest.h
  1946. * src/HttpRequestCommand.cc
  1947. * src/OptionHandlerFactory.cc
  1948. * src/download_helper.cc
  1949. * src/prefs.cc
  1950. * src/prefs.h
  1951. * src/usage_text.h
  1952. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Removed Logger from OptionParser. When OptionParser is used to
  1954. parse options at bootstrap, LogFactory is not configured yet
  1955. properly. When LogFactory is used in OptionParser, it initializes
  1956. itself to return a logger which has no ability to write log to the
  1957. disk.
  1958. * src/OptionParser.cc
  1959. * src/OptionParser.h
  1960. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Added following sentance to the help message of --out option:
  1962. --out option is ignored when -Z is used.
  1963. * doc/aria2c.1.txt
  1964. * src/usage_text.h
  1965. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1966. Added --bt-save-metadata option to -i list options.
  1967. * doc/aria2c.1.txt
  1968. * src/download_helper.cc
  1969. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1971. additional libraries.
  1972. * src/MultiUrlRequestInfo.cc
  1973. * src/NameResolver.cc
  1974. * src/SelectEventPoll.cc
  1975. * src/SelectEventPoll.h
  1976. * src/SocketCore.cc
  1977. * src/SocketCore.h
  1978. * src/a2netcompat.h
  1979. * src/daemon.cc
  1980. * src/main.cc
  1981. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Fixed typo.
  1983. * src/DHTMessageReceiver.cc
  1984. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Fixed the bug that causes segmentation fault if unknown option is
  1986. put in aria2.conf file. BUG#2928303
  1987. * src/OptionParser.cc
  1988. * src/OptionParser.h
  1989. * src/option_processing.cc
  1990. * test/OptionParserTest.cc
  1991. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Ignore port message with port=0.
  1993. * src/BtPortMessage.cc
  1994. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Run autoupdate
  1996. * configure.ac
  1997. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Updated autoconf/automake auxiliary files.
  1999. * INSTALL
  2000. * config.guess
  2001. * config.sub
  2002. * depcomp
  2003. * install-sh
  2004. * m4/intldir.m4
  2005. * missing
  2006. * mkinstalldirs
  2007. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Removed unused function.
  2009. * src/SharedHandle.h
  2010. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Find pooled socket using all cached addresses.
  2012. * src/DNSCache.h
  2013. * src/DownloadEngine.cc
  2014. * src/DownloadEngine.h
  2015. * src/InitiateConnectionCommand.cc
  2016. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Updated copyright year.
  2018. * src/version_usage.cc
  2019. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Pool connection if _contentEncodingDecoder is used and server
  2021. supports persistent connection.
  2022. * src/HttpDownloadCommand.cc
  2023. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Updated doc.
  2025. * src/DownloadCommand.cc
  2026. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Untabify. Fixed one line in copyright which is longer than 80
  2028. columns.
  2029. * src
  2030. * test
  2031. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Release 1.8.0
  2033. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Updated po templates.
  2035. * po/aria2.pot
  2036. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Documented --bt-save-metadata option in man page.
  2038. * doc/aria2c.1.txt
  2039. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Fixed usage of --bt-save-metadata option.
  2041. * src/usage_text.h
  2042. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2043. Updated po templates.
  2044. * po/aria2.pot
  2045. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2047. causes name resolution error when none of network interface has
  2048. IPv4 address.
  2049. * src/main.cc
  2050. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2051. Bump up version number to 1.8.0.
  2052. * configure.ac
  2053. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Use info hash as a filename when saving BitTorrent metadata.
  2055. * src/UTMetadataPostDownloadHandler.cc
  2056. * test/UTMetadataPostDownloadHandlerTest.cc
  2057. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Documented system.multicall XML-RPC method in man page.
  2059. * doc/aria2c.1.txt
  2060. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Added signal handler for SIGHUP to save .aria2 file when terminal
  2062. is closed. The handler is the same one for SIGINT and SIGTERM.
  2063. * src/MultiUrlRequestInfo.cc
  2064. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Defined method name in XmlRpcMethod subclasses.
  2066. * src/XmlRpcMethodFactory.cc
  2067. * src/XmlRpcMethodImpl.cc
  2068. * src/XmlRpcMethodImpl.h
  2069. * test/XmlRpcMethodTest.cc
  2070. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Added system.multicall XML-RPC method.
  2072. * src/XmlRpcMethod.cc
  2073. * src/XmlRpcMethod.h
  2074. * src/XmlRpcMethodFactory.cc
  2075. * src/XmlRpcMethodImpl.cc
  2076. * src/XmlRpcMethodImpl.h
  2077. * test/XmlRpcMethodTest.cc
  2078. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Check structure depth when decoding.
  2080. * src/bencode.cc
  2081. * src/bencode.h
  2082. * test/BencodeTest.cc
  2083. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Documented tellStopped XML-RPC method in man page.
  2085. * doc/aria2c.1.txt
  2086. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Added tellStopped XML-RPC method to aria2rpc.
  2088. * doc/xmlrpc/aria2rpc
  2089. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. Added tellStopped XML-RPC method. This method returns stopped
  2091. download in the specified range. It takes same parameters with
  2092. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2093. * src/XmlRpcMethodFactory.cc
  2094. * src/XmlRpcMethodImpl.cc
  2095. * src/XmlRpcMethodImpl.h
  2096. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2098. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2099. when conducting unit tests because they fail if networking
  2100. interface is not configured with IPv4 address.
  2101. * src/NameResolver.cc
  2102. * src/SocketCore.cc
  2103. * src/SocketCore.h
  2104. * src/a2netcompat.h
  2105. * test/AllTest.cc
  2106. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Fixed unit test error
  2108. * test/UTMetadataPostDownloadHandlerTest.cc
  2109. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Defined static string constants for efficiency.
  2111. * src/XmlRpcMethodImpl.cc
  2112. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Added --bt-save-metadata option. When true is given, it saves
  2114. metadata as .torrent file. This option has effect only when
  2115. BitTorrent Magnet URI is used. The filename is name in metadata
  2116. with suffix .torrent. The directory to be saved is the same
  2117. directory where download file is saved. If the same file already
  2118. exists, metdata is not saved.
  2119. * src/OptionHandlerFactory.cc
  2120. * src/UTMetadataPostDownloadHandler.cc
  2121. * src/UTMetadataPostDownloadHandler.h
  2122. * src/message.h
  2123. * src/prefs.cc
  2124. * src/prefs.h
  2125. * src/usage_text.h
  2126. * test/UTMetadataDataExtensionMessageTest.cc
  2127. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Added util::saveAs() function. Use it in Signature::save().
  2129. * src/Signature.cc
  2130. * src/util.cc
  2131. * src/util.h
  2132. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Upcase info hash in Magnet URI.
  2134. * doc/aria2c.1.txt
  2135. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Refactored RequestGroupMan::changeReservedGroupPosition()
  2137. * src/RequestGroupMan.cc
  2138. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Updated the description for aria2.addTorrent XML-RPC method.
  2140. * doc/aria2c.1.txt
  2141. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Added changePosition to aria2rpc.
  2143. * doc/xmlrpc/aria2rpc
  2144. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Documented changePosition XML-RPC method in man page.
  2146. * doc/aria2c.1.txt
  2147. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2149. pos and how. This method changes the position of download denoted
  2150. by gid. If how is POS_SET, it moves the download to a position
  2151. relative to the beginning of the queue. If how is POS_CUR, it
  2152. moves the download to a position relative to the current
  2153. position. If how is POS_END, it moves the download to a position
  2154. relative to the end of the queue. If the destination position is
  2155. less than 0 or beyond the end of the queue, it moves the download
  2156. to the beginning or the end of the queue respectively. Returns
  2157. the destination position.
  2158. * src/RequestGroupMan.cc
  2159. * src/RequestGroupMan.h
  2160. * src/XmlRpcMethodFactory.cc
  2161. * src/XmlRpcMethodImpl.cc
  2162. * src/XmlRpcMethodImpl.h
  2163. * test/RequestGroupManTest.cc
  2164. * test/XmlRpcMethodTest.cc
  2165. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Added getOption and getGlobalOption to aria2rpc.
  2167. * doc/xmlrpc/aria2rpc
  2168. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Documented getOption and getGlobalOption XML-RPC method in man
  2170. page
  2171. * doc/aria2c.1.txt
  2172. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Added getOption and getGlobalOption XML-RPC method. getOption
  2174. takes GID as a parameter and returns its options as struct.
  2175. getGlobalOption takes no parameter and returns global
  2176. options. Because global option is used as a template for the
  2177. option of newly added downloads, it includes options returned by
  2178. getOption.
  2179. * src/Option.h
  2180. * src/XmlRpcMethodFactory.cc
  2181. * src/XmlRpcMethodImpl.cc
  2182. * src/XmlRpcMethodImpl.h
  2183. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Sort _optionHandlers in OptionParser by name in ascending order.
  2185. Use vector instead of deque for efficiency.
  2186. * src/OptionHandler.h
  2187. * src/OptionHandlerFactory.h
  2188. * src/OptionParser.cc
  2189. * src/OptionParser.h
  2190. * src/version_usage.cc
  2191. * test/OptionParserTest.cc
  2192. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Code cleanup
  2194. * src/XmlRpcMethod.cc
  2195. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Documented about followedBy and belongsTo in man page.
  2197. * doc/aria2c.1.txt
  2198. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Added following 2 keys, followedBy and belongsTo, to the response
  2200. of tellStatus.
  2201. followedBy: List of GIDs which are generated by the consequence of
  2202. this download. For example, when aria2 downloaded Metalink file,
  2203. it generates downloads described in it(see *--follow-metalink*
  2204. option). This value is useful to track these auto generated
  2205. downloads. If there is no such downloads, this key will not be
  2206. included in the response.
  2207. belongsTo: GID of a parent download. Some downloads are a part of
  2208. another download. For example, if a file in Metalink has
  2209. BitTorrent resource, the download of .torrent is a part of that
  2210. file. If this download has no parent, this key will not be
  2211. included in the response.
  2212. * src/BtPostDownloadHandler.cc
  2213. * src/DownloadResult.h
  2214. * src/Metalink2RequestGroup.cc
  2215. * src/MetalinkPostDownloadHandler.cc
  2216. * src/RequestGroup.cc
  2217. * src/RequestGroup.h
  2218. * src/UTMetadataPostDownloadHandler.cc
  2219. * src/XmlRpcMethodImpl.cc
  2220. * src/XmlRpcMethodImpl.h
  2221. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Assigned BObject in BDE() to avoid segmentation fault when calling
  2223. methods of BDE::none().
  2224. * src/BDE.cc
  2225. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Show info hash in Magnet URI in upper case letters in -S output.
  2227. * src/bittorrent_helper.cc
  2228. * test/BittorrentHelperTest.cc
  2229. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Removed old useless comment
  2231. * src/MultiUrlRequestInfo.cc
  2232. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2234. not properly used in configure script and failed to detect gnutls.
  2235. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2236. and the initialization of pkg-config is done in first occurrence
  2237. of PKG_CHECK_MODULES which is not executed because it is inside of
  2238. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2239. * configure.ac
  2240. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Release 1.7.2
  2242. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2244. true even if all downloads haven't finished, especially when
  2245. PostDownloadHandler is involved. Changed the condition so that it
  2246. only returns true if both _requestGroups and _reservedGroups are
  2247. empty.
  2248. * src/RequestGroupMan.cc
  2249. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Log listening port for BitTorrent/DHT in notice level.
  2251. * src/DHTConnectionImpl.cc
  2252. * src/PeerListenCommand.cc
  2253. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. Updated po templates.
  2255. * po/aria2.pot
  2256. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. Bump up version number to 1.7.2
  2258. * configure.ac
  2259. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Changed default value of --enable-dht from 'false' to 'true'.
  2261. * doc/aria2c.1.txt
  2262. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Enabled DHT by default because of Magnet URI support. To disable
  2264. DHT, use --enable-dht=false
  2265. * src/OptionHandlerFactory.cc
  2266. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Print Magnet URI in -S output.
  2268. * src/AnnounceList.cc
  2269. * src/bittorrent_helper.cc
  2270. * src/bittorrent_helper.h
  2271. * test/BittorrentHelperTest.cc
  2272. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Added --bt-prioritize-piece option to aria2rpc.
  2274. * doc/xmlrpc/aria2rpc
  2275. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Refer Magnet URI in --help. Made some cosmetic changes.
  2277. * src/version_usage.cc
  2278. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Updated -T and -M option.
  2280. * doc/aria2c.1.txt
  2281. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Fixed typo
  2283. * doc/aria2c.1.txt
  2284. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Fixed the bug that line separator is missing in horizontal bar.
  2286. * doc/xmlrpc/aria2mon
  2287. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Updated usage text for --metalink-file option.
  2289. * src/usage_text.h
  2290. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. If '-' is given as an argument to --metalink-file option, aria2
  2292. reads Metalink file from stdin.
  2293. * src/OptionHandlerFactory.cc
  2294. * src/OptionHandlerImpl.h
  2295. * src/a2io.h
  2296. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Fixed the bug that aria2 listens wrong port if --interface option
  2298. is used.
  2299. * src/SocketCore.cc
  2300. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Fixed the bug that query parameter in magnet URI is not decoded.
  2302. * src/magnet.cc
  2303. * test/MagnetTest.cc
  2304. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Specified defaultSize as an argument for easy testing.
  2306. * src/util.cc
  2307. * src/util.h
  2308. * test/UtilTest.cc
  2309. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. Release 1.7.1
  2311. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Bump up version number to 1.7.1
  2313. * configure.ac
  2314. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Fixed the bug --bt-prioritize-piece=tail is not working.
  2316. * src/util.cc
  2317. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Release 1.7.0
  2319. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Updated po templates.
  2321. * po/aria2.pot
  2322. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Updated help message for --bt-prioritize-piece. Some cosmetic
  2324. changes.
  2325. * doc/aria2c.1.txt
  2326. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2328. * src/usage_text.h
  2329. * src/util.cc
  2330. * test/UtilTest.cc
  2331. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Updated Russian, Ukrainian, German and French translations.
  2333. Thanks to all translators involved.
  2334. * po/de.po
  2335. * po/fr.po
  2336. * po/ru.po
  2337. * po/uk.po
  2338. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Mentioned about pkg-config
  2340. * README
  2341. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Fixed typo. Referred --index-out option in BitTorrent notes.
  2343. * README
  2344. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2346. bind, try all addresses until success
  2347. * src/SocketCore.cc
  2348. * src/SocketCore.h
  2349. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Updated po templates.
  2351. * po/aria2.pot
  2352. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Bump up version number to 1.7.0
  2354. * configure.ac
  2355. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2357. * src/DefaultPieceStorage.cc
  2358. * src/DefaultPieceStorage.h
  2359. * src/PieceStorage.h
  2360. * src/UnknownLengthPieceStorage.cc
  2361. * src/UnknownLengthPieceStorage.h
  2362. * test/MockPieceStorage.h
  2363. * test/ProtocolDetectorTest.cc
  2364. * test/XmlRpcMethodTest.cc
  2365. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Documented in man page that if getifaddrs() is missing,
  2367. --interface option doesn't accept interface name.
  2368. * doc/aria2c.1.txt
  2369. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2370. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2371. * src/DefaultBtAnnounce.cc
  2372. * src/DefaultBtAnnounce.h
  2373. * test/DefaultBtAnnounceTest.cc
  2374. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Fixed the bug that connection is always dropped if handshake
  2376. message in extension protocol don't have metadata_size.
  2377. src/HandshakeExtensionMessage.cc
  2378. * src/HandshakeExtensionMessage.cc
  2379. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2381. text saying DHT is recommended when Magnet URI is provided.
  2382. * doc/aria2c.1.txt
  2383. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2385. URI is supplied. Notify user that they should consider enabling
  2386. DHT if they use Magnet URI.
  2387. * src/RequestGroup.cc
  2388. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2389. Added --disable-ipv6 option to disable IPv6.
  2390. * doc/aria2c.1.txt
  2391. * src/InitiateConnectionCommand.cc
  2392. * src/NameResolver.cc
  2393. * src/NameResolver.h
  2394. * src/OptionHandlerFactory.cc
  2395. * src/main.cc
  2396. * src/prefs.cc
  2397. * src/prefs.h
  2398. * src/usage_text.h
  2399. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Updated usage text for --bt-prioritize-piece option.
  2401. * doc/aria2c.1.txt
  2402. * src/usage_text.h
  2403. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2405. given and PACKAGE is missing in the system or FEATURE cannot be
  2406. enabled, print error message and stop the script.
  2407. * configure.ac
  2408. * m4/aria2_arg.m4
  2409. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Halt metadata download immediately when metadata download is done.
  2411. Don't wait unresponsive tracker.
  2412. * src/ByteArrayDiskWriter.h
  2413. * src/DefaultBtInteractive.cc
  2414. * src/DefaultExtensionMessageFactory.cc
  2415. * src/DefaultExtensionMessageFactory.h
  2416. * src/PeerInteractionCommand.cc
  2417. * src/UTMetadataDataExtensionMessage.cc
  2418. * src/UTMetadataDataExtensionMessage.h
  2419. * src/UTMetadataRequestExtensionMessage.cc
  2420. * test/UTMetadataDataExtensionMessageTest.cc
  2421. * test/UTMetadataRequestExtensionMessageTest.cc
  2422. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Documented --interface option in man page.
  2424. * doc/aria2c.1.txt
  2425. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2426. Try resolved address in the order received from the resolver.
  2427. * src/DNSCache.h
  2428. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Added debug logs.
  2430. * src/SocketCore.cc
  2431. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Fixed type of tail to uint64_t
  2433. * src/util.cc
  2434. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Added --interface option. This feature binds sockets to given
  2436. interface. You can specify interface name, IP address and
  2437. hostname.
  2438. * configure.ac
  2439. * src/OptionHandlerFactory.cc
  2440. * src/SocketCore.cc
  2441. * src/SocketCore.h
  2442. * src/main.cc
  2443. * src/message.h
  2444. * src/prefs.cc
  2445. * src/prefs.h
  2446. * src/usage_text.h
  2447. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Updated man page for bt-prioritize-piece option in -i list.
  2449. * doc/aria2c.1.txt
  2450. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Added bt-prioritize-piece option to -i list.
  2452. * src/download_helper.cc
  2453. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Removed --http-auth-scheme option from man page.
  2455. * doc/aria2c.1.txt
  2456. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Removed --http-auth-scheme option since it doesn't do nothing.
  2458. * src/OptionHandlerFactory.cc
  2459. * src/prefs.cc
  2460. * src/prefs.h
  2461. * src/usage_text.h
  2462. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Adjusted the number of peer info which get_peers reply message can
  2464. carry.
  2465. * src/DHTGetPeersReplyMessage.cc
  2466. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Added extension_message_test_helper.h to aria2c_SOURCES.
  2468. * test/Makefile.am
  2469. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Documented --bt-prioritize-piece option in man page.
  2471. * doc/aria2c.1.txt
  2472. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Added option --bt-prioritize-piece. This option instruct aria2 to
  2474. try to download first and last pieces of each file first. The
  2475. argument can contain 2 keywords:head and tail. To include both
  2476. keywords, they must be separated by comma. These keywords can take
  2477. one parameter, SIZE. For example , if head=SIZE is specified,
  2478. pieces in the range of first SIZE bytes of each file get higher
  2479. priority. tail=SIZE means the range of last SIZE bytes of each
  2480. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2481. * src/DefaultPieceStorage.h
  2482. * src/Makefile.am
  2483. * src/OptionHandlerFactory.cc
  2484. * src/OptionHandlerImpl.h
  2485. * src/PriorityPieceSelector.cc
  2486. * src/PriorityPieceSelector.h
  2487. * src/RequestGroup.cc
  2488. * src/prefs.cc
  2489. * src/prefs.h
  2490. * src/usage_text.h
  2491. * src/util.cc
  2492. * src/util.h
  2493. * test/Makefile.am
  2494. * test/MockPieceSelector.h
  2495. * test/PriorityPieceSelectorTest.cc
  2496. * test/UtilTest.cc
  2497. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Fixed typo
  2499. * src/HttpRequest.h
  2500. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. In Magnet URI with tr parameter, put each announce URI in separate
  2502. tier.
  2503. * src/bittorrent_helper.cc
  2504. * test/BittorrentHelperTest.cc
  2505. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Renamed ExtensionMessage::getBencodedData() as
  2507. ExtensionMessage::getPayload()
  2508. * src/BtExtendedMessage.cc
  2509. * src/ExtensionMessage.h
  2510. * src/HandshakeExtensionMessage.cc
  2511. * src/HandshakeExtensionMessage.h
  2512. * src/UTMetadataDataExtensionMessage.cc
  2513. * src/UTMetadataDataExtensionMessage.h
  2514. * src/UTMetadataRejectExtensionMessage.cc
  2515. * src/UTMetadataRejectExtensionMessage.h
  2516. * src/UTMetadataRequestExtensionMessage.cc
  2517. * src/UTMetadataRequestExtensionMessage.h
  2518. * src/UTPexExtensionMessage.cc
  2519. * src/UTPexExtensionMessage.h
  2520. * test/HandshakeExtensionMessageTest.cc
  2521. * test/MockExtensionMessage.h
  2522. * test/UTMetadataDataExtensionMessageTest.cc
  2523. * test/UTMetadataRejectExtensionMessageTest.cc
  2524. * test/UTMetadataRequestExtensionMessageTest.cc
  2525. * test/UTPexExtensionMessageTest.cc
  2526. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Updated man page for BitTorrent Magnet URI.
  2528. * doc/aria2c.1.txt
  2529. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2530. Call DownloadContext::setOwnerRequestGroup() in
  2531. RequestGroup::setDownloadContext().
  2532. * src/BtDependency.cc
  2533. * src/RequestGroup.cc
  2534. * src/RequestGroup.h
  2535. * src/download_helper.cc
  2536. * test/DefaultBtMessageDispatcherTest.cc
  2537. * test/DefaultExtensionMessageFactoryTest.cc
  2538. * test/HandshakeExtensionMessageTest.cc
  2539. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2541. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2542. from metadata, use new metadata2Torrent() function.
  2543. * src/BtDependency.cc
  2544. * src/UTMetadataPostDownloadHandler.cc
  2545. * src/bittorrent_helper.cc
  2546. * src/bittorrent_helper.h
  2547. * test/BittorrentHelperTest.cc
  2548. * test/BtDependencyTest.cc
  2549. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Use createRequestGroupForUri to create the download for torrent
  2551. file.
  2552. * src/Metalink2RequestGroup.cc
  2553. * test/Metalink2RequestGroupTest.cc
  2554. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Fixed typo
  2556. * src/DownloadContext.h
  2557. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Use createRequestGroupForBitTorrent()
  2559. * src/BtPostDownloadHandler.cc
  2560. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Added remove().
  2562. * src/Option.cc
  2563. * src/Option.h
  2564. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Removed options which is only valid for URIs specified in
  2566. command-line. If they are left, because op is used as a template
  2567. for new RequestGroup(such as created in XML-RPC command,
  2568. BtPostDownloadHandler etc), they causes unintentional effect.
  2569. * src/main.cc
  2570. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. Refer to option value of PREF_OUT only in download_helper.
  2572. * src/FtpNegotiationCommand.cc
  2573. * src/HttpResponseCommand.cc
  2574. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2576. * src/download_helper.cc
  2577. * src/download_helper.h
  2578. * src/XmlRpcMethodImpl.cc
  2579. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Updated man page for changeOption XML-RPC method.
  2581. * doc/aria2c.1.txt
  2582. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Added --bt-max-peers option to changeOption XML-RPC method.
  2584. * src/XmlRpcMethod.cc
  2585. * src/XmlRpcMethodImpl.cc
  2586. * test/XmlRpcMethodTest.cc
  2587. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2589. * test/XmlRpcMethodTest.cc
  2590. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Removed redundant DownloadContext::hasAttribute(...) calls.
  2592. * src/ConsoleStatCalc.cc
  2593. * src/RequestGroup.cc
  2594. * src/XmlRpcMethodImpl.cc
  2595. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Changed the number of tracker request attempt from 5 to 2.
  2597. * src/TrackerWatcherCommand.cc
  2598. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Use host and protocol in original URI, because URI selector
  2600. selects URI based on original URI, not redirected one.
  2601. * src/Request.cc
  2602. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Fixed the bug which causes segmentation fault with tellWaiting
  2604. XML-RPC method when BitTorrent download is waiting. The key of
  2605. BtRegistry is changed from info hash to GID, because it is
  2606. registered per RequestGroup, not info hash.
  2607. * src/BtRegistry.cc
  2608. * src/BtRegistry.h
  2609. * src/BtSetup.cc
  2610. * src/ConsoleStatCalc.cc
  2611. * src/InitiatorMSEHandshakeCommand.cc
  2612. * src/PeerInitiateConnectionCommand.cc
  2613. * src/PeerInteractionCommand.cc
  2614. * src/PeerInteractionCommand.h
  2615. * src/PeerReceiveHandshakeCommand.cc
  2616. * src/RequestGroup.cc
  2617. * src/XmlRpcMethodImpl.cc
  2618. * test/BtRegistryTest.cc
  2619. * test/XmlRpcMethodTest.cc
  2620. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Updated man page for changeOption XML-RPC method.
  2622. * doc/aria2c.1.txt
  2623. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2625. method.
  2626. * src/XmlRpcMethod.cc
  2627. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Documented about BitTorrent Magnet URI in man page.
  2629. * doc/aria2c.1.txt
  2630. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2632. inherited to generated RequestGroup.
  2633. * src/UTMetadataPostDownloadHandler.cc
  2634. * test/UTMetadataPostDownloadHandlerTest.cc
  2635. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Prepended "[METADATA]" before dn.
  2637. * src/bittorrent_helper.cc
  2638. * test/BittorrentHelperTest.cc
  2639. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Rewritten Magnet URI parser.
  2641. * src/Makefile.am
  2642. * src/ProtocolDetector.cc
  2643. * src/bittorrent_helper.cc
  2644. * src/bittorrent_helper.h
  2645. * src/download_helper.cc
  2646. * src/magnet.cc
  2647. * src/magnet.h
  2648. * test/BittorrentHelperTest.cc
  2649. * test/MagnetTest.cc
  2650. * test/Makefile.am
  2651. * test/ProtocolDetectorTest.cc
  2652. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Use hton64
  2654. * src/base32.cc
  2655. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Added Base32 encoded BitTorrent Magnet Link support.
  2657. * src/Makefile.am
  2658. * src/base32.cc
  2659. * src/base32.h
  2660. * src/bittorrent_helper.cc
  2661. * test/Base32Test.cc
  2662. * test/BittorrentHelperTest.cc
  2663. * test/Makefile.am
  2664. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2666. supported yet. Fixed typo in method name in RequestGroup. In
  2667. metadataGetMode, don't show "Your share ratio was ..." message.
  2668. * src/DefaultBtInteractive.cc
  2669. * src/DefaultBtInteractive.h
  2670. * src/DownloadHandlerFactory.cc
  2671. * src/DownloadHandlerFactory.h
  2672. * src/HandshakeExtensionMessage.cc
  2673. * src/Makefile.am
  2674. * src/Metalink2RequestGroup.cc
  2675. * src/PeerInteractionCommand.cc
  2676. * src/RequestGroup.cc
  2677. * src/RequestGroup.h
  2678. * src/UTMetadataPostDownloadHandler.cc
  2679. * src/UTMetadataPostDownloadHandler.h
  2680. * src/download_helper.cc
  2681. * test/HandshakeExtensionMessageTest.cc
  2682. * test/Makefile.am
  2683. * test/UTMetadataPostDownloadHandlerTest.cc
  2684. * test/UTMetadataRejectExtensionMessageTest.cc
  2685. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2686. In metadataGetMode, don't show SEEDING.
  2687. * src/ConsoleStatCalc.cc
  2688. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Fixed ut_metadata data handling. Implemented
  2690. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2691. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2692. metadata_size is received.
  2693. * src/DefaultExtensionMessageFactory.cc
  2694. * src/DefaultExtensionMessageFactory.h
  2695. * src/HandshakeExtensionMessage.cc
  2696. * src/HandshakeExtensionMessage.h
  2697. * src/UTMetadataDataExtensionMessage.cc
  2698. * src/UTMetadataDataExtensionMessage.h
  2699. * src/UTMetadataRequestExtensionMessage.cc
  2700. * src/UTMetadataRequestFactory.cc
  2701. * src/UTMetadataRequestFactory.h
  2702. * src/UTMetadataRequestTracker.cc
  2703. * src/UTMetadataRequestTracker.h
  2704. * test/DefaultExtensionMessageFactoryTest.cc
  2705. * test/HandshakeExtensionMessageTest.cc
  2706. * test/MockBtMessage.h
  2707. * test/UTMetadataDataExtensionMessageTest.cc
  2708. * test/UTMetadataRequestExtensionMessageTest.cc
  2709. * test/UTMetadataRequestFactoryTest.cc
  2710. * test/UTMetadataRequestTrackerTest.cc
  2711. * test/extension_message_test_helper.h
  2712. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Drop connection if ut_metadata reject message is received.
  2714. * src/UTMetadataRejectExtensionMessage.cc
  2715. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2717. get high enough in that mode.
  2718. * src/ActivePeerConnectionCommand.cc
  2719. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Added BitTorrent magnet link support to ProtocolDetector.
  2721. * src/ProtocolDetector.cc
  2722. * src/ProtocolDetector.h
  2723. * test/ProtocolDetectorTest.cc
  2724. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Don't inject validator into BtMessage in metadataGetMode because
  2726. most of the checks depends on the total length of download but it
  2727. is unknown. Delegate metadataGetMode to BtMessage.
  2728. * src/DefaultBtMessageFactory.cc
  2729. * src/DefaultBtMessageFactory.h
  2730. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2732. * src/DefaultPieceStorage.h
  2733. * src/PieceStorage.h
  2734. * src/UnknownLengthPieceStorage.h
  2735. * test/MockPieceStorage.h
  2736. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Added markTotalLengthIsKnown().
  2738. * src/DownloadContext.h
  2739. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2741. missing. If metadata is missing, always use DHT when it is ready.
  2742. * src/BtSetup.cc
  2743. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Added parseMagnetLink(). Hex encoded info hash is supported.
  2745. Base32 encoded info hash is not supported yet.
  2746. * src/bittorrent_helper.cc
  2747. * src/bittorrent_helper.h
  2748. * test/BittorrentHelperTest.cc
  2749. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Added FromHex()
  2751. * src/util.cc
  2752. * src/util.h
  2753. * test/UtilTest.cc
  2754. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Added _metadataGetMode member variable. It toggles the action when
  2756. messages are received: usually they almost do nothing if
  2757. _metadataGetMode is true.
  2758. * src/AbstractBtMessage.cc
  2759. * src/AbstractBtMessage.h
  2760. * src/BtAllowedFastMessage.cc
  2761. * src/BtBitfieldMessage.cc
  2762. * src/BtCancelMessage.cc
  2763. * src/BtChokeMessage.cc
  2764. * src/BtHaveAllMessage.cc
  2765. * src/BtHaveMessage.cc
  2766. * src/BtInterestedMessage.cc
  2767. * src/BtNotInterestedMessage.cc
  2768. * src/BtPieceMessage.cc
  2769. * src/BtRejectMessage.cc
  2770. * src/BtRequestMessage.cc
  2771. * src/BtUnchokeMessage.cc
  2772. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Added bencode::decode overload functions. They have extra argument
  2774. 'end', passed by reference. 'end' points to the beyond the last
  2775. position of data used in decoding process.
  2776. * src/bencode.cc
  2777. * src/bencode.h
  2778. * test/BencodeTest.cc
  2779. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2780. Initial support of Extension for Peers to Send Metadata
  2781. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2782. metadata from swarm.
  2783. * src/BtConstants.h
  2784. * src/DefaultBtInteractive.cc
  2785. * src/DefaultExtensionMessageFactory.cc
  2786. * src/DefaultExtensionMessageFactory.h
  2787. * src/ExtensionMessage.h
  2788. * src/ExtensionMessageRegistry.h
  2789. * src/HandshakeExtensionMessage.cc
  2790. * src/HandshakeExtensionMessage.h
  2791. * src/Makefile.am
  2792. * src/PeerConnection.h
  2793. * src/PeerInteractionCommand.cc
  2794. * src/UTMetadataDataExtensionMessage.cc
  2795. * src/UTMetadataDataExtensionMessage.h
  2796. * src/UTMetadataExtensionMessage.cc
  2797. * src/UTMetadataExtensionMessage.h
  2798. * src/UTMetadataRejectExtensionMessage.cc
  2799. * src/UTMetadataRejectExtensionMessage.h
  2800. * src/UTMetadataRequestExtensionMessage.cc
  2801. * src/UTMetadataRequestExtensionMessage.h
  2802. * src/bittorrent_helper.cc
  2803. * src/bittorrent_helper.h
  2804. * test/BittorrentHelperTest.cc
  2805. * test/DefaultExtensionMessageFactoryTest.cc
  2806. * test/HandshakeExtensionMessageTest.cc
  2807. * test/Makefile.am
  2808. * test/UTMetadataDataExtensionMessageTest.cc
  2809. * test/UTMetadataRejectExtensionMessageTest.cc
  2810. * test/UTMetadataRequestExtensionMessageTest.cc
  2811. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Cancel segment in prepareForRetry() because there is a chance that
  2813. the command has segments.
  2814. * src/CreateRequestCommand.cc
  2815. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Fixed the bug that slow server is not knocked down in favor of
  2817. faster one.
  2818. * src/AbstractCommand.cc
  2819. * src/DefaultPieceStorage.cc
  2820. * src/DefaultPieceStorage.h
  2821. * src/PieceStorage.h
  2822. * src/UnknownLengthPieceStorage.cc
  2823. * src/UnknownLengthPieceStorage.h
  2824. * test/MockPieceStorage.h
  2825. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2826. Fixed the bug that Request object is not added to
  2827. _inFlightRequests in findFasterRequest().
  2828. * src/FileEntry.cc
  2829. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2830. Changed the strategry of how to increase the number of outstanding
  2831. requests. Now the number is doubled if there are no outstanding
  2832. requests after receiving messages.
  2833. * src/BtConstants.h
  2834. * src/DefaultBtInteractive.cc
  2835. * src/DefaultBtInteractive.h
  2836. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Check socket for reading if there are outstanding requests.
  2838. * src/PeerInteractionCommand.cc
  2839. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Moved frequently called methods to header file so they get
  2841. inlined.
  2842. * src/RequestSlot.cc
  2843. * src/RequestSlot.h
  2844. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Copied in_addr instead of just casting from char* which might
  2846. violate strict aliasing rules.
  2847. * src/AsyncNameResolver.cc
  2848. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Use dynamic_pointer_cast
  2850. * test/BtPieceMessageTest.cc
  2851. * test/BtRequestMessageTest.cc
  2852. * test/DefaultBtRequestFactoryTest.cc
  2853. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Added testSetUrl20()
  2855. * test/RequestTest.cc
  2856. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Code cleanup
  2858. * src/bittorrent_helper.cc
  2859. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Use C++ style cast
  2861. * src/AsyncNameResolver.cc
  2862. * src/Base64.h
  2863. * src/BtBitfieldMessage.cc
  2864. * src/BtHandshakeMessage.cc
  2865. * src/DefaultBtMessageFactory.cc
  2866. * src/DefaultBtProgressInfoFile.cc
  2867. * src/EpollEventPoll.cc
  2868. * src/ExpatMetalinkProcessor.cc
  2869. * src/IteratableChecksumValidator.cc
  2870. * src/IteratableChunkChecksumValidator.cc
  2871. * src/MessageDigestHelper.cc
  2872. * src/Platform.cc
  2873. * src/RequestGroupMan.cc
  2874. * src/SingleFileAllocationIterator.cc
  2875. * src/Sqlite3MozCookieParser.cc
  2876. * src/XML2SAXMetalinkProcessor.cc
  2877. * src/Xml2XmlRpcRequestProcessor.cc
  2878. * src/util.cc
  2879. * src/util.h
  2880. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Fixed integer potential alignment problem.
  2882. * src/bitfield.h
  2883. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2885. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2886. include file ordering.
  2887. * src/PeerListProcessor.h
  2888. * src/bittorrent_helper.cc
  2889. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2891. * src/Request.cc
  2892. * src/util.cc
  2893. * src/util.h
  2894. * test/RequestTest.cc
  2895. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Rewritten util::uitos()
  2897. * src/util.h
  2898. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Code cleanup
  2900. * src/Request.cc
  2901. * src/Request.h
  2902. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Rewritten Request::parseUrl()
  2904. * src/Request.cc
  2905. * test/RequestTest.cc
  2906. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. Removed unused macro SAFE_CHARS
  2908. * src/Request.cc
  2909. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Updated doc
  2911. * src/DHTRoutingTableDeserializer.cc
  2912. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Release 1.6.3
  2914. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Removed unused function.
  2916. * test/DHTPeerAnnounceStorageTest.cc
  2917. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Only decrement cols if cols > 0
  2919. * src/ConsoleStatCalc.cc
  2920. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2922. translations. Thanks to all translators.
  2923. * po/ca.po
  2924. * po/fr.po
  2925. * po/it.po
  2926. * po/ja.po
  2927. * po/pl.po
  2928. * po/ru.po
  2929. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2930. Updated translation template
  2931. * po
  2932. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Fixed compile error without ssl library.
  2934. * src/util.cc
  2935. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Logged received nodes in get_peers reply message.
  2937. * src/DHTAbstractNodeLookupTask.cc
  2938. * src/DHTAbstractNodeLookupTask.h
  2939. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2940. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2941. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2942. * src/DHTMessageDispatcherImpl.cc
  2943. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Don't reuse URI if Request pool is not empty.
  2945. * src/CreateRequestCommand.cc
  2946. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2948. receive get_peers request for torrent which the client is now
  2949. downloading.
  2950. * src/BtSetup.cc
  2951. * src/DHTPeerAnnounceEntry.cc
  2952. * src/DHTPeerAnnounceEntry.h
  2953. * src/DHTPeerAnnounceStorage.cc
  2954. * src/DHTPeerAnnounceStorage.h
  2955. * src/RequestGroup.cc
  2956. * test/DHTPeerAnnounceEntryTest.cc
  2957. * test/DHTPeerAnnounceStorageTest.cc
  2958. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Fixed the bug that in Windows environment new blank line is
  2960. inserted when console readout is updated.
  2961. * src/ConsoleStatCalc.cc
  2962. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Throw exception if binding listening port is failed. Removed
  2964. RequestGroupMan::getInitialCommand(). Use
  2965. fillRequestGroupFromReserver() instead. Delete commands for
  2966. RequestGroup which has errors when it is being added.
  2967. * src/BtSetup.cc
  2968. * src/DownloadEngine.cc
  2969. * src/DownloadEngine.h
  2970. * src/DownloadEngineFactory.cc
  2971. * src/MultiUrlRequestInfo.cc
  2972. * src/RequestGroupMan.cc
  2973. * src/RequestGroupMan.h
  2974. * test/RequestGroupManTest.cc
  2975. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Fixed the bug that when downloading more than one torrent,
  2977. listening port is not reported properly to tracker for 2nd or
  2978. later torrents.
  2979. * src/BtSetup.cc
  2980. * src/PeerListenCommand.cc
  2981. * src/PeerListenCommand.h
  2982. * src/RequestGroup.cc
  2983. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Bump up version number to 1.6.3
  2985. * configure.ac
  2986. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2987. Removed Util.cc from POTFILES.in
  2988. * po/POTFILES.in
  2989. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2990. Updated man page for previous change.
  2991. * doc/aria2c.1.txt
  2992. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. If user name is embedded but password is missing in URI, first
  2994. resolve password using .netrc. If password is found in .netrc,
  2995. then use it as password. If not, use the password specified in
  2996. --ftp-passwd.
  2997. * src/AuthConfigFactory.cc
  2998. * src/Request.cc
  2999. * src/Request.h
  3000. * test/AuthConfigFactoryTest.cc
  3001. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Fixed typo
  3003. * doc/aria2c.1.txt
  3004. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Fixed typo
  3006. * src/usage_text.h
  3007. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Added missing bitfield.cc
  3009. * src/bitfield.cc
  3010. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Renamed Util.{cc,h} as util.{cc,h}
  3012. * src/Util.cc
  3013. * src/Util.h
  3014. * src/util.cc
  3015. * src/util.h
  3016. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Moved static functions in Util class to namespace util.
  3018. * src
  3019. * test
  3020. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3022. Moved generateRandomKey to bittorrent_helper.cc.
  3023. * src/DHTBucket.cc
  3024. * src/DHTGetPeersMessage.cc
  3025. * src/DHTGetPeersReplyMessage.cc
  3026. * src/DHTMessage.cc
  3027. * src/DHTNode.cc
  3028. * src/DHTTokenTracker.cc
  3029. * src/DHTUtil.cc: Removed.
  3030. * src/DHTUtil.h: Removed.
  3031. * src/Makefile.am
  3032. * src/Util.cc
  3033. * src/Util.h
  3034. * src/bitfield.h
  3035. * src/bittorrent_helper.cc
  3036. * src/bittorrent_helper.h
  3037. * test/ARC4Test.cc
  3038. * test/BNodeTest.cc
  3039. * test/DHTAnnouncePeerMessageTest.cc
  3040. * test/DHTAnnouncePeerReplyMessageTest.cc
  3041. * test/DHTFindNodeMessageTest.cc
  3042. * test/DHTFindNodeReplyMessageTest.cc
  3043. * test/DHTGetPeersMessageTest.cc
  3044. * test/DHTGetPeersReplyMessageTest.cc
  3045. * test/DHTPingMessageTest.cc
  3046. * test/DHTPingReplyMessageTest.cc
  3047. * test/DHTTokenTrackerTest.cc
  3048. * test/DHTUtilTest.cc: Removed.
  3049. * test/Makefile.am
  3050. * test/UtilTest.cc
  3051. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Removed the call to trim() because trim() is called for each
  3053. element in split().
  3054. * src/CookieParser.cc
  3055. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. Replaced Util::slice() with split()
  3057. * src/AbstractCommand.cc
  3058. * src/CookieParser.cc
  3059. * src/File.cc
  3060. * src/HttpHeaderProcessor.cc
  3061. * src/HttpRequest.cc
  3062. * src/Metalink2RequestGroup.cc
  3063. * src/MetalinkParserController.cc
  3064. * src/Netrc.cc
  3065. * src/NsCookieParser.cc
  3066. * src/ParameterizedStringParser.cc
  3067. * src/ServerStatMan.cc
  3068. * src/UriListParser.cc
  3069. * src/Util.cc
  3070. * src/Util.h
  3071. * src/bittorrent_helper.cc
  3072. * test/UtilTest.cc
  3073. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Use request->getDir() instead of "/" for embedded user/pass in
  3075. URI.
  3076. * src/AuthConfigFactory.cc
  3077. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Fixed wrong insertion point for BasicCred.
  3079. * src/AuthConfigFactory.cc
  3080. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Allowed non-regular file in LocalFilePathOptionHandler
  3082. * src/OptionHandlerImpl.h
  3083. * src/message.h
  3084. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3086. * src/Netrc.cc
  3087. * src/Util.h
  3088. * test/NetrcTest.cc
  3089. * test/sample.netrc
  3090. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Fixed typo
  3092. * src/BtDependency.cc
  3093. * src/BtRejectMessage.cc
  3094. * src/FtpConnection.cc
  3095. * src/HttpHeaderProcessor.h
  3096. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3097. Fixed lintian report in man page
  3098. * doc/aria2c.1.txt
  3099. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3100. Release 1.6.2
  3101. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3102. Updated Ukrainian translation. Thanks to all translators.
  3103. * po/uk.po
  3104. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Updated translation template
  3106. * po
  3107. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3108. Bump up version number to 1.6.2
  3109. * configure.ac
  3110. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Updated licence message in -v output.
  3112. * src/version_usage.cc
  3113. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Replaced aria2 with aria2c in help message.
  3115. * src/version_usage.cc
  3116. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3118. * src/version_usage.cc
  3119. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. Quoted localedir
  3121. * src/Makefile.am
  3122. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3124. utime. Check header for utime.h.
  3125. * configure.ac
  3126. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3127. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3128. * configure.ac
  3129. * src/daemon.cc
  3130. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3131. Don't set localedir manually. Leave it to autoconf.
  3132. * configure.ac
  3133. * src/Makefile.am
  3134. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Added --install to ACLOCAL_AMFLAGS.
  3136. Removed m4 from SUBDIRS.
  3137. Updated automake 1.11 and autoconf 2.64.
  3138. Replaced some obsolute macros with new one.
  3139. * Makefile.am
  3140. * configure.ac
  3141. * m4/aria2_arg.m4
  3142. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3143. Removed Makefile.am in m4 directory.
  3144. * configure.ac
  3145. * m4/ChangeLog
  3146. * m4/Makefile.am
  3147. * m4/Makefile.in
  3148. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Removed unused m4 macros.
  3150. * m4/intldir.m4
  3151. * m4/inttypes.m4
  3152. * m4/isc-posix.m4
  3153. * m4/libgnutls-extra.m4
  3154. * m4/ulonglong.m4
  3155. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Fixed the bug that causes segmentation fault if
  3157. req->getCurrentUrl() contains printf formatting characters such as
  3158. %d. The statement that causes this bug is useless and removed.
  3159. * src/AbstractCommand.cc
  3160. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. * Release 1.6.1
  3162. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Updated Simplified Chinese translation. Thanks to translators.
  3164. * po/zh_CN.po
  3165. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Updated translation template
  3167. * po
  3168. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3169. Bump up version number to 1.6.1
  3170. * configure.ac
  3171. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3172. Changed interval from 120 to 60 for dropping inactive peer.
  3173. * src/DefaultBtInteractive.cc
  3174. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. Updated man page for --user-agent and --peer-id-prefix option.
  3176. * doc/aria2c.1.txt
  3177. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Code clean up
  3179. * src/BtPostDownloadHandler.cc
  3180. * src/ContentTypeRequestGroupCriteria.cc
  3181. * src/ContentTypeRequestGroupCriteria.h
  3182. * src/DownloadHandlerConstants.cc
  3183. * src/DownloadHandlerConstants.h
  3184. * src/DownloadHandlerFactory.cc
  3185. * src/MetalinkPostDownloadHandler.cc
  3186. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Don't save control file when aria2 exists while checking piece
  3188. hash(behavior of -V option). If control file doesn't exist when
  3189. aria2 launched, the completed length in saved control file will be
  3190. 0 byte and this confuses user. disableSaveControlFile() is called
  3191. in RequestGroup::processCheckIntegrityEntry().
  3192. enableSaveControlFile() will be called after hash checking is
  3193. done. See CheckIntegrityCommand.
  3194. * src/CheckIntegrityCommand.cc
  3195. * src/RequestGroup.cc
  3196. * src/RequestGroup.h
  3197. * src/RequestGroupMan.cc
  3198. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Included version number in Peer ID and client version. Peer ID
  3200. now starts with "aria2/VERSION-", where VERSION is
  3201. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3202. * src/DefaultBtInteractive.cc
  3203. * src/OptionHandlerFactory.cc
  3204. * src/bittorrent_helper.cc
  3205. * src/bittorrent_helper.h
  3206. * src/main.cc
  3207. * src/usage_text.h
  3208. * test/BittorrentHelperTest.cc
  3209. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Fixed memory leak.
  3211. * src/DownloadCommand.cc
  3212. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3213. Removed server, port, user and passwd key from options before
  3214. XMLRPC::Client.call since they are not options of aria2.
  3215. * doc/xmlrpc/aria2mon
  3216. * doc/xmlrpc/aria2rpc
  3217. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Included version number in user-agent string.
  3219. * src/OptionHandlerFactory.cc
  3220. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Fixed the bug that the option values changed by XML-RPC
  3222. method(changeOption and changeGlobalOption) are overwritten to the
  3223. previous value by the next these request which doesn't contain
  3224. that option value. Supporse max-download-limit is initially 0. You
  3225. changed this value to 100K by changeOption. Then you issue
  3226. changeOption request to change max-upload-limit to 50K. This
  3227. second request doesn't contain xml-download-limit, so it is back
  3228. to initial value, 0. Another improvement is that exception is
  3229. thrown when changeOption and changeGlobalOption request contains
  3230. option name which doesn't allowed in each request.
  3231. * src/DownloadEngine.h
  3232. * src/XmlRpcMethod.cc
  3233. * src/XmlRpcMethod.h
  3234. * src/XmlRpcMethodImpl.cc
  3235. * src/download_helper.cc
  3236. * src/download_helper.h
  3237. * test/XmlRpcMethodTest.cc
  3238. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Added missing MetalinkParserStateImpl.{cc,h}
  3240. * src/MetalinkParserStateImpl.cc
  3241. * src/MetalinkParserStateImpl.h
  3242. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Put all MetalinkParserState subclasses into
  3244. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3245. * src/FileMetalinkParserState.cc: Removed
  3246. * src/FileMetalinkParserState.h: Removed
  3247. * src/FilesMetalinkParserState.cc: Removed
  3248. * src/FilesMetalinkParserState.h: Removed
  3249. * src/FinMetalinkParserState.cc: Removed
  3250. * src/FinMetalinkParserState.h: Removed
  3251. * src/HashMetalinkParserState.cc: Removed
  3252. * src/HashMetalinkParserState.h: Removed
  3253. * src/InitialMetalinkParserState.cc: Removed
  3254. * src/InitialMetalinkParserState.h: Removed
  3255. * src/LanguageMetalinkParserState.cc: Removed
  3256. * src/LanguageMetalinkParserState.h: Removed
  3257. * src/Makefile.am
  3258. * src/MetalinkMetalinkParserState.cc: Removed
  3259. * src/MetalinkMetalinkParserState.h: Removed
  3260. * src/MetalinkParserState.h
  3261. * src/MetalinkParserStateMachine.cc
  3262. * src/MetalinkParserStateMachine.h
  3263. * src/OSMetalinkParserState.cc: Removed
  3264. * src/OSMetalinkParserState.h: Removed
  3265. * src/PieceHashMetalinkParserState.cc: Removed
  3266. * src/PieceHashMetalinkParserState.h: Removed
  3267. * src/PiecesMetalinkParserState.cc: Removed
  3268. * src/PiecesMetalinkParserState.h: Removed
  3269. * src/ResourcesMetalinkParserState.cc: Removed
  3270. * src/ResourcesMetalinkParserState.h: Removed
  3271. * src/SignatureMetalinkParserState.cc: Removed
  3272. * src/SignatureMetalinkParserState.h: Removed
  3273. * src/SizeMetalinkParserState.cc: Removed
  3274. * src/SizeMetalinkParserState.h: Removed
  3275. * src/SkipTagMetalinkParserState.cc: Removed
  3276. * src/SkipTagMetalinkParserState.h: Removed
  3277. * src/URLMetalinkParserState.cc: Removed
  3278. * src/URLMetalinkParserState.h: Removed
  3279. * src/VerificationMetalinkParserState.cc: Removed
  3280. * src/VerificationMetalinkParserState.h: Removed
  3281. * src/VersionMetalinkParserState.cc: Removed
  3282. * src/VersionMetalinkParserState.h: Removed
  3283. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Move all functions in PeerMessageUtil to bittorrent_helper.
  3285. * src/BtBitfieldMessage.cc
  3286. * src/BtBitfieldMessageValidator.h
  3287. * src/BtExtendedMessage.cc
  3288. * src/BtHandshakeMessage.cc
  3289. * src/BtHandshakeMessageValidator.h
  3290. * src/BtPieceMessage.cc
  3291. * src/BtPieceMessageValidator.h
  3292. * src/BtPortMessage.cc
  3293. * src/DHTFindNodeReplyMessage.cc
  3294. * src/DHTGetPeersReplyMessage.cc
  3295. * src/DHTMessageFactoryImpl.cc
  3296. * src/DHTRoutingTableDeserializer.cc
  3297. * src/DHTRoutingTableSerializer.cc
  3298. * src/DHTTokenTracker.cc
  3299. * src/DefaultBtMessageFactory.cc
  3300. * src/IndexBtMessage.cc
  3301. * src/IndexBtMessage.h
  3302. * src/IndexBtMessageValidator.h
  3303. * src/Makefile.am
  3304. * src/PeerMessageUtil.cc: Removed.
  3305. * src/PeerMessageUtil.h: Removed.
  3306. * src/RangeBtMessage.cc
  3307. * src/RangeBtMessage.h
  3308. * src/RangeBtMessageValidator.h
  3309. * src/UTPexExtensionMessage.cc
  3310. * src/ZeroBtMessage.cc
  3311. * src/ZeroBtMessage.h
  3312. * src/bittorrent_helper.cc
  3313. * src/bittorrent_helper.h
  3314. * test/BittorrentHelperTest.cc
  3315. * test/BtAllowedFastMessageTest.cc
  3316. * test/BtBitfieldMessageTest.cc
  3317. * test/BtCancelMessageTest.cc
  3318. * test/BtChokeMessageTest.cc
  3319. * test/BtExtendedMessageTest.cc
  3320. * test/BtHandshakeMessageTest.cc
  3321. * test/BtHaveAllMessageTest.cc
  3322. * test/BtHaveMessageTest.cc
  3323. * test/BtHaveNoneMessageTest.cc
  3324. * test/BtInterestedMessageTest.cc
  3325. * test/BtNotInterestedMessageTest.cc
  3326. * test/BtPieceMessageTest.cc
  3327. * test/BtPortMessageTest.cc
  3328. * test/BtRejectMessageTest.cc
  3329. * test/BtRequestMessageTest.cc
  3330. * test/BtSuggestPieceMessageTest.cc
  3331. * test/BtUnchokeMessageTest.cc
  3332. * test/DHTFindNodeReplyMessageTest.cc
  3333. * test/DHTGetPeersReplyMessageTest.cc
  3334. * test/DHTMessageFactoryImplTest.cc
  3335. * test/DHTRoutingTableDeserializerTest.cc
  3336. * test/DHTRoutingTableSerializerTest.cc
  3337. * test/DefaultBtMessageFactoryTest.cc
  3338. * test/DefaultExtensionMessageFactoryTest.cc
  3339. * test/Makefile.am
  3340. * test/PeerListProcessorTest.cc
  3341. * test/PeerMessageUtilTest.cc: Removed.
  3342. * test/UTPexExtensionMessageTest.cc
  3343. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3344. Limit the size of values list when sending get_peers reply.
  3345. * src/DHTGetPeersReplyMessage.cc
  3346. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Updated banner
  3348. * doc/xmlrpc/aria2rpc
  3349. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Added missing help message for remove command.
  3351. * doc/xmlrpc/aria2rpc
  3352. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. Generated configure and config.h.in
  3354. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3355. Add check for fork(), which is missing on MinGW
  3356. * src/daemon.cc
  3357. * configure.ac
  3358. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3360. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3361. Util::httpGMT().
  3362. * src/Util.cc
  3363. * src/Util.h
  3364. * test/UtilTest.cc
  3365. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. * Release 1.6.0
  3367. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3368. Fixed a path to xmlrpc/README.txt
  3369. * doc/Makefile.am
  3370. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Added XML-RPC in -v Configuration output.
  3372. * src/FeatureConfig.cc
  3373. * src/FeatureConfig.h
  3374. * test/FeatureConfigTest.cc
  3375. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3376. Updated Bulgarian, Russian, Slovak and Japanese
  3377. translations. Thanks to all translators.
  3378. * po/bg.po
  3379. * po/ja.po
  3380. * po/ru.po
  3381. * po/sk.po
  3382. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Removed --retry-wait option from aria2rpc
  3384. * doc/xmlrpc/aria2rpc
  3385. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Removed --retry-wait option from man page.
  3387. * doc/aria2c.1.txt
  3388. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Removed --retry-wait option since the current architecture doesn't
  3390. allow sleep for particular URI.
  3391. * src/AbstractCommand.cc
  3392. * src/OptionHandlerFactory.cc
  3393. * src/download_helper.cc
  3394. * src/prefs.cc
  3395. * src/prefs.h
  3396. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Removed Retry-After header support. Since the current architecture
  3398. doesn't allow sleep for particular URI.
  3399. * src/HttpSkipResponseCommand.cc
  3400. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Updated the help message for --daemon option.
  3402. * doc/aria2c.1.txt
  3403. * src/usage_text.h
  3404. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Added our own daemon() function for systems which desn't have
  3406. daemon(3).
  3407. * configure.ac
  3408. * src/Makefile.am
  3409. * src/daemon.cc
  3410. * src/daemon.h
  3411. * src/option_processing.cc
  3412. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3413. Simplified File::getCurrentDir()
  3414. * src/File.cc
  3415. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Use exit() instead of _exit
  3417. * src/RequestGroupMan.cc
  3418. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Replaced "CATEGORY" with "TAGS".
  3420. * src/usage_text.h
  3421. * doc/aria2c.1.txt
  3422. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Updated the help message for --help option.
  3424. * src/usage_text.h
  3425. * doc/aria2c.1.txt
  3426. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Updated man page for added help tags.
  3428. * doc/aria2c.1.txt
  3429. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Added help category #file. Added #file tag to the options related
  3431. to downloaded file.
  3432. * src/OptionHandlerFactory.cc
  3433. * src/help_tags.h
  3434. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Added help categories: #cookie and #hook. Added #https tag to
  3436. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3437. * src/OptionHandlerFactory.cc
  3438. * src/help_tags.h
  3439. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. Made MSG_NOT_FILE translatable.
  3441. * src/message.h
  3442. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Updated man page for --help option.
  3444. * doc/aria2c.1.txt
  3445. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Updated doc.
  3447. * src/XmlRpcMethod.h
  3448. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Help category now starts with "#" to distinguish a category from
  3450. keyword search. For example, "http" categroy is now "#http". You
  3451. can type "--help=#http" to get explanation of options related to
  3452. http. If '#' is omitted, then the argument is treated as a keyword
  3453. and aria2 searches options whose name includes the keyword and
  3454. print matched ones. For example, "--help=http" will show options
  3455. whose name includes "http".
  3456. * src/OptionHandlerFactory.cc
  3457. * src/help_tags.h
  3458. * src/usage_text.h
  3459. * src/version_usage.cc
  3460. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Documented missing experimental tag and newly added xml-rpc tag in
  3462. man page.
  3463. * doc/aria2c.1.txt
  3464. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3465. Added xml-rpc help tag. Tagged xml-rpc related options with
  3466. xml-rpc tag.
  3467. * src/OptionHandlerFactory.cc
  3468. * src/help_tags.h
  3469. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Updated message when a path is not a file. Updated common message
  3471. for wrong option.
  3472. * src/OptionHandlerException.cc
  3473. * src/message.h
  3474. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3475. Use File::isFile() instead of File::exists(). Updated message when
  3476. a path is not a file.
  3477. * src/OptionHandlerImpl.cc
  3478. * src/message.h
  3479. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3480. Fixed the bug that server performence profile is not updated when
  3481. aria2c was terminated by emergency shutdown.
  3482. * src/TrackerWatcherCommand.cc
  3483. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3484. Use LocalFilePathOptionHandler for -T and -M option.
  3485. Updated message of MSG_FILE_NOT_EXIST.
  3486. * src/OptionHandlerFactory.cc
  3487. * src/message.h
  3488. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Added LocalFilePathOptionHandler which check whether the specified
  3490. file path does exist or not.
  3491. * src/OptionHandlerImpl.cc
  3492. * src/message.h
  3493. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Updated wiki page URI.
  3495. * README
  3496. * doc/aria2c.1.txt
  3497. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Added README.txt for xmlrpc directory.
  3499. * doc/Makefile.am
  3500. * doc/xmlrpc/README.txt
  3501. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3502. Bump up version number to 1.6.0.
  3503. * configure.ac
  3504. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Added XML-RPC client scripts written in ruby.
  3506. * doc/Makefile.am
  3507. * doc/xmlrpc/aria2mon
  3508. * doc/xmlrpc/aria2rpc
  3509. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Added support for IPv6 literal address in URI. Now aria2 can
  3511. handle URI such as http://[::1]/
  3512. * src/HttpRequest.cc
  3513. * src/HttpRequest.h
  3514. * src/Request.cc
  3515. * src/Request.h
  3516. * test/HttpRequestTest.cc
  3517. * test/OptionHandlerTest.cc
  3518. * test/RequestTest.cc
  3519. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3520. Fixed the bug that HTTP request header for XML-RPC request is not
  3521. parsed properly.
  3522. * src/HttpHeader.cc
  3523. * src/HttpHeaderProcessor.cc
  3524. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Fixed the bug that XML-RPC authorization might be done before HTTP
  3526. request header is fully received.
  3527. * src/HttpServerCommand.cc
  3528. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Documented --xml-rpc-listen-all option in man page.
  3530. * doc/aria2c.1.txt
  3531. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Added --xml-rpc-listen-all option. If true is given to this
  3533. option, aria2 listens incoming XML-RPC requests on all network
  3534. interfaces. If false is given, listens only on local loopback
  3535. interface. The default value is false.
  3536. * src/HttpListenCommand.cc
  3537. * src/OptionHandlerFactory.cc
  3538. * src/SocketCore.cc
  3539. * src/SocketCore.h
  3540. * src/prefs.cc
  3541. * src/prefs.h
  3542. * src/usage_text.h
  3543. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. * Release 1.5.2
  3545. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3546. Updated Ukrainian and Russian translations. Thanks to all
  3547. translators.
  3548. * po/ru.po
  3549. * po/uk.po
  3550. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3551. Bump up version number to 1.5.2
  3552. * configure.ac
  3553. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3554. Get comment, comment.utf-8, created by and creation date from
  3555. .torrent file and print them in -S output.
  3556. * src/bittorrent_helper.cc
  3557. * src/bittorrent_helper.h
  3558. * test/BittorrentHelperTest.cc
  3559. * test/test.torrent
  3560. * test/utf8.torrent
  3561. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Show exact file size along in -S option output.
  3563. * src/Util.h
  3564. * src/bittorrent_helper.cc
  3565. * test/UtilTest.cc
  3566. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Avoided unnecessary memory allocation in
  3568. BitfieldMan::getCompletedLength().
  3569. * src/BitfieldMan.cc
  3570. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3571. Fixed the bug that download fails if
  3572. SocketCore::establishConnection() throws exception and aria2
  3573. doesn't try another address.
  3574. * src/AbstractCommand.cc
  3575. * src/InitiateConnectionCommand.cc
  3576. * src/message.h
  3577. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3579. detected properly.
  3580. * m4/sqlite3.m4
  3581. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3583. because it causes compile error if PARAMS macro is defined.
  3584. * src/XmlRpcElements.cc
  3585. * src/XmlRpcElements.h
  3586. * src/XmlRpcRequestParserStateImpl.cc
  3587. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. * Release 1.5.1
  3589. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Bump up version number to 1.5.1
  3591. * configure.ac
  3592. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3593. Fixed compile error without BitTorrent support
  3594. * src/DefaultBtProgressInfoFile.cc
  3595. * src/DownloadEngine.cc
  3596. * src/DownloadEngine.h
  3597. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. Added missing '=' in Download Results
  3599. * src/RequestGroupMan.cc
  3600. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3601. Fixed compiler warning
  3602. * src/DefaultBtProgressInfoFile.cc
  3603. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3604. Fixed compiler warning on 32bit systems.
  3605. * src/DownloadCommand.cc
  3606. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3607. Call flush from ServerStatMan::save()
  3608. * src/ServerStatMan.cc
  3609. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3610. Check stream status after file is opened.
  3611. * src/CookieStorage.cc
  3612. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Rewritten Signature::save()
  3614. * src/Signature.cc
  3615. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3616. Rewritten RequestGroupMan::saveServerStat()
  3617. * src/RequestGroupMan.cc
  3618. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3619. Rewritten stream error handling
  3620. * src/DHTAutoSaveCommand.cc
  3621. * src/DHTRoutingTableDeserializer.cc
  3622. * src/DHTRoutingTableSerializer.cc
  3623. * src/DHTSetup.cc
  3624. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Check stream status after file is opened.
  3626. * src/DefaultBtProgressInfoFile.cc
  3627. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3628. Rewritten stream error handling
  3629. * src/DefaultBtProgressInfoFile.cc
  3630. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Make sure that stream is closed before renaming file. Unit test
  3632. fails on mingw32 in the previous implementation.
  3633. * src/CookieStorage.cc
  3634. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Fixed the unit test error without sqlite3
  3636. * test/CookieStorageTest.cc
  3637. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Fixed the undefined reference error
  3639. * test/HttpResponseTest.cc
  3640. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3641. * Release 1.5.0
  3642. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3644. Ukrainian translations. Thanks to all translators.
  3645. * po/ru.po
  3646. * po/it.po
  3647. * po/da.po
  3648. * po/bg.po
  3649. * po/ja.po
  3650. * po/uk.po
  3651. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Added missing src/Logger.cc
  3653. * src/Logger.cc
  3654. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3655. Rewritten Logger to avoiding constly virtual call.
  3656. * src/LogFactory.cc
  3657. * src/LogFactory.h
  3658. * src/Logger.h
  3659. * src/Makefile.am
  3660. * src/Makefile.in
  3661. * src/NullLogger.h: Removed.
  3662. * src/SimpleLogger.cc
  3663. * src/SimpleLogger.h
  3664. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3665. Updated doc
  3666. * src/main.cc
  3667. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Updated debug log message
  3669. * src/AbstractCommand.cc
  3670. * src/message.h
  3671. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Avoid to create zombie process when commands specified in
  3673. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3674. X and NetBSD.
  3675. * src/main.cc
  3676. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Fixed typo
  3678. * src/usage_text.h
  3679. * doc/aria2c.1.txt
  3680. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Documented 'errorCode' of tellStatus in man page.
  3682. * doc/aria2c.1.txt
  3683. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3685. This key is only available for stopped/completed downloads and its
  3686. value is the error code defined in EXIT STATUS in man page.
  3687. * src/XmlRpcMethodImpl.cc
  3688. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3689. Fixed the bug that session download length is not updated when
  3690. PeerStat is not fastest one.
  3691. * src/SegmentMan.cc
  3692. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3693. Updated doc.
  3694. * doc/aria2c.1.txt
  3695. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Updated doc.
  3697. * src/AbstractCommand.cc
  3698. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Handle the case when DownloadContext has no FileEntry.
  3700. * src/XmlRpcMethodImpl.cc
  3701. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3702. Handle the situation where struct option.name is char *.
  3703. * configure.ac
  3704. * src/OptionParser.cc
  3705. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Code cleanup
  3707. * src/AbstractCommand.cc
  3708. * src/DownloadCommand.cc
  3709. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Use option of each download to create AuthConfig instead of global
  3711. option.
  3712. * src/AuthConfigFactory.cc
  3713. * src/AuthConfigFactory.h
  3714. * src/FtpNegotiationCommand.cc
  3715. * src/HttpRequest.cc
  3716. * src/HttpRequest.h
  3717. * src/HttpRequestCommand.cc
  3718. * src/HttpSkipResponseCommand.cc
  3719. * src/MultiUrlRequestInfo.cc
  3720. * test/AuthConfigFactoryTest.cc
  3721. * test/FtpConnectionTest.cc
  3722. * test/HttpRequestTest.cc
  3723. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Don't call prepareForRetry(1) if all segments are ignored in
  3725. SegmentMan.
  3726. * src/AbstractCommand.cc
  3727. * src/BitfieldMan.cc
  3728. * src/BitfieldMan.h
  3729. * src/SegmentMan.cc
  3730. * src/SegmentMan.h
  3731. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Removed FileEntry::getAssociatedUris()
  3733. * src/FileEntry.h
  3734. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Updated doc: TODO1.5 -> TODO
  3736. * src/FileEntry.cc
  3737. * src/HttpResponseCommand.cc
  3738. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3739. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3740. involved.
  3741. * src/RequestGroup.cc
  3742. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. Eliminated duplicated filterBitfield initialization code.
  3744. * src/BitfieldMan.cc
  3745. * src/BitfieldMan.h
  3746. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3748. relatively naive approach, though). For DownloadFailureException,
  3749. we handle the case when req is null properly.
  3750. * src/AbstractCommand.cc
  3751. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Added function returning suffix of control file to
  3753. DefaultBtProgressInfoFile.
  3754. * src/DefaultBtProgressInfoFile.cc
  3755. * src/DefaultBtProgressInfoFile.h
  3756. * src/RequestGroup.cc
  3757. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Documented getVersion in man page.
  3759. * doc/aria2c.1.txt
  3760. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3761. Documented type of offset and num for tellWaiting xml-rpc method.
  3762. * doc/aria2c.1.txt
  3763. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Implemented getVersion xml-rpc method. This method returns struct
  3765. which has 2 key-value pairs: "version" key is associated to the
  3766. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3767. associated to the list of enabled features, such as "Async DNS",
  3768. "BitTorrent".
  3769. * src/FeatureConfig.h
  3770. * src/XmlRpcMethodFactory.cc
  3771. * src/XmlRpcMethodImpl.cc
  3772. * src/XmlRpcMethodImpl.h
  3773. * test/XmlRpcMethodTest.cc
  3774. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3776. for compatibility issue.
  3777. * src/SocketCore.cc
  3778. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Fixed compile error with openSSL
  3780. * src/bittorrent_helper.cc
  3781. * src/messageDigest.h
  3782. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Removed bad code: setting certificate type priority to key
  3784. exchange priority.
  3785. * src/SocketCore.cc
  3786. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3787. Disconnect seeder if client is also in seed state.
  3788. * src/BtBitfieldMessage.cc
  3789. * src/BtHaveAllMessage.cc
  3790. * src/BtHaveMessage.cc
  3791. * src/message.h
  3792. * test/BtBitfieldMessageTest.cc
  3793. * test/BtHaveAllMessageTest.cc
  3794. * test/BtHaveMessageTest.cc
  3795. * test/MockPieceStorage.h
  3796. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Keep CreateRequestCommand in queue when no segment is available so
  3798. that they can pick up pieces which slow BitTorrent peers are
  3799. downloading.
  3800. * src/AbstractCommand.cc
  3801. * src/CreateRequestCommand.cc
  3802. * src/CreateRequestCommand.h
  3803. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. --bt-stop-timeout now only checks download speed.
  3805. * src/BtStopDownloadCommand.cc
  3806. * src/BtStopDownloadCommand.h
  3807. * src/BtSetup.cc
  3808. * src/usage_text.h
  3809. * doc/aria2c.1.txt
  3810. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Fixed compile error regarding BUFSIZE.
  3812. * src/DownloadCommand.cc
  3813. * src/DownloadCommand.h
  3814. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Documented tellWaiting xml-rpc method in man page.
  3816. * doc/aria2c.1.txt
  3817. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3818. Bump up version number to 1.5.0
  3819. * configure.ac
  3820. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Removed resolved TODO1.5
  3822. * src/AbstractCommand.cc
  3823. * src/DownloadCommand.cc
  3824. * src/RequestGroup.cc
  3825. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Release pooled and in-flight Request objectsand URIResult objects
  3827. in FileEntry after download completed.
  3828. * src/DownloadContext.cc
  3829. * src/DownloadContext.h
  3830. * src/FileEntry.cc
  3831. * src/FileEntry.h
  3832. * src/RequestGroup.cc
  3833. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Set manual and source attribute in aria2c.1.txt
  3835. * doc/aria2c.1.txt
  3836. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Documented that the default value of --use-head is 'false' in man
  3838. page.
  3839. * doc/aria2c.1.txt
  3840. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Added bt-stop-timeout option to -i list.
  3842. * doc/aria2c.1.txt
  3843. * src/download_helper.cc
  3844. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Fixed typo
  3846. * doc/aria2c.1.txt
  3847. * src/usage_text.h
  3848. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Removed peer-id-prefix option from -i list.
  3850. * doc/aria2c.1.txt
  3851. * src/download_helper.cc
  3852. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3853. Fixed typo
  3854. * doc/aria2c.1.txt
  3855. * src/usage_text.h
  3856. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Documented --bt-stop-timeout option in man page.
  3858. * doc/aria2c.1.txt
  3859. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Updated README regarding multi-file torrent web-seeding.
  3861. * doc/README.txt
  3862. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3863. Updated man page regarding multi-file torrent web-seeding.
  3864. * doc/aria2c.1.txt
  3865. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3866. Updated doc
  3867. * src/version_usage.cc
  3868. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3869. Winsock select() doesn't work if no socket is in FD_SET. To
  3870. overcome this problem, a dummy socket is added to FD_SET and it is
  3871. given to select().
  3872. * src/SelectEventPoll.cc
  3873. * src/SelectEventPoll.h
  3874. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Disabled --use-head option by default because --use-head=true
  3876. causes problems on some web sites.
  3877. * src/OptionHandlerFactory.cc
  3878. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Print URL List in -S option for torrent.
  3880. * src/bittorrent_helper.cc
  3881. * src/bittorrent_helper.h
  3882. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. Allocate buffer in ctor of DownloadCommand.
  3884. * src/DownloadCommand.cc
  3885. * src/DownloadCommand.h
  3886. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Removed DiskAdaptor::onDownloadComplete()
  3888. * src/DirectDiskAdaptor.cc
  3889. * src/DirectDiskAdaptor.h
  3890. * src/DiskAdaptor.h
  3891. * src/MultiDiskAdaptor.cc
  3892. * src/MultiDiskAdaptor.h
  3893. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Committed missing BtStopDownloadCommand.{cc,h}
  3895. * src/BtStopDownloadCommand.cc
  3896. * src/BtStopDownloadCommand.h
  3897. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3898. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3899. download if the download speed is 0 and the number of seeder is 0
  3900. in consecutive SEC seconds. By default, this function is disabled.
  3901. * src/BtSetup.cc
  3902. * src/Makefile.am
  3903. * src/OptionHandlerFactory.cc
  3904. * src/prefs.cc
  3905. * src/prefs.h
  3906. * src/usage_text.h
  3907. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Removed the call to DiskAdaptor::onDownloadComplete() from
  3909. BtCheckIntegrityEntry and DefaultPieceStorage.
  3910. * src/BtCheckIntegrityEntry.cc
  3911. * src/DefaultPieceStorage.cc
  3912. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Commented out throw statements when number of piece is 0 to
  3914. download 0 length torrent.
  3915. * src/bittorrent_helper.cc
  3916. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3917. Call RequestGroup::createNextCommandWithAdj() from
  3918. BtFileAllocationEntry if at least one FileEntry has URI. The
  3919. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3920. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3921. * src/BtFileAllocationEntry.cc
  3922. * src/FileEntry.h
  3923. * src/RequestGroup.cc
  3924. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. Generate peer ID after SimpleRandomizer is initialized.
  3926. * src/main.cc
  3927. * src/option_processing.cc
  3928. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3929. Removed unused method argument.
  3930. * src/CreateRequestCommand.cc
  3931. * src/RequestGroup.cc
  3932. * src/RequestGroup.h
  3933. * src/RequestGroupMan.cc
  3934. * src/TrackerWatcherCommand.cc
  3935. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3936. Made URI reusing function work.
  3937. * src/CreateRequestCommand.cc
  3938. * src/FileEntry.cc
  3939. * src/FileEntry.h
  3940. * test/FileEntryTest.cc
  3941. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Add formerly fastest PeerStat's sessionDownloadLength to new
  3943. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3944. bytes in a session.
  3945. * src/PeerStat.cc
  3946. * src/SegmentMan.cc
  3947. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3948. If pipelining is enabled, we can always pool socket.
  3949. * src/HttpDownloadCommand.cc
  3950. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. In a single file download, file size becomes known just after
  3952. downloading, set total length to FileEntry object when download
  3953. completed.
  3954. * src/DownloadCommand.cc
  3955. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Use std::vector::reserve() for fileEntries and pieceHashes in
  3957. bittorrent_helper
  3958. * src/bittorrent_helper.cc
  3959. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3960. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3961. Removed hidden option PREF_RESET_URI.
  3962. * src/AbstractCommand.cc
  3963. * src/OptionHandlerFactory.cc
  3964. * src/prefs.cc
  3965. * src/prefs.h
  3966. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3967. Removed unused variable/function.
  3968. * src/PeerStat.h
  3969. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3970. Show first URL in Download Results if file path is not available.
  3971. * src/FileEntry.h
  3972. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3973. Throw exception if file path doesn't exist in FTP URL.
  3974. * src/InitiateConnectionCommandFactory.cc
  3975. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3977. * src/BitfieldMan.cc
  3978. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3979. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3980. of PeerStat in SegmentMan. peerStats is used for calculating
  3981. download speed. Therefore all active PeerStats should be in
  3982. there. Another one is _fastestPeerStats and it only contains
  3983. fastest PeerStat for each hostname/protocol pair. They are used
  3984. for updating ServerStat.
  3985. * src/DownloadCommand.cc
  3986. * src/Request.h
  3987. * src/RequestGroupMan.cc
  3988. * src/SegmentMan.cc
  3989. * src/SegmentMan.h
  3990. * test/SegmentManTest.cc
  3991. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Try all available addresses returned by DNS until it gets
  3993. connected in HTTP(S)/FTP download
  3994. * src/AbstractCommand.cc
  3995. * src/AbstractCommand.h
  3996. * src/AbstractProxyRequestCommand.cc
  3997. * src/AbstractProxyRequestCommand.h
  3998. * src/DNSCache.h
  3999. * src/DownloadEngine.cc
  4000. * src/DownloadEngine.h
  4001. * src/FtpInitiateConnectionCommand.cc
  4002. * src/FtpInitiateConnectionCommand.h
  4003. * src/FtpNegotiationCommand.cc
  4004. * src/FtpNegotiationCommand.h
  4005. * src/HttpInitiateConnectionCommand.cc
  4006. * src/HttpInitiateConnectionCommand.h
  4007. * src/HttpRequestCommand.cc
  4008. * src/HttpRequestCommand.h
  4009. * src/InitiateConnectionCommand.cc
  4010. * src/InitiateConnectionCommand.h
  4011. * test/DNSCacheTest.cc
  4012. * test/Makefile.am
  4013. * test/SimpleDNSCacheTest.cc
  4014. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Updated doc
  4016. * src/download_helper.cc
  4017. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. Refactored fieldMan ctor.
  4019. * src/BitfieldMan.cc
  4020. * src/BitfieldMan.h
  4021. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Don't print "No files to download." message if -S is given.
  4023. * src/main.cc
  4024. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Set referer and method to newly created Request object.
  4026. * src/CreateRequestCommand.cc
  4027. * src/FileEntry.cc
  4028. * src/FileEntry.h
  4029. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4031. * src/AbstractCommand.cc
  4032. * src/AbstractCommand.h
  4033. * src/CreateRequestCommand.cc
  4034. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4035. Get proxy download working
  4036. * src/AbstractProxyRequestCommand.cc
  4037. * src/AbstractProxyRequestCommand.h
  4038. * src/AbstractProxyResponseCommand.cc
  4039. * src/AbstractProxyResponseCommand.h
  4040. * src/FtpInitiateConnectionCommand.cc
  4041. * src/FtpTunnelRequestCommand.cc
  4042. * src/FtpTunnelRequestCommand.h
  4043. * src/FtpTunnelResponseCommand.cc
  4044. * src/FtpTunnelResponseCommand.h
  4045. * src/HttpInitiateConnectionCommand.cc
  4046. * src/HttpProxyRequestCommand.cc
  4047. * src/HttpProxyRequestCommand.h
  4048. * src/HttpProxyResponseCommand.cc
  4049. * src/HttpProxyResponseCommand.h
  4050. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. Use SegmentMan::getSegment(cuid) for single file download.
  4052. * src/AbstractCommand.cc
  4053. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4054. Fixed bufSize calculation
  4055. * src/DownloadCommand.cc
  4056. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4057. Don't append "/" if base URI ends with "/".
  4058. * src/bittorrent_helper.cc
  4059. * test/url-list-multiFile.torrent
  4060. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4061. HTTP pipelining is now working. Fixed Segmention fault in
  4062. BitfieldMan's copy ctor.
  4063. * src/AbstractCommand.cc
  4064. * src/BitfieldMan.cc
  4065. * src/BitfieldMan.h
  4066. * src/DownloadCommand.cc
  4067. * src/HttpDownloadCommand.cc
  4068. * src/HttpRequest.cc
  4069. * src/SegmentMan.cc
  4070. * src/SegmentMan.h
  4071. * test/BitfieldManTest.cc
  4072. * test/SegmentManTest.cc
  4073. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Removed ServerHost. Same functionality is implemented using
  4075. FileEntry's in-flight Request objects.
  4076. * src/AbstractCommand.cc
  4077. * src/BtDependency.cc
  4078. * src/CreateRequestCommand.cc
  4079. * src/FileEntry.cc
  4080. * src/FileEntry.h
  4081. * src/FtpNegotiationCommand.cc
  4082. * src/HttpResponseCommand.cc
  4083. * src/Makefile.am
  4084. * src/Metalink2RequestGroup.cc
  4085. * src/RequestGroup.cc
  4086. * src/RequestGroup.h
  4087. * src/ServerHost.cc: Removed
  4088. * src/ServerHost.h: Removed
  4089. * test/BtDependencyTest.cc
  4090. * test/FileEntryTest.cc
  4091. * test/RequestGroupTest.cc
  4092. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Rewritten PeerStat handling. In the previous implementation,
  4094. faster command tries to find slower command. In this new
  4095. implementation, slower command tries to find faster command.
  4096. PeerStat is now created in each HTTP/FTP request to get download
  4097. rate correctly. If the download range is small, the download rate
  4098. tends to small and this will occur at the later stage of download.
  4099. * src/AbstractCommand.cc
  4100. * src/DownloadCommand.cc
  4101. * src/FileEntry.cc
  4102. * src/FileEntry.h
  4103. * src/Request.cc
  4104. * src/Request.h
  4105. * src/RequestGroup.h
  4106. * src/RequestGroupMan.cc
  4107. * src/SegmentMan.cc
  4108. * src/SegmentMan.h
  4109. * test/SegmentManTest.cc
  4110. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4111. Removed _uris from RequestGroup. All functions that refer to _uris
  4112. were moved to FileEntry. Exit status code are now defined in
  4113. DownloadResultCode.h.
  4114. * src/AbstractCommand.cc
  4115. * src/AdaptiveURISelector.cc
  4116. * src/AdaptiveURISelector.h
  4117. * src/AutoSaveCommand.cc
  4118. * src/BtPostDownloadHandler.cc
  4119. * src/CheckIntegrityDispatcherCommand.cc
  4120. * src/CookieStorage.cc
  4121. * src/DHTAutoSaveCommand.cc
  4122. * src/DHTBucketRefreshCommand.cc
  4123. * src/DHTEntryPointNameResolveCommand.cc
  4124. * src/DHTInteractionCommand.cc
  4125. * src/DHTPeerAnnounceCommand.cc
  4126. * src/DHTTokenUpdateCommand.cc
  4127. * src/DlAbortEx.h
  4128. * src/DlRetryEx.h
  4129. * src/DownloadCommand.cc
  4130. * src/DownloadContext.h
  4131. * src/DownloadFailureException.h
  4132. * src/DownloadResult.h
  4133. * src/DownloadResultCode.h
  4134. * src/FeedbackURISelector.cc
  4135. * src/FeedbackURISelector.h
  4136. * src/FileEntry.cc
  4137. * src/FileEntry.h
  4138. * src/FtpNegotiationCommand.cc
  4139. * src/HttpListenCommand.cc
  4140. * src/HttpResponseCommand.cc
  4141. * src/HttpServerResponseCommand.cc
  4142. * src/HttpSkipResponseCommand.cc
  4143. * src/InOrderURISelector.cc
  4144. * src/InOrderURISelector.h
  4145. * src/Makefile.am
  4146. * src/Makefile.in
  4147. * src/Metalink2RequestGroup.cc
  4148. * src/MultiUrlRequestInfo.cc
  4149. * src/MultiUrlRequestInfo.h
  4150. * src/OptionHandlerFactory.cc
  4151. * src/PeerListenCommand.cc
  4152. * src/RecoverableException.h
  4153. * src/RequestGroup.cc
  4154. * src/RequestGroup.h
  4155. * src/RequestGroupMan.cc
  4156. * src/RequestGroupMan.h
  4157. * src/TimedHaltCommand.cc
  4158. * src/TrackerWatcherCommand.cc
  4159. * src/URIResult.cc
  4160. * src/URIResult.h
  4161. * src/URISelector.h
  4162. * src/XmlRpcMethodImpl.cc
  4163. * src/bittorrent_helper.cc
  4164. * src/bittorrent_helper.h
  4165. * src/download_helper.cc
  4166. * src/main.cc
  4167. * src/option_processing.cc
  4168. * test/BtDependencyTest.cc
  4169. * test/BtPostDownloadHandlerTest.cc
  4170. * test/CookieStorageTest.cc
  4171. * test/DefaultBtMessageDispatcherTest.cc
  4172. * test/DownloadHandlerFactoryTest.cc
  4173. * test/DownloadHelperTest.cc
  4174. * test/FeedbackURISelectorTest.cc
  4175. * test/FileEntryTest.cc
  4176. * test/InOrderURISelectorTest.cc
  4177. * test/Metalink2RequestGroupTest.cc
  4178. * test/MetalinkPostDownloadHandlerTest.cc
  4179. * test/RequestGroupManTest.cc
  4180. * test/RequestGroupTest.cc
  4181. * test/XmlRpcMethodTest.cc
  4182. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4183. Removed MockBtContext.h
  4184. * test/Makefile.am
  4185. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Removed _currentRequest from StreamCheckIntegrityEntry and
  4187. StreamFileAllocationEntry.
  4188. * src/AbstractCommand.cc
  4189. * src/HttpResponseCommand.cc
  4190. * src/RequestGroup.cc
  4191. * src/StreamCheckIntegrityEntry.cc
  4192. * src/StreamCheckIntegrityEntry.h
  4193. * src/StreamFileAllocationEntry.cc
  4194. * src/StreamFileAllocationEntry.h
  4195. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Rewritten DownloadContext and removed SingleFileDownloadContext
  4197. and BtContext and its derived classes. BitTorrent specific
  4198. attributes are now set by DownloadContext::setAttribute() with key
  4199. bittorrent::BITTORRENT.
  4200. * src/AbstractBtMessage.cc
  4201. * src/AbstractBtMessage.h
  4202. * src/AbstractCommand.cc
  4203. * src/AbstractCommand.h
  4204. * src/AbstractProxyRequestCommand.cc
  4205. * src/AbstractProxyResponseCommand.cc
  4206. * src/ActivePeerConnectionCommand.cc
  4207. * src/ActivePeerConnectionCommand.h
  4208. * src/AnnounceList.cc
  4209. * src/BtCheckIntegrityEntry.cc
  4210. * src/BtConstants.h
  4211. * src/BtContext.h: Removed
  4212. * src/BtDependency.cc
  4213. * src/BtExtendedMessage.cc
  4214. * src/BtPieceMessage.cc
  4215. * src/BtPieceMessage.h
  4216. * src/BtPostDownloadHandler.cc
  4217. * src/BtRegistry.cc
  4218. * src/BtRegistry.h
  4219. * src/BtSetup.cc
  4220. * src/CheckIntegrityCommand.cc
  4221. * src/CheckIntegrityEntry.cc
  4222. * src/ChecksumCheckIntegrityEntry.cc
  4223. * src/ConsoleStatCalc.cc
  4224. * src/ContentTypeRequestGroupCriteria.cc
  4225. * src/DHTGetPeersCommand.cc
  4226. * src/DHTGetPeersCommand.h
  4227. * src/DHTPeerLookupTask.cc
  4228. * src/DHTPeerLookupTask.h
  4229. * src/DHTTaskFactory.h
  4230. * src/DHTTaskFactoryImpl.cc
  4231. * src/DHTTaskFactoryImpl.h
  4232. * src/DefaultBtAnnounce.cc
  4233. * src/DefaultBtAnnounce.h
  4234. * src/DefaultBtContext.cc: Removed
  4235. * src/DefaultBtContext.h: Removed
  4236. * src/DefaultBtInteractive.cc
  4237. * src/DefaultBtInteractive.h
  4238. * src/DefaultBtMessageDispatcher.cc
  4239. * src/DefaultBtMessageDispatcher.h
  4240. * src/DefaultBtMessageFactory.cc
  4241. * src/DefaultBtMessageFactory.h
  4242. * src/DefaultBtMessageReceiver.cc
  4243. * src/DefaultBtMessageReceiver.h
  4244. * src/DefaultBtProgressInfoFile.cc
  4245. * src/DefaultBtRequestFactory.cc
  4246. * src/DefaultBtRequestFactory.h
  4247. * src/DefaultExtensionMessageFactory.cc
  4248. * src/DefaultExtensionMessageFactory.h
  4249. * src/DefaultPeerStorage.cc
  4250. * src/DefaultPeerStorage.h
  4251. * src/DefaultPieceStorage.cc
  4252. * src/DefaultSegmentManFactory.cc
  4253. * src/DiskAdaptor.cc
  4254. * src/DiskAdaptor.h
  4255. * src/DownloadContext.cc
  4256. * src/DownloadContext.h
  4257. * src/DownloadEngine.cc
  4258. * src/DownloadEngineFactory.cc
  4259. * src/DownloadHandler.cc
  4260. * src/DownloadResult.h
  4261. * src/FileAllocationCommand.cc
  4262. * src/FileAllocationDispatcherCommand.cc
  4263. * src/FileAllocationEntry.cc
  4264. * src/FileEntry.h
  4265. * src/FillRequestGroupCommand.cc
  4266. * src/FtpDownloadCommand.cc
  4267. * src/FtpFinishDownloadCommand.cc
  4268. * src/FtpInitiateConnectionCommand.cc
  4269. * src/FtpNegotiationCommand.cc
  4270. * src/FtpTunnelRequestCommand.cc
  4271. * src/FtpTunnelResponseCommand.cc
  4272. * src/HandshakeExtensionMessage.cc
  4273. * src/HandshakeExtensionMessage.h
  4274. * src/HaveEraseCommand.cc
  4275. * src/HttpDownloadCommand.cc
  4276. * src/HttpInitiateConnectionCommand.cc
  4277. * src/HttpProxyRequestCommand.cc
  4278. * src/HttpProxyResponseCommand.cc
  4279. * src/HttpRequest.cc
  4280. * src/HttpRequest.h
  4281. * src/HttpRequestCommand.cc
  4282. * src/HttpResponseCommand.cc
  4283. * src/HttpServerBodyCommand.cc
  4284. * src/HttpServerCommand.cc
  4285. * src/HttpSkipResponseCommand.cc
  4286. * src/InitiateConnectionCommandFactory.cc
  4287. * src/InitiatorMSEHandshakeCommand.cc
  4288. * src/InitiatorMSEHandshakeCommand.h
  4289. * src/IteratableChecksumValidator.cc
  4290. * src/IteratableChecksumValidator.h
  4291. * src/IteratableChunkChecksumValidator.cc
  4292. * src/MSEHandshake.cc
  4293. * src/MSEHandshake.h
  4294. * src/Makefile.am
  4295. * src/Makefile.in
  4296. * src/Metalink2RequestGroup.cc
  4297. * src/MetalinkPostDownloadHandler.cc
  4298. * src/MultiDiskAdaptor.cc
  4299. * src/MultiDiskAdaptor.h
  4300. * src/MultiFileAllocationIterator.cc
  4301. * src/MultiUrlRequestInfo.cc
  4302. * src/PeerChokeCommand.cc
  4303. * src/PeerChokeCommand.h
  4304. * src/PeerInitiateConnectionCommand.cc
  4305. * src/PeerInitiateConnectionCommand.h
  4306. * src/PeerInteractionCommand.cc
  4307. * src/PeerInteractionCommand.h
  4308. * src/PeerReceiveHandshakeCommand.cc
  4309. * src/PieceHashCheckIntegrityEntry.cc
  4310. * src/RealtimeCommand.cc
  4311. * src/ReceiverMSEHandshakeCommand.cc
  4312. * src/RequestGroup.cc
  4313. * src/RequestGroup.h
  4314. * src/RequestGroupEntry.cc
  4315. * src/RequestGroupMan.cc
  4316. * src/SeedCheckCommand.cc
  4317. * src/SeedCheckCommand.h
  4318. * src/SegmentMan.cc
  4319. * src/ShareRatioSeedCriteria.h
  4320. * src/SingleFileDownloadContext.cc: Removed
  4321. * src/SingleFileDownloadContext.h: Removed
  4322. * src/SleepCommand.cc
  4323. * src/StreamCheckIntegrityEntry.cc
  4324. * src/TrackerWatcherCommand.cc
  4325. * src/TrackerWatcherCommand.h
  4326. * src/UnknownLengthPieceStorage.cc
  4327. * src/Util.cc
  4328. * src/Util.h
  4329. * src/XmlRpcMethodImpl.cc
  4330. * src/bittorrent_helper.cc
  4331. * src/bittorrent_helper.h
  4332. * src/download_helper.cc
  4333. * src/main.cc
  4334. * src/option_processing.cc
  4335. * test/BitfieldManTest.cc
  4336. * test/BittorrentHelperTest.cc
  4337. * test/BtCancelMessageTest.cc
  4338. * test/BtChokeMessageTest.cc
  4339. * test/BtDependencyTest.cc
  4340. * test/BtPieceMessageTest.cc
  4341. * test/BtPostDownloadHandlerTest.cc
  4342. * test/BtRegistryTest.cc
  4343. * test/BtRejectMessageTest.cc
  4344. * test/BtRequestMessageTest.cc
  4345. * test/DHTPeerAnnounceStorageTest.cc
  4346. * test/DefaultBtAnnounceTest.cc
  4347. * test/DefaultBtContextTest.cc: Removed
  4348. * test/DefaultBtMessageDispatcherTest.cc
  4349. * test/DefaultBtMessageFactoryTest.cc
  4350. * test/DefaultBtProgressInfoFileTest.cc
  4351. * test/DefaultBtRequestFactoryTest.cc
  4352. * test/DefaultExtensionMessageFactoryTest.cc
  4353. * test/DefaultPeerStorageTest.cc
  4354. * test/DefaultPieceStorageTest.cc
  4355. * test/DirectDiskAdaptorTest.cc
  4356. * test/DownloadContextTest.cc
  4357. * test/DownloadHandlerFactoryTest.cc
  4358. * test/DownloadHelperTest.cc
  4359. * test/HandshakeExtensionMessageTest.cc
  4360. * test/HttpRequestTest.cc
  4361. * test/HttpResponseTest.cc
  4362. * test/IteratableChecksumValidatorTest.cc
  4363. * test/IteratableChunkChecksumValidatorTest.cc
  4364. * test/MSEHandshakeTest.cc
  4365. * test/Makefile.am
  4366. * test/Makefile.in
  4367. * test/Metalink2RequestGroupTest.cc
  4368. * test/MetalinkPostDownloadHandlerTest.cc
  4369. * test/MockBtContext.h: Removed
  4370. * test/MockDHTTaskFactory.h
  4371. * test/MockDownloadContext.h: Removed
  4372. * test/MockPieceStorage.h
  4373. * test/MultiDiskAdaptorTest.cc
  4374. * test/MultiFileAllocationIteratorTest.cc
  4375. * test/RequestGroupManTest.cc
  4376. * test/RequestGroupTest.cc
  4377. * test/SegmentManTest.cc
  4378. * test/ShareRatioSeedCriteriaTest.cc
  4379. * test/SingleFileDownloadContextTest.cc: Removed
  4380. * test/UtilTest.cc
  4381. * test/XmlRpcMethodTest.cc
  4382. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4383. Added experimental support of WEB-Seeding for multi-file torrent.
  4384. Due to fundamental changes in file handling in HTTP/FTP code, many
  4385. functions are not working: PeerStat, ServerHost, proxy..etc
  4386. * src/AbstractCommand.cc
  4387. * src/AbstractCommand.h
  4388. * src/BitfieldMan.cc
  4389. * src/BitfieldMan.h
  4390. * src/CreateRequestCommand.cc
  4391. * src/CreateRequestCommand.h
  4392. * src/DefaultPieceStorage.cc
  4393. * src/DefaultPieceStorage.h
  4394. * src/DownloadCommand.cc
  4395. * src/DownloadCommand.h
  4396. * src/DownloadContext.cc
  4397. * src/DownloadContext.h
  4398. * src/FileEntry.cc
  4399. * src/FileEntry.h
  4400. * src/FtpDownloadCommand.cc
  4401. * src/FtpDownloadCommand.h
  4402. * src/FtpFinishDownloadCommand.cc
  4403. * src/FtpFinishDownloadCommand.h
  4404. * src/FtpInitiateConnectionCommand.cc
  4405. * src/FtpInitiateConnectionCommand.h
  4406. * src/FtpNegotiationCommand.cc
  4407. * src/FtpNegotiationCommand.h
  4408. * src/FtpTunnelResponseCommand.cc
  4409. * src/HttpDownloadCommand.cc
  4410. * src/HttpDownloadCommand.h
  4411. * src/HttpInitiateConnectionCommand.cc
  4412. * src/HttpInitiateConnectionCommand.h
  4413. * src/HttpProxyResponseCommand.cc
  4414. * src/HttpRequest.cc
  4415. * src/HttpRequest.h
  4416. * src/HttpRequestCommand.cc
  4417. * src/HttpRequestCommand.h
  4418. * src/HttpResponseCommand.cc
  4419. * src/HttpResponseCommand.h
  4420. * src/HttpSkipResponseCommand.cc
  4421. * src/HttpSkipResponseCommand.h
  4422. * src/InitiateConnectionCommand.cc
  4423. * src/InitiateConnectionCommand.h
  4424. * src/InitiateConnectionCommandFactory.cc
  4425. * src/InitiateConnectionCommandFactory.h
  4426. * src/Makefile.am
  4427. * src/PieceStorage.h
  4428. * src/RequestGroup.cc
  4429. * src/RequestGroup.h
  4430. * src/RequestGroupMan.cc
  4431. * src/SegmentMan.cc
  4432. * src/SegmentMan.h
  4433. * src/SingleFileDownloadContext.h
  4434. * src/StreamFileAllocationEntry.cc
  4435. * src/TrackerWatcherCommand.cc
  4436. * src/UnknownLengthPieceStorage.cc
  4437. * src/UnknownLengthPieceStorage.h
  4438. * src/array_fun.h
  4439. * src/bitfield.h
  4440. * src/download_helper.cc
  4441. * test/DownloadContextTest.cc
  4442. * test/Makefile.am
  4443. * test/MockDownloadContext.h
  4444. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Added tellWaiting XML-RPC method.
  4446. * src/SingleFileDownloadContext.cc
  4447. * src/XmlRpcMethodFactory.cc
  4448. * src/XmlRpcMethodImpl.cc
  4449. * src/XmlRpcMethodImpl.h
  4450. * test/XmlRpcMethodTest.cc
  4451. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4452. Updated CookieStorageTest
  4453. * test/CookieStorageTest.cc
  4454. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4455. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4456. handle excepion inside these functions.
  4457. * src/LibgnutlsTLSContext.cc
  4458. * src/LibgnutlsTLSContext.h
  4459. * src/LibsslTLSContext.cc
  4460. * src/LibsslTLSContext.h
  4461. * src/MultiUrlRequestInfo.cc
  4462. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Added comment
  4464. * src/RequestGroup.cc
  4465. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. In CookieStorage::load() and saveNsFormat(), handle exception
  4467. inside the functions. When saving Cookies, first write temporary
  4468. file and after successful writes, then renames it to final
  4469. destination.
  4470. * src/CookieStorage.cc
  4471. * src/CookieStorage.h
  4472. * src/MultiUrlRequestInfo.cc
  4473. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4474. The default value of --dir option is the absolute path to the
  4475. current directory. If getcwd() is failed, then it is ".", which is
  4476. the same value with old implementation. This change is necessary
  4477. because after daemon() call, the current working directory is
  4478. changed to /.
  4479. * src/File.cc
  4480. * src/File.h
  4481. * src/OptionHandlerFactory.cc
  4482. * src/option_processing.cc
  4483. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Call daemon() with arguments(0,0), which means daemon() changes
  4485. current working directory to / and redirects stdin, stdout and
  4486. stderr to /dev/null.
  4487. * src/option_processing.cc
  4488. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. Small performance optimizations.
  4490. * src/RequestGroupMan.cc
  4491. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4492. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4493. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4494. * src/RequestGroupMan.cc
  4495. * src/RequestGroupMan.h
  4496. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4497. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4498. setNoWiat(true) if newly created command calls
  4499. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4500. * src/HttpListenCommand.cc
  4501. * src/HttpServerBodyCommand.cc
  4502. * src/HttpServerCommand.cc
  4503. * src/HttpServerResponseCommand.cc
  4504. * src/InitiateConnectionCommand.cc
  4505. * src/RequestGroup.cc
  4506. * src/StreamFileAllocationEntry.cc
  4507. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4508. Removed include vector
  4509. * src/BtRegistry.h
  4510. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4511. Rewritten BtRegistry
  4512. * src/BtRegistry.cc
  4513. * src/BtRegistry.h
  4514. * src/BtSetup.cc
  4515. * src/ConsoleStatCalc.cc
  4516. * src/PeerInteractionCommand.cc
  4517. * src/PeerReceiveHandshakeCommand.cc
  4518. * src/ReceiverMSEHandshakeCommand.cc
  4519. * src/RequestGroup.cc
  4520. * src/XmlRpcMethodImpl.cc
  4521. * test/BtRegistryTest.cc
  4522. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4524. * src/DefaultBtProgressInfoFile.cc
  4525. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. Throw an exception if position is less than 0.
  4527. * src/XmlRpcMethodImpl.cc
  4528. * test/XmlRpcMethodTest.cc
  4529. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4530. Use writeFilePath() in ConsoleStatCalc.cc
  4531. * src/ConsoleStatCalc.cc
  4532. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4533. Receive the return value as const reference from
  4534. DownloadContext::getFileEntries().
  4535. * src/DefaultPieceStorage.cc
  4536. * src/RequestGroupMan.cc
  4537. * src/XmlRpcMethodImpl.cc
  4538. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. DownloadContext now has _fileEntries so that
  4540. DownloadContext::getFileEntries() can returns its const reference.
  4541. * src/DefaultBtContext.cc
  4542. * src/DefaultBtContext.h
  4543. * src/DownloadContext.cc
  4544. * src/DownloadContext.h
  4545. * src/SingleFileDownloadContext.cc
  4546. * src/SingleFileDownloadContext.h
  4547. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4549. writeFilePath() function template from RequestGroupMan.cc to
  4550. FileEntry.h
  4551. * src/FileEntry.h
  4552. * src/RequestGroupMan.cc
  4553. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Documented 'position' parameter is starting from 0 in man page.
  4555. * doc/aria2c.1.txt
  4556. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Updated doc.
  4558. * src/MSEHandshake.cc
  4559. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Removed _acceptFeatures and its accessor functions from
  4561. RequestGroup since they are not used practically.
  4562. * src/HttpRequestCommand.cc
  4563. * src/RequestGroup.cc
  4564. * src/RequestGroup.h
  4565. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4566. Removed member _maxTries from RequestGroup class to avoid
  4567. duplicate option value. Those classes who refer this variable
  4568. should use option value of PREF_MAX_TRIES directly.
  4569. * src/AbstractCommand.cc
  4570. * src/RequestGroup.cc
  4571. * src/RequestGroup.h
  4572. * src/TrackerWatcherCommand.cc
  4573. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4574. * Release 1.4.1
  4575. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4576. Fixed compiler warnings on netbsd
  4577. * src/DHTConnectionImpl.cc
  4578. * src/PeerListenCommand.cc
  4579. * src/PeerSessionResource.cc
  4580. * src/SegmentMan.cc
  4581. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Updated Ukrainian translation. Thanks to all translators.
  4583. * po/uk.po
  4584. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Bump up version number to 1.4.1.
  4586. * configure.ac
  4587. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4588. Added unit tests for strjoin, strconcat and strappend.
  4589. * test/a2functionalTest.cc
  4590. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. Rewritten strconcat and strappend using operator+ instead of
  4592. append().
  4593. * src/a2functional.h
  4594. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4595. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4596. is enabled.
  4597. * src/Makefile.am
  4598. * test/Makefile.am
  4599. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4600. Added countSeeder() function which counts seeder in the given
  4601. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4602. * src/ConsoleStatCalc.cc
  4603. * src/Peer.h
  4604. * src/XmlRpcMethodImpl.cc
  4605. * test/PeerTest.cc
  4606. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4607. Documented missing seeder in getPeers xml-rpc method.
  4608. Documented uploadLength and numSeeders.
  4609. * doc/aria2c.1.txt
  4610. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4611. Added uploadLength and numSeeders to the response of tellStatus
  4612. xml-rpc method. Assert that PeerStorage instance is not null
  4613. instead of checking if statement. It should be non-null in this
  4614. context.
  4615. * src/XmlRpcMethodImpl.cc
  4616. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4617. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4618. * src/XmlRpcResponse.cc
  4619. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4620. Avoid intermediate object during string concatenation.
  4621. * src/HttpRequest.cc
  4622. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Added strjoin function template. Use it in pathJoin()
  4624. * src/Util.h
  4625. * src/a2functional.h
  4626. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. Avoid intermediate object during string concatenation. Replaced
  4628. post-increment unary operator with pre-increment one in for loop.
  4629. * src/AdaptiveURISelector.cc
  4630. * src/AnnounceList.cc
  4631. * src/AuthConfig.h
  4632. * src/BtBitfieldMessage.cc
  4633. * src/BtExtendedMessage.cc
  4634. * src/BtHandshakeMessage.cc
  4635. * src/BtPieceMessage.cc
  4636. * src/BtPortMessage.cc
  4637. * src/Cookie.cc
  4638. * src/DHTAnnouncePeerMessage.cc
  4639. * src/DHTAutoSaveCommand.cc
  4640. * src/DHTGetPeersReplyMessage.cc
  4641. * src/DHTNode.cc
  4642. * src/DHTQueryMessage.cc
  4643. * src/DHTResponseMessage.cc
  4644. * src/DHTUnknownMessage.cc
  4645. * src/DefaultBtAnnounce.cc
  4646. * src/DefaultBtContext.cc
  4647. * src/DefaultBtInteractive.cc
  4648. * src/DefaultBtProgressInfoFile.cc
  4649. * src/DefaultPeerStorage.cc
  4650. * src/DownloadEngine.cc
  4651. * src/FeatureConfig.cc
  4652. * src/File.cc
  4653. * src/FtpConnection.cc
  4654. * src/FtpNegotiationCommand.cc
  4655. * src/HandshakeExtensionMessage.cc
  4656. * src/HttpConnection.cc
  4657. * src/HttpRequest.cc
  4658. * src/HttpResponseCommand.cc
  4659. * src/HttpServer.cc
  4660. * src/IndexBtMessage.cc
  4661. * src/Metalink2RequestGroup.cc
  4662. * src/OptionHandlerImpl.h
  4663. * src/PStringBuildVisitor.cc
  4664. * src/Peer.cc
  4665. * src/PeerListenCommand.cc
  4666. * src/Piece.cc
  4667. * src/RangeBtMessage.cc
  4668. * src/Request.cc
  4669. * src/Request.h
  4670. * src/RequestGroup.cc
  4671. * src/RequestGroupMan.cc
  4672. * src/ServerStat.cc
  4673. * src/ServerStatMan.cc
  4674. * src/UTPexExtensionMessage.cc
  4675. * src/Util.cc
  4676. * src/a2functional.h
  4677. * src/download_helper.cc
  4678. * src/messageDigest.cc
  4679. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Unchoke a peer randomly at first and second choke round in seed
  4681. state.
  4682. * src/BtSeederStateChoke.cc
  4683. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4684. Added (sock_t) to quiet compiler warnings in MinGW
  4685. * src/SocketCore.cc
  4686. * src/SocketCore.h
  4687. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4688. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4689. * src/EpollEventPoll.h
  4690. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4691. Added fork() emulation using CreateProcess() in MinGW
  4692. * src/RequestGroupMan.cc
  4693. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4694. * Release 1.4.0
  4695. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4696. Added utf8.torrent to EXTRA_DIST
  4697. * test/Makefile.am
  4698. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. Fixed docs of aria2.addMetalink xml-rpc method.
  4700. * doc/aria2c.1.txt
  4701. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Added Slovak translation. Updated Ukrainian and Brazilian
  4703. Portuguese translation. Thanks to all translators.
  4704. * po/sk.po
  4705. * po/uk.po
  4706. * po/pt_BR.po
  4707. * po/LINGUAS
  4708. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Added test case for XmlRpcProcessor to fail to parse malformed
  4710. document.
  4711. * test/XmlRpcRequestProcessorTest.cc
  4712. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4713. Removed *.gmo files in po because they are generated on 'make
  4714. dist'
  4715. * po/*.gmo
  4716. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4717. Documented max-concurrent-downloads of changeGlobalOption method
  4718. in man page.
  4719. * doc/aria2c.1.txt
  4720. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4721. Added max-concurrent-downloads option to changeGlobalOption
  4722. xml-rpc method. Rewritten loop conditional in
  4723. RequestGroupMan::fillRequestGroupFromReserver().
  4724. * src/RequestGroupMan.cc
  4725. * src/RequestGroupMan.h
  4726. * src/XmlRpcMethod.cc
  4727. * src/XmlRpcMethodImpl.cc
  4728. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4729. Documented position parameter in man page.
  4730. * doc/aria2c.1.txt
  4731. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4732. Added 'position' parameter to addUri, addTorrent and addMetalink
  4733. xml-rpc method.
  4734. * src/RequestGroupMan.cc
  4735. * src/RequestGroupMan.h
  4736. * src/XmlRpcMethodImpl.cc
  4737. * test/XmlRpcMethodTest.cc
  4738. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Removed Peer.cc from compile source list when --disable-bittorrent
  4740. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4741. takes Peer.
  4742. * src/DefaultPieceStorage.cc
  4743. * src/DefaultPieceStorage.h
  4744. * src/Makefile.am
  4745. * src/PieceStorage.h
  4746. * src/UnknownLengthPieceStorage.cc
  4747. * src/UnknownLengthPieceStorage.h
  4748. * test/MockPieceStorage.h
  4749. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Implemented getter methods in header files to give them more
  4751. chance of optimization.
  4752. Return const reference for SharadHandle if possible.
  4753. * src/AbstractAuthResolver.cc
  4754. * src/AbstractAuthResolver.h
  4755. * src/AbstractBtMessage.cc
  4756. * src/AbstractBtMessage.h
  4757. * src/AbstractSingleDiskAdaptor.cc
  4758. * src/AbstractSingleDiskAdaptor.h
  4759. * src/AsyncNameResolver.cc
  4760. * src/AsyncNameResolver.h
  4761. * src/BNode.cc
  4762. * src/BNode.h
  4763. * src/BitfieldMan.cc
  4764. * src/BitfieldMan.h
  4765. * src/BtAbortOutstandingRequestEvent.h
  4766. * src/BtExtendedMessage.cc
  4767. * src/BtExtendedMessage.h
  4768. * src/BtSeederStateChoke.cc
  4769. * src/BtSeederStateChoke.h
  4770. * src/Cookie.cc
  4771. * src/Cookie.h
  4772. * src/DHTBucket.cc
  4773. * src/DHTBucket.h
  4774. * src/DHTConnectionImpl.cc
  4775. * src/DHTConnectionImpl.h
  4776. * src/DHTFindNodeReplyMessage.cc
  4777. * src/DHTFindNodeReplyMessage.h
  4778. * src/DHTGetPeersReplyMessage.cc
  4779. * src/DHTGetPeersReplyMessage.h
  4780. * src/DHTInteractionCommand.cc
  4781. * src/DHTMessage.cc
  4782. * src/DHTMessage.h
  4783. * src/DHTMessageDispatcherImpl.cc
  4784. * src/DHTMessageEntry.cc
  4785. * src/DHTMessageReceiver.cc
  4786. * src/DHTMessageReceiver.h
  4787. * src/DHTMessageTrackerEntry.cc
  4788. * src/DHTMessageTrackerEntry.h
  4789. * src/DHTPeerAnnounceEntry.cc
  4790. * src/DHTPeerAnnounceEntry.h
  4791. * src/DHTPeerLookupTask.cc
  4792. * src/DHTPeerLookupTask.h
  4793. * src/DHTRoutingTableDeserializer.cc
  4794. * src/DHTRoutingTableDeserializer.h
  4795. * src/DefaultBtAnnounce.cc
  4796. * src/DefaultBtAnnounce.h
  4797. * src/DefaultBtMessageDispatcher.cc
  4798. * src/DefaultBtMessageDispatcher.h
  4799. * src/DefaultBtRequestFactory.cc
  4800. * src/DefaultBtRequestFactory.h
  4801. * src/DiskAdaptor.cc
  4802. * src/DiskAdaptor.h
  4803. * src/DownloadContext.cc
  4804. * src/DownloadContext.h
  4805. * src/DownloadEngine.cc
  4806. * src/DownloadEngine.h
  4807. * src/EpollEventPoll.cc
  4808. * src/EpollEventPoll.h
  4809. * src/FtpConnection.cc
  4810. * src/FtpConnection.h
  4811. * src/HttpConnection.cc
  4812. * src/HttpConnection.h
  4813. * src/HttpHeader.cc
  4814. * src/HttpHeader.h
  4815. * src/HttpRequest.cc
  4816. * src/HttpRequest.h
  4817. * src/HttpResponse.cc
  4818. * src/HttpResponse.h
  4819. * src/LibsslTLSContext.cc
  4820. * src/LibsslTLSContext.h
  4821. * src/MSEHandshake.cc
  4822. * src/MSEHandshake.h
  4823. * src/MetalinkEntry.cc
  4824. * src/MetalinkEntry.h
  4825. * src/MetalinkParserController.cc
  4826. * src/MetalinkParserController.h
  4827. * src/MetalinkParserStateMachine.cc
  4828. * src/MetalinkParserStateMachine.h
  4829. * src/MultiDiskAdaptor.cc
  4830. * src/MultiDiskAdaptor.h
  4831. * src/NetrcAuthResolver.cc
  4832. * src/NetrcAuthResolver.h
  4833. * src/Peer.cc
  4834. * src/Peer.h
  4835. * src/PeerSessionResource.cc
  4836. * src/PeerSessionResource.h
  4837. * src/Piece.cc
  4838. * src/Piece.h
  4839. * src/PieceStatMan.cc
  4840. * src/PieceStatMan.h
  4841. * src/Request.cc
  4842. * src/Request.h
  4843. * src/RequestGroup.cc
  4844. * src/RequestGroup.h
  4845. * src/RequestGroupMan.cc
  4846. * src/RequestGroupMan.h
  4847. * src/RequestSlot.cc
  4848. * src/RequestSlot.h
  4849. * src/SegmentMan.cc
  4850. * src/SegmentMan.h
  4851. * src/SelectEventPoll.cc
  4852. * src/SelectEventPoll.h
  4853. * src/ServerStat.cc
  4854. * src/ServerStat.h
  4855. * src/Signature.cc
  4856. * src/Signature.h
  4857. * src/URIResult.cc
  4858. * src/URIResult.h
  4859. * src/UTPexExtensionMessage.cc
  4860. * src/UTPexExtensionMessage.h
  4861. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4862. Fixed compile error without BitTorrent and Metalink support.
  4863. * src/XmlRpcMethod.cc
  4864. * src/XmlRpcMethodFactory.cc
  4865. * src/XmlRpcMethodImpl.cc
  4866. * src/XmlRpcMethodImpl.h
  4867. * test/XmlRpcMethodTest.cc
  4868. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4869. Rewritten the help message for --allow-overwrite option.
  4870. * doc/aria2c.1.txt
  4871. * src/usage_text.h
  4872. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4873. Fixed typo
  4874. * doc/aria2c.1.txt
  4875. * src/usage_text.h
  4876. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Updated README for 1.4.0 release. Use new table syntax of
  4878. asciidoc.
  4879. * README
  4880. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4881. Documented --xml-rpc-max-request-size option in man page.
  4882. * doc/aria2c.1.txt
  4883. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Moved C_* constants from BtContext to DefaultBtContext.
  4885. * src/BtContext.cc: Removed.
  4886. * src/BtContext.h
  4887. * src/DefaultBtContext.cc
  4888. * src/DefaultBtContext.h
  4889. * src/Makefile.am
  4890. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4891. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4892. path key respectively when persing .torrent file.
  4893. * src/BtContext.cc
  4894. * src/BtContext.h
  4895. * src/DefaultBtContext.cc
  4896. * test/DefaultBtContextTest.cc
  4897. * test/utf8.torrent
  4898. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Added --xml-rpc-max-request-size option to limit the size of
  4900. XML-RPC request.
  4901. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. Documented XML-RPC API in man page.
  4903. * doc/aria2c.1.txt
  4904. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4905. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4906. will break strict-aliasing rules
  4907. * src/PeerConnection.cc
  4908. * test/DHTRoutingTableSerializerTest.cc
  4909. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4910. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4911. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4912. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4913. PKG_CHECK_MODULES macro uses latter name.
  4914. * m4/sqlite3.m4
  4915. * src/Makefile.am
  4916. * test/Makefile.am
  4917. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Fixed typo
  4919. * configure.ac
  4920. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4922. presence of libgnutls using pkg-config first. If it fails, fall
  4923. back to old macro libgnutls.m4.
  4924. * configure.ac
  4925. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4926. Use s itself instead of !s.bad()
  4927. * src/CookieStorage.cc
  4928. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4929. Documented --on-download-* option and --save-cookies option in man
  4930. page.
  4931. * doc/aria2c.1.txt
  4932. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4933. Set possible values for --load-cookie option to "/path/to/file".
  4934. * src/OptionHandlerFactory.cc
  4935. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4936. Added --save-cookies option.
  4937. * src/Cookie.cc
  4938. * src/Cookie.h
  4939. * src/CookieStorage.cc
  4940. * src/CookieStorage.h
  4941. * src/MultiUrlRequestInfo.cc
  4942. * src/OptionHandlerFactory.cc
  4943. * src/prefs.cc
  4944. * src/prefs.h
  4945. * src/usage_text.h
  4946. * test/CookieStorageTest.cc
  4947. * test/CookieTest.cc
  4948. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4949. Removed tellAll XML-RPC command because its reponse tends to be
  4950. big if stopped/waiting downloads pile up.
  4951. * src/XmlRpcMethodFactory.cc
  4952. * src/XmlRpcMethodImpl.cc
  4953. * src/XmlRpcMethodImpl.h
  4954. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4955. Added the ability to execute command when download starts and
  4956. stops. You can also specify command for particular cases such as
  4957. complete/error download. Added --on-download-start,
  4958. --on-download-stop, --on-download-complete and --on-download-error
  4959. option.
  4960. * src/OptionHandlerFactory.cc
  4961. * src/RequestGroupMan.cc
  4962. * src/prefs.cc
  4963. * src/prefs.h
  4964. * src/usage_text.h
  4965. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4966. Fixed test error
  4967. * test/BencodeTest.cc
  4968. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4969. Added unit tests.
  4970. * test/XmlRpcMethodTest.cc
  4971. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4972. Made exception message more verbose.
  4973. * src/bencode.cc
  4974. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4975. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4976. space in console readout. Also they are now shown in MiB/s if
  4977. speed > 1024KiB/s.
  4978. * src/ConsoleStatCalc.cc
  4979. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4980. Added SEED to console output, which represents the number of
  4981. seeders currently the client is connecting to.
  4982. * src/ConsoleStatCalc.cc
  4983. * src/ConsoleStatCalc.h
  4984. * src/DownloadEngine.cc
  4985. * src/NullStatCalc.h
  4986. * src/StatCalc.h
  4987. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4988. Added source filename(__FILE__) and line number(__LINE__) to
  4989. exception message.
  4990. * src/AbstractCommand.cc
  4991. * src/AbstractDiskWriter.cc
  4992. * src/AbstractProxyResponseCommand.cc
  4993. * src/BDE.h
  4994. * src/BtAllowedFastMessage.cc
  4995. * src/BtHandshakeMessageValidator.h
  4996. * src/BtHaveAllMessage.cc
  4997. * src/BtHaveNoneMessage.cc
  4998. * src/BtPieceMessage.cc
  4999. * src/BtRejectMessage.cc
  5000. * src/ChunkedDecoder.cc
  5001. * src/CookieStorage.cc
  5002. * src/DHTAnnouncePeerMessage.cc
  5003. * src/DHTEntryPointNameResolveCommand.cc
  5004. * src/DHTMessageFactoryImpl.cc
  5005. * src/DHTMessageTracker.cc
  5006. * src/DHTRoutingTableDeserializer.cc
  5007. * src/DHTRoutingTableSerializer.cc
  5008. * src/DHTSetup.cc
  5009. * src/DHTTokenTracker.cc
  5010. * src/DefaultBtAnnounce.cc
  5011. * src/DefaultBtContext.cc
  5012. * src/DefaultBtInteractive.cc
  5013. * src/DefaultBtMessageFactory.cc
  5014. * src/DefaultBtProgressInfoFile.cc
  5015. * src/DefaultExtensionMessageFactory.cc
  5016. * src/DlAbortEx.h
  5017. * src/DlRetryEx.h
  5018. * src/DownloadCommand.cc
  5019. * src/DownloadEngineFactory.cc
  5020. * src/DownloadFailureException.h
  5021. * src/Exception.cc
  5022. * src/Exception.h
  5023. * src/ExpatMetalinkProcessor.cc
  5024. * src/ExpatXmlRpcRequestProcessor.cc
  5025. * src/FallocFileAllocationIterator.cc
  5026. * src/FatalException.h
  5027. * src/FtpConnection.cc
  5028. * src/FtpFinishDownloadCommand.cc
  5029. * src/FtpInitiateConnectionCommand.cc
  5030. * src/FtpNegotiationCommand.cc
  5031. * src/GZipDecoder.cc
  5032. * src/HandshakeExtensionMessage.cc
  5033. * src/HttpConnection.cc
  5034. * src/HttpHeaderProcessor.cc
  5035. * src/HttpInitiateConnectionCommand.cc
  5036. * src/HttpResponse.cc
  5037. * src/HttpResponseCommand.cc
  5038. * src/HttpServer.cc
  5039. * src/HttpSkipResponseCommand.cc
  5040. * src/InitiateConnectionCommandFactory.cc
  5041. * src/IteratableChunkChecksumValidator.cc
  5042. * src/LibgcryptARC4Context.h
  5043. * src/LibgcryptARC4Decryptor.h
  5044. * src/LibgcryptARC4Encryptor.h
  5045. * src/LibgcryptDHKeyExchange.h
  5046. * src/LibgnutlsTLSContext.cc
  5047. * src/LibsslARC4Context.h
  5048. * src/LibsslARC4Decryptor.h
  5049. * src/LibsslARC4Encryptor.h
  5050. * src/LibsslDHKeyExchange.h
  5051. * src/LibsslTLSContext.cc
  5052. * src/MSEHandshake.cc
  5053. * src/MessageDigestHelper.cc
  5054. * src/MetalinkHelper.cc
  5055. * src/MultiDiskAdaptor.cc
  5056. * src/NameMatchOptionHandler.h
  5057. * src/NameResolver.cc
  5058. * src/Netrc.cc
  5059. * src/NsCookieParser.cc
  5060. * src/OptionHandlerException.cc
  5061. * src/OptionHandlerException.h
  5062. * src/OptionHandlerImpl.h
  5063. * src/OptionParser.cc
  5064. * src/ParameterizedStringParser.cc
  5065. * src/PeerAbstractCommand.cc
  5066. * src/PeerConnection.cc
  5067. * src/PeerMessageUtil.cc
  5068. * src/PeerReceiveHandshakeCommand.cc
  5069. * src/Platform.cc
  5070. * src/ReceiverMSEHandshakeCommand.cc
  5071. * src/RecoverableException.h
  5072. * src/RequestGroup.cc
  5073. * src/SimpleLogger.cc
  5074. * src/SocketCore.cc
  5075. * src/Sqlite3MozCookieParser.cc
  5076. * src/UTPexExtensionMessage.cc
  5077. * src/Util.cc
  5078. * src/XML2SAXMetalinkProcessor.cc
  5079. * src/Xml2XmlRpcRequestProcessor.cc
  5080. * src/XmlRpcMethodImpl.cc
  5081. * src/bencode.cc
  5082. * src/download_helper.cc
  5083. * src/messageDigest.h
  5084. * test/ExceptionTest.cc
  5085. * test/TestUtil.cc
  5086. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5087. Bump up version number to 1.4.0
  5088. * configure.ac
  5089. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Added 2files.metalink to EXTRA_DIST
  5091. * test/Makefile.am
  5092. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5093. Added missing 2files.metalink
  5094. * test/2files.metalink
  5095. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5096. Show "[MEMORY]" prefix before filename in download summary if it
  5097. is downloaded into memory.
  5098. * src/DownloadResult.h
  5099. * src/RequestGroup.cc
  5100. * src/RequestGroupMan.cc
  5101. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5103. * src/ExpatXmlRpcRequestProcessor.cc
  5104. * src/Xml2XmlRpcRequestProcessor.cc
  5105. * src/message.h
  5106. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5107. Defined const BDEs to avoid duplicate instantiation.
  5108. Defined MSG_GID_NOT_PROVIDED.
  5109. * src/XmlRpcMethodImpl.cc
  5110. * src/message.h
  5111. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5112. Code cleanup
  5113. * src/Xml2XmlRpcRequestProcessor.cc
  5114. * src/Xml2XmlRpcRequestProcessor.h
  5115. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5116. Defined ENABLE_XML_RPC
  5117. * configure.ac
  5118. * configure
  5119. * config.h.in
  5120. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5121. Added ExpatXmlRpcRequestProcessor
  5122. * src/ExpatXmlRpcRequestProcessor.cc
  5123. * src/ExpatXmlRpcRequestProcessor.h
  5124. * src/Makefile.am
  5125. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Added tests for addTorrent and addMetalink command.
  5127. * test/TestUtil.cc
  5128. * test/TestUtil.h
  5129. * test/XmlRpcMethodTest.cc
  5130. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Corrected the description of --file-allocation option.
  5132. * doc/aria2c.1.txt
  5133. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Added tellAll command.
  5135. * src/XmlRpcMethodFactory.cc
  5136. * src/XmlRpcMethodImpl.cc
  5137. * src/XmlRpcMethodImpl.h
  5138. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5140. * src/XmlRpcMethodImpl.cc
  5141. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Added changeGlobalOption command. Currently,
  5143. max-overall-download-limit and max-overall-upload-limit option are
  5144. available.
  5145. * src/RequestGroupMan.h
  5146. * src/XmlRpcMethod.cc
  5147. * src/XmlRpcMethod.h
  5148. * src/XmlRpcMethodFactory.cc
  5149. * src/XmlRpcMethodImpl.cc
  5150. * src/XmlRpcMethodImpl.h
  5151. * test/XmlRpcMethodTest.cc
  5152. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5153. Added changeOption command. Currently, max-download-limit,
  5154. max-upload-limit option are available in this command.
  5155. * src/RequestGroup.h
  5156. * src/XmlRpcMethod.cc
  5157. * src/XmlRpcMethod.h
  5158. * src/XmlRpcMethodFactory.cc
  5159. * src/XmlRpcMethodImpl.cc
  5160. * src/XmlRpcMethodImpl.h
  5161. * test/XmlRpcMethodTest.cc
  5162. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5163. Added purgeDownloadResult command.
  5164. * src/RequestGroupMan.cc
  5165. * src/RequestGroupMan.h
  5166. * src/XmlRpcMethodFactory.cc
  5167. * src/XmlRpcMethodImpl.cc
  5168. * src/XmlRpcMethodImpl.h
  5169. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5170. Refactored.
  5171. * src/XmlRpcMethod.cc
  5172. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5173. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5174. XmlRpcResponse.
  5175. * src/HttpServerBodyCommand.cc
  5176. * src/Makefile.am
  5177. * src/XmlRpcMethod.cc
  5178. * src/XmlRpcMethod.h
  5179. * src/XmlRpcMethodImpl.cc
  5180. * src/XmlRpcResponse.cc
  5181. * src/XmlRpcResponse.h
  5182. * test/XmlRpcMethodTest.cc
  5183. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. In XML-RPC option struct, header and index-out option can take
  5185. array as value.
  5186. * src/XmlRpcMethod.cc
  5187. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Removed unused option member from PeerConnection.
  5189. * src/InitiatorMSEHandshakeCommand.cc
  5190. * src/PeerConnection.cc
  5191. * src/PeerConnection.h
  5192. * src/PeerInteractionCommand.cc
  5193. * src/PeerReceiveHandshakeCommand.cc
  5194. * src/ReceiverMSEHandshakeCommand.cc
  5195. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5196. Added "seeder" key to getPeers response.
  5197. * src/XmlRpcMethodImpl.cc
  5198. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. Added addMetalink XML-RPC command.
  5200. * src/XmlRpcMethodFactory.cc
  5201. * src/XmlRpcMethodImpl.cc
  5202. * src/XmlRpcMethodImpl.h
  5203. * src/download_helper.cc
  5204. * src/download_helper.h
  5205. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Fixed the bug that POU peers are never choked in seeding.
  5207. * src/BtSeederStateChoke.cc
  5208. * src/BtSeederStateChoke.h
  5209. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5210. Added web-seeding URI handling in addTorrent command.
  5211. * src/XmlRpcMethodImpl.cc
  5212. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Added "length" key to getFiles response.
  5214. * src/XmlRpcMethodImpl.cc
  5215. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. Moved --no-netrc option from ftp option section to http/ftp option
  5217. section.
  5218. * doc/aria2c.1.txt
  5219. * src/OptionHandlerFactory.cc
  5220. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5221. Removed garbage "\" character before '
  5222. * doc/aria2c.1.txt
  5223. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Removed garbage "\" character before http.
  5225. * doc/aria2c.1.txt
  5226. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5227. Documented additional options that can be specified in -i list.
  5228. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5229. and --xml-rpc-passwd. Removed --enable-http-server and
  5230. --http-server-listen-port.
  5231. * doc/aria2c.1.txt
  5232. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5234. * src/DefaultPeerStorage.cc
  5235. * src/DefaultPeerStorage.h
  5236. * src/PeerStorage.h
  5237. * src/XmlRpcMethodImpl.cc
  5238. * test/MockPeerStorage.h
  5239. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5240. Put a call to Socket::isReadable() in try block.
  5241. * src/HttpServerBodyCommand.cc
  5242. * src/HttpServerCommand.cc
  5243. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5244. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5245. exception , so it is now in try block.
  5246. * src/HttpServerResponseCommand.cc
  5247. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5248. Added "amChoking" and "peerChoking" key in getPeers response.
  5249. * src/XmlRpcMethodImpl.cc
  5250. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5251. Added test case for zero-length filter.
  5252. * test/BitfieldManTest.cc
  5253. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5254. getFiles command now returns file data for finished/stopped
  5255. downloads.
  5256. * src/XmlRpcMethodImpl.cc
  5257. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5258. DownloadResult now has the list of FileEntry. The download
  5259. summary displays the path of first selected file and the number of
  5260. remaining files for multi-file torrent.
  5261. * src/DownloadResult.h
  5262. * src/RequestGroup.cc
  5263. * src/RequestGroupMan.cc
  5264. * test/RequestGroupTest.cc
  5265. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5266. Fixed segmentation fault error when no file is selected in
  5267. multi-file torrent.
  5268. * src/BitfieldMan.cc
  5269. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Escaped <,>,& character in XML-RPC response.
  5271. * src/XmlRpcMethod.cc
  5272. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Throw DlAbortEx instead of FatalException during parsing options
  5274. because we don't want for aria2 to quit when bad option is passed
  5275. via XML-RPC.
  5276. * src/OptionHandlerException.cc
  5277. * src/OptionHandlerException.h
  5278. * src/OptionHandlerImpl.h
  5279. * src/OptionParser.cc
  5280. * src/OptionParser.h
  5281. * src/PStringSegment.cc
  5282. * src/ParameterizedStringParser.cc
  5283. * src/download_helper.cc
  5284. * test/ParameterizedStringParserTest.cc
  5285. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5286. Selecting files are now done in
  5287. DefaultBtContext::setFileFileter().
  5288. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5289. functions are removed because they are no longer used. Creating
  5290. filter in BitfieldMan is done in new funtion
  5291. PieceStorage::setupFileFilter()
  5292. * src/BtContext.cc
  5293. * src/BtContext.h
  5294. * src/DefaultBtContext.cc
  5295. * src/DefaultBtContext.h
  5296. * src/DefaultPieceStorage.cc
  5297. * src/DefaultPieceStorage.h
  5298. * src/DiskAdaptor.cc
  5299. * src/DiskAdaptor.h
  5300. * src/PieceStorage.h
  5301. * src/RequestGroup.cc
  5302. * src/UnknownLengthPieceStorage.h
  5303. * src/XmlRpcMethodImpl.cc
  5304. * test/DefaultBtContextTest.cc
  5305. * test/MockBtContext.h
  5306. * test/MockPieceStorage.h
  5307. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Fixed compile error on Mac OS X
  5309. * src/HttpServer.cc
  5310. * src/XmlRpcMethod.h
  5311. * src/XmlRpcMethodImpl.cc
  5312. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5313. Use std::binary_search instead of std::find
  5314. * src/DefaultPieceStorage.cc
  5315. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5316. Removed unnecessary BDE() call; leave them to implicit conversion.
  5317. * src/XmlRpcMethodImpl.cc
  5318. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Return connections and gid in string
  5320. * src/XmlRpcMethodImpl.cc
  5321. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5322. Renamed addURI as addUri
  5323. * src/XmlRpcMethodFactory.cc
  5324. * src/XmlRpcMethodImpl.cc
  5325. * src/XmlRpcMethodImpl.h
  5326. * test/XmlRpcMethodTest.cc
  5327. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5328. Renamed addTorrentFile as addTorrent
  5329. * src/XmlRpcMethodFactory.cc
  5330. * src/XmlRpcMethodImpl.cc
  5331. * src/XmlRpcMethodImpl.h
  5332. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5333. The information for files, URIs, peers are removed from the
  5334. reponse of TellaActive, TellStatus command because they tend to be
  5335. large. Instead they can be retrieved by the dedicated commands:
  5336. getFiles, getUris and getPeers respectively.
  5337. * src/XmlRpcMethodFactory.cc
  5338. * src/XmlRpcMethodImpl.cc
  5339. * src/XmlRpcMethodImpl.h
  5340. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Removed --max-overall-upload-limit and
  5342. --max-overall-download-limit option from listRequestOptions.
  5343. * src/download_helper.cc
  5344. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5345. Log incoming host in HttpListenCommand.
  5346. * src/HttpListenCommand.cc
  5347. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5348. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5349. --xml-rpc-passwd option.
  5350. * src/HttpServer.cc
  5351. * src/HttpServer.h
  5352. * src/HttpServerCommand.cc
  5353. * src/OptionHandlerFactory.cc
  5354. * src/prefs.cc
  5355. * src/prefs.h
  5356. * src/usage_text.h
  5357. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5358. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5359. processing 0 length request.
  5360. * src/HttpServerBodyCommand.cc
  5361. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5362. Removed --enable-http-server and --http-server-listen-port
  5363. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5364. instead. The original feature for --enable-http-server that
  5365. reports download progress in HTML was officially removed. Persist
  5366. XML-RPC connection if client supports keep-alive.
  5367. * src/DownloadEngineFactory.cc
  5368. * src/HttpServerCommand.cc
  5369. * src/HttpServerResponseCommand.cc
  5370. * src/Makefile.am
  5371. * src/Makefile.in
  5372. * src/OptionHandlerFactory.cc
  5373. * src/RequestGroupMan.cc
  5374. * src/main.cc
  5375. * src/option_processing.cc
  5376. * src/prefs.cc
  5377. * src/prefs.h
  5378. * src/usage_text.h
  5379. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5380. Added "uris" key to the response of tellStatus command. Added
  5381. "connections" key to the response of tellStatus and tellActive
  5382. command.
  5383. * src/XmlRpcMethodImpl.cc
  5384. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5385. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5386. Added TellStatusXmlRpcMethod. Remove command can now remove
  5387. waiting RequestGroup.
  5388. * src/RequestGroupMan.cc
  5389. * src/RequestGroupMan.h
  5390. * src/XmlRpcMethodFactory.cc
  5391. * src/XmlRpcMethodImpl.cc
  5392. * src/XmlRpcMethodImpl.h
  5393. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5394. Initialized _peerId
  5395. * src/Peer.cc
  5396. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Return fault structure for error. FailXmlRpcMethod is renamed as
  5398. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5399. in non-torrent download. Return single param value.
  5400. * src/XmlRpcMethod.cc
  5401. * src/XmlRpcMethodFactory.cc
  5402. * src/XmlRpcMethodImpl.cc
  5403. * src/XmlRpcMethodImpl.h
  5404. * test/XmlRpcMethodTest.cc
  5405. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5407. command.
  5408. * src/RequestGroup.cc
  5409. * src/RequestGroup.h
  5410. * src/RequestGroupMan.cc
  5411. * src/XmlRpcMethodImpl.cc
  5412. * test/RequestGroupTest.cc
  5413. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5414. Added more options that can be specified in -i list and xml-rpc
  5415. add* command.
  5416. * src/download_helper.h
  5417. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5418. The available options in -i list should be listed in
  5419. listRequestOptions().
  5420. * src/download_helper.cc
  5421. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5422. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5423. command.
  5424. * src/XmlRpcMethodImpl.cc
  5425. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Now RequestGroup has its own copy of Option object. This will help
  5427. to give custom option for each RequestGroup.
  5428. addTorrentFile command now takes options.
  5429. * src/AbstractCommand.cc
  5430. * src/AbstractCommand.h
  5431. * src/AbstractProxyRequestCommand.cc
  5432. * src/ActivePeerConnectionCommand.cc
  5433. * src/ActivePeerConnectionCommand.h
  5434. * src/AdaptiveURISelector.cc
  5435. * src/BtCheckIntegrityEntry.cc
  5436. * src/BtDependency.cc
  5437. * src/BtDependency.h
  5438. * src/BtFileAllocationEntry.cc
  5439. * src/BtPostDownloadHandler.cc
  5440. * src/CheckIntegrityEntry.cc
  5441. * src/DownloadCommand.cc
  5442. * src/FtpDownloadCommand.cc
  5443. * src/FtpFinishDownloadCommand.cc
  5444. * src/FtpInitiateConnectionCommand.cc
  5445. * src/FtpNegotiationCommand.cc
  5446. * src/HttpInitiateConnectionCommand.cc
  5447. * src/HttpRequestCommand.cc
  5448. * src/HttpResponseCommand.cc
  5449. * src/HttpSkipResponseCommand.cc
  5450. * src/InitiateConnectionCommand.cc
  5451. * src/InitiateConnectionCommandFactory.cc
  5452. * src/InitiatorMSEHandshakeCommand.cc
  5453. * src/InitiatorMSEHandshakeCommand.h
  5454. * src/Metalink2RequestGroup.cc
  5455. * src/Metalink2RequestGroup.h
  5456. * src/MetalinkPostDownloadHandler.cc
  5457. * src/MultiUrlRequestInfo.cc
  5458. * src/MultiUrlRequestInfo.h
  5459. * src/PeerAbstractCommand.cc
  5460. * src/PeerInteractionCommand.cc
  5461. * src/PeerInteractionCommand.h
  5462. * src/PeerReceiveHandshakeCommand.cc
  5463. * src/PeerReceiveHandshakeCommand.h
  5464. * src/RequestGroup.cc
  5465. * src/RequestGroup.h
  5466. * src/TrackerWatcherCommand.cc
  5467. * src/TrackerWatcherCommand.h
  5468. * src/XmlRpcMethod.cc
  5469. * src/XmlRpcMethod.h
  5470. * src/XmlRpcMethodImpl.cc
  5471. * src/download_helper.cc
  5472. * src/download_helper.h
  5473. * src/main.cc
  5474. * test/BtDependencyTest.cc
  5475. * test/BtPostDownloadHandlerTest.cc
  5476. * test/DefaultBtMessageDispatcherTest.cc
  5477. * test/DownloadHandlerFactoryTest.cc
  5478. * test/DownloadHelperTest.cc
  5479. * test/Metalink2RequestGroupTest.cc
  5480. * test/MetalinkPostDownloadHandlerTest.cc
  5481. * test/RequestGroupManTest.cc
  5482. * test/RequestGroupTest.cc
  5483. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5484. Added tellActiveStatus xml-rpc command which reports download
  5485. status of active downloads.
  5486. * src/XmlRpcMethodFactory.cc
  5487. * src/XmlRpcMethodImpl.cc
  5488. * src/XmlRpcMethodImpl.h
  5489. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5490. Added addTorrentFile xml-rpc command which receives uploaded
  5491. torrent file and add download for it.
  5492. * src/RequestGroupMan.cc
  5493. * src/XmlRpcMethodFactory.cc
  5494. * src/XmlRpcMethodImpl.cc
  5495. * src/XmlRpcMethodImpl.h
  5496. * src/download_helper.cc
  5497. * src/download_helper.h
  5498. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Added remove xml-rpc command which removes specified download.
  5500. There is a known issue: the removed unfinished downloads are
  5501. reported ERR when aria2 exits. They should be reported as INPR.
  5502. * src/RequestGroupMan.cc
  5503. * src/RequestGroupMan.h
  5504. * src/XmlRpcMethodFactory.cc
  5505. * src/XmlRpcMethodImpl.cc
  5506. * src/XmlRpcMethodImpl.h
  5507. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5508. If --enable-http-server is enabled, don't stop aria2 when all
  5509. download finished and don't quit when no files to download at
  5510. start up.
  5511. * src/RequestGroupMan.cc
  5512. * src/main.cc
  5513. * src/option_processing.cc
  5514. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5515. Added missing AM_CONDITIONAL
  5516. * configure.ac
  5517. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5518. Added xml-rpc functionality. Currently only addURI commad is
  5519. supported. To enable xml-rpc, run aria2 with
  5520. --enable-http-server. This option name is temporal and will be
  5521. changed. The feature that reports download progress in html format
  5522. is temporarily disabled.
  5523. * src/HttpServer.cc
  5524. * src/HttpServer.h
  5525. * src/HttpServerBodyCommand.cc
  5526. * src/HttpServerBodyCommand.h
  5527. * src/HttpServerCommand.cc
  5528. * src/HttpServerResponseCommand.cc
  5529. * src/Makefile.am
  5530. * src/OptionParser.cc
  5531. * src/OptionParser.h
  5532. * src/RequestGroupMan.cc
  5533. * src/RequestGroupMan.h
  5534. * src/XmlRpcMethod.cc
  5535. * src/XmlRpcMethod.h
  5536. * src/XmlRpcMethodFactory.cc
  5537. * src/XmlRpcMethodFactory.h
  5538. * src/XmlRpcMethodImpl.cc
  5539. * src/XmlRpcMethodImpl.h
  5540. * src/download_helper.cc
  5541. * src/download_helper.h
  5542. * test/Makefile.am
  5543. * test/XmlRpcMethodTest.cc
  5544. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Added xml-rpc request parser. The supported value types are:
  5546. i4/int, string, double, struct, array, base64. Currently only
  5547. libxml2 version is provided.
  5548. * src/Xml2XmlRpcRequestProcessor.cc
  5549. * src/Xml2XmlRpcRequestProcessor.h
  5550. * src/XmlRpcElements.cc
  5551. * src/XmlRpcElements.h
  5552. * src/XmlRpcRequest.h
  5553. * src/XmlRpcRequestParserController.cc
  5554. * src/XmlRpcRequestParserController.h
  5555. * src/XmlRpcRequestParserState.h
  5556. * src/XmlRpcRequestParserStateImpl.cc
  5557. * src/XmlRpcRequestParserStateImpl.h
  5558. * src/XmlRpcRequestParserStateMachine.cc
  5559. * src/XmlRpcRequestParserStateMachine.h
  5560. * src/XmlRpcRequestProcessor.h
  5561. * test/XmlRpcRequestParserControllerTest.cc
  5562. * test/XmlRpcRequestProcessorTest.cc
  5563. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5564. * Release 1.3.3
  5565. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Fixed compile error since r1202.
  5567. * src/ExpatMetalinkProcessor.cc
  5568. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5569. Updated Ukrainian, Russian and Simplified Chinese
  5570. translations. Thanks to all translators.
  5571. * po/ru.po
  5572. * po/uk.po
  5573. * po/zh_CN.po
  5574. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5575. Pass reference of Option object instead of pointer.
  5576. * src/download_helper.cc
  5577. * src/download_helper.h
  5578. * src/main.cc
  5579. * test/DownloadHelperTest.cc
  5580. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5581. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5582. from option directly. Instead, get them from RequestGroup.
  5583. * src/ActivePeerConnectionCommand.cc
  5584. * src/ActivePeerConnectionCommand.h
  5585. * src/PeerReceiveHandshakeCommand.cc
  5586. * src/RequestGroup.h
  5587. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5588. Removed unused uploadLimitCheck and uploadLimit from
  5589. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5590. PeerInteractionCommand.
  5591. * src/PeerAbstractCommand.cc
  5592. * src/PeerAbstractCommand.h
  5593. * src/PeerInteractionCommand.cc
  5594. * src/PeerInteractionCommand.h
  5595. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5596. Fixed broken file renaming feature since r1202.
  5597. * src/FtpNegotiationCommand.cc
  5598. * src/FtpNegotiationCommand.h
  5599. * src/HttpResponseCommand.cc
  5600. * src/RequestGroup.cc
  5601. * src/RequestGroup.h
  5602. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5603. Removed unused debug log
  5604. * src/SocketCore.cc
  5605. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5606. Generated configure and Makefile.in using autoconf 2.63 and
  5607. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5608. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5609. * configure.ac
  5610. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. Moved piece statistics stuff to new PieceStatMan class.
  5612. Refactored PieceSelector interface.
  5613. * src/DefaultPieceStorage.cc
  5614. * src/DefaultPieceStorage.h
  5615. * src/LongestSequencePieceSelector.cc
  5616. * src/LongestSequencePieceSelector.h
  5617. * src/Makefile.am
  5618. * src/PieceSelector.h
  5619. * src/PieceStatMan.cc
  5620. * src/PieceStatMan.h
  5621. * src/RarestPieceSelector.cc
  5622. * src/RarestPieceSelector.h
  5623. * src/RequestGroup.cc
  5624. * test/DefaultPieceStorageTest.cc
  5625. * test/InOrderPieceSelector.h
  5626. * test/Makefile.am
  5627. * test/PieceStatManTest.cc
  5628. * test/RarestPieceSelectorTest.cc
  5629. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5630. Added static member _protocolFamily to SocketCore. By default,
  5631. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5632. address. Sometime SocketCore::bind() and
  5633. SocketCore::establishConnection() use difference protocl family
  5634. and latter cannot connect to former. To avoid this situation, we
  5635. limit protocol family to AF_INET for unit tests.
  5636. * src/SocketCore.cc
  5637. * src/SocketCore.h
  5638. * test/AllTest.cc
  5639. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5640. Avoid std::bad_alloc for negative bencode string length.
  5641. * src/bencode.cc
  5642. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5643. Supported segmented downloading with chunked transfer encoding and
  5644. content-length.
  5645. * src/DownloadCommand.cc
  5646. * src/HttpResponseCommand.cc
  5647. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Bump up version number to 1.3.3
  5649. * configure.ac
  5650. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5651. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5652. from 4096 to 65536 (for insanely large ftp login banners)
  5653. * src/FtpConnection.h
  5654. * test/FtpConnectionTest.cc
  5655. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5656. In DefaultBtContext::getActualBasePath(), return first
  5657. FileEntry::getPath() for single file torrent.
  5658. * src/DefaultBtContext.cc
  5659. * test/DefaultBtContextTest.cc
  5660. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5661. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5662. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5663. Removed _directIOAllowed member from DiskWriter.
  5664. * src/AbstractDiskWriter.cc
  5665. * src/AbstractDiskWriter.h
  5666. * src/AbstractSingleDiskAdaptor.cc
  5667. * src/AbstractSingleDiskAdaptor.h
  5668. * src/BinaryStream.h
  5669. * src/ByteArrayDiskWriter.h
  5670. * src/DefaultPieceStorage.cc
  5671. * src/DiskWriter.h
  5672. * src/MultiDiskAdaptor.cc
  5673. * src/MultiDiskAdaptor.h
  5674. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5675. Now the constructor of AbstractDiskWriter takes filename as an
  5676. argument and filename argument is removed from openFile(),
  5677. initAndOpenFile(), openExistingFile() interface. storeDir member
  5678. and its accessor functions are removed from DiskAdaptor because it
  5679. is not used anymore. size() member function of DefaultDiskWriter,
  5680. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5681. opening file.
  5682. * src/AbstractDiskWriter.cc
  5683. * src/AbstractDiskWriter.h
  5684. * src/AbstractSingleDiskAdaptor.cc
  5685. * src/AbstractSingleDiskAdaptor.h
  5686. * src/ByteArrayDiskWriter.cc
  5687. * src/ByteArrayDiskWriter.h
  5688. * src/ByteArrayDiskWriterFactory.cc
  5689. * src/ByteArrayDiskWriterFactory.h
  5690. * src/DefaultDiskWriter.cc
  5691. * src/DefaultDiskWriter.h
  5692. * src/DefaultDiskWriterFactory.cc
  5693. * src/DefaultDiskWriterFactory.h
  5694. * src/DefaultPieceStorage.cc
  5695. * src/DirectDiskAdaptor.cc
  5696. * src/DirectDiskAdaptor.h
  5697. * src/DiskAdaptor.h
  5698. * src/DiskWriter.h
  5699. * src/DiskWriterFactory.h
  5700. * src/MessageDigestHelper.cc
  5701. * src/MultiDiskAdaptor.cc
  5702. * src/RequestGroup.cc
  5703. * src/UnknownLengthPieceStorage.cc
  5704. * src/Util.cc
  5705. * test/DefaultDiskWriterTest.cc
  5706. * test/DirectDiskAdaptorTest.cc
  5707. * test/FallocFileAllocationIteratorTest.cc
  5708. * test/MessageDigestHelperTest.cc
  5709. * test/MetalinkProcessorTest.cc
  5710. * test/MultiDiskAdaptorTest.cc
  5711. * test/MultiFileAllocationIteratorTest.cc
  5712. * test/SingleFileAllocationIteratorTest.cc
  5713. * test/UtilTest.cc
  5714. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5715. Fixed the bug that aria2 aborts when --select-file is used. This
  5716. bug was introduced in r1199.
  5717. * src/MultiDiskAdaptor.cc
  5718. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Code cleanup
  5720. * test/MockPieceStorage.cc
  5721. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Fixed the bug that read-only file with wrong file size will cause
  5723. error because it cannot be truncated to the correct size. Now if
  5724. file size is different than the expected one, re-open file in
  5725. writable mode.
  5726. * src/AbstractSingleDiskAdaptor.cc
  5727. * src/AbstractSingleDiskAdaptor.h
  5728. * src/BtCheckIntegrityEntry.cc
  5729. * src/DiskAdaptor.h
  5730. * src/MultiDiskAdaptor.h
  5731. * src/RequestGroup.cc
  5732. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5733. Fixed the bug that with --check-integrity option aria2 reports
  5734. downloaded file size is 0 even if some parts of file is correctly
  5735. downloaded. This bug is reproducible for the download that a file
  5736. includes last piece is missing. This bug doesn't reveal for
  5737. single-torrent with file allocation on.
  5738. * src/IteratableChecksumValidator.cc
  5739. * test/IteratableChecksumValidatorTest.cc
  5740. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5741. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5742. * src/RequestGroupMan.cc
  5743. * src/AdaptiveURISelector.cc
  5744. * src/AdaptiveURISelector.h
  5745. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5746. * Release 1.3.2
  5747. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5748. Updated README
  5749. * README
  5750. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5751. Updated Ukrainian translations. Thanks to Alexander10.
  5752. * po/uk.po
  5753. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5754. Code cleanup
  5755. * src/MetalinkParserStateMachine.cc
  5756. * src/MetalinkParserStateMachine.h
  5757. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5758. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5759. and expat simultaneously, MetalinkProcessor is now not base class
  5760. and it is directly implemented in XML2SAXMetalinkProcessor and
  5761. ExpatMetalinkProcessor.
  5762. * src/ExpatMetalinkProcessor.cc
  5763. * src/ExpatMetalinkProcessor.h
  5764. * src/Makefile.am
  5765. * src/MetalinkHelper.cc
  5766. * src/MetalinkProcessor.h
  5767. * src/MetalinkProcessorFactory.cc: Removed.
  5768. * src/MetalinkProcessorFactory.h: Removed
  5769. * src/XML2SAXMetalinkProcessor.cc
  5770. * src/XML2SAXMetalinkProcessor.h
  5771. * test/MetalinkProcessorTest.cc
  5772. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Bump up version number to 1.3.2
  5774. * configure.ac
  5775. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Added missing file.
  5777. * test/Makefile.am
  5778. * test/url-list-singleFileEndsWithSlash.torrent
  5779. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5780. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5781. request.
  5782. * src/AnnounceList.cc
  5783. * src/AnnounceList.h
  5784. * src/BDE.cc: Added
  5785. * src/BDE.h: Added
  5786. * src/DHTAbstractMessage.cc
  5787. * src/DHTAbstractMessage.h
  5788. * src/DHTAnnouncePeerMessage.cc
  5789. * src/DHTAnnouncePeerMessage.h
  5790. * src/DHTAnnouncePeerReplyMessage.cc
  5791. * src/DHTAnnouncePeerReplyMessage.h
  5792. * src/DHTFindNodeMessage.cc
  5793. * src/DHTFindNodeMessage.h
  5794. * src/DHTFindNodeReplyMessage.cc
  5795. * src/DHTFindNodeReplyMessage.h
  5796. * src/DHTGetPeersMessage.cc
  5797. * src/DHTGetPeersMessage.h
  5798. * src/DHTGetPeersReplyMessage.cc
  5799. * src/DHTGetPeersReplyMessage.h
  5800. * src/DHTMessageFactory.h
  5801. * src/DHTMessageFactoryImpl.cc
  5802. * src/DHTMessageFactoryImpl.h
  5803. * src/DHTMessageReceiver.cc
  5804. * src/DHTMessageTracker.cc
  5805. * src/DHTMessageTracker.h
  5806. * src/DHTPingMessage.cc
  5807. * src/DHTPingMessage.h
  5808. * src/DHTPingReplyMessage.cc
  5809. * src/DHTPingReplyMessage.h
  5810. * src/DHTQueryMessage.cc
  5811. * src/DHTQueryMessage.h
  5812. * src/DHTResponseMessage.cc
  5813. * src/DHTResponseMessage.h
  5814. * src/DefaultBtAnnounce.cc
  5815. * src/DefaultBtContext.cc
  5816. * src/DefaultBtContext.h
  5817. * src/HandshakeExtensionMessage.cc
  5818. * src/Makefile.am
  5819. * src/PeerListProcessor.h
  5820. * src/UTPexExtensionMessage.cc
  5821. * src/bencode.cc
  5822. * src/bencode.h
  5823. * test/AnnounceListTest.cc
  5824. * test/BDETest.cc: Added
  5825. * test/BencodeTest.cc
  5826. * test/DHTAnnouncePeerMessageTest.cc
  5827. * test/DHTAnnouncePeerReplyMessageTest.cc
  5828. * test/DHTFindNodeMessageTest.cc
  5829. * test/DHTFindNodeReplyMessageTest.cc
  5830. * test/DHTGetPeersMessageTest.cc
  5831. * test/DHTGetPeersReplyMessageTest.cc
  5832. * test/DHTMessageFactoryImplTest.cc
  5833. * test/DHTMessageTrackerTest.cc
  5834. * test/DHTPingMessageTest.cc
  5835. * test/DHTPingReplyMessageTest.cc
  5836. * test/Makefile.am
  5837. * test/MockDHTMessageFactory.h
  5838. * test/PeerListProcessorTest.cc
  5839. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5840. Use url-list (web-seeding) only for single-file torrent. This is
  5841. basically the same behavior with Metalink file with torrent and
  5842. URIs.
  5843. * src/RequestGroup.cc
  5844. * src/DefaultBtContext.cc
  5845. * test/DefaultBtContextTest.cc
  5846. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5847. Rewritten expr
  5848. * src/array_fun.h
  5849. * test/array_funTest.cc
  5850. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5851. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5852. * src/DefaultBtMessageDispatcher.cc
  5853. * src/a2algo.h
  5854. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5855. Removed ExtendedMessagingAware. Instead of using inheritance,
  5856. added ExtensionMessageRegistry and it is passed to
  5857. DefaultExtensionMessageFactory.
  5858. * src/DefaultBtInteractive.cc
  5859. * src/DefaultBtInteractive.h
  5860. * src/DefaultExtensionMessageFactory.cc
  5861. * src/DefaultExtensionMessageFactory.h
  5862. * src/ExtendedMessagingAware.h: Removed.
  5863. * src/ExtensionMessageFactory.h
  5864. * src/ExtensionMessageRegistry.h: Added.
  5865. * src/Makefile.am
  5866. * src/PeerInteractionCommand.cc
  5867. * test/DefaultExtensionMessageFactoryTest.cc
  5868. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5869. Fixed typo in log messages
  5870. * src/MSEHandshake.cc
  5871. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5872. Fixed the bug that prevents torrent download from finishing. The
  5873. bug doesn't reveal for all torrents. The torrents affected this
  5874. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5875. of pieces.
  5876. * src/bitfield.h
  5877. * test/bitfieldTest.cc
  5878. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5879. Code cleanup
  5880. * src/PeerListProcessor.h
  5881. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5882. Removed RequestGroupAware
  5883. * src/AbstractCommand.cc
  5884. * src/AbstractCommand.h
  5885. * src/ActivePeerConnectionCommand.cc
  5886. * src/ActivePeerConnectionCommand.h
  5887. * src/DHTGetPeersCommand.cc
  5888. * src/DHTGetPeersCommand.h
  5889. * src/InitiatorMSEHandshakeCommand.cc
  5890. * src/InitiatorMSEHandshakeCommand.h
  5891. * src/Makefile.am
  5892. * src/PeerInitiateConnectionCommand.cc
  5893. * src/PeerInitiateConnectionCommand.h
  5894. * src/PeerInteractionCommand.cc
  5895. * src/PeerInteractionCommand.h
  5896. * src/RealtimeCommand.cc
  5897. * src/RealtimeCommand.h
  5898. * src/RequestGroupAware.cc: Removed
  5899. * src/RequestGroupAware.h: Removed
  5900. * src/SeedCheckCommand.cc
  5901. * src/SeedCheckCommand.h
  5902. * src/SleepCommand.cc
  5903. * src/TrackerWatcherCommand.cc
  5904. * src/TrackerWatcherCommand.h
  5905. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5906. Rewritten PeerListProcessor
  5907. * src/PeerListProcessor.h
  5908. * src/CompactPeerListProcessor.h: Removed
  5909. * src/CompactPeerListProcessor.cc: Removed
  5910. * src/DelegatingPeerListProcessor.cc: Removed.
  5911. * src/DefaultBtAnnounce.cc
  5912. * src/Makefile.am
  5913. * src/UTPexExtensionMessage.cc
  5914. * src/DefaultPeerListProcessor.h: Removed.
  5915. * src/DefaultPeerListProcessor.cc: Removed.
  5916. * src/DelegatingPeerListProcessor.h: Removed.
  5917. * test/Makefile.am
  5918. * test/PeerListProcessorTest.cc
  5919. * test/DefaultPeerListProcessorTest.cc: Removed.
  5920. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5921. Rewritten RequestGroupMan::calculateStat()
  5922. * src/RequestGroupMan.cc
  5923. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5924. Removed unnecessary virtual destructor for Request class.
  5925. * src/Request.cc
  5926. * src/Request.h
  5927. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5928. Avoid dynamic_pointer_cast.
  5929. * src/DHTGetPeersCommand.cc
  5930. * src/DHTGetPeersCommand.h
  5931. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5932. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5933. BtEvent.
  5934. * src/AbstractBtEventListener.h: Removed.
  5935. * src/AbstractBtMessage.cc
  5936. * src/AbstractBtMessage.h
  5937. * src/BtAbortOutstandingRequestEvent.h
  5938. * src/BtCancelSendingPieceEvent.h
  5939. * src/BtChokedEvent.h: Removed.
  5940. * src/BtChokingEvent.h
  5941. * src/BtEvent.h: Removed
  5942. * src/BtEventListener.h: Removed.
  5943. * src/BtMessage.h
  5944. * src/BtPieceMessage.cc
  5945. * src/BtPieceMessage.h
  5946. * src/BtRequestMessage.cc
  5947. * src/BtRequestMessage.h
  5948. * src/DefaultBtMessageDispatcher.cc
  5949. * src/Makefile.am
  5950. * src/a2functional.h
  5951. * test/BtPieceMessageTest.cc
  5952. * test/BtRequestMessageTest.cc
  5953. * test/DefaultBtMessageDispatcherTest.cc
  5954. * test/MockBtMessage.h
  5955. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5956. Code cleanup
  5957. * src/RequestGroupMan.cc
  5958. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5959. Code cleanup
  5960. * src/DownloadCommand.cc
  5961. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5962. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5963. byte.
  5964. * src/DownloadCommand.cc
  5965. * src/bitfield.h
  5966. * test/bitfieldTest.cc
  5967. Fixed the bug that causes infinite loop if broken web server
  5968. returns chunked response without last "0" chunk-size marker and
  5969. closes connection.
  5970. * src/DownloadCommand.cc
  5971. Instantiate properly configured HttpDownloadCommand for
  5972. non-resumable downlaods.
  5973. * src/HttpResponseCommand.cc
  5974. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5975. Rewritten array operation functions.
  5976. * src/BitfieldMan.cc
  5977. * src/array_fun.h
  5978. * test/array_funTest.cc
  5979. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Removed unused variable 'query'
  5981. * src/Request.cc
  5982. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5984. accidentally set to false in r1162.
  5985. * configure.ac
  5986. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5987. Code cleanup
  5988. * src/BNode.cc
  5989. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5990. Increase prefixLength for the bucket which doesn't own local node
  5991. ID when splitting bucket.
  5992. * src/DHTBucket.cc
  5993. * test/DHTBucketTest.cc
  5994. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. * Release 1.3.1
  5996. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5997. Bump up version number to 1.3.1
  5998. * configure.ac
  5999. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6000. Removed unused variable checkPoint. Also removed include directive
  6001. for TimeA2.h.
  6002. * src/SeedCheckCommand.h
  6003. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6004. Fixed the bug that upload limit exceeds the value specified in
  6005. --seed-ratio option depending on the timing of the execution of
  6006. SeedCheckCommand.
  6007. * src/SeedCheckCommand.cc
  6008. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6009. Fixed the bug that removed peer's session upload/download length
  6010. are counted twice in _cachedTransferStat before it is
  6011. re-calculated. This affected the calculation of shara ratio,
  6012. resulting aria2 wrongly determines that specified share ratio is
  6013. reached. Also fixed the typo in calculateStatFor function name.
  6014. * src/BtSetup.cc
  6015. * src/DefaultPeerStorage.cc
  6016. * src/ShareRatioSeedCriteria.h
  6017. * test/ShareRatioSeedCriteriaTest.cc
  6018. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. * Release 1.3.0
  6020. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6021. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6022. Nynorsk translations. Thanks to all translators.
  6023. * po/es.po
  6024. * po/ja.po
  6025. * po/nn.po
  6026. * po/ru.po
  6027. * po/uk.po
  6028. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6029. Rewritten isInRange()
  6030. * src/DHTBucket.cc
  6031. * test/DHTBucketTest.cc
  6032. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6033. Fixed typo
  6034. * doc/aria2c.1.txt
  6035. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6036. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6037. malloc/realloc is not used.
  6038. * src/configure.ac
  6039. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6040. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6041. char* bitfield instead of stl container for efficiency.
  6042. PieceSelector::select now takes this
  6043. bitfield. RarestPieceSelector::select now also performs
  6044. efficiently for this change. bitfield namespace is introduced and
  6045. it has several helper functions to handle basic bitfield
  6046. operations such as test, count set bits, etc.
  6047. * src/BitfieldMan.cc
  6048. * src/BitfieldMan.h
  6049. * src/DefaultBtRequestFactory.cc
  6050. * src/DefaultPieceStorage.cc
  6051. * src/DefaultPieceStorage.h
  6052. * src/LongestSequencePieceSelector.cc
  6053. * src/LongestSequencePieceSelector.h
  6054. * src/Makefile.am
  6055. * src/Piece.cc
  6056. * src/Piece.h
  6057. * src/PieceSelector.h
  6058. * src/RarestPieceSelector.cc
  6059. * src/RarestPieceSelector.h
  6060. * src/Util.cc
  6061. * src/Util.h
  6062. * src/bitfield.h
  6063. * test/BitfieldManTest.cc
  6064. * test/LongestSequencePieceSelectorTest.cc
  6065. * test/Makefile.am
  6066. * test/RarestPieceSelectorTest.cc
  6067. * test/UtilTest.cc
  6068. * test/bitfieldTest.cc
  6069. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6070. Made accepted socket non-block.
  6071. * src/FtpNegotiationCommand.cc
  6072. * src/HttpListenCommand.cc
  6073. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6074. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6075. * src/AbstractSingleDiskAdaptor.cc
  6076. * src/DefaultPieceStorage.cc
  6077. * src/DiskAdaptor.h
  6078. * src/DiskAdaptor.h
  6079. * src/MultiFileAllocationIterator.cc
  6080. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6081. Run
  6082. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6083. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6084. it doesn't need to be called every time when
  6085. DefaultBtInteractive::doInteractionProcessing() is called.
  6086. * src/DefaultBtInteractive.cc
  6087. * src/DefaultBtInteractive.h
  6088. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6089. Documented 'falloc' in man page.
  6090. * doc/aria2c.1.txt
  6091. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6092. Updated doc
  6093. * src/usage_text.h
  6094. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6095. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6096. allocation mode uses posix_fallocate() system call to allocate
  6097. file on disk. If you are using newer file systems such as ext4
  6098. (with extents support), btrfs or xfs, 'falloc' is your best
  6099. choice. It allocates large(few GiB) files almost instantly. Don't
  6100. use 'falloc' with legacy file systems such as ext3 because it
  6101. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6102. until allocation finishes. 'falloc' may not be available if your
  6103. system doesn't have posix_fallocate() system call.
  6104. * configure.ac
  6105. * src/AbstractDiskWriter.cc
  6106. * src/AbstractDiskWriter.h
  6107. * src/AbstractSingleDiskAdaptor.cc
  6108. * src/BinaryStream.h
  6109. * src/BtCheckIntegrityEntry.cc
  6110. * src/ByteArrayDiskWriter.h
  6111. * src/CheckIntegrityEntry.cc
  6112. * src/CheckIntegrityEntry.h
  6113. * src/DefaultPieceStorage.cc
  6114. * src/DiskAdaptor.cc
  6115. * src/DiskAdaptor.h
  6116. * src/DiskWriter.h
  6117. * src/FallocFileAllocationIterator.cc
  6118. * src/FallocFileAllocationIterator.h
  6119. * src/FileAllocationEntry.cc
  6120. * src/FileAllocationEntry.h
  6121. * src/Makefile.am
  6122. * src/MultiFileAllocationIterator.cc
  6123. * src/MultiFileAllocationIterator.h
  6124. * src/OptionHandlerFactory.cc
  6125. * src/RequestGroup.cc
  6126. * src/StreamCheckIntegrityEntry.cc
  6127. * src/prefs.cc
  6128. * src/prefs.h
  6129. * src/usage_text.h
  6130. * test/FallocFileAllocationIteratorTest.cc
  6131. * test/Makefile.am
  6132. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6133. Removed duplicate enableDirectIO() call.
  6134. * src/MultiFileAllocationIterator.cc
  6135. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6136. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6137. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6138. cost of std::rotate().
  6139. * src/RarestPieceSelector.cc
  6140. * src/RarestPieceSelector.h
  6141. * test/RarestPieceSelectorTest.cc
  6142. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6143. Updated usage doc for --bt-tracker-interval option.
  6144. * src/usage_text.h
  6145. * doc/aria2c.1.txt
  6146. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6147. Documented --bt-tracker-interval option in man page.
  6148. * doc/aria2c.1.txt
  6149. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6150. Added an option to specify the interval between tracker requests.
  6151. If non-zero value is specified, aria2 uses it and ignores the
  6152. interval value in the response of tracker. If zero is specified,
  6153. aria2 determines the inteval value based on the tarcker response
  6154. and download progress.
  6155. * src/DefaultBtAnnounce.cc
  6156. * src/DefaultBtAnnounce.h
  6157. * src/OptionHandlerFactory.cc
  6158. * src/RequestGroup.cc
  6159. * src/prefs.cc
  6160. * src/prefs.h
  6161. * src/usage_text.h
  6162. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. Added operator+=, operator-=, operator-
  6164. * src/TransferStat.cc
  6165. * src/TransferStat.h
  6166. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6167. Refactored RarestPieceSelector to reduce CPU load, especially for
  6168. addPieceStats.
  6169. * src/RarestPieceSelector.cc
  6170. * src/RarestPieceSelector.h
  6171. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6172. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6173. getAllMissingBlockIndexes to reduce a call to
  6174. array_function_base::operator[].
  6175. * src/BitfieldMan.cc
  6176. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6177. Cached TransferStat/download speed to avoid to sum them up in each
  6178. call.
  6179. * src/DefaultPeerStorage.cc
  6180. * src/DefaultPeerStorage.h
  6181. * src/SegmentMan.cc
  6182. * src/SegmentMan.h
  6183. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6184. Typedefed cuid_t as int32_t in Command.h
  6185. * src/CUIDCounter.h
  6186. * src/Command.cc
  6187. * src/Command.h
  6188. * src/DownloadEngine.cc
  6189. * src/DownloadEngine.h
  6190. * src/PeerStat.h
  6191. * src/SegmentMan.cc
  6192. * src/SegmentMan.h
  6193. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6194. Reduced the number of calls to PeerStorage::calculateStat() and
  6195. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6196. transfer rate.
  6197. * src/DefaultBtInteractive.cc
  6198. * src/DefaultBtMessageDispatcher.cc
  6199. * src/DefaultPeerStorage.cc
  6200. * src/DefaultPeerStorage.h
  6201. * src/DownloadCommand.cc
  6202. * src/DownloadEngine.cc
  6203. * src/PeerStorage.h
  6204. * src/SegmentMan.cc
  6205. * src/SegmentMan.h
  6206. * test/MockPeerStorage.h
  6207. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6208. Prepended _dir+"/" after joining path elements in torrent file.
  6209. * src/DefaultBtContext.cc
  6210. * test/DefaultBtContextTest.cc
  6211. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6212. Added missing IndexBtMessageValidator.h
  6213. * src/Makefile.am
  6214. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6215. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6216. Chinese translations. Thank you for contributing our project.
  6217. * po/id.po
  6218. * po/it.po
  6219. * po/ru.po
  6220. * po/uk.po
  6221. * po/zh_CN.po
  6222. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6223. Updated README
  6224. * README
  6225. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6226. Bump up version number to 1.3.0
  6227. * configure.ac
  6228. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6229. Updated doc
  6230. * src/DefaultBtContext.h
  6231. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6232. Slice/joinPath for name of single torrent.
  6233. * src/DefaultBtContext.cc
  6234. * test/DefaultBtContextTest.cc
  6235. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6236. Updated man page: Documented --dry-run and --index-out
  6237. options. Changed the default value of --uri-selector and
  6238. --http-auth-challenge options. Removed --direct-file-mapping
  6239. option. Added example for --index-out
  6240. * doc/aria2c.1.txt
  6241. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6242. Updated TEXT_DRY_RUN
  6243. * src/usage_text.h
  6244. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6245. Changed the default value of --uri-selector option from 'inorder'
  6246. to 'feedback'
  6247. * src/OptionHandlerFactory.cc
  6248. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6249. Included current URI in exception message.
  6250. * src/AbstractCommand.cc
  6251. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6252. Renamed ServerStatURISelector as FeedbackURISelector.
  6253. * src/FeedbackURISelector.cc
  6254. * src/FeedbackURISelector.h
  6255. * src/Makefile.am
  6256. * src/RequestGroupMan.cc
  6257. * src/ServerStatURISelector.cc
  6258. * src/ServerStatURISelector.h
  6259. * test/FeedbackURISelectorTest.cc
  6260. * test/Makefile.am
  6261. * test/ServerStatURISelectorTest.cc
  6262. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6263. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6264. all URIs are tested and their timeout is not reached.
  6265. * src/AdaptiveURISelector.cc
  6266. * src/AdaptiveURISelector.h
  6267. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6268. Changed the default value of --http-auth-challenge option to false.
  6269. * src/OptionHandlerFactory.cc
  6270. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6271. Reuse URIs when all unused URIs run out.
  6272. * src/OptionHandlerFactory.cc
  6273. * src/RequestGroup.cc
  6274. * src/prefs.cc
  6275. * src/prefs.h
  6276. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6277. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6278. and BtRejectMessage are derived from RangeBtMessage class.
  6279. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6280. derived from IndexBtMessage class. BtChokeMessage,
  6281. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6282. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6283. ZeroBtMessage class.
  6284. * src/AbstractBtMessage.cc
  6285. * src/AbstractBtMessage.h
  6286. * src/BtAllowedFastMessage.cc
  6287. * src/BtAllowedFastMessage.h
  6288. * src/BtAllowedFastMessageValidator.h: Removed
  6289. * src/BtBitfieldMessage.cc
  6290. * src/BtBitfieldMessage.h
  6291. * src/BtCancelMessage.cc
  6292. * src/BtCancelMessage.h
  6293. * src/BtCancelMessageValidator.h: Removed
  6294. * src/BtChokeMessage.cc
  6295. * src/BtChokeMessage.h
  6296. * src/BtExtendedMessage.cc
  6297. * src/BtExtendedMessage.h
  6298. * src/BtHandshakeMessage.cc
  6299. * src/BtHandshakeMessage.h
  6300. * src/BtHaveAllMessage.cc
  6301. * src/BtHaveAllMessage.h
  6302. * src/BtHaveMessage.cc
  6303. * src/BtHaveMessage.h
  6304. * src/BtHaveMessageValidator.h: Removed
  6305. * src/BtHaveNoneMessage.cc
  6306. * src/BtHaveNoneMessage.h
  6307. * src/BtInterestedMessage.cc
  6308. * src/BtInterestedMessage.h
  6309. * src/BtKeepAliveMessage.cc
  6310. * src/BtKeepAliveMessage.h
  6311. * src/BtNotInterestedMessage.cc
  6312. * src/BtNotInterestedMessage.h
  6313. * src/BtPieceMessage.cc
  6314. * src/BtPieceMessage.h
  6315. * src/BtPortMessage.cc
  6316. * src/BtPortMessage.h
  6317. * src/BtRejectMessage.cc
  6318. * src/BtRejectMessage.h
  6319. * src/BtRejectMessageValidator.h: Removed
  6320. * src/BtRequestMessage.cc
  6321. * src/BtRequestMessage.h
  6322. * src/BtRequestMessageValidator.h: Removed
  6323. * src/BtSuggestPieceMessage.cc
  6324. * src/BtSuggestPieceMessage.h
  6325. * src/BtSuggestPieceMessageValidator.h: Removed
  6326. * src/BtUnchokeMessage.cc
  6327. * src/BtUnchokeMessage.h
  6328. * src/DefaultBtMessageFactory.cc
  6329. * src/IndexBtMessage.cc
  6330. * src/IndexBtMessage.h
  6331. * src/IndexBtMessageValidator.h
  6332. * src/Makefile.am
  6333. * src/PeerMessageUtil.cc
  6334. * src/PeerMessageUtil.h
  6335. * src/RangeBtMessage.cc
  6336. * src/RangeBtMessage.h
  6337. * src/RangeBtMessageValidator.h
  6338. * src/SimpleBtMessage.cc
  6339. * src/SimpleBtMessage.h
  6340. * src/ZeroBtMessage.cc
  6341. * src/ZeroBtMessage.h
  6342. * test/BtRequestMessageTest.cc
  6343. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6344. Reverted usage_text.h to r1093 to avoid to lose translated
  6345. messages.
  6346. * src/usage_text.h
  6347. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6348. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6349. declared as non-const previously is now const and defined in class
  6350. definition.
  6351. * src/AbstractBtMessage.cc
  6352. * src/AbstractBtMessage.h
  6353. * src/BtAllowedFastMessage.cc
  6354. * src/BtAllowedFastMessage.h
  6355. * src/BtBitfieldMessage.h
  6356. * src/BtCancelMessage.cc
  6357. * src/BtCancelMessage.h
  6358. * src/BtChokeMessage.cc
  6359. * src/BtChokeMessage.h
  6360. * src/BtExtendedMessage.cc
  6361. * src/BtExtendedMessage.h
  6362. * src/BtHandshakeMessage.cc
  6363. * src/BtHandshakeMessage.h
  6364. * src/BtHaveAllMessage.cc
  6365. * src/BtHaveAllMessage.h
  6366. * src/BtHaveMessage.cc
  6367. * src/BtHaveMessage.h
  6368. * src/BtHaveNoneMessage.cc
  6369. * src/BtHaveNoneMessage.h
  6370. * src/BtInterestedMessage.cc
  6371. * src/BtInterestedMessage.h
  6372. * src/BtKeepAliveMessage.cc
  6373. * src/BtKeepAliveMessage.h
  6374. * src/BtMessage.h
  6375. * src/BtNotInterestedMessage.cc
  6376. * src/BtNotInterestedMessage.h
  6377. * src/BtPieceMessage.h
  6378. * src/BtPortMessage.cc
  6379. * src/BtPortMessage.h
  6380. * src/BtRejectMessage.cc
  6381. * src/BtRejectMessage.h
  6382. * src/BtRequestMessage.cc
  6383. * src/BtRequestMessage.h
  6384. * src/BtSuggestPieceMessage.cc
  6385. * src/BtSuggestPieceMessage.h
  6386. * src/BtUnchokeMessage.cc
  6387. * src/BtUnchokeMessage.h
  6388. * src/SimpleBtMessage.cc
  6389. * src/SimpleBtMessage.h
  6390. * test/MockBtMessage.h
  6391. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6392. Use FileEntry::exists()
  6393. * src/MultiDiskAdaptor.cc
  6394. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6395. Added exists()
  6396. * src/FileEntry.cc
  6397. * src/FileEntry.h
  6398. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6399. Added missing prefix dir.
  6400. * src/download_helper.cc
  6401. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6402. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6403. * src/CopyDiskAdaptor.cc: Removed
  6404. * src/CopyDiskAdaptor.h: Removed
  6405. * src/DefaultPieceStorage.cc
  6406. * src/Makefile.am
  6407. * src/OptionHandlerFactory.cc
  6408. * src/prefs.cc
  6409. * src/prefs.h
  6410. * src/usage_text.h
  6411. * test/CopyDiskAdaptorTest.cc: Removed
  6412. * test/Makefile.am
  6413. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6414. Rewritten isSameFileBeingDownloaded()
  6415. * src/RequestGroupMan.cc
  6416. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6417. Removed getName() from DownloadContext. getName() is declared in
  6418. BtContext.
  6419. * src/BtContext.h
  6420. * src/DownloadContext.h
  6421. * src/SingleFileDownloadContext.cc
  6422. * src/SingleFileDownloadContext.h
  6423. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6424. in AbstractSingleDiskAdaptor.
  6425. * src/AbstractSingleDiskAdaptor.h
  6426. * src/DiskAdaptor.h
  6427. * src/MultiDiskAdaptor.h
  6428. * src/RequestGroup.cc
  6429. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6430. MultiDiskAdaptor.
  6431. * src/DefaultPieceStorage.cc
  6432. * src/MultiDiskAdaptor.cc
  6433. * src/MultiDiskAdaptor.h
  6434. * test/MultiDiskAdaptorTest.cc
  6435. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6436. FileEntry::getPath() contains store(top level) directory to
  6437. simplify path handling operation. In the previous implementation,
  6438. store directory is concatenated to FileEntry::getPath() in
  6439. DownloadContext.
  6440. * src/BtDependency.cc
  6441. * src/BtPostDownloadHandler.cc
  6442. * src/CopyDiskAdaptor.cc
  6443. * src/DefaultBtContext.cc
  6444. * src/DirectDiskAdaptor.cc
  6445. * src/FileEntry.cc
  6446. * src/FileEntry.h
  6447. * src/FtpNegotiationCommand.cc
  6448. * src/HttpResponse.cc
  6449. * src/HttpResponseCommand.cc
  6450. * src/Metalink2RequestGroup.cc
  6451. * src/MultiDiskAdaptor.cc
  6452. * src/MultiDiskAdaptor.h
  6453. * src/MultiFileAllocationIterator.cc
  6454. * src/RequestGroup.cc
  6455. * src/SingleFileDownloadContext.cc
  6456. * src/SingleFileDownloadContext.h
  6457. * src/download_helper.cc
  6458. * test/BtDependencyTest.cc
  6459. * test/CopyDiskAdaptorTest.cc
  6460. * test/DefaultBtContextTest.cc
  6461. * test/DefaultBtProgressInfoFileTest.cc
  6462. * test/DirectDiskAdaptorTest.cc
  6463. * test/DownloadHelperTest.cc
  6464. * test/FileEntryTest.cc
  6465. * test/MultiDiskAdaptorTest.cc
  6466. * test/MultiFileAllocationIteratorTest.cc
  6467. * test/RequestGroupTest.cc
  6468. * test/SingleFileDownloadContextTest.cc
  6469. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6470. Fixed compiler warning
  6471. * src/download_helper.cc
  6472. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6473. Throw exception if same infohash torrent is now downloading.
  6474. * src/RequestGroup.cc
  6475. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6476. Added --dry-run option. In this mode, aria2 just checks whether
  6477. the remote file is available and doesn't download data. This
  6478. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6479. are canceled in this mode.
  6480. * src/FtpNegotiationCommand.cc
  6481. * src/HttpResponseCommand.cc
  6482. * src/HttpResponseCommand.h
  6483. * src/OptionHandlerFactory.cc
  6484. * src/RequestGroup.cc
  6485. * src/RequestGroupMan.cc
  6486. * src/prefs.cc
  6487. * src/prefs.h
  6488. * src/usage_text.h
  6489. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6490. Fixed compiler waring
  6491. * test/UriListParserTest.cc
  6492. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6493. Parse options in -i list using OptionParser.
  6494. * src/UriListParser.cc
  6495. * src/UriListParser.h
  6496. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6497. Don't reset URI in retry to avoid additional round trips because
  6498. of redirects.
  6499. * src/AbstractCommand.cc
  6500. * src/OptionHandlerFactory.cc
  6501. * src/prefs.cc
  6502. * src/prefs.h
  6503. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6504. Declared hide() in OptionHandler.
  6505. * src/NameMatchOptionHandler.h
  6506. * src/OptionHandler.h
  6507. * src/OptionHandlerImpl.h
  6508. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6509. Updated doc
  6510. * src/Peer.h
  6511. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6512. Added log message in setStatusInternal()
  6513. * src/ServerStat.cc
  6514. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6515. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6516. effectively exclude failed server.
  6517. * src/AbstractCommand.cc
  6518. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6519. Added --index-out option to specify each file path for torrent.
  6520. Here index shown in --show-files option is used to specify which
  6521. file path should be altered. For example, to change the file path
  6522. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6523. option multiple times: --index-out=1=aria2.tar.bz2
  6524. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6525. available. This option can be specified in -i list.
  6526. * src/DefaultBtContext.cc
  6527. * src/DefaultBtContext.h
  6528. * src/MultiDiskAdaptor.cc
  6529. * src/MultiDiskAdaptor.h
  6530. * src/MultiFileAllocationIterator.cc
  6531. * src/OptionHandlerFactory.cc
  6532. * src/OptionHandlerImpl.h
  6533. * src/Util.cc
  6534. * src/Util.h
  6535. * src/download_helper.cc
  6536. * src/prefs.cc
  6537. * src/prefs.h
  6538. * src/usage_text.h
  6539. * test/DefaultBtContextTest.cc
  6540. * test/MultiDiskAdaptorTest.cc
  6541. * test/MultiFileAllocationIteratorTest.cc
  6542. * test/UtilTest.cc
  6543. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6544. Use Util::pathJoin()
  6545. * src/MetalinkParserController.cc
  6546. * test/test.xml
  6547. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6548. Use Util::pathJoin()
  6549. * src/DefaultBtContext.cc
  6550. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6551. Added Util::pathJoin()
  6552. * src/Util.h
  6553. * test/UtilTest.cc
  6554. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6555. Applied basename function to remove directory element in
  6556. content-disposition value.
  6557. Return empty string if content-disposition value is ".." or ".".
  6558. * src/Util.cc
  6559. * test/UtilTest.cc
  6560. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6561. Added --max-overall-download-limit in man page.
  6562. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6563. * doc/aria2c.1.txt
  6564. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6565. Added --max-overall-download-limit option. Now --max-upload-limit
  6566. option is not ignored when --max-overall-upload-limit option has
  6567. non-zero value. aria2 checks download(upload) speed in the order:
  6568. first checks overall speed limit and if it is not exceeded, then
  6569. checks speed limit per download. Thus you can specify both
  6570. value. For example, set --max-overall-download-limit=1M and
  6571. --max-download-limit=500K to prevent from one download from eating
  6572. all overall speed limit.
  6573. * src/DefaultBtInteractive.cc
  6574. * src/DefaultBtInteractive.h
  6575. * src/DefaultBtMessageDispatcher.cc
  6576. * src/DefaultBtMessageDispatcher.h
  6577. * src/DownloadCommand.cc
  6578. * src/DownloadCommand.h
  6579. * src/FtpNegotiationCommand.cc
  6580. * src/HttpResponseCommand.cc
  6581. * src/OptionHandlerFactory.cc
  6582. * src/PeerInteractionCommand.cc
  6583. * src/RequestGroup.cc
  6584. * src/RequestGroup.h
  6585. * src/RequestGroupMan.cc
  6586. * src/RequestGroupMan.h
  6587. * src/prefs.cc
  6588. * src/prefs.h
  6589. * src/usage_text.h
  6590. * test/DefaultBtMessageDispatcherTest.cc
  6591. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6592. Documented select-file option in Input File section.
  6593. Documented --http-auth-challenge option.
  6594. * doc/aria2c.1.txt
  6595. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6596. Now select-file can be specified in the uri list(-i list).
  6597. * src/BtContext.cc
  6598. * src/BtContext.h
  6599. * src/RequestGroup.cc
  6600. * src/Sequence.h
  6601. * src/download_helper.cc
  6602. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6603. Made the upper value of --max-concurrent-downloads options unlimited.
  6604. * src/OptionHandlerFactory.cc
  6605. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6606. Fixed the bug that disk writer is not created even if it shares
  6607. same piece with the preceding file if the length of previous file
  6608. is 0.
  6609. * src/MultiDiskAdaptor.cc
  6610. * test/MultiDiskAdaptorTest.cc
  6611. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6612. In BitTorrent, Open files in read-only mode for hash check. After
  6613. that, re-open file in read/write mode only when the download is
  6614. not finished.
  6615. * src/AbstractDiskWriter.cc
  6616. * src/AbstractDiskWriter.h
  6617. * src/AbstractSingleDiskAdaptor.cc
  6618. * src/AbstractSingleDiskAdaptor.h
  6619. * src/BtCheckIntegrityEntry.cc
  6620. * src/DiskAdaptor.h
  6621. * src/DiskWriter.h
  6622. * src/MultiDiskAdaptor.cc
  6623. * src/MultiDiskAdaptor.h
  6624. * src/RequestGroup.cc
  6625. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6626. Added --http-auth-challenge option. If it is set to true(by
  6627. default), aria2 sends HTTP authorization header only when it is
  6628. requested by the server. If false is set, then authorization
  6629. header is always sent to the server. This is useful for servers
  6630. that don't respond 401 code when authentication is required.
  6631. There is an exception: if username and password are embedded in
  6632. URI, authorization header is always sent to the server regardless
  6633. of this option.
  6634. * src/AuthConfigFactory.cc
  6635. * src/HttpSkipResponseCommand.cc
  6636. * src/OptionHandlerFactory.cc
  6637. * src/prefs.cc
  6638. * src/prefs.h
  6639. * src/usage_text.h
  6640. * test/AuthConfigFactoryTest.cc
  6641. * test/HttpRequestTest.cc
  6642. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. * Release 1.2.0
  6644. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6645. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6646. Thanks to all translators.
  6647. * po/es.po
  6648. * po/ja.po
  6649. * po/ru.po
  6650. * po/uk.po
  6651. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6652. Call deleteSocketForReadCheck() before socket is closed.
  6653. * src/HttpListenCommand.cc
  6654. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6655. Defined virtual destructor for BObject.
  6656. * src/bencode.h
  6657. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Rewritten BDE to make it efficient.
  6659. * src/bencode.cc
  6660. * src/bencode.h
  6661. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6662. Removed function throw list.
  6663. * src/bencode.cc
  6664. * src/bencode.h
  6665. * test/BencodeTest.cc
  6666. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6667. Enclosed all URLs in double quotes in command-line examples.
  6668. * doc/aria2c.1.txt
  6669. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6670. Updated reference/see also section.
  6671. * README
  6672. * doc/aria2c.1.txt
  6673. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6674. Reorganized man page based on man man-pages.
  6675. * doc/aria2c.1.txt
  6676. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6677. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6678. because same documents are available in man page. Added
  6679. References section.
  6680. * README
  6681. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6682. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6683. PERFORMANCE PROFILE section.
  6684. * doc/aria2c.1.txt
  6685. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6686. Rewritten the section for configuration file.
  6687. * README
  6688. * doc/aria2c.1.txt
  6689. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6690. Fixed the segmentation fault during execution of choking algorithm
  6691. in leecher state because of broken compare operator
  6692. implementation.
  6693. * src/BtLeecherStateChoke.cc
  6694. * src/BtLeecherStateChoke.h
  6695. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6696. Open file in binary mode.
  6697. * src/CookieStorage.cc
  6698. * src/DHTSetup.cc
  6699. * src/DHTUtil.cc
  6700. * src/Netrc.cc
  6701. * src/NsCookieParser.cc
  6702. * src/ProtocolDetector.cc
  6703. * src/RequestGroupMan.cc
  6704. * src/Signature.cc
  6705. * src/bencode.cc
  6706. * src/download_helper.cc
  6707. * src/option_processing.cc
  6708. * test/CookieParserTest.cc
  6709. * test/DefaultBtProgressInfoFileTest.cc
  6710. * test/FileTest.cc
  6711. * test/GZipDecoderTest.cc
  6712. * test/RequestGroupManTest.cc
  6713. * test/SignatureTest.cc
  6714. * test/SingleFileAllocationIteratorTest.cc
  6715. * test/UriListParserTest.cc
  6716. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6717. Removed operator[] because it is ambiguous with built-in []
  6718. operator.
  6719. * src/array_fun.h
  6720. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6721. Fixed compile error
  6722. * src/OptionParser.cc
  6723. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6724. Added missing call to arrayWrapperConst
  6725. * test/array_funTest.cc
  6726. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6727. Use array_wrapper instead of array_ptr.
  6728. * src/DHTRoutingTableDeserializer.cc
  6729. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6730. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6731. * src/array_fun.h
  6732. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6733. Added array_wrapper template.
  6734. * src/array_fun.h
  6735. * test/array_funTest.cc
  6736. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6737. Use operator T* of array_ptr.
  6738. * src/OptionParser.cc
  6739. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6740. Use localhost instead of 127.0.0.1
  6741. * test/FtpConnectionTest.cc
  6742. * test/MSEHandshakeTest.cc
  6743. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6744. Added operator T*
  6745. * src/array_fun.h
  6746. * test/array_funTest.cc
  6747. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6748. Use dynamically allocated char array to detect memory access
  6749. violation.
  6750. * src/DHTRoutingTableDeserializer.cc
  6751. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6752. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6753. defined.
  6754. * src/PeerMessageUtil.cc
  6755. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6756. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6757. * configure.ac
  6758. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6759. Added a check to see struct sockaddr_in has sin_len member.
  6760. * configure.ac
  6761. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6762. Fixed buffer overrun.
  6763. * src/DHTRoutingTableDeserializer.cc
  6764. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6765. Added LL for long long int constant.
  6766. * test/FtpConnectionTest.cc
  6767. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6768. Casted to unsigned int to suppress compiler warning on netbsd.
  6769. * src/BtRuntime.h
  6770. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6771. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6772. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6773. type time_t.
  6774. * src/SimpleLogger.cc
  6775. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6776. Added test for FtpConnection::receiveSizeResponse().
  6777. * test/FtpConnectionTest.cc
  6778. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6779. Fix epoll error on the old kernel 2.6.8 or ealier.
  6780. * src/EpollEventPoll.cc
  6781. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6782. Use Util::parseLLInt instead of sscanf for portability. The
  6783. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6784. * src/FtpConnection.cc
  6785. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6786. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6787. block. It should not filter anything.
  6788. * src/BitfieldMan.cc
  6789. * src/ConsoleStatCalc.cc
  6790. * test/BitfieldManTest.cc
  6791. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6792. Fixed the bug that the boolean options that don't take arguments
  6793. don't work.
  6794. * src/OptionHandlerImpl.h
  6795. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6796. Fixed broken selected file BitTorrent download.
  6797. * src/MultiDiskAdaptor.cc
  6798. * test/MultiDiskAdaptorTest.cc
  6799. * test/MultiFileAllocationIteratorTest.cc
  6800. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6801. Fixed #define guard for EpollEventPoll
  6802. * src/EpollEventPoll.h
  6803. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6804. Wait 2 seconds. 1 second is sometimes not enough.
  6805. * test/TimeSeedCriteriaTest.cc
  6806. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6807. Use localhost instead of 127.0.0.1.
  6808. * test/DHTConnectionImplTest.cc
  6809. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6810. Suppressed compiler warning.
  6811. * src/AdaptiveURISelector.cc
  6812. * src/DefaultPieceStorage.cc
  6813. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6814. Defined virtual destructor.
  6815. * src/MetalinkParserState.h
  6816. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6817. Give NULL for second argument of getaddrinfo instead of "0".
  6818. * src/NameResolver.cc
  6819. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6820. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6821. included strptime doesn't parse data for this format.
  6822. * src/FtpConnection.cc
  6823. * test/FtpConnectionTest.cc
  6824. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6825. Removed tests giving -1 for unsigned argument.
  6826. * test/SingleFileDownloadContextTest.cc
  6827. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6828. Don't use sha256 in tests because it might not be supported by the
  6829. SSL library.
  6830. * test/MetalinkProcessorTest.cc
  6831. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6832. Removed tests giving -1 for unsigned argument.
  6833. * test/AlphaNumberDecoratorTest
  6834. * test/BitfieldManTest.cc
  6835. * test/DefaultBtContextTest.cc
  6836. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6837. Fixed compile error without libcares when epoll is available.
  6838. * src/EpollEventPoll.cc
  6839. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6840. Included fstream instead of iostream.
  6841. * test/SignatureTest.cc
  6842. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6843. Removed #include <algorithm>
  6844. * test/RequestGroupTest.cc
  6845. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6846. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6847. using RequestGroup::extractURIResult().
  6848. * src/AdaptiveURISelector.cc
  6849. * src/RequestGroup.cc
  6850. * src/RequestGroup.h
  6851. * test/RequestGroupTest.cc
  6852. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6853. Added tests for array_ptr.
  6854. * test/array_funTest.cc
  6855. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6856. Don't send ip parameter to a tracker if ip parameter is empty
  6857. string.
  6858. * src/DefaultBtAnnounce.cc
  6859. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6860. Adjusted line feed.
  6861. * src/version_usage.cc
  6862. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6863. Print tags, possible values when OptionHandlerException is caught.
  6864. * src/option_processing.cc
  6865. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6866. Changed the message for FatalException.
  6867. * src/OptionParser.cc
  6868. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6869. Documented --bt-external-ip option in man page. Updated man pages
  6870. for --proxy-method option.
  6871. * doc/aria2c.1.txt
  6872. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6873. Use GET method for FTP via HTTP proxy.
  6874. * src/FtpInitiateConnectionCommand.cc
  6875. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6876. Changed the default value of --proxy-method option from 'tunnel'
  6877. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6878. option.
  6879. * src/AbstractCommand.cc
  6880. * src/AbstractCommand.h
  6881. * src/FtpInitiateConnectionCommand.cc
  6882. * src/HttpDownloadCommand.cc
  6883. * src/HttpInitiateConnectionCommand.cc
  6884. * src/HttpInitiateConnectionCommand.h
  6885. * src/OptionHandlerFactory.cc
  6886. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6887. Initialized _logger
  6888. * src/SelectEventPoll.cc
  6889. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6890. Defined a copy constructor for the same type.
  6891. * src/SharedHandle.h
  6892. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6893. Added OptionParser::parseArg() which internally uses getopt_long
  6894. to parse command-line options. All command-line options are now
  6895. configured by OptionHandler. No manual editing of struct option*
  6896. is required any more.
  6897. * src/NameMatchOptionHandler.h
  6898. * src/OptionHandler.h
  6899. * src/OptionHandlerFactory.cc
  6900. * src/OptionHandlerImpl.h
  6901. * src/OptionParser.cc
  6902. * src/OptionParser.h
  6903. * src/array_fun.h
  6904. * src/main.cc
  6905. * src/option_processing.cc
  6906. * test/OptionHandlerTest.cc
  6907. * test/OptionParserTest.cc
  6908. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6909. Fixed configure error with --disable-epoll
  6910. * configure.ac
  6911. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6912. Fixed compile error when HAVE_EPOLL is not defined.
  6913. Fixed linker error on bigendian systems.
  6914. * src/SocketCore.cc
  6915. * src/SocketCore.h
  6916. * test/DefaultBtProgressInfoFileTest.cc
  6917. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6918. Added --bt-external-ip option. You can specify the external IP
  6919. address to report to a BitTorrent tracker. Although this function
  6920. is named 'external', it can accept any kind of IP addresses.
  6921. * src/DefaultBtAnnounce.cc
  6922. * src/OptionHandlerFactory.cc
  6923. * src/option_processing.cc
  6924. * src/prefs.cc
  6925. * src/prefs.h
  6926. * src/usage_text.h
  6927. * test/DefaultBtAnnounceTest.cc
  6928. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6929. Extracted the algorithm to find the longest incremental sequence
  6930. as max_sequence template.
  6931. * src/LongestSequencePieceSelector.cc
  6932. * src/a2algo.h
  6933. * test/Makefile.am
  6934. * test/a2algoTest.cc
  6935. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6936. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6937. * src/usage_text.h
  6938. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6939. Updated doc for --uri-selector, --http-server-listen-port and
  6940. --enable-http-server option. Documented --event-poll option.
  6941. * doc/aria2c.1.txt
  6942. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6943. Updated doc for --enable-http-server.
  6944. * src/usage_text.h
  6945. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6946. Documented --http-server-listen-port and --enable-http-server in
  6947. man page.
  6948. * doc/aria2c.1.txt
  6949. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6950. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6951. translations. Thanks to all translators.
  6952. * po/es.po
  6953. * po/id.po
  6954. * po/it.po
  6955. * po/ru.po
  6956. * po/uk.po
  6957. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. Bump up version number to 1.2.0
  6959. * configure.ac
  6960. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6961. BtContext::getAnnounceTiers() now returns const reference.
  6962. * src/BtContext.h
  6963. * src/DefaultBtContext.cc
  6964. * src/DefaultBtContext.h
  6965. * test/MockBtContext.h
  6966. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6967. Change the number of retries for tracker request based on the
  6968. number of available tracker in a torrent file.
  6969. * src/TrackerWatcherCommand.cc
  6970. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6971. Added _maxTries property to RequestGroup and assign the option
  6972. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6973. RequestGroup::getMaxTries() instead of
  6974. Option::getAsInt(PREF_MAX_TRIES).
  6975. * src/AbstractCommand.cc
  6976. * src/RequestGroup.cc
  6977. * src/RequestGroup.h
  6978. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6979. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6980. Mandriva. I modified the patch: make RequestGroup have the
  6981. timeout value and AdaptiveURISelector directly modifies that
  6982. value.
  6983. * src/AbstractCommand.cc
  6984. * src/AdaptiveURISelector.cc
  6985. * src/AdaptiveURISelector.h
  6986. * src/FtpNegotiationCommand.cc
  6987. * src/RequestGroup.cc
  6988. * src/RequestGroup.h
  6989. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6990. Fixed compiler warning
  6991. * test/IteratableChecksumValidatorTest.cc
  6992. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6993. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6994. integrated downloads. This PieceSelector subclass finds the
  6995. longest continuous sequence in the available missing pieces and
  6996. selects the last index of such sequence. This makes HTTP/FTP
  6997. connections less interrupted by the pieces obtained by BitTorrent
  6998. peers.
  6999. * src/DefaultPieceStorage.cc
  7000. * src/DefaultPieceStorage.h
  7001. * src/LongestSequencePieceSelector.cc
  7002. * src/LongestSequencePieceSelector.h
  7003. * src/Makefile.am
  7004. * src/PieceSelector.h
  7005. * src/RarestPieceSelector.h
  7006. * src/RequestGroup.cc
  7007. * test/BtDependencyTest.cc
  7008. * test/DefaultPieceStorageTest.cc
  7009. * test/IteratableChecksumValidatorTest.cc
  7010. * test/LongestSequencePieceSelectorTest.cc
  7011. * test/Makefile.am
  7012. * test/SegmentManTest.cc
  7013. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Fixed the bug that the average speed is wrong in
  7015. http/ftp/BitTorrent integrated download. Only the download bytes
  7016. in BitTorrent were considered.
  7017. * src/RequestGroup.cc
  7018. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7019. Choose port for BitTorrent/DHT randomly from the specified range.
  7020. * src/DHTConnectionImpl.cc
  7021. * src/PeerListenCommand.cc
  7022. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7023. Send HTTP Authorization header only if it is requested by the
  7024. server(response 401). There are some exceptions. The authorization
  7025. header for proxy is always sent if it is available without request
  7026. by the server. If username/password is specified in the URI, it
  7027. is immediately sent to the server without request by the server.
  7028. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7029. SharedHandle<AuthConfig>().
  7030. NetrcAuthResolver::resolveAuthConfig() returns
  7031. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7032. * src/AbstractAuthResolver.cc
  7033. * src/AbstractProxyRequestCommand.cc
  7034. * src/AuthConfigFactory.cc
  7035. * src/AuthConfigFactory.h
  7036. * src/HttpConnection.cc
  7037. * src/HttpRequest.cc
  7038. * src/HttpRequest.h
  7039. * src/HttpResponse.cc
  7040. * src/HttpResponseCommand.cc
  7041. * src/HttpSkipResponseCommand.cc
  7042. * test/AuthConfigFactoryTest.cc
  7043. * test/HttpRequestTest.cc
  7044. * test/HttpResponseTest.cc
  7045. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7046. Remove leading "--" from help keyword and a substring after "="
  7047. from help keyword, so that one can query options by '-h--max-' or
  7048. '-hmax-peers=10'.
  7049. * src/option_processing.cc
  7050. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7051. Rewritten PStringVisitor and its implementation.
  7052. * src/PStringBuildVisitor.cc
  7053. * src/PStringBuildVisitor.h
  7054. * src/PStringDatum.h
  7055. * src/PStringNumLoop.h
  7056. * src/PStringSegment.cc
  7057. * src/PStringSegment.h
  7058. * src/PStringSelect.h
  7059. * src/PStringVisitor.h
  7060. * src/download_helper.cc
  7061. * test/PStringBuildVisitorTest.cc
  7062. * test/ParameterizedStringParserTest.cc
  7063. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7064. Persist connection between the built-in HTTP server and a client
  7065. if a client supports keep-alive. Fixed the bug that aria2 exits
  7066. when the HTTP server receives EOF from a client.
  7067. * src/HttpServer.cc
  7068. * src/HttpServer.h
  7069. * src/HttpServerCommand.cc
  7070. * src/HttpServerCommand.h
  7071. * src/HttpServerResponseCommand.cc
  7072. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7073. Added experimental built-in HTTP server. Currently, when a client
  7074. accesses to the server, it responds with the current download
  7075. progress. By default, it is disabled. To enable the server, give
  7076. --enable-http-server option. To change the default port number
  7077. for the server to listen to, use --http-server-listen-port option.
  7078. The response HTML is very simple and refreshes it self each 1
  7079. second. Because of this refresh, you see flicker in normal web
  7080. browser such as Firefox. I recommend to use console-based browser
  7081. such as elinks, w3m. To connect to the server, run 'elinks
  7082. http://localhost:6800/' while running aria2. Please replace port
  7083. number '6800'(which is default) with your preference.
  7084. * src/DownloadEngineFactory.cc
  7085. * src/HttpHeader.cc
  7086. * src/HttpHeader.h
  7087. * src/HttpHeaderProcessor.cc
  7088. * src/HttpHeaderProcessor.h
  7089. * src/HttpListenCommand.cc
  7090. * src/HttpListenCommand.h
  7091. * src/HttpServer.cc
  7092. * src/HttpServer.h
  7093. * src/HttpServerCommand.cc
  7094. * src/HttpServerCommand.h
  7095. * src/HttpServerResponseCommand.cc
  7096. * src/HttpServerResponseCommand.h
  7097. * src/Makefile.am
  7098. * src/OptionHandlerFactory.cc
  7099. * src/Util.cc
  7100. * src/Util.h
  7101. * src/help_tags.h
  7102. * src/option_processing.cc
  7103. * src/prefs.cc
  7104. * src/prefs.h
  7105. * src/usage_text.h
  7106. * test/HttpHeaderProcessorTest.cc
  7107. * test/UtilTest.cc
  7108. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7109. Removed.
  7110. * src/CheckIntegrityMan.cc
  7111. * src/FileAllocationMan.cc
  7112. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7113. Made (piece) hash check sequential for each RequestGroup because
  7114. simultaneous hash check is slower than sequential execution.
  7115. * src/CheckIntegrityCommand.cc
  7116. * src/CheckIntegrityDispatcherCommand.cc
  7117. * src/CheckIntegrityDispatcherCommand.h
  7118. * src/CheckIntegrityMan.h
  7119. * src/ConsoleStatCalc.cc
  7120. * src/DownloadCommand.cc
  7121. * src/DownloadEngine.cc
  7122. * src/DownloadEngine.h
  7123. * src/DownloadEngineFactory.cc
  7124. * src/Makefile.am
  7125. * src/Makefile.in
  7126. * src/RequestGroup.cc
  7127. * src/StatCalc.h
  7128. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7129. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7130. SequentialDispatcherCommand.
  7131. * src/FileAllocationDispatcherCommand.cc
  7132. * src/SequentialDispatcherCommand.h
  7133. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7134. Rewritten FileAllocationDispatcherCommand using brand new
  7135. SequentialDispatcherCommand.
  7136. * src/DownloadEngineFactory.cc
  7137. * src/FileAllocationCommand.cc
  7138. * src/FileAllocationDispatcherCommand.cc
  7139. * src/FileAllocationDispatcherCommand.h
  7140. * src/Makefile.am
  7141. * src/SequentialDispatcherCommand.h
  7142. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7143. Replaced FileAllocationMan with
  7144. SequentialPicker<FileAllocationEntry>.
  7145. * src/BtCheckIntegrityEntry.cc
  7146. * src/ConsoleStatCalc.cc
  7147. * src/DownloadEngine.cc
  7148. * src/DownloadEngine.h
  7149. * src/DownloadEngineFactory.cc
  7150. * src/FileAllocationCommand.cc
  7151. * src/FileAllocationDispatcherCommand.cc
  7152. * src/FileAllocationMan.h
  7153. * src/Makefile.am
  7154. * src/SequentialPicker.h
  7155. * src/StatCalc.h
  7156. * src/StreamCheckIntegrityEntry.cc
  7157. * test/Makefile.am
  7158. * test/SequentialPickerTest.cc
  7159. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7160. Added doc for adaptive URI selector.
  7161. * doc/aria2c.1.txt
  7162. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7163. Added doc for adaptive URI selector.
  7164. * src/usage_text.h
  7165. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7166. Added doc for --bt-max-peers option.
  7167. * doc/aria2c.1.txt
  7168. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7169. Added doc for --bt-hash-check-seed option.
  7170. * doc/aria2c.1.txt
  7171. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7172. Documented exit codes.
  7173. * doc/aria2c.1.txt
  7174. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7175. Added --bt-max-peers option to specify the maximum number of peers
  7176. per torrent. 0 means unlimited number of peers.
  7177. * src/ActivePeerConnectionCommand.cc
  7178. * src/BtRuntime.h
  7179. * src/DefaultPeerStorage.cc
  7180. * src/DefaultPeerStorage.h
  7181. * src/OptionHandlerFactory.cc
  7182. * src/RequestGroup.cc
  7183. * src/option_processing.cc
  7184. * src/prefs.cc
  7185. * src/prefs.h
  7186. * src/usage_text.h
  7187. * test/DefaultPeerStorageTest.cc
  7188. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7189. Added --bt-hash-check-seed option. If true is given to this
  7190. option, after hash check using --check-integrity option and file
  7191. is complete, continue to seed file. If you want to check file and
  7192. download it only when it is damaged or incomplete, set this option
  7193. to false. This option has effect only on BitTorrent download.
  7194. The default value is true(This is the same behavior with the
  7195. previous release).
  7196. * src/BtCheckIntegrityEntry.cc
  7197. * src/OptionHandlerFactory.cc
  7198. * src/option_processing.cc
  7199. * src/prefs.cc
  7200. * src/prefs.h
  7201. * src/usage_text.h
  7202. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7203. Updated copyright year.
  7204. * src/version_usage.cc
  7205. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7206. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7207. * doc/aria2c.1.txt
  7208. * src/usage_text.h
  7209. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7210. Made the max value of split option unlimited.
  7211. * doc/aria2c.1.txt
  7212. * src/OptionHandlerFactory.cc
  7213. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7214. Fixed compile warning/error.
  7215. * src/DownloadResult.h
  7216. * src/HttpDownloadCommand.cc
  7217. * src/ServerStat.cc
  7218. * test/RequestGroupTest.cc
  7219. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7220. Added --event-poll option to select the method for polling events.
  7221. The available methods are "select" and "epoll". "epoll" is
  7222. available on Linux only. The earlier release has the compile
  7223. option to choose from these methods.
  7224. * configure.ac
  7225. * src/RequestGroupMan.cc
  7226. * src/OptionHandlerFactory.cc
  7227. * src/EpollEventPoll.h
  7228. * src/StreamFileAllocationEntry.cc
  7229. * src/a2io.h
  7230. * src/SelectEventPoll.h
  7231. * src/option_processing.cc
  7232. * src/prefs.h
  7233. * src/EpollEventPoll.cc
  7234. * src/EventPoll.h
  7235. * src/SocketCore.h
  7236. * src/Makefile.am
  7237. * src/main.cc
  7238. * src/DownloadEngine.h
  7239. * src/SelectEventPoll.cc
  7240. * src/DownloadEngine.cc
  7241. * src/SocketCore.cc
  7242. * src/DownloadEngineFactory.cc
  7243. * src/Makefile.in
  7244. * src/prefs.cc
  7245. * src/usage_text.h
  7246. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7247. Included RecoverableException.h from main.cc
  7248. * src/main.cc
  7249. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7250. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7251. now returns last error encountered in the HTTP/FTP downloads as a
  7252. exit status value. If all downloads finished successfully, aria2
  7253. returns 0. The error code is defined in src/DownloadResult.h.
  7254. The error occurred in the download currently in progress is not
  7255. reported as a last error. If no error has encountered but there
  7256. are in progress or waiting downloads, aria2 returns 7.
  7257. * src/AbstractCommand.cc
  7258. * src/DlAbortEx.h
  7259. * src/DlRetryEx.h
  7260. * src/DownloadCommand.cc
  7261. * src/DownloadFailureException.h
  7262. * src/DownloadResult.h
  7263. * src/FtpNegotiationCommand.cc
  7264. * src/HttpSkipResponseCommand.cc
  7265. * src/Makefile.am
  7266. * src/MultiUrlRequestInfo.cc
  7267. * src/MultiUrlRequestInfo.h
  7268. * src/RecoverableException.h
  7269. * src/RequestGroup.cc
  7270. * src/RequestGroup.h
  7271. * src/RequestGroupMan.cc
  7272. * src/RequestGroupMan.h
  7273. * src/URIResult.cc
  7274. * src/URIResult.h
  7275. * src/main.cc
  7276. * src/option_processing.cc
  7277. * test/RequestGroupTest.cc
  7278. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7279. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7280. patch adds AdaptiveURISelector, which selects one of the bests
  7281. mirrors for first and reserved connections. For supplementary
  7282. ones, it returns mirrors which has not been tested yet, and if
  7283. each of them already tested, returns mirrors which has to be
  7284. tested again. Otherwise, it doesn't return anymore mirrors.
  7285. * src/AdaptiveURISelector.cc
  7286. * src/AdaptiveURISelector.h
  7287. * src/FtpNegotiationCommand.cc
  7288. * src/HttpResponseCommand.cc
  7289. * src/Makefile.am
  7290. * src/Makefile.in
  7291. * src/OptionHandlerFactory.cc
  7292. * src/RequestGroup.cc
  7293. * src/RequestGroup.h
  7294. * src/RequestGroupMan.cc
  7295. * src/ServerStat.cc
  7296. * src/ServerStat.h
  7297. * src/ServerStatMan.cc
  7298. * src/SpeedCalc.cc
  7299. * src/URISelector.h
  7300. * src/prefs.cc
  7301. * src/prefs.h
  7302. * test/RequestGroupManTest.cc
  7303. * test/ServerStatManTest.cc
  7304. * test/ServerStatTest.cc
  7305. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7306. Fixed unit test error.
  7307. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7308. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7309. * Release 1.1.2
  7310. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7311. Updated Russian translation. Thanks to the translators.
  7312. * po/ru.po
  7313. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7314. Added the description of --use-head option to man page.
  7315. * doc/aria2c.1.txt
  7316. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7317. Bump up version number to 1.1.2
  7318. * configure.ac
  7319. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7320. Added --use-head option to toggle whether HEAD method should be
  7321. used in the first HTTP request. By default aria2 uses HEAD method
  7322. as the first request. When the server doesn't recognize HEAD, then
  7323. give aria2 --use-head=false to force aria2 to use GET method
  7324. instead.
  7325. * src/OptionHandlerFactory.cc
  7326. * src/RequestGroupMan.cc
  7327. * src/option_processing.cc
  7328. * src/prefs.cc
  7329. * src/prefs.h
  7330. * src/usage_text.h
  7331. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7332. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7333. message is received before CHOKE message. The old implementation
  7334. doen't clear the use-bit of the piece when recieved REJECT
  7335. message.
  7336. * src/DefaultBtMessageDispatcher.cc
  7337. * test/DefaultBtMessageDispatcherTest.cc
  7338. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7339. * Release 1.1.1
  7340. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7341. Bump up version number to 1.1.1.
  7342. * configure.ac
  7343. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7344. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7345. is printed repeatedly.
  7346. * src/ConsoleStatCalc.cc
  7347. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7348. * Release 1.1.0
  7349. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7350. Added ifdef clause for conditional compilation.
  7351. * src/main.cc
  7352. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7353. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7354. translations. Thanks to all translators.
  7355. * po/ja.po
  7356. * po/ru.po
  7357. * po/uk.po
  7358. * po/zh_CN.po
  7359. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7360. Added the preceding ">>> " before the message "Printing the
  7361. contents of file..." to make the output more readable.
  7362. * src/main.cc
  7363. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7364. Added try-catch block in the loop in showFiles() to continue the
  7365. operation even if the exception occurred in one file.
  7366. * src/main.cc (showFiles)
  7367. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7368. Made messages in showFiles() translatable.
  7369. * po/aria2.pot
  7370. * src/main.cc
  7371. * src/message.h
  7372. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7373. Print the contents of Torrent/Metalink files are printed without
  7374. -T/-M options.
  7375. * src/main.cc
  7376. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7377. Escaped '--' with '\--'
  7378. * README
  7379. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7380. Updated "How to build" section in README. Mentioned about
  7381. --with-ca-bundle compile option.
  7382. * README
  7383. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7384. Bump up version number to 1.1.0.
  7385. * configure.ac
  7386. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7387. Added a note for --dht-listen-port option.
  7388. * doc/aria2c.1.txt
  7389. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7390. Update doc for --realtime-chunk-checksum option.
  7391. * doc/aria2c.1.txt
  7392. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7393. Update doc for --realtime-chunk-checksum option.
  7394. * src/usage_text.h
  7395. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7396. Updated French, Japanese, Russian and Ukrainian translations.
  7397. Thanks to all translators.
  7398. * po/fr.po
  7399. * po/ja.po
  7400. * po/ru.po
  7401. * po/uk.po
  7402. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7403. Renamed aria2c.pot to aria2.pot
  7404. * po/aria2.pot
  7405. * po/aria2c.pot: Removed.
  7406. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7407. Removed MetaEntry.h
  7408. * src/Makefile.am
  7409. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7410. Rename file by appending digits if a local file exists and its
  7411. file size is larger than that of remote file with --continue
  7412. option. The old implementation just throws exception in such case.
  7413. * src/RequestGroup.cc
  7414. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7415. Fixed the bug that download progress summary is not printed in the
  7416. interval specified by the option.
  7417. * src/ConsoleStatCalc.cc
  7418. * src/ConsoleStatCalc.h
  7419. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7420. Fixed compiler warning
  7421. * src/Cookie.cc
  7422. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7423. Fixed the cookie implementation based on RFC2965.
  7424. Now if a value in domain field is not started with dot, then
  7425. prepend dot. That means a cookie with domain=sf.net is sent to
  7426. wiki.sf.net.
  7427. * src/Cookie.cc
  7428. * test/CookieParserTest.cc
  7429. * test/CookieStorageTest.cc
  7430. * test/CookieTest.cc
  7431. * test/NsCookieParserTest.cc
  7432. * test/Sqlite3MozCookieParserTest.cc
  7433. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7434. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7435. is enabled and the server doesn't support keep-alive.
  7436. * src/AbstractCommand.cc
  7437. * src/DownloadCommand.cc
  7438. * src/HttpDownloadCommand.cc
  7439. * src/HttpDownloadCommand.h
  7440. * src/HttpResponseCommand.cc
  7441. * src/Request.cc
  7442. * src/Request.h
  7443. * test/RequestTest.cc
  7444. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7445. Removed Dictionary/List/Data and its related classes.
  7446. * src/BencodeVisitor.cc: Removed.
  7447. * src/BencodeVisitor.h: Removed.
  7448. * src/Data.cc: Removed.
  7449. * src/Data.h: Removed.
  7450. * src/Dictionary.cc: Removed.
  7451. * src/Dictionary.h: Removed.
  7452. * src/List.cc: Removed.
  7453. * src/List.h: Removed.
  7454. * src/Makefile.am
  7455. * src/MetaEntry.h: Removed.
  7456. * src/MetaEntryVisitor.h: Removed.
  7457. * src/MetaFileUtil.cc: Removed.
  7458. * src/MetaFileUtil.h: Removed.
  7459. * test/BencodeVisitorTest.cc: Removed.
  7460. * test/DataTest.cc: Removed.
  7461. * test/DictionaryTest.cc: Removed.
  7462. * test/ListTest.cc: Removed.
  7463. * test/Makefile.am
  7464. * test/MetaFileUtilTest.cc: Removed.
  7465. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7466. Removed include of MetaEntry.h
  7467. * test/DHTMessageTrackerEntryTest.cc
  7468. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7469. Use BDE instead of Dictionary/List/Data.
  7470. * src/AnnounceList.cc
  7471. * src/AnnounceList.h
  7472. * test/AnnounceListTest.cc
  7473. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7474. Use BDE instead of Dictionary/List/Data.
  7475. * src/DHTAbstractMessage.cc
  7476. * src/DHTAbstractMessage.h
  7477. * src/DHTAnnouncePeerMessage.cc
  7478. * src/DHTAnnouncePeerMessage.h
  7479. * src/DHTAnnouncePeerReplyMessage.cc
  7480. * src/DHTAnnouncePeerReplyMessage.h
  7481. * src/DHTFindNodeMessage.cc
  7482. * src/DHTFindNodeMessage.h
  7483. * src/DHTFindNodeReplyMessage.cc
  7484. * src/DHTFindNodeReplyMessage.h
  7485. * src/DHTGetPeersMessage.cc
  7486. * src/DHTGetPeersMessage.h
  7487. * src/DHTGetPeersReplyMessage.cc
  7488. * src/DHTGetPeersReplyMessage.h
  7489. * src/DHTMessageFactory.h
  7490. * src/DHTMessageFactoryImpl.cc
  7491. * src/DHTMessageFactoryImpl.h
  7492. * src/DHTMessageReceiver.cc
  7493. * src/DHTMessageTracker.cc
  7494. * src/DHTMessageTracker.h
  7495. * src/DHTPingMessage.cc
  7496. * src/DHTPingMessage.h
  7497. * src/DHTPingReplyMessage.cc
  7498. * src/DHTPingReplyMessage.h
  7499. * src/DHTQueryMessage.cc
  7500. * src/DHTQueryMessage.h
  7501. * src/DHTResponseMessage.cc
  7502. * src/DHTResponseMessage.h
  7503. * test/DHTAnnouncePeerMessageTest.cc
  7504. * test/DHTAnnouncePeerReplyMessageTest.cc
  7505. * test/DHTFindNodeMessageTest.cc
  7506. * test/DHTFindNodeReplyMessageTest.cc
  7507. * test/DHTGetPeersMessageTest.cc
  7508. * test/DHTGetPeersReplyMessageTest.cc
  7509. * test/DHTMessageFactoryImplTest.cc
  7510. * test/DHTMessageTrackerTest.cc
  7511. * test/DHTPingMessageTest.cc
  7512. * test/DHTPingReplyMessageTest.cc
  7513. * test/MockDHTMessageFactory.h
  7514. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7515. Added tests the case where length < 0 is specified.
  7516. * test/BencodeTest.cc
  7517. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7518. Fixed memory leak in decoderawstring()
  7519. * src/bencode.cc
  7520. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7521. Added missing #ifdef guard. Added uc() function for String and
  7522. removeKey() for Dict.
  7523. * src/bencode.cc
  7524. * src/bencode.h
  7525. * test/BencodeTest.cc
  7526. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7527. Use BDE instead of Dictionary/List/Data.
  7528. * src/HandshakeExtensionMessage.cc
  7529. * src/HandshakeExtensionMessage.h
  7530. * test/HandshakeExtensionMessageTest.cc
  7531. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7532. Added --max-overall-upload-limit option. This option limits the
  7533. overall upload speed. Stated in help message that the existing
  7534. --max-upload-limit option limits the upload speed per each
  7535. torrent. Man page is also updated.
  7536. * doc/aria2c.1.txt
  7537. * src/DefaultBtMessageDispatcher.cc
  7538. * src/DefaultBtMessageDispatcher.h
  7539. * src/OptionHandlerFactory.cc
  7540. * src/PeerInteractionCommand.cc
  7541. * src/option_processing.cc
  7542. * src/prefs.cc
  7543. * src/prefs.h
  7544. * src/usage_text.h
  7545. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7546. Use BDE instead of Dictionary/List/Data classes.
  7547. * src/CompactPeerListProcessor.cc
  7548. * src/CompactPeerListProcessor.h
  7549. * src/DefaultBtAnnounce.cc
  7550. * src/DefaultBtContext.cc
  7551. * src/DefaultBtContext.h
  7552. * src/DefaultPeerListProcessor.cc
  7553. * src/DefaultPeerListProcessor.h
  7554. * src/DelegatingPeerListProcessor.cc
  7555. * src/DelegatingPeerListProcessor.h
  7556. * src/PeerListProcessor.h
  7557. * src/UTPexExtensionMessage.cc
  7558. * src/Util.h
  7559. * src/message.h
  7560. * test/DefaultBtContextTest.cc
  7561. * test/DefaultPeerListProcessorTest.cc
  7562. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7563. Added bencode helper functions and BDE class.
  7564. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7565. * src/Makefile.am
  7566. * src/bencode.cc
  7567. * src/bencode.h
  7568. * test/BencodeTest.cc
  7569. * test/Makefile.am
  7570. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7571. Fixed the bug that bad URI is sent to the tracker when the announe
  7572. URI in torrent file includes query.
  7573. * src/DefaultBtAnnounce.cc
  7574. * test/DefaultBtAnnounceTest.cc
  7575. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7576. Added Option::blank().
  7577. Use !Option::blank(name) instead of Option::defined(name) for
  7578. the options that take filename.
  7579. * src/MultiUrlRequestInfo.cc
  7580. * src/Option.cc
  7581. * src/Option.h
  7582. * src/main.cc
  7583. * src/option_processing.cc
  7584. * test/OptionTest.cc
  7585. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7586. Documented the default value of --check-certificate option in man
  7587. page.
  7588. * doc/aria2c.1.txt
  7589. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7590. Enabled --check-certificate by default. Added compile
  7591. time(configure) option --with-ca-bundle to specify CA bundle.
  7592. Warn if --check-certificate=true and --ca-certificate is not
  7593. specified or loading CA certificate is failed.
  7594. * configure.ac
  7595. * src/MultiUrlRequestInfo.cc
  7596. * src/OptionHandlerFactory.cc
  7597. * src/message.h
  7598. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7599. Mentioned https tag in help option.
  7600. * doc/aria2c.1.txt
  7601. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7602. Added `https' tag to help option category. Added https tag to
  7603. --ca-certificate, --certificate, --check-certificate and
  7604. --private-key option.
  7605. * src/OptionHandlerFactory.cc
  7606. * src/help_tags.h
  7607. * src/option_processing.cc
  7608. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7609. Changed the package name from `aria2c' to `aria2' in order to fix
  7610. the packaging issue in Debian and Fedora. The name of the
  7611. executable is not changed.
  7612. * configure.ac
  7613. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7614. Fixed typos
  7615. * src/usage_text.h
  7616. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7617. Fixed typos and updated doc.
  7618. * README
  7619. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7620. Fixed typos
  7621. * doc/aria2c.1.txt
  7622. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7623. Fixed typos
  7624. * src/usage_text.h
  7625. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7626. Print a message when no files to download.
  7627. * src/download_helper.cc
  7628. * src/main.cc
  7629. * src/message.h
  7630. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7631. RFC3986 complied Percent-Encoding(urlencode).
  7632. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7633. ones.
  7634. * src/Request.cc
  7635. * src/Util.cc
  7636. * src/Util.h
  7637. * test/BtHandshakeMessageTest.cc
  7638. * test/DefaultBtAnnounceTest.cc
  7639. * test/DefaultBtContextTest.cc
  7640. * test/RequestTest.cc
  7641. * test/UtilTest.cc
  7642. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7643. Fixed the bug that prevents aria2 from downloading 0-length files
  7644. via HTTP/FTP.
  7645. * src/DefaultBtContext.cc
  7646. * src/DefaultBtContext.h
  7647. * src/DownloadContext.h
  7648. * src/FtpNegotiationCommand.cc
  7649. * src/HttpResponseCommand.cc
  7650. * src/HttpResponseCommand.h
  7651. * src/RequestGroup.cc
  7652. * src/SingleFileDownloadContext.cc
  7653. * src/SingleFileDownloadContext.h
  7654. * test/BtPostDownloadHandlerTest.cc
  7655. * test/MetalinkPostDownloadHandlerTest.cc
  7656. * test/MockBtContext.h
  7657. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7658. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7659. * src/option_processing.cc
  7660. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7661. Applied aria2-1.0.1-mingw.patch.
  7662. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7663. mingw.
  7664. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7665. * src/SocketCore.cc
  7666. * src/a2netcompat.h
  7667. * test/SocketCoreTest.cc
  7668. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7669. * Release 1.0.1
  7670. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7671. Updated Ukrainian and Norwegian Nynorsk translations.
  7672. Thanks to all translators.
  7673. * po/nn.po
  7674. * po/uk.po
  7675. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7676. Don't show download result when -S option is used.
  7677. * src/main.cc
  7678. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7679. Bump up version number to 1.0.1
  7680. * configure.ac
  7681. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7682. Closed files after the test cases in MultiDiskWriterTest::
  7683. testResetDiskWriterEntries(). This will fix the unit test error
  7684. in mingw32 build.
  7685. * test/MultiDiskWriterTest.cc
  7686. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7687. Use HEAD method to get file size from HTTP server for segmented
  7688. downloading.
  7689. The request to the BitTorrent Tracker always uses GET method because
  7690. the response of the tracker is small and it doesn't need segmented
  7691. download.
  7692. * src/FtpNegotiationCommand.cc
  7693. * src/HttpRequest.cc
  7694. * src/HttpResponseCommand.cc
  7695. * src/HttpSkipResponseCommand.cc
  7696. * src/RequestGroup.cc
  7697. * src/RequestGroup.h
  7698. * src/TrackerWatcherCommand.cc
  7699. * test/HttpRequestTest.cc
  7700. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7701. Fixed the bug that causes floating exception when -T option is used and
  7702. no URIs are given.
  7703. * src/download_helper.cc
  7704. * test/DownloadHelperTest.cc
  7705. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7706. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7707. errors in MinGW:
  7708. Closed file after saving server stats (RequestGroupMan.cc)
  7709. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7710. Ignored case & handled 2-digit years (strptime.c)
  7711. Added missing suseconds_t definition (a2time.h)
  7712. Fixed socket CLOSE() define (SocketCore.cc)
  7713. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7714. Changed utime() test values from x000 to x00000 as MinGW failed on
  7715. values less than timezone offset from Unix epoch
  7716. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7717. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7718. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7719. handle negative dates (CookieParserTest.cc)
  7720. * src/a2time.h
  7721. * src/FtpConnection.cc
  7722. * src/RequestGroupMan.cc
  7723. * src/SocketCore.cc
  7724. * src/strptime.c
  7725. * test/CookieParserTest.cc
  7726. * test/CopyDiskAdaptorTest.cc
  7727. * test/FileTest.cc
  7728. * test/FtpConnectionTest.cc
  7729. * test/MultiDiskAdaptorTest.cc
  7730. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7731. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7732. * doc/aria2c.1.txt
  7733. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7734. * Release 1.0.0
  7735. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7736. Added '~' to reserved characters.
  7737. * src/Util.cc
  7738. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7739. Do not urlencode Request::url in setUrl() because we want unmodified
  7740. URL using Request::getUrl()
  7741. * src/Request.cc
  7742. * src/Request.h
  7743. * test/RequestTest.cc
  7744. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7745. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7746. Thanks to all translators.
  7747. * po/bg.po
  7748. * po/fr.po
  7749. * po/ja.po
  7750. * po/ru.po
  7751. * po/uk.po
  7752. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7753. Bump up version number to 1.0.0
  7754. * configure.ac
  7755. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7756. Added nosqlite3 build to build_test.sh.
  7757. Renamed noxml as expat.
  7758. * build_test.sh
  7759. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7760. Updated INPUT FILE section.
  7761. * doc/aria2c.1.txt
  7762. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7763. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7764. on big endian systems because test .aria2 files are made for little
  7765. endian systems.
  7766. * test/DefaultBtProgressInfoFileTest.cc
  7767. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7768. Dropped ares support.
  7769. * README
  7770. * configure.ac
  7771. * m4/libares.m4: Removed.
  7772. * src/AsyncNameResolver.cc
  7773. * src/Makefile.am
  7774. * test/Makefile.am
  7775. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7776. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7777. Removed const qualifier from DiskWriter::size().
  7778. * src/AbstractDiskWriter.cc
  7779. * src/AbstractDiskWriter.h
  7780. * src/ByteArrayDiskWriter.cc
  7781. * src/ByteArrayDiskWriter.h
  7782. * src/DiskWriter.h
  7783. * test/ByteArrayDiskWriterTest.cc
  7784. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7785. Fixed the bug that causes segmentation fault/bus error during executing
  7786. choking algorithm while seeding. This is caused by improper
  7787. implementation of compare function which returns inconsistent results
  7788. depending on the timing of last unchoke.
  7789. * src/BtSeederStateChoke.cc
  7790. * src/BtSeederStateChoke.h
  7791. * src/DefaultPeerStorage.cc
  7792. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7793. Removed TODO
  7794. * TODO
  7795. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7796. Added a section that explains how to pass argument to options that
  7797. takes optional arguments with its short form.
  7798. * doc/aria2c.1.txt
  7799. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7800. Added -u for the short form of --max-upload-limit option.
  7801. * doc/aria2c.1.txt
  7802. * src/option_processing.cc
  7803. * src/usage_text.h
  7804. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7805. Added -V for the short form of --check-integrity option.
  7806. Now the argument of --check-integrity option is optional:
  7807. if it is omitted, it is evaluated as true.
  7808. * doc/aria2c.1.txt
  7809. * src/option_processing.cc
  7810. * src/usage_text.h
  7811. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7812. Made the default value of --ftp-pasv option set to true and it can take
  7813. true/false values.
  7814. * src/OptionHandlerFactory.cc
  7815. * src/option_processing.cc
  7816. * src/usage_text.h
  7817. * doc/aria2c.1.txt
  7818. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7819. Given custom random number generator to std::random_shuffle.
  7820. * src/AnnounceList.cc
  7821. * src/BtLeecherStateChoke.cc
  7822. * src/BtSeederStateChoke.cc
  7823. * src/DefaultBtRequestFactory.cc
  7824. * src/MetalinkEntry.cc
  7825. * src/RarestPieceSelector.cc
  7826. * src/SimpleRandomizer.cc
  7827. * src/SimpleRandomizer.h
  7828. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7829. Now the default value of --enable-direct-io is true.
  7830. * src/OptionHandlerFactory.cc
  7831. * doc/aria2c.1.txt
  7832. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7833. Erase peer before executing onReturningPeer and onErasingPeer
  7834. because choking algorithm called from onReturningPeer doesn't
  7835. like erasing peer in the active peer list.
  7836. * src/DefaultPeerStorage.cc
  7837. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7838. Instead of creating special filename in createDownloadResult() if
  7839. inMemoryDownload() is true, now it is done in getFilePath().
  7840. * src/RequestGroup.cc
  7841. * test/RequestGroupTest.cc
  7842. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7843. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7844. processed in memory. This is the fix for previous comment out.
  7845. * src/MemoryBufferPreDownloadHandler.cc
  7846. * src/RequestGroup.cc
  7847. * src/RequestGroup.h
  7848. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7849. Commented out the code which sets virtual directory path "[MEMORY]"
  7850. propagate directory to store to following RequestGroup.
  7851. * src/MemoryBufferPreDownloadHandler.cc
  7852. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7853. Bump up version number to 1.0.0b
  7854. * configure.ac
  7855. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7856. Added input_uris.txt to EXTRA_DIST
  7857. * test/Makefile.am
  7858. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7859. Removed PeerObject.h from Makefile.am
  7860. * src/Makefile.am
  7861. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7862. Avoid slow seeding
  7863. * src/PeerInteractionCommand.cc
  7864. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7865. Updated usage for -i option.
  7866. * src/usage_text.h (TEXT_INPUT_FILE)
  7867. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7868. Added INPUT FILE section to man page.
  7869. Escaped fake URLs.
  7870. * doc/aria2c.1.txt
  7871. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7872. Fixed wrong note position for -o option.
  7873. * doc/aria2c.1.txt
  7874. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7875. Fixed compile error without SSL/XML library.
  7876. * src/DefaultBtProgressInfoFile.cc
  7877. * src/DefaultBtProgressInfoFile.h
  7878. * src/FileMetalinkParserState.cc
  7879. * src/RequestGroup.h
  7880. * src/SocketCore.cc
  7881. * src/SocketCore.h
  7882. * src/VerificationMetalinkParserState.cc
  7883. * src/download_helper.h
  7884. * src/main.cc
  7885. * test/DefaultBtProgressInfoFileTest.cc
  7886. * test/DownloadHelperTest.cc
  7887. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7888. Rewritten URI handling functions. They are now provided as a testable
  7889. functions.
  7890. * src/Makefile.am
  7891. * src/RequestGroup.cc
  7892. * src/RequestGroup.h
  7893. * src/download_helper.cc
  7894. * src/download_helper.h
  7895. * src/main.cc
  7896. * test/DownloadHelperTest.cc
  7897. * test/Makefile.am
  7898. * test/input_uris.txt
  7899. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7900. Quickly terminate commands when ctrl-c is pressed.
  7901. * src/DownloadEngine.cc
  7902. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7903. Quickly terminate idle commands when download finished.
  7904. * src/AbstractCommand.cc
  7905. * src/DownloadCommand.cc
  7906. * src/DownloadEngine.cc
  7907. * src/DownloadEngine.h
  7908. * src/SleepCommand.cc
  7909. * src/SleepCommand.h
  7910. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7911. Added the ability to specify output filename and directory in input
  7912. file.
  7913. Additional parameters are added in the following line of URIs
  7914. with proceeding white space(s), 1 parameter in 1 line.
  7915. The parameter names are the same with the command-line option name
  7916. without proceeding "--". Not all the options are available here:
  7917. at the moment, 'dir' and 'out' options are avialable.
  7918. Please note that out option has no effect against Metalink or BitTorrent
  7919. downloads.
  7920. Example input file:
  7921. http://host/foo-1.1.tar.bz2
  7922. out=foo.tar.bz2
  7923. dir=/tmp/downloads
  7924. http://host/thundermonkey-2.0.tar.bz2
  7925. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7926. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7927. thundermonkey-2.0.tar.bz2 is saved as
  7928. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7929. * src/BtPostDownloadHandler.cc
  7930. * src/Metalink2RequestGroup.cc
  7931. * src/Metalink2RequestGroup.h
  7932. * src/MetalinkPostDownloadHandler.cc
  7933. * src/UriListParser.cc
  7934. * src/UriListParser.h
  7935. * src/main.cc
  7936. * test/Metalink2RequestGroupTest.cc
  7937. * test/UriListParserTest.cc
  7938. * test/filelist1.txt
  7939. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7940. Fixed error when SSL library is not found.
  7941. * configure.ac
  7942. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7943. Cross referenced among -s, -C and -j options.
  7944. Updated usage of -C and -s options.
  7945. * src/usage_text.h
  7946. * doc/aria2c.1.txt
  7947. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7948. Fixed bad cast in 32bit platforms.
  7949. * test/DefaultPieceStorageTest.cc
  7950. (DefaultPieceStorageTest::testGetCompletedLength)
  7951. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7952. Fixed unit test fails on 32bit platforms.
  7953. * test/CookieParserTest.cc
  7954. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7955. Show an average download speed in Download results.
  7956. * src/BtFileAllocationEntry.cc
  7957. * src/DefaultPieceStorage.cc
  7958. * src/DownloadContext.cc
  7959. * src/DownloadContext.h
  7960. * src/DownloadResult.h
  7961. * src/RequestGroup.cc
  7962. * src/RequestGroupMan.cc
  7963. * src/StreamFileAllocationEntry.cc
  7964. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7965. Fixed the bug that metalink file is not processed if Content-Type
  7966. field has a paramter.
  7967. * src/HttpResponse.cc
  7968. * src/HttpResponse.h
  7969. * test/HttpResponseTest.cc
  7970. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7971. Removed unused code.
  7972. * src/DefaultBtAnnounce.cc
  7973. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7974. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7975. the value larger than DefaultPieceStorage::getTotalLength() when
  7976. in flight pieces are involved.
  7977. * src/DefaultPieceStorage.cc
  7978. * test/DefaultPieceStorageTest.cc
  7979. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7980. Bump up version number to 1.0.0a.
  7981. * configure.ac
  7982. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7983. Updated configure.ac
  7984. * configure.ac
  7985. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7986. Added usege for proxy.
  7987. * doc/aria2c.1.txt
  7988. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7989. Added usage for --ca-certificate, --certificate, --private-key and
  7990. --check-certificate options.
  7991. * doc/aria2c.1.txt
  7992. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7993. Updated man page
  7994. * doc/aria2c.1.txt
  7995. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7996. Added --no-proxy option. It receives comman separated hostname or
  7997. domains to which proxy should not be used.
  7998. aria2 honors the environment variable no_proxy to override no-proxy
  7999. value in configuration file. The user can override the environment
  8000. variable no_proxy with --no-proxy command-line option.
  8001. * src/AbstractCommand.cc
  8002. * src/OptionHandlerFactory.cc
  8003. * src/option_processing.cc
  8004. * src/prefs.cc
  8005. * src/prefs.h
  8006. * src/usage_text.h
  8007. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8008. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8009. The CA certificates are specified in --ca-certificate option.
  8010. By default, the verification is disabled. Use --check-certificate
  8011. option to enable it.
  8012. * src/HttpRequestCommand.cc
  8013. * src/LibgnutlsTLSContext.cc
  8014. * src/LibgnutlsTLSContext.h
  8015. * src/LibsslTLSContext.cc
  8016. * src/LibsslTLSContext.h
  8017. * src/MultiUrlRequestInfo.cc
  8018. * src/OptionHandlerFactory.cc
  8019. * src/SocketCore.cc
  8020. * src/SocketCore.h
  8021. * src/a2functional.h
  8022. * src/message.h
  8023. * src/option_processing.cc
  8024. * src/prefs.cc
  8025. * src/prefs.h
  8026. * src/usage_text.h
  8027. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8028. Added client certificate authentication for SSL/TLS.
  8029. Currently a private key must be decrypted for use with aria2.
  8030. If a user accidentally gives encrypted file to aria2 then following
  8031. thing happens:
  8032. If encrypted private key is given to aria2, it behaves differently
  8033. depending on the ssl library it uses. If aria2 built with openssl then
  8034. openssl prompts the user for password. If aria2 build with gnutls then
  8035. aria2 exists with error at start up.
  8036. * src/DownloadEngineFactory.cc
  8037. * src/MultiUrlRequestInfo.cc
  8038. * src/OptionHandlerFactory.cc
  8039. * src/option_processing.cc
  8040. * src/prefs.cc
  8041. * src/prefs.h
  8042. * src/usage_text.h
  8043. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8044. Introduced TLSContext that holds TLS related data that can be shared
  8045. with multiple SSL connections.
  8046. * src/DownloadEngineFactory.cc
  8047. * src/LibgnutlsTLSContext.cc
  8048. * src/LibgnutlsTLSContext.h
  8049. * src/LibsslTLSContext.cc
  8050. * src/LibsslTLSContext.h
  8051. * src/Makefile.am
  8052. * src/SocketCore.cc
  8053. * src/SocketCore.h
  8054. * src/TLSContext.h
  8055. * src/message.h
  8056. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8057. Fixed the bug that the DiskWriter of the first FileEntry whose
  8058. `needsFileAllocation' property is false is not created
  8059. even if it shares a piece with next FileEntry which `requested' property
  8060. is true.
  8061. Fixed the bug that zero-length file is not created if pre file
  8062. allocation is not done.
  8063. * src/MultiDiskAdaptor.cc
  8064. * src/MultiDiskAdaptor.h
  8065. * test/MultiDiskAdaptorTest.cc
  8066. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. Added the ability to pool proxy connection.
  8068. The conneciton in FTP with proxy-method=GET is not pooled.
  8069. Proxy-Connection header will not be sent when sending CONNECT method.
  8070. * src/DownloadEngine.cc
  8071. * src/DownloadEngine.h
  8072. * src/FtpFinishDownloadCommand.cc
  8073. * src/FtpInitiateConnectionCommand.cc
  8074. * src/FtpNegotiationCommand.cc
  8075. * src/HttpDownloadCommand.cc
  8076. * src/HttpInitiateConnectionCommand.cc
  8077. * src/HttpRequest.cc
  8078. * src/HttpRequest.h
  8079. * src/HttpResponse.cc
  8080. * src/HttpSkipResponseCommand.cc
  8081. * test/HttpRequestTest.cc
  8082. * test/HttpResponseTest.cc
  8083. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Handle date before epoch.
  8085. To create *bad* Time object, call Time::null().
  8086. * src/CookieParser.cc
  8087. * src/FtpConnection.cc
  8088. * src/FtpConnection.h
  8089. * src/FtpNegotiationCommand.cc
  8090. * src/RequestGroup.cc
  8091. * src/TimeA2.cc
  8092. * src/TimeA2.h
  8093. * test/CookieParserTest.cc
  8094. * test/FtpConnectionTest.cc
  8095. * test/TimeTest.cc
  8096. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Added support for following envrionment variables: http_proxy,
  8098. https_proxy, ftp_proxy and all_proxy.
  8099. Each variable is equivalent to the aria2 option whose name is the
  8100. variable name with '_' replaced with '-'.
  8101. They overrides options specified in aria2.conf file.
  8102. The envrionment variables can be overrode using command-line option.
  8103. * src/option_processing.cc
  8104. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Renamed --http-proxy-method as --proxy-method.
  8106. * src/AbstractCommand.cc
  8107. * src/FtpInitiateConnectionCommand.cc
  8108. * src/HttpInitiateConnectionCommand.cc
  8109. * src/OptionHandlerFactory.cc
  8110. * src/option_processing.cc
  8111. * src/prefs.cc
  8112. * src/prefs.h
  8113. * src/usage_text.h
  8114. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8116. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8117. Above 3 options and --http-proxy option can handle proxy in URL format
  8118. like: http://user:passwd@host:port.
  8119. If a proxy requires user/password, they must be specified in a URL.
  8120. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8121. instead.
  8122. * src/AbstractCommand.cc
  8123. * src/AbstractCommand.h
  8124. * src/AbstractProxyRequestCommand.cc
  8125. * src/AbstractProxyRequestCommand.h
  8126. * src/AuthConfigFactory.cc
  8127. * src/AuthConfigFactory.h
  8128. * src/FtpFinishDownloadCommand.cc
  8129. * src/FtpInitiateConnectionCommand.cc
  8130. * src/FtpInitiateConnectionCommand.h
  8131. * src/FtpNegotiationCommand.cc
  8132. * src/FtpTunnelRequestCommand.cc
  8133. * src/FtpTunnelRequestCommand.h
  8134. * src/HttpDownloadCommand.cc
  8135. * src/HttpInitiateConnectionCommand.cc
  8136. * src/HttpInitiateConnectionCommand.h
  8137. * src/HttpProxyRequestCommand.cc
  8138. * src/HttpProxyRequestCommand.h
  8139. * src/HttpRequest.cc
  8140. * src/HttpRequest.h
  8141. * src/HttpRequestCommand.cc
  8142. * src/HttpRequestCommand.h
  8143. * src/HttpSkipResponseCommand.cc
  8144. * src/InitiateConnectionCommand.cc
  8145. * src/InitiateConnectionCommand.h
  8146. * src/OptionHandlerFactory.cc
  8147. * src/OptionHandlerImpl.h
  8148. * src/Request.cc
  8149. * src/option_processing.cc
  8150. * src/prefs.cc
  8151. * src/prefs.h
  8152. * src/usage_text.h
  8153. * test/AuthConfigFactoryTest.cc
  8154. * test/HttpRequestTest.cc
  8155. * test/OptionHandlerTest.cc
  8156. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Execute choking algorithm when unchoked and interested peer is
  8158. disconected.
  8159. * src/DefaultPeerStorage.cc
  8160. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Added testcase for BtNotInterestedMessage from unchoked peer.
  8162. * test/BtNotInterestedMessageTest.cc
  8163. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Execute choking algorithm when BtInterestedMessage arrives from
  8165. unchoked peer.
  8166. * src/BtInterestedMessage.cc
  8167. * src/BtInterestedMessage.h
  8168. * src/DefaultBtMessageFactory.cc
  8169. * test/BtInterestedMessageTest.cc
  8170. * test/MockPeerStorage.h
  8171. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. AuthConfigFactory is now part of DownloadEngine.
  8173. * src/AbstractProxyRequestCommand.cc
  8174. * src/AuthConfigFactory.h
  8175. * src/DownloadEngine.cc
  8176. * src/DownloadEngine.h
  8177. * src/FtpConnection.cc
  8178. * src/FtpConnection.h
  8179. * src/FtpNegotiationCommand.cc
  8180. * src/HttpConnection.cc
  8181. * src/HttpRequest.cc
  8182. * src/HttpRequest.h
  8183. * src/HttpRequestCommand.cc
  8184. * src/HttpResponse.cc
  8185. * src/HttpResponseCommand.cc
  8186. * src/HttpSkipResponseCommand.cc
  8187. * src/MultiUrlRequestInfo.cc
  8188. * src/main.cc
  8189. * test/FtpConnectionTest.cc
  8190. * test/HttpRequestTest.cc
  8191. * test/HttpResponseTest.cc
  8192. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Corrected catched exception type.
  8194. * src/ServerStatMan.cc
  8195. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. DNSCache is now part of DownloadEngine.
  8197. * src/DNSCache.h
  8198. * src/DownloadEngine.cc
  8199. * src/DownloadEngine.h
  8200. * src/InitiateConnectionCommand.cc
  8201. * src/MultiUrlRequestInfo.cc
  8202. * test/Makefile.am
  8203. * test/Makefile.in
  8204. * test/SimpleDNSCacheTest.cc
  8205. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8207. DownloadEngine.
  8208. * src/ActivePeerConnectionCommand.cc
  8209. * src/BtSetup.cc
  8210. * src/CUIDCounter.h
  8211. * src/DHTSetup.cc
  8212. * src/DownloadCommand.cc
  8213. * src/DownloadEngine.cc
  8214. * src/DownloadEngine.h
  8215. * src/DownloadEngineFactory.cc
  8216. * src/FileAllocationDispatcherCommand.cc
  8217. * src/InitiatorMSEHandshakeCommand.cc
  8218. * src/PeerInitiateConnectionCommand.cc
  8219. * src/PeerInteractionCommand.cc
  8220. * src/PeerListenCommand.cc
  8221. * src/RequestGroup.cc
  8222. * src/StreamFileAllocationEntry.cc
  8223. * src/TrackerWatcherCommand.cc
  8224. * src/main.cc
  8225. * test/RequestGroupManTest.cc
  8226. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Implemented commented code in BtSeederStateChoke
  8228. * src/BtSeederStateChoke.cc
  8229. * src/Peer.cc
  8230. * src/Peer.h
  8231. * src/PeerInteractionCommand.cc
  8232. * src/PeerSessionResource.cc
  8233. * src/PeerSessionResource.h
  8234. * test/MockBtMessageDispatcher.h
  8235. * test/PeerSessionResourceTest.cc
  8236. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8238. its object.
  8239. * src/AbstractBtMessage.cc
  8240. * src/ActivePeerConnectionCommand.cc
  8241. * src/ActivePeerConnectionCommand.h
  8242. * src/BtContextAwareCommand.cc
  8243. * src/BtContextAwareCommand.h
  8244. * src/BtExtendedMessage.cc
  8245. * src/BtExtendedMessage.h
  8246. * src/BtInterestedMessage.cc
  8247. * src/BtInterestedMessage.h
  8248. * src/BtNotInterestedMessage.cc
  8249. * src/BtNotInterestedMessage.h
  8250. * src/BtRegistry.cc
  8251. * src/BtRegistry.h
  8252. * src/BtSeederStateChoke.cc
  8253. * src/BtSetup.cc
  8254. * src/DHTGetPeersCommand.cc
  8255. * src/DHTGetPeersCommand.h
  8256. * src/DHTPeerAnnounceEntry.cc
  8257. * src/DHTPeerAnnounceEntry.h
  8258. * src/DHTPeerAnnounceStorage.cc
  8259. * src/DHTPeerAnnounceStorage.h
  8260. * src/DHTPeerLookupTask.cc
  8261. * src/DHTPeerLookupTask.h
  8262. * src/DHTSetup.cc
  8263. * src/DHTSetup.h
  8264. * src/DHTTaskFactory.h
  8265. * src/DHTTaskFactoryImpl.cc
  8266. * src/DHTTaskFactoryImpl.h
  8267. * src/DefaultBtAnnounce.cc
  8268. * src/DefaultBtInteractive.cc
  8269. * src/DefaultBtInteractive.h
  8270. * src/DefaultBtMessageDispatcher.cc
  8271. * src/DefaultBtMessageDispatcher.h
  8272. * src/DefaultBtMessageFactory.cc
  8273. * src/DefaultBtMessageFactory.h
  8274. * src/DefaultBtMessageReceiver.cc
  8275. * src/DefaultBtProgressInfoFile.cc
  8276. * src/DefaultBtProgressInfoFile.h
  8277. * src/DefaultBtRequestFactory.cc
  8278. * src/DefaultBtRequestFactory.h
  8279. * src/DefaultExtensionMessageFactory.cc
  8280. * src/DefaultExtensionMessageFactory.h
  8281. * src/DefaultPeerStorage.cc
  8282. * src/DefaultPeerStorage.h
  8283. * src/DownloadEngine.cc
  8284. * src/DownloadEngine.h
  8285. * src/InitiatorMSEHandshakeCommand.cc
  8286. * src/InitiatorMSEHandshakeCommand.h
  8287. * src/MSEHandshake.cc
  8288. * src/MSEHandshake.h
  8289. * src/Makefile.am
  8290. * src/Makefile.in
  8291. * src/PeerChokeCommand.cc
  8292. * src/PeerChokeCommand.h
  8293. * src/PeerInitiateConnectionCommand.cc
  8294. * src/PeerInitiateConnectionCommand.h
  8295. * src/PeerInteractionCommand.cc
  8296. * src/PeerInteractionCommand.h
  8297. * src/PeerObject.h
  8298. * src/PeerReceiveHandshakeCommand.cc
  8299. * src/PeerReceiveHandshakeCommand.h
  8300. * src/ReceiverMSEHandshakeCommand.cc
  8301. * src/RequestGroup.cc
  8302. * src/RequestGroup.h
  8303. * src/RequestGroupMan.cc
  8304. * src/RequestGroupMan.h
  8305. * src/SeedCheckCommand.cc
  8306. * src/SeedCheckCommand.h
  8307. * src/ShareRatioSeedCriteria.h
  8308. * src/SimpleBtMessage.cc
  8309. * src/TrackerWatcherCommand.cc
  8310. * src/TrackerWatcherCommand.h
  8311. * src/UTPexExtensionMessage.cc
  8312. * src/UTPexExtensionMessage.h
  8313. * test/BtCancelMessageTest.cc
  8314. * test/BtChokeMessageTest.cc
  8315. * test/BtExtendedMessageTest.cc
  8316. * test/BtInterestedMessageTest.cc
  8317. * test/BtNotInterestedMessageTest.cc
  8318. * test/BtPieceMessageTest.cc
  8319. * test/BtPortMessageTest.cc
  8320. * test/BtRegistryTest.cc
  8321. * test/BtRejectMessageTest.cc
  8322. * test/BtRequestMessageTest.cc
  8323. * test/DHTPeerAnnounceEntryTest.cc
  8324. * test/DHTPeerAnnounceStorageTest.cc
  8325. * test/DefaultBtMessageDispatcherTest.cc
  8326. * test/DefaultBtMessageFactoryTest.cc
  8327. * test/DefaultBtProgressInfoFileTest.cc
  8328. * test/DefaultBtRequestFactoryTest.cc
  8329. * test/DefaultExtensionMessageFactoryTest.cc
  8330. * test/MSEHandshakeTest.cc
  8331. * test/MockDHTTaskFactory.h
  8332. * test/ShareRatioSeedCriteriaTest.cc
  8333. * test/UTPexExtensionMessageTest.cc
  8334. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. Fixed compiler warning.
  8336. * test/UtilTest.cc
  8337. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Treat Cookie object as session cookie if expiry = 0 is given.
  8339. With this change, you can specify session scoped cookies in an external
  8340. file setting expiry value to 0.
  8341. * src/Cookie.cc
  8342. * src/Cookie.h
  8343. * test/CookieParserTest.cc
  8344. * test/CookieStorageTest.cc
  8345. * test/CookieTest.cc
  8346. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Changed signature of DHTMessageFactory::createResponseMessage().
  8348. Removed unused validateIDMatch.
  8349. * src/DHTMessageFactory.h
  8350. * src/DHTMessageFactoryImpl.cc
  8351. * src/DHTMessageFactoryImpl.h
  8352. * src/DHTMessageTracker.cc
  8353. * test/DHTMessageFactoryImplTest.cc
  8354. * test/MockDHTMessageFactory.h
  8355. Dropped DHT message coming from same ID of localhost.
  8356. * src/DHTMessageReceiver.cc
  8357. Rejected adding node whose ID is the same as localhost's.
  8358. * src/DHTRoutingTable.cc
  8359. * test/BtPortMessageTest.cc
  8360. * test/DHTRoutingTableTest.cc
  8361. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Pool connection when redirection occurs with Content-Length = 0.
  8363. * src/HttpSkipResponseCommand.cc
  8364. * src/HttpSkipResponseCommand.h
  8365. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Fixed the bug that causes time out when redirection occurs with
  8367. content-length 0.
  8368. * src/HttpResponseCommand.cc
  8369. * src/HttpSkipResponseCommand.cc
  8370. * src/HttpSkipResponseCommand.h
  8371. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. Now each status legends is shown only when it appears in Download
  8373. Result. If Download Result has no item, then status legend will not
  8374. be printed.
  8375. * src/RequestGroupMan.cc
  8376. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Removed duplicate creation of OptionHandlers.
  8378. * src/option_processing.cc
  8379. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. Fixed the bug that causes segmentation fault when accessing files which
  8381. don't exist or are not included in --select-file option while
  8382. validating chunk checksum.
  8383. * src/MultiDiskAdaptor.cc
  8384. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Fixed compiler warning.
  8386. * test/UtilTest.cc
  8387. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8389. * src/IteratableChecksumValidator.cc
  8390. * src/IteratableChunkChecksumValidator.cc
  8391. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. * Release 0.16.2
  8393. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8394. Added Serbian translation. Updated Ukrainian translation.
  8395. Thanks to all translators.
  8396. * po/sr.po
  8397. * po/uk.po
  8398. * po/LINGUAS
  8399. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Bump up version number to 0.16.2
  8401. * configure.ac
  8402. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Added length equality test to operator== to drop a piece message
  8404. whose length does not match to the requested one.
  8405. * src/RequestSlot.cc
  8406. * test/DefaultBtMessageDispatcherTest.cc
  8407. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8409. recieved.
  8410. In this fix, if a request larger than 16KiB length is received, aria2
  8411. disconnects the peer.
  8412. * src/BtConstants.h
  8413. * src/PeerMessageUtil.cc
  8414. * src/PeerMessageUtil.h
  8415. * test/BtRequestMessageTest.cc
  8416. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. * Release 0.16.1
  8418. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8420. * doc/aria2c.1.txt
  8421. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8423. Updated French, Simplified Chinese and Japanese translations.
  8424. Thanks to all translators.
  8425. en@quot and en@boldquot are also added.
  8426. * po/LINGUAS
  8427. * po/fr.po
  8428. * po/ja.po
  8429. * po/uk.po
  8430. * po/vi.po
  8431. * po/zh_CN.po
  8432. * po/zh_TW.po
  8433. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Bump up version number to 0.16.1.
  8435. * configure.ac
  8436. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Updated README.
  8438. * README
  8439. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8440. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8441. not to replace '--' with em dash character.
  8442. * doc/aria2c.1.txt
  8443. * doc/makeman
  8444. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8446. every SEC seconds.
  8447. * src/DownloadEngineFactory.cc
  8448. * src/OptionHandlerFactory.cc
  8449. * src/option_processing.cc
  8450. * src/usage_text.h
  8451. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Fixed compile warning on linux-amd64
  8453. * src/FtpConnection.cc
  8454. * src/IteratableChunkChecksumValidator.cc
  8455. * src/MultiDiskAdaptor.cc
  8456. Fixed the bug that unit test fails on linux-amd64
  8457. * test/UtilTest.cc
  8458. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Added --dht-file-path option to change the path to dht.dat, which is a
  8460. serialized DHT routing table.
  8461. * src/OptionHandlerFactory.cc
  8462. * src/option_processing.cc
  8463. * src/usage_text.h
  8464. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Fixed possible underflow.
  8466. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8467. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Fixed the bug that last character in URI is not encoded.
  8469. * src/Request.cc
  8470. * test/RequestTest.cc
  8471. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Fixed the bug that referer header field contains fragment.
  8473. Now Request class removes fragment part of URI and encodes it
  8474. in Request::setUri() and setReferer().
  8475. * src/Request.h
  8476. * src/Request.cc
  8477. * test/RequestTest.cc
  8478. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Added missing m4 macros.
  8480. * m4/cppunit.m4
  8481. * m4/libgcrypt.m4
  8482. * m4/libgnutls-extra.m4
  8483. * m4/libgnutls.m4
  8484. * m4/libxml2.m4
  8485. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Fixed compile error with gcc-4.4(snapshot)
  8487. * src/File.cc
  8488. * src/FtpConnection.cc
  8489. * src/OptionHandlerImpl.h
  8490. * src/Util.cc
  8491. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. Removed assert()
  8493. * src/SocketBuffer.cc (SocketBuffer::send)
  8494. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Changed the type of _numNewConnection to unsigned int.
  8496. * src/ActivePeerConnectionCommand.cc
  8497. * src/ActivePeerConnectionCommand.h
  8498. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. * Release 0.16.0
  8500. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Updated doc
  8502. * README
  8503. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8505. translations. Thanks to all translators.
  8506. * po/bg.po
  8507. * po/de.po
  8508. * po/fr.po
  8509. * po/ja.po
  8510. * po/zh_CN.po
  8511. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. Bump up version number to 0.16.0.
  8513. * configure.ac
  8514. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8516. int32_t.
  8517. Changed the type of count to int32_t.
  8518. * src/Metalink2RequestGroup.cc
  8519. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8520. Added test for Time::elapsed(time_t).
  8521. * test/TimeTest.cc
  8522. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8524. Util::difftv() should be used instead.
  8525. * src/TimeA2.cc
  8526. * src/TimeA2.h
  8527. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Made socket for dht connections non-blocking
  8529. * src/DHTAbstractMessage.cc
  8530. * src/DHTAbstractMessage.h
  8531. * src/DHTConnection.h
  8532. * src/DHTConnectionImpl.cc
  8533. * src/DHTConnectionImpl.h
  8534. * src/DHTMessage.h
  8535. * src/DHTMessageDispatcherImpl.cc
  8536. * src/DHTMessageDispatcherImpl.h
  8537. * src/DHTUnknownMessage.cc
  8538. * src/DHTUnknownMessage.h
  8539. * src/SocketCore.cc
  8540. * src/SocketCore.h
  8541. * test/MockDHTMessage.h
  8542. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Changed the type of offset to int.
  8544. * src/ParameterizedStringParser.cc
  8545. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Made getAsInt() return int32_t
  8547. * src/Option.h
  8548. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8550. build.
  8551. * configure.ac
  8552. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Use sqlite3_open if sqlite3_open_v2 is not available.
  8554. * src/Sqlite3MozCookieParser.cc
  8555. * src/Sqlite3MozCookieParser.h
  8556. * m4/sqlite3.m4
  8557. * test/Sqlite3MozCookieParserTest.cc
  8558. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8560. * src/BtPieceMessage.cc
  8561. * src/DHTPeerAnnounceStorage.cc
  8562. * src/DefaultPieceStorage.cc
  8563. * src/DownloadCommand.cc
  8564. * src/DownloadEngine.cc
  8565. * src/FtpConnection.cc
  8566. * src/PeerConnection.cc
  8567. * src/PeerMessageUtil.cc
  8568. * src/RequestGroup.cc
  8569. * src/RequestGroupMan.cc
  8570. * src/SimpleBtMessage.cc
  8571. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8573. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8574. * src/AbstractDiskWriter.cc
  8575. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Don't set Request::supportsPersistentConnection() in HttpConnection
  8577. since this code is also used in AbstractProxyResponseCommand.
  8578. Moved those code to HttpResponse.
  8579. * src/HttpResponse.cc
  8580. * src/HttpResponse.h
  8581. * src/HttpConnection.cc
  8582. * src/HttpConnection.h
  8583. * src/HttpResponseCommand.cc
  8584. * test/HttpResponseTest.cc
  8585. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8587. The configuration is minimum: no torrent, no metalink, so there may be
  8588. other compile error on their code.
  8589. * src/a2netcompat.h
  8590. * src/File.cc
  8591. * src/File.h
  8592. * src/SocketCore.cc
  8593. * src/SocketCore.h
  8594. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Made a socket of incoming peer non-blocking.
  8596. * src/PeerListenCommand.cc
  8597. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8599. whole message data is not sent in one send() call.
  8600. * src/BtPieceMessage.cc
  8601. * src/BtPieceMessage.h
  8602. * src/PeerConnection.cc
  8603. * src/PeerConnection.h
  8604. * src/SimpleBtMessage.cc
  8605. * src/SimpleBtMessage.h
  8606. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Fixed the bug that aria2 downloads faster than max-download-limit when
  8608. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8609. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8610. , instead of sum of them.
  8611. * src/ActivePeerConnectionCommand.cc
  8612. * src/DefaultBtInteractive.cc
  8613. * src/DownloadCommand.cc
  8614. * src/PeerInteractionCommand.cc
  8615. * src/PeerReceiveHandshakeCommand.cc
  8616. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Fixed the bug that HTTPS download fails.
  8618. * src/AbstractCommand.cc
  8619. * src/AbstractCommand.h
  8620. * src/DownloadCommand.cc
  8621. * src/FtpConnection.cc
  8622. * src/HttpConnection.cc
  8623. * src/HttpRequestCommand.cc
  8624. * src/HttpResponseCommand.cc
  8625. * src/HttpSkipResponseCommand.cc
  8626. * src/MSEHandshake.cc
  8627. * src/PeerConnection.cc
  8628. * src/SocketCore.cc
  8629. * src/SocketCore.h
  8630. Fixed the bug that aria2 doesn't download whole content body and cannot
  8631. reuse connection if chunked transfer encoding and gzip content encoding
  8632. are set.
  8633. * src/DownloadCommand.cc
  8634. * src/HttpSkipResponseCommand.cc
  8635. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Updated man page.
  8637. * doc/aria2c.1.txt
  8638. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. When error occurred while aria2 was parsing an .aria2.conf file, print
  8640. the usage of the option that caused error.
  8641. * src/option_processing.cc
  8642. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Fixed compile error on OptionHandlerException
  8644. * src/Makefile.am
  8645. * src/OptionHandlerException.cc
  8646. * src/OptionHandlerException.h
  8647. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Moved message of the error to OptionHandlerException.h
  8649. * src/NameMatchOptionHandler.h
  8650. * src/OptionHandlerException.h
  8651. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. When error occurs while aria2 is parsing an command-line option, print
  8653. the usage of the option.
  8654. * src/Makefile.am
  8655. * src/NameMatchOptionHandler.h
  8656. * src/OptionHandlerException.h
  8657. * src/option_processing.cc
  8658. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. Reverted previous change.
  8660. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8661. username is not in URI.
  8662. * src/HttpRequest.cc
  8663. * src/Request.cc
  8664. * test/HttpRequestTest.cc
  8665. * test/RequestTest.cc
  8666. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Now colon is required for username and password in FTP URL, like:
  8668. ftp://username:password@host.
  8669. If colon is not there, aria2 don't parse it as a username. For example,
  8670. aria2 don't retrieve username from ftp://username@host.
  8671. This fix was made in order to login FTP server via non-transparent ftp
  8672. proxy.
  8673. * src/Request.cc
  8674. * test/RequestTest.cc
  8675. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Use netrc for HTTP.
  8677. Now FTP user/password is sent in Authorization header when
  8678. --ftp-via-http-proxy=get is given.
  8679. * src/AuthConfigFactory.cc
  8680. * src/HttpRequest.cc
  8681. * src/HttpRequest.h
  8682. * src/NetrcAuthResolver.cc
  8683. * src/NetrcAuthResolver.h
  8684. * src/OptionHandlerFactory.cc
  8685. * src/option_processing.cc
  8686. * src/prefs.cc
  8687. * src/prefs.h
  8688. * test/AuthConfigFactoryTest.cc
  8689. * test/HttpRequestTest.cc
  8690. * test/NetrcAuthResolverTest.cc
  8691. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Issue PWD command first and get working directory and use it as a prefix
  8693. for CWD command.
  8694. * src/DownloadEngine.cc
  8695. * src/DownloadEngine.h
  8696. * src/FtpConnection.cc
  8697. * src/FtpConnection.h
  8698. * src/FtpFinishDownloadCommand.cc
  8699. * src/FtpInitiateConnectionCommand.cc
  8700. * src/FtpNegotiationCommand.cc
  8701. * src/FtpNegotiationCommand.h
  8702. * test/FtpConnectionTest.cc
  8703. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. Removed default user/pass for FTP user/pass, since it should not have
  8705. precedence over netrc configuration by default.
  8706. * src/OptionHandlerFactory.cc
  8707. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Added debug log for socket event.
  8709. * src/AbstractCommand.cc
  8710. * src/PeerAbstractCommand.cc
  8711. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Log microseconds.
  8713. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8714. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Replaced HelpItem.cc with OptionHandler.cc.
  8716. * po/POTFILES.in
  8717. Updated po files with 'make update-po'
  8718. * po/aria2c.pot
  8719. * po/*.po
  8720. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Removed possible values from the text.
  8722. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8723. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Removed unused preferences:
  8725. PREF_NO_PREALLOCATION
  8726. PREF_STDOUT_LOG
  8727. PREF_TRACKER_MAX_TRIES
  8728. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8729. PREF_MIN_SEGMENT_SIZE
  8730. * src/option_processing.cc
  8731. * src/prefs.cc
  8732. * src/prefs.h
  8733. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Integrated HelpItem into OptionParser to ease the workload for adding
  8735. new options. Removed default value from usage text.
  8736. * src/HelpItem.cc: Removed.
  8737. * src/HelpItem.h: Removed.
  8738. * src/HelpItemFactory.cc: Removed.
  8739. * src/HelpItemFactory.h: Removed.
  8740. * src/Makefile.am
  8741. * src/Makefile.in
  8742. * src/NameMatchOptionHandler.h
  8743. * src/OptionHandler.cc
  8744. * src/OptionHandler.h
  8745. * src/OptionHandlerFactory.cc
  8746. * src/OptionHandlerImpl.h
  8747. * src/OptionParser.cc
  8748. * src/OptionParser.h
  8749. * src/TagContainer.cc: Removed.
  8750. * src/TagContainer.h: Removed.
  8751. * src/TaggedItem.cc: Removed.
  8752. * src/TaggedItem.h: Removed.
  8753. * src/main.cc
  8754. * src/option_processing.cc
  8755. * src/usage_text.h
  8756. * src/version_usage.cc
  8757. * test/HelpItemTest.cc: Removed.
  8758. * test/Makefile.am
  8759. * test/Makefile.in
  8760. * test/OptionHandlerTest.cc
  8761. * test/OptionParserTest.cc
  8762. * test/TagContainerTest.cc: Removed.
  8763. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Moved `TransferStat stat = ...' to inside the `if' clause.
  8765. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8766. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Fixed the bug that a block in a piece is requested when same block is
  8768. already requested to the same peer in end game mode.
  8769. * src/BtRequestFactory.h
  8770. * src/DefaultBtInteractive.cc
  8771. * src/DefaultBtRequestFactory.cc
  8772. * src/DefaultBtRequestFactory.h
  8773. * src/DefaultPieceStorage.cc
  8774. * src/DefaultPieceStorage.h
  8775. * src/PieceStorage.h
  8776. * src/UnknownLengthPieceStorage.cc
  8777. * src/UnknownLengthPieceStorage.h
  8778. * test/DefaultBtRequestFactoryTest.cc
  8779. * test/DefaultPieceStorageTest.cc
  8780. * test/MockBtRequestFactory.h
  8781. * test/MockPieceStorage.h
  8782. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Removed _uploadLength and _downloadLength from PeerSessionResource
  8784. and use PeerStat::_sessionUploadLength and
  8785. PeerStat::_sessionDownloadLength.
  8786. * src/PeerSessionResource.cc
  8787. * src/PeerSessionResource.h
  8788. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. Fixed the bug that prefixLength of split bucket which doesn't include
  8790. local node ID is incremented.
  8791. * src/DHTBucket.cc
  8792. * src/DHTBucket.h
  8793. * test/DHTBucketTest.cc
  8794. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Added cookies.sqlite to EXTRA_DIST
  8796. * test/Makefile.am
  8797. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8798. Added Turkish translation. Updated French, German, Russian and
  8799. Simplified Chinese translations. Thanks to all translators.
  8800. * po/LINGUAS
  8801. * po/de.po
  8802. * po/fr.po
  8803. * po/ru.po
  8804. * po/tr.po
  8805. * po/zh_CN.po
  8806. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Added deliminating text to the beginning of the log so that one can find
  8808. where the log starts easily.
  8809. * src/main.cc
  8810. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8812. to fix compile error when async DNS is not enabled by configuration.
  8813. * src/AbstractCommand.cc
  8814. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. If establishing conneciton to a server is failed, then mark error on
  8816. its ServerStat.
  8817. Added the cause of error to log when error event occurred.
  8818. Moved message string to message.h for translation.
  8819. * src/AbstractCommand.cc
  8820. * src/AbstractCommand.h
  8821. * src/FtpNegotiationCommand.cc
  8822. * src/HttpRequestCommand.cc
  8823. * src/PeerAbstractCommand.cc
  8824. * src/message.h
  8825. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Added the function to get error message from socket.
  8827. * src/SocketCore.cc
  8828. * src/SocketCore.h
  8829. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8831. * src/RequestGroupMan.cc
  8832. * src/RequestGroupMan.h
  8833. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. If error event is received in epoll, then abort download immediately.
  8835. * src/AbstractCommand.cc
  8836. * src/Command.cc
  8837. * src/Command.h
  8838. * src/DownloadEngine.cc
  8839. * src/PeerAbstractCommand.cc
  8840. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Added usage message for --uri-selector, --server-stat-of,
  8842. --server-stat-in, --server-stat-timeout options.
  8843. * src/HelpItemFactory.cc
  8844. * src/usage_text.h
  8845. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. Added upper limit of FTP response buffer. The current implementation
  8847. uses 4096bytes as a limit.
  8848. * src/FtpConnection.cc
  8849. * src/FtpConnection.h
  8850. * test/FtpConnectionTest.cc
  8851. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. Use non-blocking socket for TCP communication to avoid possible
  8853. blocking due to buffer full.
  8854. * src/AbstractProxyRequestCommand.cc
  8855. * src/FtpConnection.cc
  8856. * src/FtpConnection.h
  8857. * src/FtpNegotiationCommand.cc
  8858. * src/FtpNegotiationCommand.h
  8859. * src/HttpConnection.cc
  8860. * src/HttpConnection.h
  8861. * src/HttpRequestCommand.cc
  8862. * src/InitiatorMSEHandshakeCommand.cc
  8863. * src/InitiatorMSEHandshakeCommand.h
  8864. * src/MSEHandshake.cc
  8865. * src/MSEHandshake.h
  8866. * src/Makefile.am
  8867. * src/PeerConnection.cc
  8868. * src/PeerConnection.h
  8869. * src/PeerInteractionCommand.cc
  8870. * src/PeerListenCommand.cc
  8871. * src/ReceiverMSEHandshakeCommand.cc
  8872. * src/ReceiverMSEHandshakeCommand.h
  8873. * src/SocketBuffer.cc
  8874. * src/SocketBuffer.h
  8875. * src/SocketCore.cc
  8876. * src/SocketCore.h
  8877. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. Call setStatusRealtime() in constructor.
  8879. * src/RealtimeCommand.cc
  8880. * src/RealtimeCommand.h
  8881. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Call Download::setNoWait(true) to execute newly created command without
  8883. a pause.
  8884. * src/AbstractCommand.cc
  8885. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8887. found' error from HTTP/FTP server NUM times without getting single
  8888. bytes of data, then force the download to fail.
  8889. Basically aria2 tris all URIs available. So if long list of URIs are
  8890. specified in Metalink, then aria2 will take a long time to fail
  8891. eventually if all URIs are outdated. This option eases this situation
  8892. to limit the number of servers to try.
  8893. * src/FtpNegotiationCommand.cc
  8894. * src/HelpItemFactory.cc
  8895. * src/HttpResponseCommand.cc
  8896. * src/OptionHandlerFactory.cc
  8897. * src/PeerStat.h
  8898. * src/RequestGroup.cc
  8899. * src/RequestGroup.h
  8900. * src/SegmentMan.cc
  8901. * src/SegmentMan.h
  8902. * src/option_processing.cc
  8903. * src/prefs.cc
  8904. * src/prefs.h
  8905. * src/usage_text.h
  8906. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8908. response even if more than one response is in it.
  8909. * src/FtpConnection.cc
  8910. * src/FtpConnection.h
  8911. * test/FtpConnectionTest.cc
  8912. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Merged from stable-0.15
  8914. * m4/libcares.m4
  8915. Use pkg-config
  8916. * m4/sqlite3.m4
  8917. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. Removed unnecessary if statement.
  8919. * src/DefaultPieceStorage.cc (initPieceStorage)
  8920. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Added --connect-timeout option to specify connect timeout in seconds.
  8922. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8923. connecting to BitTorrent peer is not controlled by this option.
  8924. * src/AbstractProxyRequestCommand.cc
  8925. * src/FtpNegotiationCommand.cc
  8926. * src/HelpItemFactory.cc
  8927. * src/HttpRequestCommand.cc
  8928. * src/OptionHandlerFactory.cc
  8929. * src/option_processing.cc
  8930. * src/prefs.cc
  8931. * src/prefs.h
  8932. * src/usage_text.h
  8933. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8934. Added help message for -R option.
  8935. * src/HelpItemFactory.cc
  8936. * src/usage_text.h
  8937. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Added the message that the time is in local time zone.
  8939. * src/RequestGroup.cc
  8940. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Implemented the ability to get timestamp from remote FTP server using
  8942. MDTM command described in RFC3659.
  8943. * src/FtpConnection.cc
  8944. * src/FtpConnection.h
  8945. * src/FtpNegotiationCommand.cc
  8946. * src/FtpNegotiationCommand.h
  8947. * test/FtpConnectionTest.cc
  8948. * test/Makefile.am
  8949. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8950. Implemented the ability to get timestamp from remote HTTP server and
  8951. apply it to local file. To enable this feature, --remote-time option
  8952. is added. No usage text has been written yet.
  8953. If several servers returns difference timestamp, then aria2 uses latest
  8954. one.
  8955. * src/CopyDiskAdaptor.cc
  8956. * src/CopyDiskAdaptor.h
  8957. * src/DirectDiskAdaptor.cc
  8958. * src/DirectDiskAdaptor.h
  8959. * src/DiskAdaptor.h
  8960. * src/File.cc
  8961. * src/File.h
  8962. * src/HttpHeader.cc
  8963. * src/HttpHeader.h
  8964. * src/HttpResponse.cc
  8965. * src/HttpResponse.h
  8966. * src/HttpResponseCommand.cc
  8967. * src/HttpResponseCommand.h
  8968. * src/MultiDiskAdaptor.cc
  8969. * src/MultiDiskAdaptor.h
  8970. * src/OptionHandlerFactory.cc
  8971. * src/RequestGroup.cc
  8972. * src/RequestGroup.h
  8973. * src/RequestGroupMan.cc
  8974. * src/option_processing.cc
  8975. * src/prefs.cc
  8976. * src/prefs.h
  8977. * test/CopyDiskAdaptorTest.cc
  8978. * test/FileTest.cc
  8979. * test/Makefile.am
  8980. * test/Makefile.in
  8981. * test/MultiDiskAdaptorTest.cc
  8982. * test/TestUtil.cc
  8983. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Fixed the bug that DiskWriterEntry is not created when its
  8985. FileEntry.isRequested() is false and it doesn't share a piece with
  8986. other FileEntries that are requested. This bug causes segmentation fault
  8987. in the end.
  8988. * src/MultiDiskAdaptor.cc
  8989. * src/MultiDiskAdaptor.h
  8990. * src/MultiFileAllocationIterator.cc
  8991. * test/MultiDiskAdaptorTest.cc
  8992. * test/MultiFileAllocationIteratorTest.cc
  8993. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8995. called if the number of file entries are greater than max open files.
  8996. * src/AbstractSingleDiskAdaptor.cc
  8997. * src/AbstractSingleDiskAdaptor.h
  8998. * src/DiskAdaptor.h
  8999. * src/MultiDiskAdaptor.cc
  9000. * src/MultiDiskAdaptor.h
  9001. * test/MultiDiskAdaptorTest.cc
  9002. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Added a constuctor that receives struct timeval.
  9004. Added operator<.
  9005. * src/TimeA2.cc
  9006. * src/TimeA2.h
  9007. * test/TimeTest.cc
  9008. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9009. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9010. * src/CookieParser.cc
  9011. * test/CookieParserTest.cc
  9012. * test/HttpResponseTest.cc
  9013. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Implmented the functions to parse date.
  9015. * src/TimeA2.cc
  9016. * src/TimeA2.h
  9017. * test/TimeTest.cc
  9018. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Added "Firefox3 Cookie" feature to FeatureConfig
  9020. * src/FeatureConfig.cc
  9021. * src/FeatureConfig.h
  9022. * test/FeatureConfigTest.cc
  9023. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9024. Bump up version number to 0.16.0b
  9025. * configure.ac
  9026. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. Use pkg-config if is is available.
  9028. * m4/openssl.m4
  9029. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9031. * src/BtAnnounce.h
  9032. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. If an error occurred with a URI, remove identical URI from remaining
  9034. URI list because it is likely that same error occurred in the end and it
  9035. is waste of time.
  9036. * src/AbstractCommand.cc
  9037. * src/RequestGroup.cc
  9038. * src/RequestGroup.h
  9039. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Removed wrong comment.
  9041. * src/DefaultPeerStorage.cc
  9042. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9044. Added return value of getpid() to argument of srand() to achieve more
  9045. randomized value.
  9046. * src/SimpleRandomizer.cc
  9047. * src/SimpleRandomizer.h
  9048. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9049. Contact tracker frequently when the number of connections are 0 and
  9050. download is not finished yet.
  9051. * src/ActivePeerConnectionCommand.cc
  9052. * src/BtAnnounce.h
  9053. * src/DefaultBtAnnounce.cc
  9054. * src/DefaultBtAnnounce.h
  9055. * test/MockBtAnnounce.h
  9056. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. Moved threshold values to UTPexExtensionMessage.
  9058. * src/DefaultBtInteractive.cc
  9059. * src/Peer.cc
  9060. * src/Peer.h
  9061. * src/UTPexExtensionMessage.cc
  9062. * src/UTPexExtensionMessage.h
  9063. * test/UTPexExtensionMessageTest.cc
  9064. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9065. Added _incoming member to Peer class and made it true if the peer
  9066. initiated connection. Don't add those peer to UTPex message.
  9067. If extended handshake is received, assign _incoming to false.
  9068. * src/DefaultBtInteractive.cc
  9069. * src/HandshakeExtensionMessage.cc
  9070. * src/Peer.cc
  9071. * src/Peer.h
  9072. * src/PeerListenCommand.cc
  9073. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9075. Encoding Decoder. Removed size threshold for turning off on the fly
  9076. inflation because resulting file may or may not be inflated depending
  9077. on the file size and I think it is not expected by users.
  9078. This change fixes segmentation fault when Metalink file contains gzipped
  9079. file and its filesize is provided.
  9080. * src/HttpResponseCommand.cc
  9081. * src/HttpResponseCommand.h
  9082. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Made Cookie immutable.
  9084. * src/Cookie.cc
  9085. * src/Cookie.h
  9086. * src/CookieParser.cc
  9087. * src/CookieParser.h
  9088. * src/CookieStorage.cc
  9089. * test/CookieParserTest.cc
  9090. * test/CookieStorageTest.cc
  9091. * test/NsCookieParserTest.cc
  9092. * test/Sqlite3MozCookieParserTest.cc
  9093. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Removed CookieBox, CookieBoxFactory.
  9095. * src/CookieBox.cc
  9096. * src/CookieBox.h
  9097. * src/CookieBoxFactory.cc
  9098. * src/CookieBoxFactory.h
  9099. * src/Makefile.am
  9100. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. Use CookieStorage class instead of CookieBox class.
  9102. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9103. * src/AbstractProxyRequestCommand.cc
  9104. * src/CookieStorage.cc
  9105. * src/DownloadEngine.cc
  9106. * src/DownloadEngine.h
  9107. * src/HttpConnection.cc
  9108. * src/HttpConnection.h
  9109. * src/HttpRequest.cc
  9110. * src/HttpRequest.h
  9111. * src/HttpRequestCommand.cc
  9112. * src/HttpResponse.cc
  9113. * src/HttpResponseCommand.cc
  9114. * src/HttpSkipResponseCommand.cc
  9115. * src/Makefile.am
  9116. * src/MultiUrlRequestInfo.cc
  9117. * src/Request.cc
  9118. * src/Request.h
  9119. * src/main.cc
  9120. * test/AllTest.cc
  9121. * test/CookieStorageTest.cc
  9122. * test/CookieTest.cc
  9123. * test/HttpRequestTest.cc
  9124. * test/HttpResponseTest.cc
  9125. * test/Makefile.am
  9126. * test/NsCookieParserTest.cc
  9127. * test/Sqlite3MozCookieParserTest.cc
  9128. * test/nscookietest.txt
  9129. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Updated
  9131. * test/Cookies.sqlite
  9132. * test/nscookietest.txt
  9133. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Added tests for CookieStorage::load()
  9135. * test/CookieStorageTest.cc
  9136. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Added CookieStorage class which is based on RFC2109 and manages cookies
  9138. more strictly than CookieBox and CookieBoxFactory class.
  9139. * src/CookieStorage.cc
  9140. * src/CookieStorage.h
  9141. * src/Cookie.cc
  9142. * src/Cookie.h
  9143. * test/CookieStorageTest.cc
  9144. * test/CookieTest.cc
  9145. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Fixed the bug that commands are created more than the number of pieces.
  9147. * src/RequestGroup.cc
  9148. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Fixed infinite loop bug in FTP when SIZE command failed.
  9150. * src/FtpNegotiationCommand.cc
  9151. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Removed DirectDiskAdaptorTest.h
  9153. * test/Makefile.am
  9154. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9155. Fixed chunk checksum validation cannot detect trailing garbage data.
  9156. BUG#2074141
  9157. * src/AbstractSingleDiskAdaptor.cc
  9158. * src/AbstractSingleDiskAdaptor.h
  9159. * src/CheckIntegrityEntry.cc
  9160. * src/CheckIntegrityEntry.h
  9161. * src/DiskAdaptor.h
  9162. * src/MultiDiskAdaptor.cc
  9163. * src/MultiDiskAdaptor.h
  9164. * src/RequestGroup.cc
  9165. * test/DirectDiskAdaptorTest.cc
  9166. * test/MultiDiskAdaptorTest.cc
  9167. * test/TestUtil.cc
  9168. * test/TestUtil.h
  9169. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Bump up version number of dht.dat file to 3. In version 3 format, time
  9171. is stored in 64bit, network byte order.
  9172. New build can load old format(version 2) but it saves the file in new
  9173. format. It means once you used new build, your dht.dat becomes
  9174. incompatible with older build.
  9175. * src/DHTRoutingTableDeserializer.cc
  9176. * src/DHTRoutingTableSerializer.cc
  9177. * test/DHTRoutingTableSerializerTest.cc
  9178. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9180. * test/Makefile.am
  9181. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Bump up version number of .aria2 control file to 0001.
  9183. New aria2 can still load version 0000 file but it saves the file in
  9184. version 0001 format. It means that new aria2 can resume download
  9185. started by old aria2 but the opposite is not true.
  9186. * src/DefaultBtProgressInfoFile.cc
  9187. * src/DefaultBtProgressInfoFile.h
  9188. * test/DefaultBtProgressInfoFileTest.cc
  9189. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Added ntoh64 and hton64 as inline functions.
  9191. * src/Util.cc
  9192. * test/UtilTest.cc
  9193. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9194. Added sqlite3 depenency and Firefox3 cookie support.
  9195. * README
  9196. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. State that firefox3 cookie is supported explicitly in the usage.
  9198. * src/usage_text.h
  9199. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Externalized message.
  9201. * src/RequestGroupMan.cc
  9202. * src/message.h
  9203. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9204. Save temporary file first and rename to the destination on success.
  9205. Added test cases.
  9206. * src/RequestGroupMan.cc
  9207. * test/RequestGroupManTest.cc
  9208. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Fixed the bug that the number of connected peer is exceeding the limit
  9210. (55 by default) in seeding mode.
  9211. Multiplied 0.8 to _maxUploadSpeedLimit.
  9212. * src/ActivePeerConnectionCommand.cc
  9213. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Clear table item.
  9215. * src/Dictionary.cc
  9216. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Fixed error handling of lseek.
  9218. * src/AbstractDiskWriter.cc
  9219. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9221. style cookie file.
  9222. * src/usage_text.h
  9223. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9225. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9226. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9227. * src/Util.cc
  9228. * src/Util.h
  9229. * src/CookieParser.cc
  9230. * test/UtilTest.cc
  9231. * test/CookieParserTest.cc
  9232. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Separate the implementation to load old mozilla format of cookie to
  9234. NsCookieParser class.
  9235. * src/CookieBoxFactory.cc
  9236. * src/CookieBoxFactory.h
  9237. * src/NsCookieParser.cc
  9238. * src/NsCookieParser.h
  9239. * test/NsCookieParserTest.cc
  9240. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. Made parse() const
  9242. * src/Sqlite3MozCookieParser.cc
  9243. * src/Sqlite3MozCookieParser.h
  9244. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Added firefox3 cookie support based on the patch submitted by
  9246. tizianomueller.
  9247. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9248. this functionality.
  9249. * configure.ac
  9250. * m4/sqlite3.m4
  9251. * src/CookieBoxFactory.cc
  9252. * src/CookieBoxFactory.h
  9253. * src/Makefile.am
  9254. * src/Makefile.in
  9255. * src/Sqlite3MozCookieParser.cc
  9256. * src/Sqlite3MozCookieParser.h
  9257. * src/main.cc
  9258. * test/CookieBoxFactoryTest.cc
  9259. * test/Makefile.am
  9260. * test/Makefile.in
  9261. * test/Sqlite3MozCookieParserTest.cc
  9262. * test/badcookies.sqlite
  9263. * test/cookies.sqlite
  9264. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9265. Added Danish and Greek translations.
  9266. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9267. Great thanks to all translators.
  9268. * po/LINGUAS
  9269. * po/el.po
  9270. * po/da.po
  9271. * po/es.po
  9272. * po/ca.po
  9273. * po/nn.po
  9274. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Fixed man page: --follow-bittorrent should be --follow-torrent
  9276. * doc/aria2c.1.txt
  9277. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Fixed: numCommand is less than the value specified in -C option.
  9279. * src/RequestGroup.cc
  9280. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Fixed occasional assertion failure in PieceSegment.
  9282. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9283. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9284. creation of duplicate segments and one of the segment was finished then
  9285. assertion failure was caused.
  9286. * src/SegmentMan.cc
  9287. * test/SegmentManTest.cc
  9288. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Added options to load/save the server's performance/status to a file
  9290. and the timeout to drop their data.
  9291. --server-stat-of=FILE specifies the file to which performance data
  9292. is saved.
  9293. --server-stat-if=FILE specifies the file to read previously saved
  9294. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9295. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9296. TIMEOUT is specified in seconds and the default value is 24hours.
  9297. * src/MultiUrlRequestInfo.cc
  9298. * src/OptionHandlerFactory.cc
  9299. * src/RequestGroupMan.cc
  9300. * src/RequestGroupMan.h
  9301. * src/ServerStatMan.cc
  9302. * src/ServerStatMan.h
  9303. * src/option_processing.cc
  9304. * src/prefs.cc
  9305. * src/prefs.h
  9306. * test/ServerStatManTest.cc
  9307. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9309. * src/ServerStatMan.cc
  9310. * src/ServerStatMan.h
  9311. * test/ServerStatManTest.cc
  9312. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9313. Implemented ServerStatMan::load(...) function and its test case.
  9314. * src/ServerStat.cc
  9315. * src/ServerStat.h
  9316. * src/ServerStatMan.cc
  9317. * test/ServerStatManTest.cc
  9318. * test/ServerStatTest.cc
  9319. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Use time_t instead of int32_t. Use int64_t where milli second is
  9321. expected.
  9322. * src/TimeA2.cc
  9323. * src/TimeA2.h
  9324. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Implemented ServerStatMan::save(...) function and its test case.
  9326. * src/ServerStat.cc
  9327. * src/ServerStat.h
  9328. * src/ServerStatMan.cc
  9329. * src/ServerStatMan.h
  9330. * test/ServerStatManTest.cc
  9331. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Now aria2 uses name attribute in Metalink as local filename in
  9333. BitTorrent downloads. BUG#2033999
  9334. * src/BtContext.h
  9335. * src/BtDependency.cc
  9336. * src/DefaultBtContext.cc
  9337. * src/DefaultBtContext.h
  9338. * src/SingleFileDownloadContext.cc
  9339. * src/SingleFileDownloadContext.h
  9340. * test/BtDependencyTest.cc
  9341. * test/DefaultBtContextTest.cc
  9342. * test/MockBtContext.h
  9343. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Added AC_C_BIGENDIAN
  9345. * src/configure.ac
  9346. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Limited numCommand less than or equal to the number of piece.
  9348. * src/RequestGroup.cc
  9349. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9351. directive.
  9352. * test/DefaultPieceStorageTest.cc
  9353. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9354. Fixed memory leak in test code
  9355. * test/AnnounceListTest.cc
  9356. * test/DefaultPeerListProcessorTest.cc
  9357. * test/DefaultPeerStorageTest.cc
  9358. * test/MetaFileUtilTest.cc
  9359. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9361. * src/DefaultPieceStorage.cc
  9362. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9363. Initialized _directIOAllowed
  9364. * src/MultiDiskAdaptor.cc
  9365. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Fixed memory leak
  9367. * src/GZipDecoder.cc
  9368. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Fixed memory leak
  9370. * src/MetalinkParserStateMachine.cc
  9371. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Fixed memory leak
  9373. * src/Dictionary.cc
  9374. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. Fixed memory leak
  9376. * src/IteratableChunkChecksumValidator.h
  9377. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Fixed unmatched malloc/free.
  9379. * src/IteratableChunkChecksumValidator.cc
  9380. * src/IteratableChecksumValidator.cc
  9381. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Removed max chunk size check. This change fixes BUG#2040169
  9383. * src/ChunkedDecoder.cc
  9384. * src/ChunkedDecoder.h
  9385. * test/ChunkedDecoderTest.cc
  9386. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Implemented download speed based URI selection algorithm.
  9388. Introduced new option --uri-selector.
  9389. If --uri-selector=feedback is given, aria2 uses download speed observed
  9390. in the previous downloads and chooses fastest server in the URI list.
  9391. Currently at most 10 URIs are considered to introduce randomeness for
  9392. finding better servers. The speed is average download speed in the
  9393. downloads.
  9394. On the other hand, if --uri-selector=inorder is given, which is default,
  9395. URI is tried in order in URI list.
  9396. The usage text for the new option has not been written yet.
  9397. * src/AbstractCommand.cc
  9398. * src/DownloadCommand.cc
  9399. * src/DownloadEngine.cc
  9400. * src/DownloadEngineFactory.cc
  9401. * src/InOrderURISelector.cc
  9402. * src/InOrderURISelector.h
  9403. * src/OptionHandlerFactory.cc
  9404. * src/PeerStat.h
  9405. * src/RequestGroup.cc
  9406. * src/RequestGroup.h
  9407. * src/RequestGroupMan.cc
  9408. * src/RequestGroupMan.h
  9409. * src/SegmentMan.cc
  9410. * src/SegmentMan.h
  9411. * src/ServerStat.cc
  9412. * src/ServerStat.h
  9413. * src/ServerStatMan.cc
  9414. * src/ServerStatMan.h
  9415. * src/ServerStatURISelector.cc
  9416. * src/ServerStatURISelector.h
  9417. * src/URISelector.h
  9418. * src/option_processing.cc
  9419. * src/prefs.cc
  9420. * src/prefs.h
  9421. * test/InOrderURISelectorTest.cc
  9422. * test/RequestGroupManTest.cc
  9423. * test/ServerStatManTest.cc
  9424. * test/ServerStatURISelectorTest.cc
  9425. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. * Release 0.15.1+2
  9427. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9428. Bump up version number to 0.15.1+2
  9429. * configure.ac
  9430. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9432. * m4/aria2_arg.m4
  9433. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. * Release 0.15.1+1
  9435. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. Bump up version number to 0.15.1+1
  9437. * configure.ac
  9438. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Fixed the bug that causes segmentaion fault when resuming download
  9440. using metalink without size tag. Reproducible only using HTTP URI.
  9441. * src/HttpResponseCommand.cc
  9442. * src/FtpNegotiationCommand.cc
  9443. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. * Release 0.15.1
  9445. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Updated Bulgarian and French translations, thanks to all translators.
  9447. * po/bg.po
  9448. * po/fr.po
  9449. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Bump up version number to 0.15.1
  9451. * configure.ac
  9452. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9453. Avoid repeated call of gettimeofday() when calculating speed.
  9454. * src/SpeedCalc.cc
  9455. * src/SpeedCalc.h
  9456. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Removed writable check when socket's send buffer is full in BitTorrent
  9458. downloads to lower CPU usage.
  9459. * src/PeerInteractionCommand.cc
  9460. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Fixed broken gzip inflation.
  9462. Turn off segmented downloading if gzip content is smaller than or equal
  9463. to 1MiB and inflate the data on the fly, because HTTP response header
  9464. doesn't contain the length of inflated file we can't determin where
  9465. the chunk of data should be written.
  9466. On the other hand, if gzip content is larger than 1MB, then turn off
  9467. on the fly inflation, because some servers returns "content-type: gzip"
  9468. for *.tgz, *.gz files.
  9469. * src/DownloadCommand.cc
  9470. * src/HttpResponseCommand.cc
  9471. * src/HttpResponseCommand.h
  9472. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9473. Applied tizianomueller's patch to fix compile error.
  9474. * test/BitfieldManTest.cc
  9475. * test/BtRequestMessageTest.cc
  9476. * test/DefaultBtContextTest.cc
  9477. * test/DefaultDiskWriterTest.cc
  9478. * test/DefaultPieceStorageTest.cc
  9479. * test/HttpHeaderProcessorTest.cc
  9480. * test/HttpResponseTest.cc
  9481. * test/Metalink2RequestGroupTest.cc
  9482. * test/MetalinkParserControllerTest.cc
  9483. * test/MetalinkProcessorTest.cc
  9484. * test/PeerSessionResourceTest.cc
  9485. * test/UtilTest.cc
  9486. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. * Release 0.15.0
  9488. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Reordered src files in POTFILES.in so that usage text appears first.
  9490. * po/POTFILES.in
  9491. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. Bump up version number to 0.15.0
  9493. * configure.ac
  9494. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9495. Added Bulgarian translation.
  9496. Updated Catalan, Spanish, French and Japanese translations.
  9497. Thanks to all translators.
  9498. * po/LINGUAS
  9499. * po/bg.po
  9500. * po/ca.po
  9501. * po/es.po
  9502. * po/fr.po
  9503. * po/ja.po
  9504. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Updated feature list. Added libz for dependency section.
  9506. Added a description about unit testing using CppUnit.
  9507. * README
  9508. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Added a test for libz. Quoted where it is necessary.
  9510. * build_test.sh
  9511. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Added GZip to `Enabled Features' list.
  9513. * src/FeatureConfig.cc
  9514. * src/FeatureConfig.h
  9515. * test/FeatureConfigTest.cc
  9516. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9518. the transfer has not yet started.
  9519. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9520. * src/SegmentMan.cc
  9521. * src/SegmentMan.h
  9522. * test/SegmentManTest.cc
  9523. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Cache last calculated average download/upload speed.
  9525. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9526. cached value.
  9527. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9528. * src/PeerStat.h
  9529. * src/SpeedCalc.cc
  9530. * src/SpeedCalc.h
  9531. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Call parseUrl directly.
  9533. * src/Request.cc (resetUrl)
  9534. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Supported absolute/relative path in Location header field.
  9536. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9537. * src/HttpHeader.cc
  9538. * src/HttpHeader.h
  9539. * src/HttpResponse.cc
  9540. * src/HttpSkipResponseCommand.cc
  9541. * src/Request.cc
  9542. * test/HttpHeaderTest.cc
  9543. * test/HttpResponseTest.cc
  9544. * test/RequestTest.cc
  9545. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Changed help text for --load-cookie option.
  9547. * doc/aria2c.1.txt
  9548. * src/usage_text.h
  9549. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Regenerated test/Makefile.in to remove stale ChangeLog.
  9551. * test/Makefile.in
  9552. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9553. Updated po files.
  9554. * po/aria2c.pot
  9555. * po/*.po
  9556. * po/*.gmo
  9557. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Bump up version number to 0.15.0b
  9559. * configure.ac
  9560. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Externalize messages.
  9562. * src/RequestGroupMan.cc
  9563. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9564. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Use File::exists() instead of File::isFile() to allow non-regular file
  9566. such as block special files.
  9567. * src/AbstractDiskWriter.cc
  9568. * src/MultiDiskWriter.cc
  9569. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9570. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9571. * src/gai_strerror.h
  9572. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Fixed compile error. Thanks gknauf for the patch.
  9574. * src/asctime_r.c
  9575. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Included asctime_r.h from a2time.h.
  9577. * src/a2time.h
  9578. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. Added a message "aria2 doesn't verify signature" to log message when
  9580. signature file is saved.
  9581. * src/RequestGroupMan.cc
  9582. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Added the ability to save signature when download is completed if
  9584. signature is available. The filename of signature file is the path to
  9585. download file followed by ".sig". If it already exists, then signature
  9586. will not be saved.
  9587. * src/RequestGroupMan.cc
  9588. * src/Signature.cc
  9589. * test/SignatureTest.cc
  9590. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Updated the descriptions for --bt-seed-unverified.
  9592. * doc/aria2c.1
  9593. * doc/aria2c.1.html
  9594. * doc/aria2c.1.txt
  9595. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9597. that this is not going to verify files using piece hashes.
  9598. * src/HelpItemFactory.cc
  9599. * src/OptionHandlerFactory.cc
  9600. * src/RequestGroup.cc
  9601. * src/option_processing.cc
  9602. * src/prefs.cc
  9603. * src/prefs.h
  9604. * src/usage_text.h
  9605. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. Added the ability to retrieve signature from Metalink file.
  9607. A retrieved signature is stored in Signature class and it is held by
  9608. DownloadContext class. Note that aria2 doesn't verify signature.
  9609. * src/DownloadContext.cc
  9610. * src/DownloadContext.h
  9611. * src/Makefile.am
  9612. * src/Makefile.in
  9613. * src/Metalink2RequestGroup.cc
  9614. * src/MetalinkEntry.cc
  9615. * src/MetalinkEntry.h
  9616. * src/MetalinkParserController.cc
  9617. * src/MetalinkParserController.h
  9618. * src/MetalinkParserStateMachine.cc
  9619. * src/MetalinkParserStateMachine.h
  9620. * src/Signature.cc
  9621. * src/Signature.h
  9622. * src/SignatureMetalinkParserState.cc
  9623. * src/SignatureMetalinkParserState.h
  9624. * src/VerificationMetalinkParserState.cc
  9625. * src/VerificationMetalinkParserState.h
  9626. * test/Metalink2RequestGroupTest.cc
  9627. * test/MetalinkParserControllerTest.cc
  9628. * test/MetalinkProcessorTest.cc
  9629. * test/test.xml
  9630. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. Close DiskAdaptor after renaming file.
  9632. * src/RequestGroup.cc
  9633. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Corrected indentation
  9635. * src/DefaultBtProgressInfoFile.cc
  9636. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. Moved the calls of std::ios::exceptions() inside of try-catch block
  9638. because if an error occurred in constructor of std::fstream, then
  9639. exception is thrown immediately when std::ios::exceptions() is called
  9640. which results unhandled exception and aria2c aborts.
  9641. * src/DefaultBtProgressInfoFile.cc
  9642. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Added the test for the previous change in DefaultBtContext.cc
  9644. * test/DefaultBtContextTest.cc
  9645. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. Fixed the bug that causes infinite loop when the number of pieces are
  9647. fewer than allowed fast set size which is 10 by default.
  9648. * src/DefaultBtContext.cc
  9649. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9650. Updated the descriptions for -j, -s. Added --bt-seed.
  9651. * doc/aria2c.1
  9652. * doc/aria2c.1.html
  9653. * doc/aria2c.1.txt
  9654. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9655. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9656. aria2 seeds previously downloaded files without validating piece hashs.
  9657. * src/HelpItemFactory.cc
  9658. * src/OptionHandlerFactory.cc
  9659. * src/RequestGroup.cc
  9660. * src/option_processing.cc
  9661. * src/prefs.cc
  9662. * src/prefs.h
  9663. * src/usage_text.h
  9664. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Updated DESCRIPTION of man page.
  9666. * doc/aria2c.1
  9667. * doc/aria2c.1.html
  9668. * doc/aria2c.1.txt
  9669. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9671. Don't define `struct addrinfo' when __sun is defined.
  9672. * src/getaddrinfo.h
  9673. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9674. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9675. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9676. second argument is of type `struct _stati64'. Otherwise it is defined as
  9677. `struct stat'.
  9678. * src/AbstractDiskWriter.cc
  9679. * src/File.cc
  9680. * src/File.h
  9681. * src/a2io.h
  9682. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Fixed the compile error in hurd-i386
  9684. See the original bug report:
  9685. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9686. * src/a2io.h
  9687. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Code cleanup.
  9689. * src/PeerAbstractCommand.cc
  9690. * src/PeerAbstractCommand.h
  9691. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Removed TransferEncoding.
  9693. * src/DownloadCommand.cc
  9694. * src/DownloadCommand.h
  9695. * src/HttpResponseCommand.cc
  9696. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. Updated po files.
  9698. * po/aria2c.pot
  9699. * po/*.po
  9700. * po/*.gmo
  9701. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9703. * src/A2STR.cc
  9704. * src/A2STR.h
  9705. * src/ChunkedDecoder.cc
  9706. * src/ChunkedDecoder.h
  9707. * src/ChunkedEncoding.cc: Removed
  9708. * src/ChunkedEncoding.h: Removed
  9709. * src/DownloadCommand.cc
  9710. * src/DownloadCommand.h
  9711. * src/HttpDownloadCommand.cc
  9712. * src/HttpResponse.cc
  9713. * src/HttpResponse.h
  9714. * src/HttpResponseCommand.cc
  9715. * src/HttpSkipResponseCommand.cc
  9716. * src/HttpSkipResponseCommand.h
  9717. * src/Makefile.am
  9718. * src/TransferEncoding.h: Removed
  9719. * test/ChunkedDecoderTest.cc
  9720. * test/ChunkedEncodingTest.cc: Removed
  9721. * test/HttpResponseTest.cc
  9722. * test/Makefile.am
  9723. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. Use append instead of insert.
  9725. * src/GZipDecoder.cc
  9726. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Updated doc
  9728. * src/Decoder.h
  9729. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Updated usage text for -s option.
  9731. * src/usage_text.h
  9732. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9734. * src/Request.cc
  9735. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Cleaned up configure.ac.
  9737. * configure.ac
  9738. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9740. AC_ARG_ENABLE.
  9741. * configure.ac
  9742. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9744. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9745. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9746. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9747. fly and writes decoded data to a local disk.
  9748. * README
  9749. * README.html
  9750. * configure.ac
  9751. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9752. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9753. * m4/libz.m4
  9754. * src/Decoder.h
  9755. * src/DownloadCommand.cc
  9756. * src/DownloadCommand.h
  9757. * src/Exception.h
  9758. * src/GZipDecoder.cc
  9759. * src/GZipDecoder.h
  9760. * src/HttpHeader.cc
  9761. * src/HttpHeader.h
  9762. * src/HttpRequest.cc
  9763. * src/HttpRequest.h
  9764. * src/HttpResponse.cc
  9765. * src/HttpResponse.h
  9766. * src/HttpResponseCommand.cc
  9767. * src/Makefile.am
  9768. * test/GZipDecoderTest.cc
  9769. * test/HttpRequestTest.cc
  9770. * test/HttpResponseTest.cc
  9771. * test/Makefile.am
  9772. * test/Makefile.in
  9773. * test/gzip_decode_test.gz
  9774. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9775. Clarified usage of -j option.
  9776. * src/usage_text.h
  9777. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Disabled getting size from the response of RETR.
  9779. If SIZE command failed, then disable resuming and segmented downloading.
  9780. * src/FtpConnection.cc
  9781. * src/FtpConnection.h
  9782. * src/FtpNegotiationCommand.cc
  9783. * src/FtpNegotiationCommand.h
  9784. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9785. Use digits to find first byte of file size, which makes the intention
  9786. of the code clearer.
  9787. * src/FtpConnection.cc
  9788. Don't call validateTotalLength() when size is 0.
  9789. * src/FtpNegotiationCommand.cc
  9790. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. Updated po files.
  9792. * po/aria2c.pot
  9793. * po/*.gmo
  9794. * po/*.po
  9795. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Clarified usage text for --split option.
  9797. * src/usage_text.h
  9798. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Bump up version number to 0.15.0dev. "dev" means "development"
  9800. version, which means I started the development of the next release!
  9801. * src/configure.ac
  9802. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9803. If FTP server returns negative response with REST raw command and
  9804. requested range is not 0, throw exception. If requested range is 0,
  9805. continue download a file from 0 byte.
  9806. * src/FtpNegotiationCommand.cc
  9807. * src/FtpNegotiationCommand.h
  9808. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Supported FTP server which don't recognize SIZE raw command.
  9810. If SIZE raw command is failed, aria2 will try to get file size
  9811. from the response of RETR raw command. If both attempts are failed,
  9812. then resuming and segmented downloading are disabled.
  9813. * src/FtpConnection.cc
  9814. * src/FtpConnection.h
  9815. * src/FtpNegotiationCommand.cc
  9816. * src/FtpNegotiationCommand.h
  9817. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9818. * Release 0.14.0+1
  9819. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. Bump up version number to 0.14.0+1
  9821. * src/configure.ac
  9822. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. Fixed the code that refers static member variable from non-static
  9824. context.
  9825. * src/DefaultPeerStorage.cc
  9826. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9827. * Release 0.14.0
  9828. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Added build test script
  9830. * build_test.sh
  9831. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Updated ja.po
  9833. * src/ja.po
  9834. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Bump up version number to 0.14.0
  9836. * src/configure.ac
  9837. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. Updated ja.po and fr.po. Great thanks for french translators and
  9839. Sebastien WILLEMIJNS.
  9840. * po/fr.po
  9841. * po/ja.po
  9842. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Added configure option to enable/disable epoll support.
  9844. * configure.ac
  9845. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9846. Updated man page.
  9847. * doc/aria2c.1.txt
  9848. * doc/aria2c.1
  9849. * doc/aria2c.1.html
  9850. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. Added missing default value '5' to the usage of --split option.
  9852. * src/HelpItemFactory.cc
  9853. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. Filled up pieces based on the number of missing blocks, rather than
  9855. simplay the number of piece * block length.
  9856. * src/BtRequestFactory.h
  9857. * src/DefaultBtInteractive.cc
  9858. * src/DefaultBtInteractive.h
  9859. * src/DefaultBtRequestFactory.cc
  9860. * src/DefaultBtRequestFactory.h
  9861. * src/Piece.cc
  9862. * src/Piece.h
  9863. * test/BitfieldManTest.cc
  9864. * test/DefaultBtRequestFactoryTest.cc
  9865. * test/MockBtRequestFactory.h
  9866. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9867. Made _epEvents a member variable.
  9868. * src/DownloadEngine.cc
  9869. * src/DownloadEngine.h
  9870. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9871. Cancel download if http redirect is bounded more than 20 times.
  9872. * src/AbstractCommand.cc
  9873. * src/HttpSkipResponseCommand.cc
  9874. * src/Request.cc
  9875. * src/Request.h
  9876. * test/RequestTest.cc
  9877. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. Fixed unhandled exception(removed keyword `new').
  9879. * src/SocketCore.cc (initEPOLL)
  9880. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Removed visit(const MetaEntry*)
  9882. * src/MetaEntryVisitor.h:
  9883. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9884. and made them virtual.
  9885. * src/BencodeVisitor.h
  9886. * src/BencodeVisitor.cc
  9887. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. Updated po files.
  9889. * po/aria2c.pot
  9890. * po/*.po
  9891. * po/*.gmo
  9892. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9894. the number of socket to watch out.
  9895. * src/PeerInteractionCommand.cc
  9896. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9897. When there is not enough space in disk when writing a chunk of data,
  9898. aria2 now prints the message to the console to warn user and aborts
  9899. its download. Not all downloads are canceled because some downloads
  9900. may use another disk or partition. BUG#1640332
  9901. * src/AbstractDiskWriter.cc
  9902. * src/PeerAbstractCommand.cc
  9903. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9904. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9905. setHaltRequested(true) to cancel download.
  9906. * src/PeerInteractionCommand.h
  9907. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9909. socket from int to sock_t as sockets are unsigned in Windows.
  9910. For AsyncNameResolver, DownloadEngine, I did additional modification
  9911. for the portion of the code changed according to epoll support.
  9912. I defined sock_t in a2netcompat.h to use sock_t without including
  9913. SocketCore.h.
  9914. * src/AsyncNameResolver.cc
  9915. * src/AsyncNameResolver.h
  9916. * src/DownloadEngine.cc
  9917. * src/DownloadEngine.h
  9918. * src/SocketCore.cc
  9919. * src/SocketCore.h
  9920. * src/a2netcompat.h
  9921. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9922. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9923. changes in the patch were applied.
  9924. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9925. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9926. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9927. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9928. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9929. a2io.h and common.h were modified.
  9930. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9931. MinGW.
  9932. * src/common.h: Changed off_t to 64 bit in MinGW.
  9933. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9935. only a2netcompat.h is modified.
  9936. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9937. directives.
  9938. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9940. only gai_strerror.h is modified.
  9941. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9942. winsock errors in MinGW.
  9943. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9945. follow sources are applied.
  9946. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9947. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9948. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9949. I included locale.h from Platform.cc.
  9950. * src/main.cc: Moved common setup/teardown code to Platform class.
  9951. * test/AllTest.cc: Use Platform class.
  9952. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9953. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9955. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9956. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9957. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9958. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9959. aria2-0.13.2+1-mingw-2.patch.
  9960. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9961. systems which don't have termious.h. I moved the directive inside of
  9962. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9963. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9964. anyway.
  9965. * src/asctime_r.h
  9966. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9967. I added 2nd argument to the prototype declaration.
  9968. * src/StringFormat.cc: Get rid of vasprintf.
  9969. * src/getaddrinfo.h: Fixed constants.
  9970. * configure.ac: Added the check for asctime_r function.
  9971. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9972. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Added writable test for Socket when the sending message is in progress.
  9974. Usually the sending message is piece message. Without wriable check,
  9975. upload latency is dropped to more than 1sec.
  9976. * src/PeerInteractionCommand.cc
  9977. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. Create only requested files and files which shares a piece with
  9979. requested file in multi-torrent downloads. Directory structures are
  9980. also created in the same rule.
  9981. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9982. DiskWriterEntry as in the previous implementation.
  9983. * src/MultiDiskWriter.cc
  9984. * src/MultiFileAllocationIterator.cc
  9985. * src/MultiFileAllocationIterator.h
  9986. * test/MultiFileAllocationIteratorTest.cc
  9987. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Commented out -lprofiler
  9989. * src/Makefile.am
  9990. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. Bump up version number to 0.14.0b.
  9992. * src/configure.ac
  9993. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9994. Actively establish connection to peers in seeding, when peer cache
  9995. is not full and max upload speed limit is not reached.
  9996. * src/ActivePeerConnectionCommand.cc
  9997. * src/ActivePeerConnectionCommand.h
  9998. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10000. to make room more fleshy, recently found peers.
  10001. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10002. it.
  10003. * src/DefaultPeerStorage.cc
  10004. * test/DefaultPeerStorageTest.cc
  10005. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Returns cached data only when the previous receiveHandshake() is called
  10007. with peek = true.
  10008. * src/PeerConnection.cc (receiveHandshake)
  10009. * src/PeerConnection.h (receiveHandshake)
  10010. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Changed default value of -s option from 1 to 5.
  10012. Also max value of -s option is changed from 5 to 16.
  10013. * src/HelpItemFactory.cc
  10014. * src/OptionHandlerFactory.cc
  10015. * src/option_processing.cc
  10016. * src/usage_text.h
  10017. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Changed -s options behavior. Now it means the number of connections
  10019. made simultaneously in each http/ftp download.
  10020. If 1 URL is specified, the behavior is the same with old implementation.
  10021. If -s N is given and more than N URLs are specified, first N URLs are
  10022. used and remaining URLs are used for backup. If less than N URLs are
  10023. specified, some of URLs are used more than once so that totally N
  10024. connections are made simultaneously.
  10025. * src/main.cc
  10026. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Included missing iosfwd or ostream header.
  10028. * src/RequestGroupMan.cc
  10029. * src/TaggedItem.cc
  10030. * src/TaggedItem.h
  10031. * src/Util.cc
  10032. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10034. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10035. * src/HttpConnection.cc: Included missing sstream.
  10036. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. Added --bt-max-open-files option.
  10038. * src/DefaultPieceStorage.cc
  10039. * src/HelpItemFactory.cc
  10040. * src/MultiDiskAdaptor.cc
  10041. * src/MultiDiskAdaptor.h
  10042. * src/OptionHandlerFactory.cc
  10043. * src/option_processing.cc
  10044. * src/prefs.cc
  10045. * src/prefs.h
  10046. * src/usage_text.h
  10047. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Fixed the bug that aria2 aborts when a path to a directory is given
  10049. in command-line.
  10050. * src/ProtocolDetector.cc
  10051. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Limited the number files opened in each BitTorrent download. The default
  10053. value is 100. The option to change this value will be added.
  10054. * src/MultiDiskAdaptor.cc
  10055. * src/MultiDiskAdaptor.h
  10056. * src/MultiFileAllocationIterator.cc
  10057. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Fixed the bug that HTTP downloads don't start with old libraries.
  10059. * src/HttpHeaderProcessor.cc
  10060. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Use empty() instead of size() > 0.
  10062. * src/HttpConnection.cc
  10063. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Drop connection if the incoming peer ID is the same with localhost's
  10065. one. The previous implementation drops connection when incoming peer's
  10066. IP address is the same with localhost's one.
  10067. * src/PeerListenCommand.cc
  10068. * src/DefaultBtInteractive.cc
  10069. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Returns cached data without checking whether socket is readable
  10071. if the cache is available.
  10072. * src/PeerConnection.cc (receiveHandshake)
  10073. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Included stdint.h
  10075. * src/common.h
  10076. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10077. Removed duplicate HAVE_GETTIMEOFDAY
  10078. * src/Makefile.am
  10079. * src/Makefile.in
  10080. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10081. Use interval as a minInterval when minInterval is not supplied.
  10082. * src/DefaultBtAnnounce.cc
  10083. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10085. attempt is failed, then 2nd attempt get kicked out more quickly.
  10086. And it is now static const member of DefaultBtAnnounce.
  10087. * src/DefaultBtAnnounce.h
  10088. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10090. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10091. * src/ActivePeerConnectionCommand.cc
  10092. * src/BtConstants.h
  10093. * src/BtRuntime.h
  10094. * src/DHTGetPeersCommand.cc
  10095. * src/DefaultBtAnnounce.cc
  10096. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10097. BtRuntime::MAX_PEERS.
  10098. * src/DefaultPeerStorage.h
  10099. * src/InitiatorMSEHandshakeCommand.cc
  10100. * src/PeerInitiateConnectionCommand.cc
  10101. * src/PeerInteractionCommand.cc
  10102. * src/PeerReceiveHandshakeCommand.cc
  10103. * src/TrackerWatcherCommand.cc
  10104. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Always Connect to _numNewConnection
  10106. * src/ActivePeerConnectionCommand.cc
  10107. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Made `begin' unsigned int.
  10109. * src/GrowSegment.h
  10110. * src/Piece.cc
  10111. * src/Piece.h
  10112. * src/PiecedSegment.cc
  10113. * src/PiecedSegment.h
  10114. * src/Segment.h
  10115. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Calculate piece hash when data is arrived if the data is arrived in
  10117. order. This removes additional read operation for hash calculation.
  10118. If the data is arrived in out of order, the hash is calucated when the
  10119. piece is completed. This is the same behavior as the old implementation.
  10120. * src/BtPieceMessage.cc
  10121. * src/DefaultBtProgressInfoFile.cc
  10122. * src/DefaultPieceStorage.cc
  10123. * src/DownloadCommand.cc
  10124. * src/DownloadCommand.h
  10125. * src/DownloadEngine.cc
  10126. * src/GrowSegment.cc
  10127. * src/GrowSegment.h
  10128. * src/Piece.cc
  10129. * src/Piece.h
  10130. * src/PiecedSegment.cc
  10131. * src/PiecedSegment.h
  10132. * src/Segment.h
  10133. * test/PieceTest.cc
  10134. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Try to keep the ordering of outgoing piece message.
  10136. * src/DefaultBtMessageDispatcher.cc
  10137. (DefaultBtMessageDispatcher::sendMessages)
  10138. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Fixed busy loop when error/hup epoll events occur.
  10140. * src/AbstractCommand.cc
  10141. * src/PeerAbstractCommand.cc
  10142. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10143. Added --bt-request-peer-speed-limit option, which was a constant
  10144. SLOW_SPEED_THRESHOLD.
  10145. * src/ActivePeerConnectionCommand.cc
  10146. * src/ActivePeerConnectionCommand.h
  10147. * src/BtConstants.h
  10148. * src/HelpItemFactory.cc
  10149. * src/OptionHandlerFactory.cc
  10150. * src/PeerReceiveHandshakeCommand.cc
  10151. * src/option_processing.cc
  10152. * src/prefs.cc
  10153. * src/prefs.h
  10154. * src/usage_text.h
  10155. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Removed repeated call of getTopDirPath(). Instead, call it once and
  10157. cache the result.
  10158. * src/MultiDiskAdaptor.cc
  10159. * src/MultiDiskAdaptor.h
  10160. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10161. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Fixed compile error on debian etch.
  10163. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10164. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10165. it is undefined.
  10166. * src/Util.cc (ULLONG_MAX)
  10167. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Added epoll support. Use epoll if it is available. If not, use select.
  10169. When async dns is enabled in compile time, epoll support is enabled
  10170. only when aria2 is built with c-ares. This condition statement is
  10171. defined in a2io.h.
  10172. Currently aria2 supports both c-ares and ares, but ares is maintained
  10173. for quite a while and debian already has c-ares package, ares support
  10174. will be dropped in the future version.
  10175. * configure.ac
  10176. * src/AbstractCommand.cc
  10177. * src/AsyncNameResolver.cc
  10178. * src/AsyncNameResolver.h
  10179. * src/Command.cc
  10180. * src/Command.h
  10181. * src/DownloadEngine.cc
  10182. * src/DownloadEngine.h
  10183. * src/PeerAbstractCommand.cc
  10184. * src/SocketCore.cc
  10185. * src/SocketCore.h
  10186. * src/a2io.h
  10187. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10189. directive.
  10190. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10191. Do not do write operation to /dev/null file.
  10192. * src/LogFactory.cc
  10193. * src/SimpleLogger.cc
  10194. Replaced vasprintf with vsnprintf
  10195. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10196. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10197. * src/BtRequestMessage.cc
  10198. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10199. for segmentation fault caused by previous commit.
  10200. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Reduced the usage of gettimeofday().
  10202. * src/DefaultBtMessageDispatcher.cc
  10203. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10204. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10205. * src/RequestSlot.cc
  10206. * src/RequestSlot.h
  10207. (RequestSlot::isTimeout)
  10208. Made RequestSlot have a reference to Piece object to avoid find
  10209. Piece repeatedly.
  10210. * src/DefaultBtMessageDispatcher.cc
  10211. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10212. * src/RequestSlot.cc
  10213. * src/RequestSlot.h
  10214. (RequestSlot::getPiece)
  10215. * test/DefaultBtMessageDispatcherTest.cc
  10216. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. * src/TimeA2.cc
  10218. * src/TimeA2.h
  10219. (Time::difference): New function.
  10220. (Time::elapsed): Done optimization.
  10221. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10222. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10223. directive.
  10224. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. * src/option_processing.cc: Added missing `defined' keyword to #if
  10226. directive.
  10227. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10228. Bump up version number to 0.13.2+1
  10229. * src/configure.ac
  10230. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. Refactored broken outstanding piece handling.
  10232. * src/DefaultPieceStorage.cc
  10233. * src/DefaultPieceStorage.h
  10234. * src/Piece.cc
  10235. * src/Piece.h
  10236. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10237. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10238. name collision of static variable and predefined macro.
  10239. * src/BtContext.cc
  10240. * src/BtContext.h
  10241. * src/CookieBoxFactory.cc
  10242. * src/CookieBoxFactory.h
  10243. * src/CookieParser.cc
  10244. * src/CookieParser.h
  10245. * src/DefaultBtContext.cc
  10246. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. * src/RequestGroup.cc
  10248. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10249. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. * Release 0.13.2
  10251. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10253. * po/fr.po
  10254. * po/ja.po
  10255. * po/aria2c.pot
  10256. * po/*.po
  10257. * po/*.gmo
  10258. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Bump up version number to 0.13.2
  10260. * src/configure.ac
  10261. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. Refactord.
  10263. * src/RequestGroupMan.cc
  10264. (removeStoppedGroup)
  10265. (fillRequestGroupFromReserver)
  10266. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Fixed compile error on Ubuntu.
  10268. * src/BtPieceMessage.cc
  10269. * src/MessageDigestHelper.cc
  10270. * src/Util.cc
  10271. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10272. Fixed compile error when configured with --disable-bittorrent
  10273. * test/DownloadHandlerFactoryTest.cc
  10274. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10275. Done make update-po
  10276. * po/aria2c.pot
  10277. * po/*.po
  10278. * po/*.gmo
  10279. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Bump up version number to 0.13.2rc.
  10281. * src/configure.ac
  10282. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. Made option name bold. Updated SYNOPSIS to make it more readable.
  10284. * doc/aria2c.1.txt
  10285. * doc/aria2c.1
  10286. * doc/aria2c.1.html
  10287. * src/version_usage.cc
  10288. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Refactored. Use std::string instead of size and char*.
  10290. * Data.cc
  10291. * Data.h
  10292. * test/Data.cc
  10293. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Added trimSelf(). Rewritten trim() to use trimSelf().
  10295. * Util.cc
  10296. * Util.h
  10297. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10298. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10299. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Fixed compile error when configured with --disable-metalink.
  10301. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10302. * test/FeatureConfigTest.cc
  10303. * test/DownloadHandlerFactoryTest.cc
  10304. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10305. Fixed compile error when configured with --without-gnutls
  10306. --without-openssl
  10307. * src/main.cc
  10308. * test/DefaultBtProgressInfoFileTest.cc
  10309. * test/SegmentManTest.cc
  10310. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Fixed compile error with OpenSSL.
  10312. * src/IteratableChunkChecksumValidator.cc
  10313. * src/LibsslDHKeyExchange.h
  10314. * src/MessageDigestHelper.cc
  10315. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10316. Revert the default value of --max-concurrent-downloads to 5.
  10317. Revert the default value of --metalink-servers to 5.
  10318. Man pages was also updated.
  10319. * src/option_processing.cc
  10320. * doc/aria2c.1.txt
  10321. * doc/aria2c.1.html
  10322. * doc/aria2c.1
  10323. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Returns const reference:
  10325. DownloadContext::getPieceHash, DownloadContext::getName,
  10326. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10327. BtContext::getInfoHashAsString,
  10328. * src/BtContext.h
  10329. * src/DefaultBtContext.cc
  10330. * src/DefaultBtContext.h
  10331. * src/DownloadContext.h
  10332. * src/SingleFileDownloadContext.h
  10333. * test/MockBtContext.h
  10334. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. * src/RequestGroup.h (getDir): Removed.
  10336. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10337. Returns const reference. The internal urlencode function was optimized
  10338. a little bit.
  10339. * src/Request.cc
  10340. * src/Request.h
  10341. * src/HttpRequest.cc
  10342. * src/HttpRequest.h
  10343. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10344. Defined option name and possible values as std::string to reduce
  10345. temporary string object creation in runtime.
  10346. * src/HelpItemFactory.cc
  10347. * src/LogFactory.cc
  10348. * src/Option.cc
  10349. * src/OptionHandlerFactory.cc
  10350. * src/option_processing.cc
  10351. * src/prefs.cc
  10352. * src/prefs.h
  10353. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Return const reference.
  10355. * src/DownloadHandlerConstants.cc
  10356. * src/DownloadHandlerConstants.h
  10357. (getMetalinkExtensions)
  10358. (getMetalinkContentTypes)
  10359. (getBtExtensions)
  10360. (getBtContentTypes)
  10361. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10362. * src/HttpHeader.cc (get): Rewritten.
  10363. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Make HttpHeader::getFirst(...) return const reference.
  10365. * src/HttpHeader.cc
  10366. * src/HttpHeader.h
  10367. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10368. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10369. it with V_TRUE.
  10370. * src/DefaultPieceStorage.cc
  10371. * src/DownloadCommand.cc
  10372. * src/FtpNegotiationCommand.cc
  10373. * src/HttpRequest.cc
  10374. * src/InitiateConnectionCommand.cc
  10375. * src/RequestGroup.cc
  10376. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10377. Made Option::get(...) return const reference of std::string.
  10378. * src/Option.cc
  10379. * src/Option.h
  10380. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10381. Replaced std:copy with insert.
  10382. * src/DefaultBtMessageDispatcher.cc
  10383. * src/DefaultPieceStorage.cc
  10384. * src/DownloadEngineFactory.cc
  10385. * src/RequestGroup.cc
  10386. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Included SocketCore.h to fix compiler warning.
  10388. * src/InitiateConnectionCommand.cc
  10389. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10390. Put piece selection strategy algorithm to RarestPieceSelector class,
  10391. Added a switch to choose whether randomized selection so that unit
  10392. tests emit same results in, possibly, win32.
  10393. * src/DefaultPieceStorage.cc
  10394. * src/DefaultPieceStorage.h
  10395. * src/RarestPieceSelector.cc
  10396. * src/RarestPieceSelector.h
  10397. * test/DefaultPieceStorageTest.cc
  10398. * test/RarestPieceSelectorTest.cc
  10399. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Don't pool connection if HTTP proxy is enabled.
  10401. * src/FtpFinishDownloadCommand.cc
  10402. * src/FtpNegotiationCommand.cc
  10403. * src/HttpSkipResponseCommand.cc
  10404. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10405. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10406. * src/AbstractCommand.cc
  10407. * src/AbstractCommand.h
  10408. * src/ActivePeerConnectionCommand.cc
  10409. * src/FtpInitiateConnectionCommand.cc
  10410. * src/HttpInitiateConnectionCommand.cc
  10411. * src/InitiateConnectionCommandFactory.cc
  10412. * src/PeerAbstractCommand.cc
  10413. * src/PeerAbstractCommand.h
  10414. * src/PeerInitiateConnectionCommand.cc
  10415. * src/TrackerWatcherCommand.cc
  10416. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Sort RequestSlot in ascending order and manipulate them using
  10418. lower_bound.
  10419. * src/DefaultBtMessageDispatcher.cc
  10420. * src/DefaultBtMessageDispatcher.h
  10421. (getMessageQueue): Added const qualifier.
  10422. (getRequestSlots): Added const qualifier.
  10423. (sendMessages): Use empty() instead of size().
  10424. (doCancelSendingPieceAction): Use HandleEvent object.
  10425. (doAbortOutstandingRequestAction): Rewritten.
  10426. (doChokedAction): Rewritten.
  10427. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10428. (isOutstandingRequest): Rewritten.
  10429. (getOutstandingRequest): Rewritten.
  10430. (removeOutstandingRequest): Rewritten.
  10431. (addOutstandingRequest): Rewritten.
  10432. * src/RequestSlot.cc
  10433. * src/RequestSlot.h
  10434. (operator=): Rewritten.
  10435. (operator!=): New function.
  10436. (operator<): New function.
  10437. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. * src/DefaultBtRequestFactory.cc
  10439. (doChokedAction): Rewritten.
  10440. (removeCompletedPiece): Rewritten.
  10441. (removeTargetPiece): Rewritten.
  10442. (createRequestMessages): Added the debug log.
  10443. (createRequestMessagesOnEndGame: Added the debug log.
  10444. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Added the debug log message.
  10446. * src/BtPieceMessage.cc (doReceivedAction)
  10447. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10449. used lower_bound to process them rather than linear search.
  10450. * src/DHTPeerAnnounceStorage.cc
  10451. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10453. peer has at least one completed piece.
  10454. * src/Peer.cc
  10455. * src/Peer.h
  10456. * src/PeerInteractionCommand.cc
  10457. * src/PeerSessionResource.cc
  10458. * src/PeerSessionResource.h
  10459. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. Removed unnecessary sorting
  10461. * src/DefaultPieceStorage (DefaultPieceStorage)
  10462. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Rewritten the portion of the code that mangaes allowed fast indexes.
  10464. * src/PeerSessionResource.cc
  10465. * src/PeerSessionResource.h
  10466. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Removed the invalid string including '\r' from ru.po and
  10468. did make update-po.
  10469. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10470. Added --log-level and --summary-interval to man page.
  10471. * doc/aria2c.1.txt
  10472. * doc/aria2c.1.html
  10473. * doc/aria2c.1
  10474. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Added --log-level option to specify log level. Log messages under
  10476. the specified level are not output. Default value is `debug'.
  10477. * src/HelpItemFactory.cc
  10478. * src/LogFactory.cc
  10479. * src/LogFactory.h
  10480. * src/Logger.h
  10481. * src/OptionHandlerFactory.cc
  10482. * src/SimpleLogger.cc
  10483. * src/SimpleLogger.h
  10484. * src/main.cc
  10485. * src/option_processing.cc
  10486. * src/prefs.h
  10487. * src/usage_text.h
  10488. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Print download progress summary of all parallel downloads in specified
  10490. interval, default 60 secs. While aria2 could download several files
  10491. in parallel (see -j option), it displayed just first download progress,
  10492. and the other downloads are hidden from the users. This new feature
  10493. prints all downloads currently in-progress to the console so that you
  10494. can check the status of all downloads. The interval can be adjusted
  10495. by --summary-interval option.
  10496. The progress readout is now cut so that all fits in the one line of
  10497. console.
  10498. * src/ConsoleStatCalc.cc
  10499. * src/ConsoleStatCalc.h
  10500. * src/HelpItemFactory.cc
  10501. * src/OptionHandlerFactory.cc
  10502. * src/RequestGroupMan.cc
  10503. * src/RequestGroupMan.h
  10504. * src/main.cc
  10505. * src/option_processing.cc
  10506. * src/prefs.h
  10507. * src/usage_text.h
  10508. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10509. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10510. * src/DownloadEngine.cc (DownloadEngine)
  10511. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10513. defined.
  10514. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10515. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10516. Use erase+lower_bound+insert instead of sort.
  10517. * src/DefaultPieceStorage.cc (addPieceStats)
  10518. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10519. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10520. * src/A2STR.cc
  10521. * src/A2STR.h
  10522. * src/OptionParser.cc (parse)
  10523. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. Defined fake filename `[tracker.announce]' as static const std::string.
  10525. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10526. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Defined default filename `index.html' as static const std::string
  10528. * src/SingleFileDownloadContext.cc
  10529. * src/SingleFileDownloadContext.h
  10530. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10531. Defined "[MEMORY]" as static const std::string.
  10532. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10533. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Defined control file's version number as static const std::string.
  10535. * src/DefaultBtProgressInfoFile.cc
  10536. * src/DefaultBtProgressInfoFile.h
  10537. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Use Request::METHOD_GET
  10539. * src/RequestGroup.cc (createNextCommandWithAdj)
  10540. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Defined "OK", "ERR", "INPR" as static const std::string
  10542. * src/RequestGroupMan.cc (showDownloadResults)
  10543. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Defined default client used in extended handshake as static const
  10545. std::string
  10546. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10547. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10548. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10549. * src/HttpConnection.cc (eraseConfidentialInfo)
  10550. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10551. Defined default ftp user and password as static const std::string
  10552. * src/AuthConfigFactory.cc
  10553. * src/AuthConfigFactory.h
  10554. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10555. Defined strings used in netrc as static const std::string
  10556. * src/Netrc.cc
  10557. * src/Netrc.h
  10558. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10559. Defined HTTP status as static const std::string
  10560. * src/AbstractProxyResponseCommand.cc
  10561. * src/HttpHeader.cc
  10562. * src/HttpHeader.h
  10563. * src/HttpResponse.cc
  10564. * src/HttpResponseCommand.cc
  10565. * src/HttpSkipResponseCommand.cc
  10566. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10567. Defined "\r\n", "A", "I" as static const std::string
  10568. * src/A2STR.cc
  10569. * src/A2STR.h
  10570. * src/FtpConnection.cc
  10571. * src/FtpConnection.h
  10572. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10573. Added COLON_C(".") and used it in Request::parseUrl()
  10574. * src/A2STR.cc
  10575. * src/A2STR.h
  10576. * src/Request.cc (parseUrl)
  10577. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10578. Changed the type of padName from `const std::string&' to `const char*'.
  10579. * src/MSEHandshake.cc (verifyPadLength)
  10580. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10581. Defined "sha1" as static const std::string.
  10582. * src/MetalinkParserController.cc
  10583. * src/MetalinkParserController.h
  10584. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10585. Defined message digest algorithm name as static const std::string
  10586. * src/DHTTokenTracker.cc
  10587. * src/DHTUtil.cc
  10588. * src/DefaultBtContext.cc
  10589. * src/MSEHandshake.cc
  10590. * src/MessageDigestHelper.cc
  10591. * src/Peer.cc
  10592. * src/messageDigest.cc
  10593. * src/messageDigest.h
  10594. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. Made string literals used in SAX parser static const std::string.
  10596. * src/FileMetalinkParserState.cc
  10597. * src/FileMetalinkParserState.h
  10598. * src/FilesMetalinkParserState.cc
  10599. * src/FilesMetalinkParserState.h
  10600. * src/InitialMetalinkParserState.cc
  10601. * src/InitialMetalinkParserState.h
  10602. * src/MetalinkMetalinkParserState.cc
  10603. * src/MetalinkMetalinkParserState.h
  10604. * src/PiecesMetalinkParserState.cc
  10605. * src/PiecesMetalinkParserState.h
  10606. * src/ResourcesMetalinkParserState.cc
  10607. * src/ResourcesMetalinkParserState.h
  10608. * src/VerificationMetalinkParserState.cc
  10609. * src/VerificationMetalinkParserState.h
  10610. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10612. * src/A2STR.cc
  10613. * src/A2STR.h
  10614. * src/File.cc
  10615. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Defined static const std::string IP("ip"), PORT("port") and use them
  10617. instead of string literals.
  10618. * src/DefaultPeerListProcessor.cc
  10619. * src/DefaultPeerListProcessor.h
  10620. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Made string literals for torrent file processing static const
  10622. std::string.
  10623. * src/BtContext.cc
  10624. * src/BtContext.h
  10625. * src/DefaultBtContext.cc
  10626. * src/DefaultBtContext.h
  10627. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Made string literal for tracker response static const std::string
  10629. * src/BtAnnounce.cc
  10630. * src/BtAnnounce.h
  10631. * src/DefaultBtAnnounce.cc
  10632. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. Use DHTMessage::T instead of "t".
  10634. * src/DHTMessageTracker.cc (messageArrived)
  10635. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Made keyName static const. Made trimmed charset static const
  10637. std::string.
  10638. * src/Util.cc (getContentDispositionFilename)
  10639. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Made USER_AGENT const. Made "/" static const std::string.
  10641. * src/A2STR.cc
  10642. * src/A2STR.h
  10643. * src/HttpRequest.cc
  10644. * src/HttpRequest.h
  10645. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Made string listeral to static const std::string:
  10647. "Content-Range", "Content-Length"
  10648. * src/HttpHeader.cc
  10649. * src/HttpHeader.h
  10650. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Made string listeral to static const std::string.
  10652. * src/HttpConnection.cc
  10653. * src/HttpHeader.cc
  10654. * src/HttpHeader.h
  10655. * src/HttpResponse.cc
  10656. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10657. Made string listeral to static const std::string.
  10658. * src/A2STR.cc
  10659. * src/A2STR.h
  10660. * src/SimpleLogger.cc
  10661. * src/SimpleLogger.h
  10662. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. Made string literal to static const std::string.
  10664. Rewritten CookieParser::setField.
  10665. * src/A2STR.cc
  10666. * src/A2STR.h
  10667. * src/CookieBoxFactory.cc
  10668. * src/CookieBoxFactory.h
  10669. * src/CookieParser.cc
  10670. * src/CookieParser.h
  10671. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. Made string literal to static const std::string
  10673. * src/DHTAbstractMessage.cc
  10674. * src/DHTAnnouncePeerMessage.cc
  10675. * src/DHTAnnouncePeerMessage.h
  10676. * src/DHTAnnouncePeerReplyMessage.cc
  10677. * src/DHTAnnouncePeerReplyMessage.h
  10678. * src/DHTFindNodeMessage.cc
  10679. * src/DHTFindNodeMessage.h
  10680. * src/DHTFindNodeReplyMessage.cc
  10681. * src/DHTFindNodeReplyMessage.h
  10682. * src/DHTGetPeersMessage.cc
  10683. * src/DHTGetPeersMessage.h
  10684. * src/DHTGetPeersReplyMessage.cc
  10685. * src/DHTGetPeersReplyMessage.h
  10686. * src/DHTMessage.cc
  10687. * src/DHTMessage.h
  10688. * src/DHTMessageFactoryImpl.cc
  10689. * src/DHTMessageReceiver.cc
  10690. * src/DHTPingMessage.cc
  10691. * src/DHTPingMessage.h
  10692. * src/DHTPingReplyMessage.cc
  10693. * src/DHTPingReplyMessage.h
  10694. * src/DHTQueryMessage.cc
  10695. * src/DHTQueryMessage.h
  10696. * src/DHTResponseMessage.cc
  10697. * src/DHTResponseMessage.h
  10698. * src/DHTUnknownMessage.cc
  10699. * src/DHTUnknownMessage.h
  10700. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10701. Made string literal to static const std::string
  10702. * src/BtChokeMessage.cc (toString)
  10703. * src/BtHaveAllMessage.cc (toString)
  10704. * src/BtHaveNoneMessage.cc (toString)
  10705. * src/BtInterestedMessage.cc (toString)
  10706. * src/BtNotInterestedMessage.cc (toString)
  10707. * src/BtUnchokeMessage.cc (toString)
  10708. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Replaced "" with static const variable A2STR::NIL.
  10710. Replaced string comparison against "" with std::string::empty().
  10711. Added PROTO_* to Request class and use them as a protocol string
  10712. constant.
  10713. Made "started", "stopped", "completed" static const variable in
  10714. AnnounceList class.
  10715. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10716. Updated translations. Great thanks to translators.
  10717. * po/ca.po
  10718. * po/de.po
  10719. * po/fr.po
  10720. * po/it.po
  10721. * po/ja.po
  10722. * po/ru.po
  10723. * po/zh_CN.po
  10724. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Updated man page; categorized options and fixed typo.
  10726. * doc/aria2c.1.txt
  10727. * doc/aria2c.1.html
  10728. * doc/aria2c.1
  10729. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10730. Removed const ref
  10731. * src/MetalinkEntry.cc (AddProtocolPreference)
  10732. * src/RequestGroup.cc (FindServerHostByHostname)
  10733. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10734. Rewritten Accept-Features handling.
  10735. * src/HttpRequestCommand.cc (createHttpRequest)
  10736. * src/a2functional.h
  10737. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Changed method signature:
  10739. DHTAbstractNodeLookupTask::toEntries
  10740. * src/DHTAbstractNodeLookupTask.cc
  10741. * src/DHTAbstractNodeLookupTask.h
  10742. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10743. Changed method signature:
  10744. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10745. * src/BtContext.h
  10746. * src/DefaultBtContext.cc
  10747. * src/DefaultBtContext.h
  10748. * src/DefaultBtInteractive.cc
  10749. * test/DefaultBtContextTest.cc
  10750. * test/MockBtContext.h
  10751. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. Changed method signature:
  10753. MultiFileAllocationIterator::makeDiskWriterEntries
  10754. * src/MultiFileAllocationIterator.cc
  10755. * src/MultiFileAllocationIterator.h
  10756. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. Changed method sinature:
  10758. MetalinkEntry::toFileEntry,
  10759. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10760. Metalinker::queryEntry
  10761. * src/Metalink2RequestGroup.cc
  10762. * src/MetalinkEntry.cc
  10763. * src/MetalinkEntry.h
  10764. * src/MetalinkHelper.cc
  10765. * src/MetalinkHelper.h
  10766. * src/Metalinker.cc
  10767. * src/Metalinker.h
  10768. * src/main.cc
  10769. * test/MetalinkHelperTest.cc
  10770. * test/MetalinkerTest.cc
  10771. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Changed method sinature:
  10773. RequestGroup::getURIs
  10774. * src/RequestGroup.cc
  10775. * src/RequestGroup.h
  10776. * test/Metalink2RequestGroupTest.cc
  10777. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. Changed method signature:
  10779. PeerListProcessor::extractPeer
  10780. * src/CompactPeerListProcessor.cc
  10781. * src/CompactPeerListProcessor.h
  10782. * src/DefaultBtAnnounce.cc
  10783. * src/DefaultPeerListProcessor.cc
  10784. * src/DefaultPeerListProcessor.h
  10785. * src/DelegatingPeerListProcessor.cc
  10786. * src/DelegatingPeerListProcessor.h
  10787. * src/PeerListProcessor.h
  10788. * src/UTPexExtensionMessage.cc
  10789. * test/DefaultPeerListProcessorTest.cc
  10790. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10791. Changed method signature:
  10792. BtRequestFactory::createRequestMessages,
  10793. BtRequestFactory::createRequestMessagesOnEndGame
  10794. * src/BtRequestFactory.h
  10795. * src/DefaultBtInteractive.cc
  10796. * src/DefaultBtRequestFactory.cc
  10797. * src/DefaultBtRequestFactory.h
  10798. * test/DefaultBtRequestFactoryTest.cc
  10799. * test/MockBtRequestFactory.h
  10800. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10801. Changed method signature:
  10802. PieceStorage::getInFlightPieces
  10803. * src/DefaultBtProgressInfoFile.cc
  10804. * src/DefaultPieceStorage.cc
  10805. * src/DefaultPieceStorage.h
  10806. * src/PieceStorage.h
  10807. * src/UnknownLengthPieceStorage.cc
  10808. * src/UnknownLengthPieceStorage.h
  10809. * test/DefaultBtProgressInfoFileTest.cc
  10810. * test/MockPieceStorage.h
  10811. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Changed method signature:
  10813. PostDownloadHandler::getNextRequestGroups
  10814. Metalink2RequestGroup::generate
  10815. RequestGroup::postDownloadProcessing
  10816. * src/BtPostDownloadHandler.cc
  10817. * src/BtPostDownloadHandler.h
  10818. * src/Metalink2RequestGroup.cc
  10819. * src/Metalink2RequestGroup.h
  10820. * src/MetalinkPostDownloadHandler.cc
  10821. * src/MetalinkPostDownloadHandler.h
  10822. * src/PostDownloadHandler.h
  10823. * src/RequestGroup.cc
  10824. * src/RequestGroup.h
  10825. * src/RequestGroupMan.cc
  10826. * src/main.cc
  10827. * test/BtPostDownloadHandlerTest.cc
  10828. * test/Metalink2RequestGroupTest.cc
  10829. * test/MetalinkPostDownloadHandlerTest.cc
  10830. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Rewritten AccRequestGroup
  10832. * src/main.cc
  10833. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Rewritten.
  10835. * src/TaggedItem.cc (toTagString)
  10836. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10837. Rewritten Accept-Features handling.
  10838. * src/HttpRequestCommand.cc (createHttpRequest)
  10839. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Rewritten accept types handling.
  10841. * HttpRequest.cc (createRequest)
  10842. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10843. Rewritten
  10844. * src/FeatureConfig.cc (featureSummary)
  10845. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Changed method signature:
  10847. PeerStorage::getActivePeers
  10848. * src/DHTPeerAnnounceEntry.cc
  10849. * src/DefaultPeerStorage.cc
  10850. * src/DefaultPeerStorage.h
  10851. * src/PeerStorage.h
  10852. * test/DefaultPeerStorageTest.cc
  10853. * test/MockPeerStorage.h
  10854. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10855. Changed method signature:
  10856. DHTPeerAnnounceStorage::getPeers,
  10857. DHTPeerAnnounceEntry::getPeers
  10858. * src/DHTGetPeersMessage.cc
  10859. * src/DHTPeerAnnounceEntry.cc
  10860. * src/DHTPeerAnnounceEntry.h
  10861. * src/DHTPeerAnnounceStorage.cc
  10862. * src/DHTPeerAnnounceStorage.h
  10863. * test/DHTAnnouncePeerMessageTest.cc
  10864. * test/DHTPeerAnnounceEntryTest.cc
  10865. * test/DHTPeerAnnounceStorageTest.cc
  10866. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10867. Changed method signature:
  10868. NameResolver::resolve
  10869. * src/DHTEntryPointNameResolveCommand.cc
  10870. * src/InitiateConnectionCommand.cc
  10871. * src/NameResolver.cc
  10872. * src/NameResolver.h
  10873. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10874. Changed method signature:
  10875. PieceStorage::getAdvertisedPieceIndexes
  10876. * src/DefaultBtInteractive.cc
  10877. * src/DefaultPieceStorage.cc
  10878. * src/DefaultPieceStorage.h
  10879. * src/PieceStorage.h
  10880. * src/UnknownLengthPieceStorage.h
  10881. * test/MockPieceStorage.h
  10882. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10883. Changed method signature:
  10884. SegmentMan::getInFlightSegment
  10885. * src/AbstractCommand.cc
  10886. * src/SegmentMan.cc
  10887. * src/SegmentMan.h
  10888. * test/SegmentManTest.cc
  10889. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10890. Changed method signature:
  10891. DHTAbstractNodeLookupTask::getNodesFromMessage
  10892. * src/DHTAbstractNodeLookupTask.cc
  10893. * src/DHTAbstractNodeLookupTask.h
  10894. * src/DHTNodeLookupTask.cc
  10895. * src/DHTNodeLookupTask.h
  10896. * src/DHTPeerLookupTask.cc
  10897. * src/DHTPeerLookupTask.h
  10898. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10899. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10900. * src/AbstractCommand.cc
  10901. * src/BtCheckIntegrityEntry.cc
  10902. * src/BtCheckIntegrityEntry.h
  10903. * src/BtFileAllocationEntry.cc
  10904. * src/BtFileAllocationEntry.h
  10905. * src/BtSetup.cc
  10906. * src/BtSetup.h
  10907. * src/CheckIntegrityCommand.cc
  10908. * src/CheckIntegrityEntry.h
  10909. * src/ChecksumCheckIntegrityEntry.cc
  10910. * src/ChecksumCheckIntegrityEntry.h
  10911. * src/DHTSetup.cc
  10912. * src/DHTSetup.h
  10913. * src/DownloadEngine.cc
  10914. * src/FileAllocationCommand.cc
  10915. * src/FileAllocationEntry.h
  10916. * src/RequestGroup.cc
  10917. * src/RequestGroup.h
  10918. * src/RequestGroupMan.cc
  10919. * src/RequestGroupMan.h
  10920. * src/StreamCheckIntegrityEntry.cc
  10921. * src/StreamCheckIntegrityEntry.h
  10922. * src/StreamFileAllocationEntry.cc
  10923. * src/StreamFileAllocationEntry.h
  10924. * src/TrackerWatcherCommand.cc
  10925. * src/a2functional.h
  10926. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. Changed method signature:
  10928. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10929. DHTBucket::getGoodNodes,
  10930. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10931. * src/BNode.cc
  10932. * src/BNode.h
  10933. * src/DHTAbstractNodeLookupTask.cc
  10934. * src/DHTAutoSaveCommand.cc
  10935. * src/DHTBucket.cc
  10936. * src/DHTBucket.h
  10937. * src/DHTBucketRefreshTask.cc
  10938. * src/DHTFindNodeMessage.cc
  10939. * src/DHTGetPeersMessage.cc
  10940. * src/DHTRoutingTable.cc
  10941. * src/DHTRoutingTable.h
  10942. * test/BNodeTest.cc
  10943. * test/DHTBucketTest.cc
  10944. * test/DHTRoutingTableTest.cc
  10945. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10946. In piece selection functions, Pass std::deque<...> by reference rather
  10947. than returning it.
  10948. * src/BitfieldMan.cc
  10949. * src/BitfieldMan.h
  10950. * src/DefaultBtRequestFactory.cc
  10951. * src/DefaultPieceStorage.cc
  10952. * src/Piece.cc
  10953. * src/Piece.h
  10954. * test/BitfieldManTest.cc
  10955. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10956. Implemented rarest piece first piece selection strategy.
  10957. * src/AbstractBtMessage.cc
  10958. * src/AbstractBtMessage.h
  10959. * src/BitfieldMan.cc
  10960. * src/BitfieldMan.h
  10961. * src/BtBitfieldMessage.cc
  10962. * src/BtHaveAllMessage.cc
  10963. * src/BtHaveMessage.cc
  10964. * src/DefaultPieceStorage.cc
  10965. * src/DefaultPieceStorage.h
  10966. * src/PeerInteractionCommand.cc
  10967. * src/PieceStorage.h
  10968. * src/UnknownLengthPieceStorage.h
  10969. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Rewritten readData and writeData.
  10971. * src/MultiDiskAdaptor.cc
  10972. * src/MultiDiskAdaptor.h
  10973. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10974. Move \n out of the message "Usage: ...".
  10975. * src/version_usage.cc
  10976. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10977. Bump up version number to 0.13.2b.
  10978. * configure.ac
  10979. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10980. Added const qualifier to argument Exception& e.
  10981. * src/Logger.h
  10982. * src/SimpleLogger.cc
  10983. * src/SimpleLogger.h
  10984. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Pool connection when CWD, SIZE command fails.
  10986. * src/FtpNegotiationCommand.cc
  10987. * src/FtpNegotiationCommand.h
  10988. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10989. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10990. * src/HttpResponseCommand.cc
  10991. * src/HttpSkipResponseCommand.cc
  10992. * src/HttpSkipResponseCommand.h
  10993. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. Pool connection when a server returns 4xx, 5xx responses.
  10995. * src/HttpNullDownloadCommand.cc
  10996. * src/HttpNullDownloadCommand.h
  10997. * src/HttpResponse.cc
  10998. * src/HttpResponse.h
  10999. * src/HttpResponseCommand.cc
  11000. * src/HttpResponseCommand.h
  11001. * test/HttpResponseTest.cc
  11002. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. Print usage when no URL is specifed or bad command-line option is
  11004. specified.
  11005. * src/HelpItemFactory.cc
  11006. * src/help_tags.h
  11007. * src/option_processing.cc
  11008. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. Removed duplicate log message.
  11010. * src/AbstractCommand.cc (asyncResolveHostname)
  11011. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11012. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11013. Changed -j option's default value from 5 to 1.
  11014. Added new examples using protocol auto detection feature.
  11015. Removed -T, -M usage where it can be omitted.
  11016. * doc/aria2c.1.txt
  11017. * doc/aria2c.1.html
  11018. * doc/aria2c.1.txt
  11019. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Updated command-line usage text, so that it tells users that they
  11021. can specify any number of torrent files and metalink files in
  11022. command-line.
  11023. * src/version_usage.cc
  11024. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11025. Changed the default value of -j option to 1.
  11026. * src/HelpItemFactory.cc
  11027. * src/option_processing.cc
  11028. * src/usage_text.h
  11029. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. Added the ability to reuse connection in FTP and it is enabled by
  11031. default. It can be disabled by --ftp-reuse-connection=false option.
  11032. * src/Command.cc
  11033. * src/DownloadCommand.cc
  11034. * src/FtpDownloadCommand.cc
  11035. * src/FtpDownloadCommand.h
  11036. * src/FtpFinishDownloadCommand.cc
  11037. * src/FtpFinishDownloadCommand.h
  11038. * src/FtpInitiateConnectionCommand.cc
  11039. * src/FtpNegotiationCommand.cc
  11040. * src/FtpNegotiationCommand.h
  11041. * src/HelpItemFactory.cc
  11042. * src/Makefile.am
  11043. * src/Makefile.in
  11044. * src/OptionHandlerFactory.cc
  11045. * src/option_processing.cc
  11046. * src/prefs.h
  11047. * src/usage_text.h
  11048. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11049. Call Command::transitStatus() before calling Command::execute(),
  11050. so that the status change made in execute() is not cleared.
  11051. * src/DownloadEngine.cc
  11052. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11053. Removed forward declaration of SocketCore class.
  11054. * src/HttpDownloadCommand.h
  11055. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11056. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11057. in InitiateConnectionCommandFactory. They should be set only when
  11058. the protocol is HTTP or HTTPS.
  11059. * src/InitiateConnectionCommandFactory.cc
  11060. * src/RequestGroup.cc
  11061. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11062. Fixed infinite loop in checksum checking.
  11063. * src/IteratableChecksumValidator.cc
  11064. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. Set _supportsPersistentConnection to true by default.
  11066. * src/Request.cc
  11067. * src/RequestGroup.cc
  11068. * test/HttpRequestTest.cc
  11069. * test/RequestTest.cc
  11070. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Added timeout to socket pool. The default timeout is 15 seconds,
  11072. which is the same value Apache uses.
  11073. * src/DownloadEngine.cc
  11074. * src/DownloadEngine.h
  11075. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. Fixed misuse of multimap::find()
  11077. * src/HttpHeader.cc
  11078. * test/HttpHeaderTest.cc
  11079. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11081. option.
  11082. The asynchronous DNS is not capable of IPv6 yet.
  11083. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11084. least for HTTP download.
  11085. * src/AbstractCommand.cc
  11086. * src/AbstractCommand.h
  11087. * src/AsyncNameResolver.cc
  11088. * src/AsyncNameResolver.h
  11089. * src/DHTEntryPointNameResolveCommand.cc
  11090. * src/DHTEntryPointNameResolveCommand.h
  11091. * src/DownloadEngine.cc
  11092. * src/DownloadEngine.h
  11093. * src/FtpInitiateConnectionCommand.cc
  11094. * src/FtpInitiateConnectionCommand.h
  11095. * src/HelpItemFactory.cc
  11096. * src/HttpInitiateConnectionCommand.cc
  11097. * src/HttpInitiateConnectionCommand.h
  11098. * src/InitiateConnectionCommand.cc
  11099. * src/InitiateConnectionCommand.h
  11100. * src/Makefile.am
  11101. * src/Makefile.in
  11102. * src/NameResolver.cc
  11103. * src/NameResolver.h
  11104. * src/OptionHandlerFactory.cc
  11105. * src/SocketCore.cc
  11106. * src/SocketCore.h
  11107. * src/Util.cc
  11108. * src/Util.h
  11109. * src/option_processing.cc
  11110. * src/prefs.h
  11111. * src/usage_text.h
  11112. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11113. Updated man page: --quiet, --header were added.
  11114. --metalink-servers and --enable-http-keep-alive option were updated.
  11115. * doc/aria2c.1
  11116. * doc/aria2c.1.html
  11117. * doc/aria2c.1.txt
  11118. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11119. Enable HTTP keep-alive by default.
  11120. * src/HelpItemFactory.cc
  11121. * src/option_processing.cc
  11122. * src/usage_text.h
  11123. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. Disable http keep-alive if the remote server is not HTTP/1.1.
  11125. * src/HttpConnection.cc
  11126. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. Receive content body of 302 response so that the connection can be
  11128. reused later when http keep-alive is enabled.
  11129. * src/HttpNullDownloadCommand.cc
  11130. * src/HttpNullDownloadCommand.h
  11131. * src/HttpResponseCommand.cc
  11132. * src/HttpResponseCommand.h
  11133. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11134. const SharedHandle<Request> -> const SharedHandle<Request>&
  11135. * src/FtpDowndloadCommand.cc
  11136. * src/FtpDowndloadCommand.h
  11137. * src/HttpDownloadCommand.cc
  11138. * src/HttpDownloadCommand.h
  11139. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11140. Fixed the bug that the control file(.aria2 file) is not renamed
  11141. according to tryAutoFileRenaming().
  11142. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11143. its control file exist, use them and continue download.
  11144. The old implementation didn't take into account of control file's
  11145. existence, so basically you couldn't continue download of renamed file.
  11146. * src/BtProgressInfoFile.h
  11147. * src/DefaultBtProgressInfoFile.cc
  11148. * src/DefaultBtProgressInfoFile.h
  11149. * src/NullProgressInfoFile.h
  11150. * src/RequestGroup.cc
  11151. * test/DefaultBtProgressInfoFileTest.cc
  11152. * test/MockBtProgressInfoFile.h
  11153. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Change the default value of --metalink-servers option from `5' to `1'.
  11155. * src/HelpItemFactory.cc
  11156. * src/option_processing.cc
  11157. * src/usage_text.h
  11158. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11159. Reimplemented transparent metalink using Accept request header.
  11160. * src/HttpRequest.cc
  11161. * src/HttpRequest.h
  11162. * src/HttpRequestCommand.cc
  11163. * src/Metalink2RequestGroup.cc
  11164. * src/RequestGroup.cc
  11165. * src/RequestGroup.h
  11166. * test/HttpRequestTest.cc
  11167. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. Bump up version number to 0.13.2a
  11169. * configure.ac
  11170. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11171. Updated configure.ac using the result of autoscan.
  11172. * configure.ac
  11173. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11174. Fixed compilation error without gcrypt/openssl.
  11175. * src/DownloadCommand.cc
  11176. * src/DownloadCommand.h
  11177. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. Reorganized version information so that it can be displayed in a
  11179. standard terminal screen without scrolling.
  11180. Removed http, ftp from Configuration section, because they are always
  11181. enabled.
  11182. * src/FeatureConfig.cc
  11183. * src/FeatureConfig.h
  11184. * src/main.cc
  11185. * src/messageDigest.cc
  11186. * src/messageDigest.h
  11187. * src/version_usage.cc
  11188. * test/FeatureConfigTest.cc
  11189. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11190. Masked user ID in log.
  11191. * src/FtpConnection.cc (sendUser)
  11192. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11193. Removed query part from filename in HTTP download. The query part means
  11194. the substring after "?" in URL. Firefox seems do the same thing.
  11195. A query part is sometimes very long and not suitable to filename,
  11196. so I think it is better to remove it from filename.
  11197. * src/HttpRequest.cc
  11198. * src/HttpRequest.h
  11199. * src/Request.cc
  11200. * src/Request.h
  11201. * test/HttpRequestTest.cc
  11202. * test/RequestTest.cc
  11203. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11204. Rewritten Exception class. Throw exception object, not its pointer and
  11205. catch by reference, so that remove problematic delete operator for
  11206. catched exception.
  11207. * src/Exception.cc
  11208. * src/Exception.h
  11209. * test/ExceptionTest.cc
  11210. * src/*: All files throwing/catching exception.
  11211. * test/*: All files throwing/catching exception.
  11212. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11213. Now auto protocol detection is enabled without -Z option.
  11214. But there is a important difference between with/without -Z optoin.
  11215. For example, if you type:
  11216. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11217. then, aria2 interprets there are 3 request groups:
  11218. (1) http://host/file, http://mirror/file <-- multi-source download
  11219. (2) file1.torrent
  11220. (3) file2.metalink
  11221. On the other hand, if you invoke above command with -Z option, it is
  11222. interpreted as 4 request groups:
  11223. (1) http://host/file
  11224. (2) file1.torrent
  11225. (3) file2.metalink
  11226. (4) http://mirror/file
  11227. I think usually user don't mix multi-source URLs and torrent files, so
  11228. there is no big problem here.
  11229. * src/main.cc
  11230. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Fixed the bug that causes segmentaion fault when reading XML containing
  11232. unescapsed character like '&'.
  11233. Also a modification was made which avoids adding unnecessary
  11234. characters stack and appending unused string.
  11235. * src/ExpatMetalinkProcessor.cc
  11236. * src/FileMetalinkParserState.h
  11237. * src/FilesMetalinkParserState.h
  11238. * src/FinMetalinkParserState.h
  11239. * src/HashMetalinkParserState.h
  11240. * src/InitialMetalinkParserState.h
  11241. * src/LanguageMetalinkParserState.h
  11242. * src/MetalinkMetalinkParserState.h
  11243. * src/MetalinkParserState.h
  11244. * src/MetalinkParserStateMachine.cc
  11245. * src/MetalinkParserStateMachine.h
  11246. * src/OSMetalinkParserState.h
  11247. * src/PieceHashMetalinkParserState.h
  11248. * src/PiecesMetalinkParserState.h
  11249. * src/ResourcesMetalinkParserState.h
  11250. * src/SizeMetalinkParserState.h
  11251. * src/SkipTagMetalinkParserState.h
  11252. * src/URLMetalinkParserState.h
  11253. * src/VerificationMetalinkParserState.h
  11254. * src/VersionMetalinkParserState.h
  11255. * src/XML2SAXMetalinkProcessor.cc
  11256. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. Added StringFormat class, which internally calls vasprintf.
  11258. operator<< is defined for this class, so it can be used with iostream
  11259. classes nicely. SimpleLogger and following functions are rewritten
  11260. using StringFormat class.
  11261. Besides, now Logger class's methods are non-const, many classes
  11262. that has a const Logger* as a member variable are modified to remove
  11263. const qualifier from the variable declaration.
  11264. * src/HelpItemFactory.cc
  11265. * src/Request.cc
  11266. * src/SimpleLogger.cc
  11267. * src/StringFormat.cc
  11268. * src/StringFormat.h
  11269. * src/Util.cc
  11270. * src/option_processing.cc
  11271. * src/version_usage.cc
  11272. * test/StringFormatTest.cc
  11273. * src/*.h: The classes that has const Logger* as a member variable.
  11274. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11275. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11276. failed. Also fixed memory link when exception is thrown there.
  11277. * src/main.cc (AccRequestGroup)
  11278. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. Added build-in "Accept-Features" support. For now only "metalink" is
  11280. used in this header field.
  11281. This "metalink" value is removed from the list when connecting URLs
  11282. fed by metalink file to avoid loop in "transparent" metlaink.
  11283. * src/HttpRequest.cc
  11284. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11285. header is also held in this variable. Also renamed setUserHeaders as
  11286. addHeader and it was rewritten to add header not just to clear the old
  11287. value.
  11288. * src/HttpRequestCommand.cc
  11289. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11290. from "Accept-Features" list.
  11291. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11292. default.
  11293. * src/RequestGroup.h
  11294. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11295. * src/a2functional.h: Included <string> because Concat class depends on
  11296. it.
  11297. * test/HttpRequestTest.cc
  11298. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11299. Added comment
  11300. * src/RequestGroup.cc (createNextCommand)
  11301. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11302. Capitalized METHOD_GET and METHOD_HEAD
  11303. * src/Request.cc
  11304. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11305. Added getDownloadResults() method
  11306. * src/RequestGroupMan.cc
  11307. * src/RequestGroupMan.h
  11308. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. Fixed the bug that aria2 exits when commands is empty() but
  11310. _routineCommands are not.
  11311. * src/DownloadEngine.cc
  11312. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11313. Use the default value pulled from Option object in HelpItemFactory.
  11314. except options whose defualt value is embedded in a usage text.
  11315. * src/HelpItemFactory.cc
  11316. * src/HelpItemFactory.h
  11317. * src/option_processing.cc
  11318. * src/version_usage.cc
  11319. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11320. Added --quiet option to make aria2 quiet (no console output).
  11321. --quiet option is tagged with ADVANCED.
  11322. * src/HelpItemFactory.cc
  11323. * src/LogFactory.cc
  11324. * src/LogFactory.h
  11325. * src/MultiUrlRequestInfo.cc
  11326. * src/MultiUrlRequestInfo.h
  11327. * src/NullStatCalc.h: New class. This class prints nothing.
  11328. * src/OptionHandlerFactory.cc
  11329. * src/main.cc
  11330. * src/option_processing.cc
  11331. * src/prefs.h
  11332. * src/usage_text.h
  11333. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11335. * src/HelpItemFactory.cc (createHelpItems):
  11336. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11337. Fixed compilation error in ExpatMetalinkProcessor.cc
  11338. * src/ExpatMetalinkProcessor.cc
  11339. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11340. Reuse socket if the origin server supports HTTP keep-alive and
  11341. --enable-http-keep-alive or --enable-http-pipelining is given.
  11342. The current implementation doesn't reuse the connections established
  11343. against proxy server.
  11344. * src/AbstractCommand.cc
  11345. * src/DownloadEngine.cc
  11346. * src/DownloadEngine.h
  11347. * src/HttpDownloadCommand.cc
  11348. * src/HttpInitiateConnectionCommand.cc
  11349. * src/HttpResponseCommand.cc
  11350. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11351. Rewritten HTTP keep-alive and pipelining routine.
  11352. * src/AbstractCommand.cc
  11353. * src/HttpConnection.cc
  11354. * src/HttpDownloadCommand.cc
  11355. * src/HttpRequest.cc
  11356. * src/HttpRequestCommand.cc
  11357. * src/HttpResponseCommand.cc
  11358. * src/Request.cc
  11359. * src/Request.h
  11360. * src/RequestGroup.cc
  11361. * test/HttpRequestTest.cc
  11362. * test/HttpResponseTest.cc
  11363. * test/RequestTest.cc
  11364. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11365. Added missing setUserHeaders call
  11366. * src/HttpRequestCommand.cc
  11367. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11369. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11370. waste of time because it is more likey false.
  11371. * src/FileAllocationDispatcherCommand.cc (execute)
  11372. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. Now HTTP status and version are a member variable of HttpHeader.
  11374. HTTP status is processed as a string, not integer.
  11375. * src/AbstractProxyResponseCommand.cc
  11376. * src/HttpConnection.cc
  11377. * src/HttpHeader.cc
  11378. * src/HttpHeader.h
  11379. * src/HttpHeaderProcessor.cc
  11380. * src/HttpHeaderProcessor.h
  11381. * src/HttpResponse.cc
  11382. * src/HttpResponse.h
  11383. * test/HttpHeaderProcessorTest.cc
  11384. * test/HttpResponseTest.cc
  11385. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11386. Added --header option. You can specify any number of additional HTTP headers
  11387. like:
  11388. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11389. Unlike other commad-line option, you can use --header option multiple times.
  11390. * src/HelpItemFactory.cc
  11391. * src/HttpRequest.{cc, h}
  11392. * src/HttpRequestCommand.cc
  11393. * src/OptionHandlerFactory.cc
  11394. * src/OptionHandlerImpl.h
  11395. * src/option_processing.cc
  11396. * src/prefs.h
  11397. * src/usage_text.h
  11398. * test/HttpRequestTest.cc (testUserHeaders)
  11399. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11400. Eliminates the time lag between sequential downloads and commands in
  11401. the same RequestGroup.
  11402. In old implementation, aria2 occasionally waits 1 seconds before
  11403. executing next command or RequestGroup.
  11404. This is really a waste of time, and new implementation eliminates
  11405. this unnecessary time lag.
  11406. * src/AbstractCommand.cc
  11407. * src/AutoSaveCommand.cc
  11408. * src/CheckIntegrityCommand.cc
  11409. * src/Command.{cc, h}
  11410. * src/DownloadEngine.{cc, h}
  11411. * src/DownloadEngineFactory.cc
  11412. * src/FileAllocationCommand.cc
  11413. * src/FileAllocationDispatcherCommand.cc
  11414. * src/FillRequestGroupCommand.cc
  11415. * src/FtpInitiateConnectionCommand.cc
  11416. * src/HaveEraseCommand.cc
  11417. * src/HttpInitiateConnectionCommand.cc
  11418. * src/HttpResponseCommand.cc
  11419. * src/RealtimeCommand.cc
  11420. * src/RequestGroup.cc
  11421. * src/RequestGroupMan.cc
  11422. * src/StreamFileAllocationEntry.cc
  11423. * src/TimeBasedCommand.{cc, h}
  11424. * src/TimedHaltCommand.cc
  11425. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11426. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11427. keyword explicit and SharedHandle's default constructor initializes
  11428. its internal obj to null, old implementation initializes it using
  11429. obj's default constructor.
  11430. To assign null, write SharedHandle<T> x(...); x.reset();
  11431. TODO: test/SharedHandleTest.cc needs more tests.
  11432. * src/SharedHandle.h
  11433. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11434. Fixed type in man page.
  11435. * doc/aria2c.1.txt
  11436. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11437. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11438. * src/SimpleLogger.{cc, h}
  11439. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11440. Implemented auto protocol detection.
  11441. Now you can do:
  11442. aria2c -Z http://host/file file1.torrent file2.metalink
  11443. (Note: -Z option is required for auto protcol detection.)
  11444. Then aria2c downloads 3 files simultaneously:
  11445. 1. http://host/file
  11446. 2. file1.torrent <-- read local torrent file
  11447. 3. file2.metalink <-- read local Metalink file.
  11448. Same thing goes with -i option. Assume your uris.txt contans:
  11449. http://host/file
  11450. file1.torrent
  11451. file2.metalink
  11452. Then you can do: aria2c -i uris.txt
  11453. (Note: -Z option is not needed if -i option is given.)
  11454. * src/main.cc
  11455. * src/ProtocolDetector.{cc, h}
  11456. * test/ProtocolDetectorTest.cc
  11457. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11458. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11459. installed
  11460. * src/ARC4Encryptor.h
  11461. * src/ARC4Decryptor.h
  11462. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11463. Renamed argument from 'errno' to 'err', since errno is confused with
  11464. errno defined in errno.h.
  11465. * src/LibgcryptARC4Decryptor.h
  11466. * src/LibgcryptARC4Context.h
  11467. * src/LibgcryptDHKeyExchange.h
  11468. * src/LibgcryptARC4Encryptor.h
  11469. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11470. Rewritten choking algorithm.
  11471. * src/PeerChokeCommand.{cc, h}
  11472. * src/BtInterestedMessage.cc
  11473. * src/PeerSessionResource.{cc, h}
  11474. * src/DefaultPeerStorage.{cc, h}
  11475. * src/BtNotInterestedMessage.cc
  11476. * src/DefaultBtMessageDispatcher.{cc, h}
  11477. * src/BtMessageDispatcher.h
  11478. * src/Peer.{cc, h}
  11479. * src/BtLeecherStateChoke.{cc, h}
  11480. * src/BtSetup.cc
  11481. * src/BtSeederStateChoke.{cc, h}
  11482. * src/PeerStorage.h
  11483. * test/MockPeerStorage.h
  11484. * test/MockBtMessageDispatcher.h
  11485. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11486. Fixed compilation error on x84-64 platform.
  11487. * src/AuthConfig.cc: Included ostream.
  11488. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Rewritten getBasename() and getDirname(), without standard library
  11490. basename(), dirname().
  11491. * src/File.cc
  11492. * test/FileTest.cc
  11493. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11494. Added Simplified Chinese translation. Also updated the following
  11495. translations: Polish, Dutch, German. Great thanks to all translators.
  11496. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11497. Suppress content-range error when 'Content-Range' response header
  11498. doesn't contains bytes-unit specifier 'bytes'
  11499. * src/HttpHeader.cc (getRange)
  11500. * test/HttpHeaderTest.cc
  11501. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11502. Fixed compilation error with g++-4.3
  11503. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Added missing include files for MinGW
  11505. * test/HttpHeaderProcessorTest.cc
  11506. * test/DHTRoutingTableSerializerTest.cc
  11507. * test/DHTRoutingTableDeserializerTest.cc
  11508. * test/UriListParserTest.cc
  11509. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. Now download line is printed nicely with no garbage at the end of
  11511. line. I use ioctl to get the columns of terminal.
  11512. If stdout is redirected to another device, instead of carriage return,
  11513. end of line '\n' character is used. This is feature request#1909659
  11514. * src/ConsoleStatCalc.cc (calculateStat)
  11515. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11516. Included a2time.h
  11517. * src/DHTMessageDispatcher.h
  11518. * src/DHTMessageEntry.h
  11519. * src/DHTReplaceNodeTask.h
  11520. * src/DHTMessageTracker.h
  11521. * src/Util.h
  11522. * src/CookieBox.h
  11523. * src/SocketCore.h
  11524. * src/DefaultBtMessageDispatcher.h
  11525. * src/SocketCore.cc
  11526. * src/Util.cc
  11527. * src/DHTPingTask.h
  11528. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11529. Fixed high memory footprint when DHT is enabled.
  11530. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11531. queued than it is processed and the queue is getting longer. As a
  11532. consequence, momory usage is increased.
  11533. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11534. replacement cache in DHTBucket which is described in Kademlia paper.
  11535. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11536. DHTReplaceNodeTask.
  11537. * src/DHTBucket.{h, cc}
  11538. (cacheNode): New function.
  11539. (getCachedNodes): New function.
  11540. (dropNode): Push back cached node to _nodes.
  11541. * test/DHTBucketTest.cc
  11542. (testCacheNode): New test
  11543. (testDropNode): New test
  11544. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11546. the unused 4KB memory when ssl is not used.
  11547. * src/SocketCore.cc
  11548. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11549. Added summary log for peer announce storage.
  11550. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11551. Removed cast
  11552. * src/DefaultPeerStorage.cc (addPeer)
  11553. Log exception message
  11554. * src/DHTMessageTracker.cc (handleTimeout)
  11555. Fixed casting
  11556. * test/HttpRequestTest.cc
  11557. * test/MetalinkProcessorTest.cc
  11558. * test/PieceTest.cc
  11559. * test/MetalinkEntryTest.cc
  11560. * test/SequenceTest.cc
  11561. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11562. * src/ParameterizedStringParser.cc (createLoop):
  11563. Removed unused variable sstep.
  11564. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11565. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11566. * src/Util.{h, cc}
  11567. (parseUInt): New function.
  11568. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11569. The actual range is uint32_t.
  11570. * test/UtilTest.cc
  11571. * src/ParameterizedStringParser.cc:
  11572. Use Util::parseUInt() for loop variables.
  11573. * test/ParameterizedStringParserTest.cc
  11574. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11575. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11576. Rewritten the functions for binding port.
  11577. * src/DHTConnectionImpl.{h, cc}
  11578. * src/PeerListenCommand.{h, cc}
  11579. * src/DHTSetup.cc
  11580. * src/BtSetup.cc
  11581. * test/DHTConnectionImplTest.cc
  11582. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11583. type cleanup for allmost all remaining files.
  11584. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11585. Type clarification
  11586. * src/PeerSessionResource.{h, cc}
  11587. * src/DefaultPieceStorage.{h, cc}
  11588. * src/Peer.{h, cc}
  11589. * test/PeerSessionResourceTest.cc
  11590. Use div function
  11591. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11592. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11593. Type clarification
  11594. * src/DefaultPeerStorage.{h, cc}
  11595. * test/DefaultPeerStorageTest.cc
  11596. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. Type clarification: size_t for length or size, uint64_t for file
  11598. length, off_t for file offset.
  11599. * src/DefaultBtProgressInfoFile.cc
  11600. * src/DefaultBtContext.{h, cc}
  11601. * src/DefaultBtInteractive.cc
  11602. * src/DownloadCommand.{h, cc}
  11603. * src/IteratableChunkChecksumValidator.{h, cc}
  11604. * src/SegmentMan.{h, cc}
  11605. * src/SingleFileDownloadContext.{h, cc}
  11606. * src/IteratableChecksumValidator.{h, cc}
  11607. * src/BtContext.h
  11608. * src/IteratableValidator.h
  11609. * src/DownloadContext.h
  11610. * test/SingleFileDownloadContextTest.cc
  11611. * test/DefaultBtContextTest.cc
  11612. * test/MockBtContext.h
  11613. * test/Metalink2RequestGroupTest.cc
  11614. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11615. Type clarification: size_t for length or size, uint64_t for file
  11616. length, off_t for file offset.
  11617. * src/PiecedSegment.cc
  11618. * src/GrowSegment.h
  11619. * src/DefaultBtRequestFactory.h
  11620. * src/DefaultBtProgressInfoFile.cc
  11621. * src/UnknownLengthPieceStorage.h
  11622. * src/DefaultPieceStorage.cc
  11623. * src/UnknownLengthPieceStorage.cc
  11624. * src/DefaultBtInteractive.cc
  11625. * src/GrowSegment.cc
  11626. * src/BitfieldMan.h
  11627. * src/DownloadCommand.cc
  11628. * src/BtRequestFactory.h
  11629. * src/PiecedSegment.h
  11630. * src/DefaultPieceStorage.h
  11631. * src/Piece.cc
  11632. * src/DefaultBtRequestFactory.cc
  11633. * src/PieceStorage.h
  11634. * src/Segment.h
  11635. * src/Piece.h
  11636. * src/BitfieldMan.cc
  11637. * src/Util.cc
  11638. * test/DefaultBtProgressInfoFileTest.cc
  11639. * test/DefaultPieceStorageTest.cc
  11640. * test/MockPieceStorage.h
  11641. * test/BtRequestMessageTest.cc
  11642. * test/DefaultBtMessageDispatcherTest.cc
  11643. * test/BitfieldManTest.cc
  11644. * test/GrowSegmentTest.cc
  11645. * test/PieceTest.cc
  11646. * test/SegmentTest.cc
  11647. * test/SegmentManTest.cc
  11648. * test/DefaultBtRequestFactoryTest.cc
  11649. * test/MockBtRequestFactory.h
  11650. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11651. Fixed compilation error with --disable-nls
  11652. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11653. in gettext.h causes the problem.
  11654. * src/common.h
  11655. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Removed subPiece related functions.
  11657. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11658. * src/DefaultPieceStorage.{h, cc}
  11659. * test/PieceTest.cc
  11660. * test/DefaultPieceStorageTest.cc
  11661. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. Use unsigned char for data store.
  11663. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. Bump up version number to 0.13.0+1
  11665. * configure.ac
  11666. * Release 0.13.0+1
  11667. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11668. Changed inactive connection timeout to 120.
  11669. To accept more mulually interested peers, disconnect peer when there
  11670. is no interest between us after certain time passed.
  11671. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11672. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11673. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11674. when compiled with async DNS support.
  11675. * src/DownloadEngine.cc
  11676. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11677. value '10' will be a little bit short when some DNS servers are
  11678. offline and several DNS servers are tried. It should be configured
  11679. by command-line option.
  11680. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11681. Merged Ross's mingw patch.
  11682. * src/DHTRoutingTableDeserializer.cc
  11683. * src/DHTRoutingTableSerializer.cc
  11684. * src/Platform.{h, cc}
  11685. * src/timegm.h
  11686. * src/gettimeofday.h
  11687. * src/getaddrinfo.h
  11688. * src/SocketCore.h
  11689. * src/common.h
  11690. * src/inet_aton.h
  11691. * src/DownloadEngine.h
  11692. * src/gai_strerror.h
  11693. * src/a2netcompat.h
  11694. * configure.ac
  11695. * configure
  11696. * aclocal.m4
  11697. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11698. Included missing iostream.
  11699. * test/AllTest.cc
  11700. * test/BtDependencyTest.cc
  11701. * test/BtExtendedMessageTest.cc
  11702. * test/DHTConnectionImplTest.cc
  11703. * test/DHTMessageFactoryImplTest.cc
  11704. * test/DHTMessageTrackerEntryTest.cc
  11705. * test/DHTNodeTest.cc
  11706. * test/DHTRoutingTableSerializerTest.cc
  11707. * test/DefaultBtAnnounceTest.cc
  11708. * test/DefaultBtContextTest.cc
  11709. * test/DefaultBtMessageFactoryTest.cc
  11710. * test/DefaultExtensionMessageFactoryTest.cc
  11711. * test/HandshakeExtensionMessageTest.cc
  11712. * test/HttpResponseTest.cc
  11713. * test/MetalinkProcessorTest.cc
  11714. * test/MultiFileAllocationIteratorTest.cc
  11715. * test/SocketCoreTest.cc
  11716. * test/UTPexExtensionMessageTest.cc
  11717. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11718. Reorganized includes.
  11719. * src/NameResolver.cc
  11720. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. Fixed compilation error without ares/c-ares
  11722. * src/NameResolver.h:
  11723. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11724. Added a test for large file.
  11725. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11726. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11727. Fixed the bug that file size is ignored if size > INT32_MAX
  11728. * src/SizeMetalinkParserState.cc (endElement):
  11729. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11730. Bump up version number to 0.13.0
  11731. * configure.ac
  11732. * Release 0.13.0
  11733. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11734. Updated Makfefile.am to make 'make dist' work.
  11735. Now packaged filename is aria2c-VERSION.tar.bz2.
  11736. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11737. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11738. Large file support is now configured by configure script.
  11739. * configure.ac
  11740. Removed unsused source files
  11741. * src/
  11742. * test/
  11743. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11744. Peer.h and BtContext.h respectively.
  11745. * src/Peer.h
  11746. * src/BtContext.h
  11747. Updated translations.
  11748. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11749. translations. Great thanks to all translators!;)
  11750. * po/*.{po, gmo}
  11751. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11752. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11753. statically declared sha1 MessageDigestContext.
  11754. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11755. initialization of short-lived MessageDigestContext.
  11756. * src/MessageDigestHelper.{h, cc}
  11757. * src/main.cc
  11758. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11759. the initialization of MessageDigestContext every time in validating
  11760. chunk checksum.
  11761. * src/DownloadCommand.{h, cc}
  11762. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11763. Add a file descriptor which connected to fast peer(latency<1500) to
  11764. select(). This change reduced CPU load.
  11765. * src/PeerInteractionCommand.cc
  11766. * src/DefaultBtInteractive.{h, cc}
  11767. * src/BtInteractive.h
  11768. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11769. Fixed the previous insufficient fix for possible busy loop.
  11770. * src/MSEHandshake.cc (identifyHandshakeType)
  11771. Removed unused functions.
  11772. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11773. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11774. Fixed possible busy loop if first 20 bytes are not received for a few
  11775. minutes.
  11776. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11777. * src/ReceiverMSEHandshakeCommand.cc
  11778. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. Fixed compilation error
  11780. * src/ExpatMetalinkProcessor.cc
  11781. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11782. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11783. * src/DHTBucket.cc
  11784. Removed unnecessary cast.
  11785. * src/HandshakeExtensionMessage.cc
  11786. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11788. is missing.
  11789. * src/OptionHandlerFactory.cc
  11790. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11791. Fixed the bug that HAVE message is not sent for a piece they are
  11792. downloaded fom http/ftp server before any BitTorrent handshake is done
  11793. with peers.
  11794. * src/DefaultBtInteractive.cc
  11795. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11796. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11797. * src/Makefile.am
  11798. * src/Makefile.in
  11799. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. Updated README. Added html version of README and man page.
  11801. * README
  11802. * README.html
  11803. * readme2html: Shell script to generate README.html from README using
  11804. asciidoc.
  11805. * doc/aria2c.1.html
  11806. * doc/makeman: Added the line to generate aria2c.1.html
  11807. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. Fixed offset calculation.
  11809. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11810. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11811. Rewritten itos and uitos using template. llitos and ullitos are
  11812. replaced with itos and uitos respectively.
  11813. * src/Util.{h, cc}
  11814. * test/UtilTest.cc
  11815. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11816. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11817. of the number of bytes required for storing public key and shared
  11818. secret.
  11819. * src/LibgcryptDHKeyExchange.h
  11820. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11821. * src/MSEHandshake.cc
  11822. * test/DHKeyExchangeTest.cc
  11823. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11824. Removed since they are not used.
  11825. * src/Xml2MetalinkProcessor.{h, cc}
  11826. * src/Socket.cc
  11827. * src/SegmentSplitter.{h, cc}
  11828. * test/Xml2MetalinkProcessorTest.cc
  11829. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11830. Fixed the bug that prevents aria2 from stopping other than by pressing
  11831. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11832. option. aria2 doesn't stop even after --seed-time is satisfied and
  11833. continues to output blank lines in the console.
  11834. * src/ReceiverMSEHandshakeCommand.cc
  11835. * src/PeerReceiveHandshakeCommand.cc
  11836. * src/PeerListenCommand.cc
  11837. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11838. Bump up version number to 0.13.0rc
  11839. * configure.ac
  11840. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11841. Updated man page and some usage text.
  11842. * doc/aria2c.1.txt
  11843. * src/usage_text.h
  11844. * po/*.{po, gmo}
  11845. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11846. Updated translations. Added Finnish and Hebrew translations.
  11847. Great thanks to all translators!
  11848. * po/*.{po, gmo}
  11849. * po/LINGUAS
  11850. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11851. Log more detailed information about each message.
  11852. * src/DHTQueryMessage.{h, cc}
  11853. * src/DHTGetPeersMessage.{h, cc}
  11854. * src/DHTFindNodeReplyMessage.{h, cc}
  11855. * src/DHTGetPeersReplyMessage.{h, cc}
  11856. * src/DHTAnnouncePeerMessage.{h, cc}
  11857. * src/DHTResponseMessage.{h, cc}
  11858. * src/DHTFindNodeMessage.{h, cc}
  11859. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11860. Use constants defined in prefs.h
  11861. * src/option_processing.cc
  11862. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11863. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11864. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11865. Make room for future enchancements for IPv6 addresses.
  11866. Bump up version number of dht.dat file format to 2.
  11867. Not compatible with previous version.
  11868. * src/DHTRoutingTableSerializer.cc
  11869. * src/DHTRoutingTableDeserializer.cc
  11870. * test/DHTRoutingTableSerializerTest.cc
  11871. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. Added handling for the return values from
  11873. PeerMessageUtil::createcompact().
  11874. * src/DefaultBtContext.cc (computeFastSet):
  11875. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11876. Fixed abort when peer's ip address is IPv4-mapped address.
  11877. * src/DefaultBtContext.cc (computeFastSet)
  11878. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11879. cannot handle IPv4-mapped addresses.
  11880. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11881. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11882. Proper return value handling for OpenSSL functions.
  11883. * src/LibsslDHKeyExchange.h
  11884. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11885. Random bytes generation using libgcrypt and OpenSSL.
  11886. * src/DHTUtil.{h, cc}
  11887. * test/DHTUtilTest.cc
  11888. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11889. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11890. received.
  11891. * src/DHTMessageReceiver.cc (receiveMessage)
  11892. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. Fixed the bug that a return code is always 0. BUG#1897704
  11894. If error occurred during the download or there exist unfinished
  11895. downloads, aria2 returns with code 1.
  11896. * src/RequestGroupMan.{h, cc}
  11897. * src/MultiUrlRequestInfo.{h, cc}
  11898. * src/main.cc
  11899. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11900. IPv6 support for SocketCore class.
  11901. TODO: In SocketCore::establishConnection(), this is insufficient to
  11902. determin the failure of connect() here because the socket is
  11903. non-blocking state. The next addresses should be tried after select().
  11904. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11905. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11906. instead which address family independent.
  11907. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11908. information in a compact peer format which is for IPv4 only.
  11909. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11910. this is a spec of BitTorrent protocol.
  11911. * src/SocketCore.{h, cc}
  11912. * src/PeerMessageUtil.cc
  11913. * test/SocketCoreTest.cc
  11914. * test/PeerMessageUtilTest.cc
  11915. * test/DHTConnectionImplTest.cc
  11916. Handle IPv4-mapped addresses.
  11917. * src/DHTNode.cc: Now identity is determined by node id.
  11918. * src/DHTMessageTrackerEntry.cc
  11919. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11920. should handle it.
  11921. * src/DHTRoutingTableDeserializer.cc
  11922. * src/DHTMessageFactoryImpl.cc
  11923. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11924. Change the unit of --stop option from a minute to a second.
  11925. * src/usage_text.h
  11926. * src/DownloadEngineFactory.cc
  11927. * src/OptionHandlerFactory.cc
  11928. * src/message.h
  11929. * src/TimedHaltCommand.cc
  11930. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11931. Make listening socket non-block mode.
  11932. * src/FtpConnection.cc
  11933. * src/FtpNegotiationCommand.{h, cc}
  11934. * src/PeerListenCommand.cc
  11935. Fixed the bug that cause slow ftp negotiation.
  11936. * src/FtpNegotiationCommand.{h, cc}
  11937. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11938. Added basic tag to --enable-dht, --dht-listen-port option.
  11939. * src/HelpItemFactory.cc (createHelpItems)
  11940. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. Updated text.
  11942. * src/usage_text.h
  11943. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11944. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11945. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11946. Determin _threadtholdSpeed in each constructor for
  11947. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11948. * src/ActivePeerConnectionCommand.{h, cc}
  11949. * src/PeerReceiveHandshakeCommand.{h, cc}
  11950. * src/BtSetup.cc
  11951. * src/BtConstants.h
  11952. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11953. Added --bt-min-crypto-level and --bt-require-crypto options.
  11954. * src/OptionHandlerFactory.cc
  11955. * src/MSEHandshake.cc
  11956. * src/HelpItemFactory.cc
  11957. * src/option_processing.cc
  11958. * src/ReceiverMSEHandshakeCommand.cc
  11959. * src/prefs.h
  11960. * src/DefaultBtAnnounce.cc
  11961. * src/InitiatorMSEHandshakeCommand.cc
  11962. * src/usage_text.h
  11963. * test/MSEHandshakeTest.cc
  11964. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11965. Bump version number to 0.13.0b
  11966. * configure.ac
  11967. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11968. Updated doc.
  11969. * src/MessageDigestHelper.h:
  11970. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Use raw message digest as a token instead of its hexadecimal
  11972. representation.
  11973. * src/DHTTokenTracker.cc (generateToken)
  11974. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. Added Message Stream Encryption(MSE) support.
  11976. Currently, aria2 accepts incoming connections with Obfuscation Header
  11977. and legacy BitTorrent Header and establishes connections with
  11978. Obfuscation Header first and if failed then retry with legacy
  11979. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11980. choose ARC4. The new option to change the default behavior is planned.
  11981. For tracker extension, "supportcrypto=1" is added statically.
  11982. * src/PeerInitiateConnectionCommand.{h, cc}
  11983. * src/PeerConnection.{h, cc}
  11984. * src/HandleRegistry.h
  11985. * src/SocketCore.h
  11986. * src/PeerReceiveHandshakeCommand.{h, cc}
  11987. * src/BtRegistry.{h, cc}
  11988. * src/PeerListenCommand.cc
  11989. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11990. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11991. * src/MSEHandshake.{h, cc}
  11992. * src/ARC4Encryptor.h
  11993. * src/ARC4Decryptor.h
  11994. * src/LibgcryptARC4Encryptor.h
  11995. * src/LibgcryptARC4Decryptor.h
  11996. * src/LibgcryptARC4Context.h
  11997. * src/LibsslARC4Encryptor.h
  11998. * src/LibsslARC4Decryptor.h
  11999. * src/LibsslARC4Context.h
  12000. * src/DHKeyExchange.h
  12001. * src/LibgcryptDHKeyExchange.h
  12002. * src/LibsslDHKeyExchange.h
  12003. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12004. * test/DefaultBtAnnounceTest.cc
  12005. * test/ARC4Test.cc
  12006. * test/DHKeyExchangeTest.cc
  12007. Removed prepareForRetry() because it is not used.
  12008. * src/PeerAbstractCommand.{h, cc}
  12009. * src/PeerInteractionCommand.{h, cc}
  12010. * src/PeerInitiateConnectionCommand.{h, cc}
  12011. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12012. Added the ability to load nodes from torrent file. These nodes are
  12013. added to the routing table when downloading that torrent.
  12014. * src/BtContext.h
  12015. * src/DefaultBtContext.{h, cc}
  12016. * src/DHTSetup.cc
  12017. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12018. hostname and port pair, and resolves all of them.
  12019. * src/NameResolver.{h, cc}: Added reset().
  12020. * src/RequestGroup.cc
  12021. * test/DefaultBtContextTest.cc
  12022. * test/MockBtContext.h
  12023. Removed assert() from DefaultBtContext and throw exception instead.
  12024. * src/DefaultBtContext.cc
  12025. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12026. Fixed segmentation fault bug when exiting if dht is disabled.
  12027. * src/RequestGroup.cc
  12028. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12029. Fixed typo in log message and define the message in message.h
  12030. * src/TimedHaltCommand.cc
  12031. * src/message.h
  12032. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12033. Included RecoverableException.h to fix compilation error.
  12034. * test/DHTMessageFactoryImplTest.cc
  12035. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12036. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12037. * test/DHTPingMessageTest.cc
  12038. * test/DHTGetPeersMessageTest.cc
  12039. * test/DHTFindNodeMessageTest.cc
  12040. * test/DHTAnnouncePeerMessageTest.cc
  12041. * test/MockDHTMessage.h
  12042. * test/MockDHTMessageFactory.h
  12043. * test/MockDHTMessageDispatcher.h: New class.
  12044. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12045. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12046. virtual.
  12047. * src/DHTMessageDispatcher.h
  12048. * src/DHTMessageDispatcherImpl.{h, cc}
  12049. * src/DHTSetup.cc
  12050. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12051. Adding handling of DHT error message. Just log error message and
  12052. throw exception.
  12053. * src/DHTMessageFactoryImpl.cc
  12054. * test/DHTMessageFactoryImplTest.cc
  12055. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12056. Added handling of dynamic cast failure.
  12057. * src/DHTNodeLookupTask.cc
  12058. * src/DHTPeerLookupTask.cc
  12059. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12060. Added the ability to stop aria2 itself when given time has passed
  12061. from start. Use --stop option to specify time in minutes.
  12062. When 0 is given, this feature is disabled.
  12063. * src/OptionHandlerFactory.cc
  12064. * src/TimeBasedCommand.h: Make _interval protected scope.
  12065. * src/HelpItemFactory.cc
  12066. * src/option_processing.cc
  12067. * src/prefs.h
  12068. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12069. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12070. Without this modification, the result list shows "ERR" when aria2 is
  12071. stopped by --stop option. It should be "INPR".
  12072. * src/DownloadEngine.{h, cc}
  12073. * src/DownloadEngineFactory.cc
  12074. * src/usage_text.h
  12075. * src/TimedHaltCommand.{h, cc}: New class.
  12076. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12077. Bootstrap through node added by port message.
  12078. Currently bootstrap is executed if the number of buckets in routing
  12079. table is 1.
  12080. * src/BtPortMessage.{h, cc}
  12081. * src/DefaultBtMessageFactory.{h, cc}
  12082. * src/PeerInteractionCommand.cc
  12083. * test/BtPortMessageTest.cc
  12084. * test/MockDHTTask.h
  12085. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Extract the Peer class's member variables, which are only needed after
  12087. PeerInteractionCommand, into PeerSessionResource class.
  12088. This class is instantiated in PeerInteractionCommand class's ctor and
  12089. released in its dtor.
  12090. This will make Peer class lightweight and uses less memory for peers
  12091. which are not connected and wait in the queue.
  12092. * src/PeerChokeCommand.cc
  12093. * src/PeerSessionResource.{h, cc}
  12094. * src/PeerInteractionCommand.cc
  12095. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12096. * src/DefaultBtInteractive.cc
  12097. * src/BtPieceMessage.cc
  12098. * src/BtInterestedMessage.cc
  12099. * src/BtUnchokeMessage.cc
  12100. * src/DefaultPeerStorage.{h, cc}
  12101. * src/PeerInitiateConnectionCommand.cc
  12102. * src/ActivePeerConnectionCommand.cc
  12103. * src/BtNotInterestedMessage.cc
  12104. * src/DefaultBtMessageDispatcher.cc
  12105. * src/BtChokeMessage.cc
  12106. * src/BtRequestMessage.cc
  12107. * src/Peer.{h, cc}
  12108. * src/BtRegistry.h
  12109. * src/TrackerWatcherCommand.cc
  12110. * src/PeerReceiveHandshakeCommand.cc
  12111. * test/BtExtendedMessageTest.cc
  12112. * test/BtAllowedFastMessageTest.cc
  12113. * test/BtCancelMessageTest.cc
  12114. * test/DefaultPieceStorageTest.cc
  12115. * test/BtBitfieldMessageTest.cc
  12116. * test/BtHaveMessageTest.cc
  12117. * test/BtNotInterestedMessageTest.cc
  12118. * test/BtRequestMessageTest.cc
  12119. * test/PeerSessionResourceTest.cc
  12120. * test/DefaultBtMessageDispatcherTest.cc
  12121. * test/PeerTest.cc
  12122. * test/BtInterestedMessageTest.cc
  12123. * test/BtRejectMessageTest.cc
  12124. * test/BtChokeMessageTest.cc
  12125. * test/DefaultPeerStorageTest.cc
  12126. * test/BtHaveNoneMessageTest.cc
  12127. * test/BtHaveAllMessageTest.cc
  12128. * test/DefaultExtensionMessageFactoryTest.cc
  12129. * test/BtUnchokeMessageTest.cc
  12130. * test/DefaultBtMessageFactoryTest.cc
  12131. * test/HandshakeExtensionMessageTest.cc
  12132. * test/UTPexExtensionMessageTest.cc
  12133. * test/DefaultBtRequestFactoryTest.cc
  12134. * test/BtPieceMessageTest.cc
  12135. Removed typedef PeerStats.
  12136. * src/PeerStat.h
  12137. * src/SegmentMan.cc
  12138. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12139. Added std namespace to copy, remove_copy, back_inserter,
  12140. front_inserter.
  12141. * src/RequestGroupMan.cc
  12142. * src/DefaultPieceStorage.cc
  12143. * src/StreamFileAllocationEntry.cc
  12144. * src/BtFileAllocationEntry.cc
  12145. * src/RequestGroup.cc
  12146. * src/MetalinkEntry.cc
  12147. * src/DelegatingPeerListProcessor.cc
  12148. * src/DefaultBtRequestFactory.cc
  12149. * src/DefaultBtMessageDispatcher.cc
  12150. * src/version_usage.cc: Included <algorithm>
  12151. * src/main.cc
  12152. * src/MetalinkParserController.cc
  12153. * src/DefaultBtContext.cc
  12154. * src/DownloadEngineFactory.cc
  12155. * src/a2algo.h
  12156. Removed.
  12157. * test/StreamUriListParserTest.cc
  12158. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12159. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12160. ActivePeerConnectionCommand when it is given and
  12161. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12162. * src/ActivePeerConnectionCommand.{h, cc}
  12163. * src/BtSetup.cc
  12164. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12165. Only add socket to DownloadEngine's select routine when peer or
  12166. localhost is unchoked and interested. This lowers CPU usage a
  12167. little bit.
  12168. * src/PeerInteractionCommand.cc
  12169. * src/PeerAbstractCommand.{h, cc}
  12170. * src/BtInteractive.h
  12171. * src/DefaultBtInteractive.{h, cc}
  12172. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. Revert previous change because get_peers message is needed for
  12174. announce_peer anyway.
  12175. * src/DHTGetPeersCommand.cc
  12176. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12177. Request peers thought DHT only when download hasn't finished.
  12178. * src/DHTGetPeersCommand.cc
  12179. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12180. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12181. * src/DHTBucketRefreshTask.{h, cc}
  12182. * src/DHTSetup.cc
  12183. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12184. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12185. standard classes.
  12186. Included string.h where mem* function are used.
  12187. Added namespace aria2.
  12188. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12189. Create directory before saving DHT routing table.
  12190. Now ios::failure is now handled properly.
  12191. * src/DHTAutoSaveCommand.cc
  12192. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12193. Removed unnecessary cerr.
  12194. * src/DownloadEngine.cc
  12195. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12196. Catch exception inside DHTMessageReceiver::receiveMessage().
  12197. Log unknown message.
  12198. * src/DHTMessageReceiver.{h, cc}
  12199. * src/DHTMessageFactory.h
  12200. * src/DHTMessageFactoryImpl.{h, cc}
  12201. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12202. * src/DHTInteractionCommand.cc
  12203. * src/DHTUnknownMessage.{h, cc}
  12204. * test/DHTUnknownMessageTest.cc
  12205. * test/MockDHTMessageFactory.h
  12206. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12207. Commented out ip address comparison because a host can have multiple
  12208. ip addresses and it is hard to predict the hostname is resolved into
  12209. which one.
  12210. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12211. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12212. * po/Makefile.in: Removed since this is generated by configure.
  12213. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12214. Fixed compiler warning about redefinition of SIZE_MAX.
  12215. Use common.h instead of config.h directly here.
  12216. * src/Platform.{h, cc}
  12217. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12218. here.
  12219. * common.h
  12220. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12221. Updated gettext related files.
  12222. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12223. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12224. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12225. Added DHT functionality, compatible with mainline.
  12226. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12227. You may need to specify entry point to DHT network using
  12228. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12229. Use --dht-listen-port to specify port number. Make sure that your
  12230. firewall configuration can pass through UDP traffic to the port.
  12231. The routing table is saved in $HOME/.aria2/dht.dat.
  12232. * src/DHT*
  12233. * src/BNode.{h, cc}
  12234. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12235. particular torrent.
  12236. * src/Data.cc: Rewritten ctor.
  12237. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12238. --dht-entry-point.
  12239. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12240. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12241. ends, remove BtContext from DHTPeerAnnounceStorage.
  12242. * src/BtPortMessage.{h, cc}: Rewritten.
  12243. * src/message.h
  12244. * src/OptionHandlerImpl.cc
  12245. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12246. --dht-entry-point.
  12247. * src/Dictionary.{h, cc} (remove): New function.
  12248. * src/prefs.h
  12249. * src/DefaultBtMessageFactory.h
  12250. * src/BtHandshakeMessage.cc
  12251. * src/ActivePeerConnectionCommand.cc
  12252. * src/SocketCore.{h, cc}: Added datagram socket support.
  12253. * src/DefaultBtMessageFactory.cc
  12254. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12255. Create DHT commands.
  12256. * src/BtMessageFactory.h
  12257. * src/PeerMessageUtil.{h, cc}
  12258. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12259. Fixed the bug that log file is not written when configuration file doesn't exist.
  12260. This is caused by using Logger class before LogFactory is not configured.
  12261. BUG #1875079
  12262. * src/option_processing.cc
  12263. Warning message "configuration doesn't exist" is only printed when --conf is
  12264. given.
  12265. * src/option_processing.cc
  12266. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12267. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12268. ShaVisitor is now deprecated and slated to be removed.
  12269. * src/DefaultBtContext.cc
  12270. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12271. Externalize message to message.h
  12272. * src/Platform.cc
  12273. * src/message.h
  12274. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12275. Set default domain and default path to cookie.
  12276. * src/HttpResponse.cc
  12277. * src/CookieBox.{h, cc}
  12278. * src/CookieParser.{h, cc}
  12279. * test/CookieParserTest.cc
  12280. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12281. Added --no-conf and --conf-path command-line option.
  12282. --no-conf option disables loading aria2.conf file.
  12283. --conf-path option changes the configuration file path. The default
  12284. file path is $HOME/.aria2/aria2.conf
  12285. Added a warning message when the configuration file is not found.
  12286. * src/HelpItemFactory.cc
  12287. * src/option_processing.cc
  12288. * src/prefs.h
  12289. * src/usage_text.h
  12290. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12291. Added the message to inform users that other help categories are
  12292. available in -h option.
  12293. * src/version_usage.cc
  12294. * src/TagContainer.{h, cc}
  12295. * test/TagContainerTest.cc
  12296. * src/TaggedItem.{h, cc}
  12297. * test/TaggedItemTest.cc
  12298. * src/HelpItem.h
  12299. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12300. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12301. from PiecedSegment's ctor.
  12302. Previously Piece::getAllMissingBlockIndexes() is called from
  12303. PiecedSegment() but it is rather expensive since only first element is
  12304. used.
  12305. * src/PiecedSegment.cc
  12306. * src/Piece.{h, cc}
  12307. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12308. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12309. each time these functions are called.
  12310. * src/BitfieldMan.{h, cc}
  12311. * test/BitfieldManTest.cc
  12312. * src/array_fun.h
  12313. * test/array_funTest.cc
  12314. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12315. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12316. filtered. Removed unnecessary cast to int32_t.
  12317. * src/BitfieldMan.{h, cc}
  12318. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12319. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12320. payload length(4bytes) are received. This happens because lenbufLength
  12321. is not updated in this particular case and successive call of
  12322. receiveMessage() overwrites payload length with bytes recieved which
  12323. are payload body.
  12324. * src/PeerConnection.{h, cc}
  12325. * src/message.h
  12326. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12327. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12328. peer if there are peers that have same ipaddr and port.
  12329. I've experiened segmentation fault and "pure virtual function was
  12330. called" error.
  12331. * src/Peer.h
  12332. * test/PeerTest.cc
  12333. * src/DefaultPeerStorage.cc
  12334. * test/DefaultPeerStorageTest.cc
  12335. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12336. Removed a call to isPowerOf() because it is no longer necessary here
  12337. and a request block is not always power of 2.
  12338. BUG#1866924
  12339. * src/PeerMessageUtil.cc (checkLength)
  12340. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12341. Fixed the bug that always first found Segment is removed from
  12342. usedSegmentEntries. Removed unused functions.
  12343. * src/SegmentMan.{h, cc}
  12344. * test/SegmentManTest.cc
  12345. Fixed the bug that ServerHost is not removed.
  12346. * src/RequestGroup.cc
  12347. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12348. Fixed the bug that SegmentMan::completeSegment() is not called
  12349. even if Segment is complete when --lowest-speed-limit is enabled.
  12350. BUG#1864525
  12351. * src/DownloadCommand.{h, cc}
  12352. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12353. Fixed: hash algorithm 'sha1' is always used.
  12354. * src/DownloadCommand.cc (validatePieceHash)
  12355. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12356. Added --enable-peer-exchange command-line option.
  12357. * src/OptionHandlerFactory.cc
  12358. * src/HelpItemFactory.cc
  12359. * src/option_processing.cc
  12360. * src/usage_text.h
  12361. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. Move extension from BtRuntime to ExtensionMessageFactory, because
  12363. extension can be specified per peer, not per torrent.
  12364. * src/DefaultBtInteractive.cc
  12365. * src/BtRuntime.h
  12366. * src/ExtendedMessagingAware.h
  12367. * src/ExtensionMessageFactory.h
  12368. * src/DefaultExtensionMessageFactory.cc
  12369. * test/DefaultExtensionMessageFactoryTest.cc
  12370. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. Added categorized option help. Specify category using --help option.
  12372. Also added the ability to search options in forward match.
  12373. * src/HelpItem.{h, cc}
  12374. * test/HelpItemTest.cc
  12375. * src/HelpItemFactory.{h, cc}
  12376. * src/TagContainer.{h, cc}
  12377. * test/TagContainerTest.cc
  12378. * src/option_processing.cc
  12379. * src/prefs.h
  12380. * src/TaggedItem.{h, cc}
  12381. * test/TaggedItemTest.cc
  12382. * src/version_usage.cc
  12383. * src/help_tags.h
  12384. * src/usage_text.h
  12385. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12386. Fixed segmentation fault when bad torrent metainfo is parsed.
  12387. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12388. and then throw exception or skip it.
  12389. * src/DefaultBtContext.{h, cc}
  12390. * test/DefaultBtContextTest.cc
  12391. * src/AnnounceList.cc
  12392. * src/CompactPeerListProcessor.cc
  12393. * src/message.h
  12394. * src/DefaultBtAnnounce.{h, cc}
  12395. * test/DefaultBtAnnounceTest.cc
  12396. * src/BencodeVisitor.cc
  12397. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12398. Added missing "B"(=Byte). So now the message looks like this:
  12399. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12400. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12401. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12402. Show the seed ratio after torrent downloads.
  12403. For example, after torrent download completed and --seed-time and
  12404. --seed-ratio conditions are fulfilled, following message is printed
  12405. right after "Download complete: .....":
  12406. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12407. * src/RequestGroupMan.cc
  12408. * src/RequestGroup.{h, cc}
  12409. * src/message.h
  12410. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12411. Remove a defunct control file. A defunct control file means that while
  12412. it exists, but the corresponding download file is missing.
  12413. After its removal, a download restarts from the beginning.
  12414. * src/RequestGroup.cc
  12415. * src/message.h
  12416. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12417. Allocate bitfield in Peer when it is really used. More specifically,
  12418. bitfield in Peer is allocated after the connection is established and
  12419. deallocated when the connection is dropped.
  12420. Since 2 parameters(piece length and total length) was removed from the
  12421. constructor of Peer class, many test classes were modified accordingly.
  12422. See svn log for more detailed information.
  12423. * src/PeerInteractionCommand.cc
  12424. * src/CompactPeerListProcessor.cc
  12425. * src/Peer.cc
  12426. * src/DefaultPeerListProcessor.cc
  12427. * src/PeerListenCommand.cc
  12428. * src/PeerReceiveHandshakeCommand.cc
  12429. Fixed memory leak
  12430. * src/Piece.cc
  12431. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12433. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12434. command-line options.
  12435. * src/option_processing.cc
  12436. * src/ActivePeerConnectionCommand.cc
  12437. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12438. Send have message to peer if it already has the piece.
  12439. * src/BtHaveMessage.{h, cc}
  12440. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12441. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12442. port.
  12443. * src/DefaultPeerStorage.{h, cc}
  12444. * test/DefaultPeerStorageTest.cc
  12445. * src/HandshakeExtensionMessage.cc
  12446. * test/HandshakeExtensionMessageTest.cc
  12447. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12448. * src/PeerStorage.h
  12449. * test/MockPeerStorage.h
  12450. * src/PeerListenCommand.cc
  12451. * src/PeerReceiveHandshakeCommand.cc
  12452. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12453. Added --metalink-enable-unique-protocol option.
  12454. * src/Metalink2RequestGroup.cc
  12455. * src/option_processing.cc
  12456. * src/prefs.h
  12457. * src/version_usage.cc
  12458. * doc/aria2c.1.txt
  12459. * doc/aria2c.1
  12460. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12461. Allow a peer in incomingPeer to be added peers.
  12462. * src/DefaultPeerStorage.cc
  12463. * test/DefaultPeerStorageTest.cc
  12464. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12465. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12466. I could reproduce this bug in following procedure:
  12467. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12468. 2. Restart aria2.
  12469. 3. You see the download stopped around 99%.
  12470. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12471. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12472. If timeout is reached, then _nextCommand is unused and it may contains
  12473. segments and they won't be canceled. Actually, timeout is not needed
  12474. here because if the server dropped connection, then retry is made.
  12475. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12476. Added uTorrent compatible Peer Exchange.
  12477. * src/BencodeVisitor.{h, cc}
  12478. * test/BencodeVisitorTest.cc
  12479. * src/BtConstants.h
  12480. * src/BtContext.h: Added 'private' flag.
  12481. * src/BtExtendedMessage.{h, cc}
  12482. * test/BtExtendedMessageTest.cc
  12483. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12484. reserved field.
  12485. * test/BtHandshakeMessageTest.cc
  12486. * src/BtMessageFactory.h
  12487. * src/BtRegistry.h
  12488. * src/BtRuntime.h: This class holds default extension message IDs for
  12489. aria2. By default, aria2 uses ID 8 for ut_pex.
  12490. * src/DefaultBtContext.cc
  12491. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12492. When it is true, aria2 enables ut_pex. This value is set by
  12493. PeerInteractionCommand.
  12494. * src/DefaultBtMessageFactory.{h, cc}
  12495. * test/DefaultBtMessageFactoryTest.cc
  12496. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12497. handling to DefaultBtInteractive class.
  12498. * src/DefaultExtensionMessageFactory.{h, cc}
  12499. * test/DefaultExtensionMessageFactoryTest.cc
  12500. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12501. the container(peers and incomingPeers. The equality is determined by
  12502. Peer::id).
  12503. * test/DefaultPeerStorageTest.cc
  12504. * src/ExtensionMessage.h
  12505. * test/MockExtensionMessage.h
  12506. * src/ExtensionMessageFactory.h
  12507. * test/MockExtensionMessageFactory.h
  12508. * src/HandshakeExtensionMessage.{h, cc}
  12509. * test/HandshakeExtensionMessageTest.cc
  12510. * src/MetaEntry.h
  12511. * src/Peer.{h, cc}
  12512. * src/PeerInteractionCommand.cc
  12513. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12514. addIncomingPeer.
  12515. * src/PeerMessageUtil.{h, cc}
  12516. * src/PeerObject.h
  12517. * src/UTPexExtensionMessage.{h, cc}
  12518. * test/UTPexExtensionMessageTest.cc
  12519. * src/message.h
  12520. * src/prefs.h
  12521. Fixed the bug that returns incomplete data when it contains null
  12522. character. A convenient constructor was also added.
  12523. * src/Data.{h, cc}
  12524. Rewritten.
  12525. * src/CompactPeerListProcessor.cc
  12526. Fixed typos.
  12527. * src/message.h
  12528. * src/MetaFileUtil.cc
  12529. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12530. Added "Status Legend" label to the explanation text of 'stat' in
  12531. download result and moved it to the last. BUG#1848214
  12532. * src/RequestGroupMan.cc
  12533. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12534. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12535. * src/Makefie.am
  12536. * test/Makefile.am
  12537. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12538. Fixed the bug that prevents aria2 from loading cookie file when expire
  12539. value is greater than 2^31-1. BUG#1851066
  12540. * src/CookieBoxFactory.cc
  12541. * test/CookieBoxFactoryTest.cc
  12542. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12543. Fixed possible memory leak when an exception is thrown.
  12544. * src/XML2SAXMetalinkProcessor.cc
  12545. Added Expat support. If both libxml2 and Expat are installed, then
  12546. libxml2 is used by default.
  12547. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12548. ExpatMetalinkProcessor according to the configuration.
  12549. * src/ExpatMetalinkProcessor.{h, cc}
  12550. * src/main.cc: Removed libxml2 specific header and init/free function.
  12551. * src/MetalinkProcessorFactory.{h, cc}
  12552. * src/MetalinkHelper.cc
  12553. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12554. * src/MetalinkProcessor.h
  12555. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12556. MetalinkProcessorTest is used instead.
  12557. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12558. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12559. MetalinkProcessorFactory::newInstance().
  12560. * m4/libexpat.m4
  12561. * configure.ac: Added configuration options for libexpat.
  12562. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12563. Disabled -s option in metalink download.
  12564. * src/Metalink2RequestGroup.cc
  12565. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12566. If several protocols are available for a mirror in metalink file,
  12567. aria2 now use one of them. --metalink-preferred-protocol option was
  12568. added to specify the preference of protocol.
  12569. * src/AbstractCommand.cc
  12570. * src/OptionHandlerFactory.cc
  12571. * src/ServerHost.{h, cc}
  12572. * src/Metalink2RequestGroup.cc
  12573. * src/RequestGroup.{h, cc}
  12574. * test/RequestGroupTest.cc
  12575. * src/option_processing.cc
  12576. * src/prefs.h
  12577. * src/HttpResponseCommand.cc
  12578. * src/MetalinkResource.{h, cc}
  12579. * src/FtpNegotiationCommand.cc
  12580. * src/MetalinkEntry.{h, cc}
  12581. * src/MetalinkEntryTest.cc
  12582. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12583. Code cleanup and added debug log.
  12584. * src/PeerConnection.cc
  12585. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12586. Compiler error fix: applied the patch by Tiziano Mueller
  12587. * src/RequestGroup.cc
  12588. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12589. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12590. in stopped and completed event.
  12591. * src/AnnounceList.{h, cc}
  12592. * test/AnnounceListTest.cc
  12593. * src/DefaultBtAnnounce.cc
  12594. * test/DefaultBtAnnounceTest.cc
  12595. Sorted URLs.
  12596. * test/Metalink2RequestGroupTest.cc
  12597. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12598. Removed unnecessary string copy. Updated doc and corrected indentation.
  12599. * src/Base64.cc
  12600. Fixed compilation warnings
  12601. * test/DataTest.cc
  12602. * test/HttpRequestTest.cc
  12603. * test/MetaFileUtilTest.cc
  12604. * test/RequestTest.cc
  12605. * Release 0.12.0
  12606. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12607. Updated translations
  12608. * po/{de,fr,ja,nl,ru}.po
  12609. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12610. translations. Many thanks to translators.
  12611. * po/{ca,es,it,pt_BR,sv}.po
  12612. * po/LINGUAS
  12613. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12614. Added a notice about URL
  12615. * src/version_usage.cc
  12616. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12617. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12618. aria2 repeatedly sends stopped request when tracker returns error code.
  12619. * src/AnnounceList.cc
  12620. * test/AnnounceListTest.cc
  12621. * src/AnnounceTier.h
  12622. Added a message when ctrl-c is hit.
  12623. Now second ctrl-c is also handled in signal handler.
  12624. * src/RequestGroupMan.{h, cc}
  12625. * src/RequestGroup.{h, cc}
  12626. * src/MultiUrlRequestInfo.cc
  12627. * src/DownloadEngine.cc
  12628. * src/TrackerWatcherCommand.cc
  12629. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. Code cleanup
  12631. * src/Base64.cc (encode)
  12632. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12633. Changed Direct/IO enable/disable procesure in file allocation routine.
  12634. * src/SingleFileAllocationIterator.cc
  12635. (SingleFileAllocationIterator):
  12636. Disable directIO if offset is not multiple of 512.
  12637. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12638. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12639. Enable created SingleFileAllocationIterator's directIO.
  12640. * src/FileAllocationEntry.cc
  12641. (FileAllocationEntry): Enable directIO here.
  12642. (~FileAllocationEntry): Disable directIO here.
  12643. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12644. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12645. * src/Peer.{h, cc}
  12646. * src/DefaultPieceStorage.cc
  12647. * test/DefaultPieceStorageTest.cc
  12648. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12649. Rewritten direct I/O support routine
  12650. * src/SingleFileAllocationIterator.cc
  12651. * src/MultiDiskAdaptor.{h, cc}
  12652. * src/ByteArrayDiskWriter.h
  12653. * src/AbstractSingleDiskAdaptor.h
  12654. * src/AbstractDiskWriter.cc
  12655. * src/DefaultPieceStorage.cc
  12656. * src/DiskWriter.h
  12657. * src/BinaryStream.h
  12658. * src/IteratableChunkChecksumValidator.cc
  12659. * src/IteratableChecksumValidator.cc
  12660. * src/CheckIntegrityEntry.cc
  12661. * src/FileAllocationEntry.cc
  12662. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12663. Fixed typo
  12664. * src/version_usage.cc
  12665. Updated doc
  12666. * doc/aria2c.1.txt
  12667. * doc/aria2c.1
  12668. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12669. Fixed compile error without message digest support.
  12670. * src/FileMetalinkParserState.cc
  12671. * src/MetalinkParserController.{h, cc}
  12672. * test/XML2SAXMetalinkProcessorTest.cc
  12673. * test/MetalinkParserControllerTest.cc
  12674. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12675. Enable direct I/O support in checksum checking.
  12676. * src/IteratableChunkChecksumValidator.{h, cc}
  12677. * test/IteratableChunkChecksumValidatorTest.cc
  12678. * src/CheckIntegrityEntry.cc
  12679. * src/PieceHashCheckIntegrityEntry.cc
  12680. * src/IteratableChecksumValidator.{h, cc}
  12681. * src/BtCheckIntegrityEntry.cc: Added doc.
  12682. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12683. Added --allow-piece-length-change option.
  12684. * src/DefaultBtProgressInfoFile.cc
  12685. * test/DefaultBtProgressInfoFileTest.cc
  12686. * src/OptionHandlerFactory.cc
  12687. * src/option_processing.cc
  12688. * src/prefs.h
  12689. * src/version_usage.cc
  12690. * doc/aria2c.1.txt
  12691. * doc/aria2c.1
  12692. Fixed: duplicated result entry appears when exception is thrown in
  12693. RequestGroup::createInitiateConnectionCommand().
  12694. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12695. Add RequestGroup to _requestGroup after RequetGroup::
  12696. createInitiateConnectionCommand() succeeds.
  12697. Externalized message
  12698. * src/XML2SAXMetalinkProcessor.cc
  12699. * src/message.h
  12700. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12701. Forced download abort when received negative response from http/ftp
  12702. server.
  12703. * src/HttpResponseCommand.cc
  12704. * src/FtpNegotiationCommand.cc
  12705. * src/HttpResponse.cc
  12706. * src/FtpConnection.cc
  12707. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12708. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12709. the predecessor, Xml2MetalinkParser class.
  12710. I tested them against 94KB metalink file with 1234 chunk checksums.
  12711. The new one parsed it in 22msec, while it took 6000msec with old one.
  12712. * src/XML2SAXMetalinkProcessor.{h, cc}
  12713. * test/XML2SAXMetalinkProcessorTest.cc
  12714. * src/MetalinkParserController.{h, cc}
  12715. * test/MetalinkParserControllerTest.cc
  12716. * src/MetalinkParserState.h: Also added 16 subclasses.
  12717. * src/main.cc
  12718. * src/Metalink2RequestGroup.cc
  12719. * src/MetalinkHelper.cc
  12720. * src/MetalinkEntry.cc
  12721. * src/ChunkChecksum.h
  12722. Rewritten Base64 class for better performance.
  12723. * src/Base64.{h, cc}
  12724. * test/Base64Test.cc
  12725. * src/HttpRequest.cc
  12726. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12727. Fixed the bug#1841757: aria2 will connect to server to only get
  12728. file size.
  12729. * src/StreamFileAllocationEntry.cc
  12730. * src/option_processing.cc
  12731. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12732. downloads.
  12733. * src/FtpNegotiationCommand.cc
  12734. Suppressed wrong message when finding PreDownloadHandler
  12735. * src/RequestGroup.cc
  12736. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12737. Updated usage
  12738. * src/version_usage.cc
  12739. Updated man page
  12740. * doc/aria2c.1.txt
  12741. * doc/aria2c.1
  12742. Updated po files
  12743. * po/aria2c.pot
  12744. * po/*.po
  12745. * po/*.gmo
  12746. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12747. Eliminated g++-4.2 warning
  12748. * src/DownloadHandlerConstants.{h, cc}
  12749. * src/Util.cc
  12750. * test/MetaFileUtilTest.cc
  12751. * test/PStringBuildVisitorTest.cc
  12752. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12753. * src/RequestGroup.cc
  12754. * src/BtCheckIntegrityEntry.cc
  12755. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12756. Fixed a2io.h
  12757. * src/a2io.h
  12758. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12759. Added direct I/O support. The current implementation uses O_DIRECT,
  12760. which is not posix standard and is tested on linux 2.6.21.
  12761. Currently only file allocation uses direct I/O.
  12762. * src/SingleFileAllocationIterator.{h, cc}
  12763. * test/SingleFileAllocationIteratorTest.cc
  12764. * src/MultiFileAllocationIterator.{h, cc}
  12765. * test/MultiFileAllocationIteratorTest.cc
  12766. * src/BinaryStream.h
  12767. * src/DiskWriter.h
  12768. * src/AbstractDiskWriter.{h, cc}
  12769. * src/ByteArrayDiskWriter.h
  12770. * src/DiskAdaptor.h
  12771. * src/AbstractSingleDiskAdaptor.{h, cc}
  12772. * src/MultiDiskAdaptor.{h, cc}
  12773. * src/FileAllocationEntry.cc
  12774. * src/Util.{h, cc}
  12775. * src/OptionHandlerFactory.cc
  12776. * src/prefs.h
  12777. * src/version_usage.cc
  12778. * src/option_processing.cc
  12779. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12780. handleException.
  12781. * src/MultiFileAllocationIterator.cc
  12782. Added EINTR handling
  12783. * src/SocketCore.cc
  12784. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12785. Updated usage
  12786. * src/version_usage.cc
  12787. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12788. Applied Ross's patch for MinGW port.
  12789. * src/DownloadEngine.h
  12790. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12791. Set Content-Type to SingleFileDownloadContext when http response is
  12792. received.
  12793. * src/HttpResponseCommand.cc
  12794. * src/HttpResponse.{h, cc}
  12795. * test/HttpResponseTest.cc
  12796. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12797. Rewritten to add content-type support.
  12798. * src/DownloadHandler.{h, cc}
  12799. * src/BtPostDownloadHandler.{h, cc}
  12800. * test/BtPostDownloadHandlerTest.cc
  12801. * src/MetalinkPostDownloadHandler.{h, cc}
  12802. * test/MetalinkPostDownloadHandlerTest.cc
  12803. * src/PostDownloadHandler.{h, cc}
  12804. * src/DownloadHandlerConstants.{h, cc}
  12805. * src/RequestGroup.cc
  12806. * src/HttpResponseCommand.cc
  12807. * src/FtpNegotiationCommand.cc
  12808. * src/SingleFileDownloadContext.{h, cc}
  12809. * src/RequestGroup.h
  12810. * src/RequestGroupCriteria.h
  12811. * src/ContentTypeRequestGroupCriteria.h
  12812. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12813. If it is give, metalink/torrent file is not written to the disk, but
  12814. just is kept in memory. Parsing is occurred on memory.
  12815. * src/MetalinkHelper.{h, cc}
  12816. * src/MetalinkProcessor.h
  12817. * src/Xml2MetalinkProcessor.{h, cc}
  12818. * test/Xml2MetalinkProcessorTest.cc
  12819. * src/DownloadHandlerFactory.{h, cc}
  12820. * test/DownloadHandlerFactoryTest.cc
  12821. * src/PreDownloadHandler.{h, cc}
  12822. * src/OptionHandlerFactory.cc
  12823. * src/DefaultBtContext.{h, cc}
  12824. * test/DefaultBtContextTest.cc
  12825. * src/version_usage.cc
  12826. * src/Metalink2RequestGroup.{h, cc}
  12827. * src/RequestGroup.{h, cc}
  12828. * src/a2functional.h
  12829. * test/a2functionalTest.cc
  12830. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12831. * src/OptionHandlerImpl.h
  12832. * src/prefs.h
  12833. * src/Util.{h, cc}
  12834. * test/UtilTest.cc
  12835. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12836. memory usage.
  12837. * src/RequestGroupMan.{h, cc}
  12838. * src/DownloadEngine.cc
  12839. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12840. WeakHandle to SharedHandle because WeakHandle could be null.
  12841. * src/RequestGroup.{h, cc}
  12842. * src/DownloadEngineFactory.cc
  12843. * src/DownloadResult.h
  12844. Set totalLength after download finished
  12845. * src/UnknownLengthPieceStorage.{h, cc}
  12846. Keep torrent file specified in metalink in memory.
  12847. * src/Metalink2RequestGroup.cc
  12848. * src/BtDependency.cc
  12849. * src/TrueRequestGroupCriteria.h
  12850. Fixed the bug: seekg is used where seekp should be used.
  12851. * src/ByteArrayDiskWriter.cc
  12852. * test/ByteArraydiskWriterTest.cc
  12853. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12854. Fixed syntax error
  12855. * test/SequenceTest.cc
  12856. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12857. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12858. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12859. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12860. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12861. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12862. Added the check to see whether ares_host_callback accepts timeouts
  12863. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12864. * src/NameResolver.{h, cc}
  12865. * m4/libcares.m4
  12866. * configure.ac: Set C++ for language choice.
  12867. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12868. Fixed: compilation fails without c-ares/ares
  12869. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12870. Generate http/ftp commands only when download is incomplete.
  12871. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12872. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12873. Corrected typo. Examples are removed since they are available in man
  12874. page.
  12875. * src/version_usage.cc
  12876. Updated man page.
  12877. * doc/aria2c.1
  12878. * doc/aria2c.1.txt
  12879. * doc/makeman: Commented out sed command.
  12880. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12881. Throw DlAbortEx when a remote file is not found.
  12882. * src/HttpResponse.cc
  12883. * src/FtpNegotiationCommand.cc
  12884. * src/message.h
  12885. Overwrite an existing file if --allow-overwrite=true is given.
  12886. * src/RequestGroup.cc
  12887. Removed unused functions
  12888. * src/AbstractCommand.h
  12889. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12890. Removed 'extern' from 'extern typedef ...' in src/*.h
  12891. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12892. Updated usage
  12893. * src/version_usage.cc
  12894. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12895. Trim announce URL
  12896. * src/DefaultBtContext.cc
  12897. * test/ShaVisitorTest.cc
  12898. Trim argument s. Give trimed s to exception constructor.
  12899. * src/Util.cc (parseInt)(parseLLInt)
  12900. * test/UtilTest.cc
  12901. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12902. Set precision back to 1.
  12903. * src/ConsoleStatCalc.cc (calculateStat)
  12904. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12905. Replaced strtol with Util::parseInt
  12906. * src/ChunkedEncoding.cc
  12907. * src/HttpConnection.cc
  12908. * src/CookieBoxFactory.cc
  12909. * src/ParameterizedStringParser.cc
  12910. * src/Util.cc
  12911. * test/UtilTest.cc
  12912. * test/OptionHandlerTest.cc
  12913. * src/Request.cc
  12914. Throw exception when empty string is given. The message for exception
  12915. changed.
  12916. * src/Util.cc (parseInt)(parseLLInt)
  12917. * src/message.h
  12918. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12919. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12920. set to 1.
  12921. * src/ConsoleStatCalc.cc (calculateStat)
  12922. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12923. Preallocate non-requested file which is adjacent forward to requested
  12924. file('requested' files means the files given in --select-file option)
  12925. if they share a same piece.
  12926. This fixes long pause in the file system which doesn't support sparse
  12927. files like FAT32 while downloading.
  12928. * src/MultiFileAllocationIterator.{h, cc}
  12929. * test/MultiFileAllocationIteratorTest.cc
  12930. * src/FileEntry.{h, cc}
  12931. Removed unused _option.
  12932. * src/MultiDiskAdaptor.h
  12933. * test/MultiDiskAdaptorTest.cc
  12934. * src/DefaultPieceStorage.cc
  12935. Set the default value of --seed-ratio to 1.0.
  12936. If 0.0 is given, then seeding continues regardless of share ratio.
  12937. * src/version_usage.cc
  12938. * src/option_processing.cc
  12939. * src/BtSetup.cc
  12940. * doc/aria2c.1.txt
  12941. * doc/aria2c.1
  12942. Fixed: Selective download is not working in BitTorrent
  12943. * src/RequestGroup.cc
  12944. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12945. * src/PieceStorage.h
  12946. * test/MockPieceStorage.h
  12947. * src/UnknownLengthPieceStorage.h
  12948. * src/DefaultPieceStorage.{h, cc}
  12949. * src/Metalink2RequestGroup.cc
  12950. * src/RequestGroup.cc
  12951. * src/Sequence.h
  12952. * test/SequenceTest.cc
  12953. * src/IntSequence.h
  12954. * src/message.h
  12955. * src/Util.{h, cc}
  12956. * test/UtilTest.cc
  12957. Added new function 'parse' to catch exception thrown by subclass's
  12958. parseArg
  12959. * src/OptionHandler.h
  12960. * src/OptionParser.cc
  12961. * src/NameMatchOptionHandler.h
  12962. * src/OptionHandlerImpl.h
  12963. * test/OptionHandlerTest.cc
  12964. Added IntegerRangeOptionHandler. Used for --listen-port and
  12965. --select-file. Now --listen-port accepts range of port.
  12966. * src/OptionHandlerFactory.cc
  12967. * src/version_usage.cc
  12968. * src/OptionHandlerImpl.h
  12969. * src/option_processing.cc
  12970. * src/BtSetup.cc
  12971. * src/PeerListenCommand.{h, cc}
  12972. * doc/aria2c.1.txt
  12973. * doc/aria2c.1
  12974. Implemented operator< for Exception class to provide easy way to print
  12975. exception stack trace.
  12976. * src/Exception.{h, cc}
  12977. * src/main.cc
  12978. * src/option_processing.cc
  12979. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12980. * src/version_usage.cc
  12981. (showVersion): Reworked.
  12982. (showUsage): Added examples.
  12983. Removed Hint for total length and file name.
  12984. * src/Metalink2RequestGroup.cc
  12985. * src/RequestGroup.{h, cc}
  12986. * src/HttpResponseCommand.cc
  12987. * src/FtpNegotiationCommand.cc
  12988. Now --follow-torrent and --follow-metalink option work properly.
  12989. * src/RequestGroup.cc
  12990. Updated man page
  12991. * doc/aria2c.1.txt
  12992. * doc/aria2c.1
  12993. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12994. Removed.
  12995. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12996. Use Segment::operator==()
  12997. * src/HttpConnection.cc
  12998. * src/Segment.h
  12999. Updated usage
  13000. * src/version_usage.cc
  13001. Added EINTR treatment.
  13002. * src/SocketCore.cc
  13003. * src/AbstractDiskWriter.cc
  13004. Rewritten.
  13005. * src/Util.cc (rangedFileCopy)
  13006. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13007. Fixed typo.
  13008. * src/version_usage.cc
  13009. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13010. Implemented. Now -c option works fine.
  13011. * src/DefaultPieceStorage.cc (markPiecesDone)
  13012. * test/DefaultPieceStorageTest.cc
  13013. Removed.
  13014. * src/SegmentMan.{h, cc}
  13015. (markAllPiecesDone)
  13016. (markPieceDone)
  13017. Synchronized po files with
  13018. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13019. * src/fr.po
  13020. * src/ru.po
  13021. * src/de.po
  13022. * src/ja.po
  13023. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. Added ifdef and some modifications to compile without BitTorrent,
  13025. Metalink, MessageDigest
  13026. support.
  13027. * src/PieceHashCheckIntegrityEntry.cc
  13028. * src/MetalinkEntry.h
  13029. * src/version_usage.cc
  13030. * src/main.cc
  13031. * src/DownloadEngine.{h, cc}
  13032. * src/Metalink2RequestGroup.cc
  13033. * src/Peer.cc
  13034. * src/RequestGroup.cc
  13035. * src/MetalinkHelper.cc
  13036. * test/DefaultPieceStorageTest.cc
  13037. * test/MetalinkPostDownloadHandlerTest.cc
  13038. * test/Metalink2RequestGroupTest.cc
  13039. Hide TOTAL SPD when all downloads complete.
  13040. * src/ConsoleStatCalc.cc
  13041. Log target system information.
  13042. * src/main.cc
  13043. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13044. Now --metalink-location accepts a comma-deliminated list of locations.
  13045. * src/MetalinkEntry.{h, cc}
  13046. * test/MetalinkEntryTest.cc
  13047. * src/version_usage.cc
  13048. * src/Metalink2RequestGroup.cc
  13049. * src/Xml2MetalinkProcessor.cc
  13050. * test/Xml2MetalinkProcessorTest.cc
  13051. * doc/aria2c.1.txt
  13052. * doc/aria2c.1
  13053. * src/Util.cc (toUpper)(toLower): Rewritten.
  13054. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13055. Added the ability to detect duplicate download entry which is about to
  13056. download the same file other RequestGroup is downloading.
  13057. * src/RequestGroup.cc
  13058. * src/HttpResponseCommand.cc
  13059. * src/FtpNegotiationCommand.cc
  13060. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13061. Recalculates download progress when loading a control file,
  13062. if the piece length of DownloadContext is different from the one saved
  13063. in the control file. Currently in-flight pieces are ignored.
  13064. * src/DefaultBtProgressInfoFile.cc
  13065. * test/DefaultBtProgressInfoFileTest.cc
  13066. * src/Util.{h, cc}
  13067. * test/UtilTest.cc
  13068. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13069. Do not rotate tiers in announce-list.
  13070. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13071. AnnounceList::allTiersFailed() used instead to detect whether all
  13072. tiers are tried and failed.
  13073. * test/DefaultBtAnnounceTest.cc
  13074. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13075. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13076. * test/AnnounceListTest.cc
  13077. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13078. clause. Catch RecoverableException instead of DlRetryEx instead.
  13079. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13080. Implemented checksum validation feature(1 checksum for each file)
  13081. The validation takes place after the download.
  13082. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13083. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13084. * src/CheckIntegrityCommand.cc: Changed log message.
  13085. * src/Metalink2RequestGroup.cc: Set checksum to
  13086. SingleFileDownloadContext.
  13087. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13088. PieceHashCheckIntegrity class.
  13089. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13090. PieceHashCheckIntegrity class.
  13091. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13092. * src/IteratableValidator.h: New class.
  13093. * src/message.h
  13094. * src/CheckIntegrityEntry.{h, cc}
  13095. * src/IteratableChunkChecksumValidator.{h, cc}
  13096. * src/SingleFileDownloadContext.h
  13097. * src/DownloadCommand.cc
  13098. --allow-overwrite=true is no longer needed to check file integrity
  13099. before download in BitTorrent download.
  13100. * src/RequestGroup.cc (getInitialCommand)
  13101. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13102. throws exception.
  13103. * src/RequestGroupMan.cc (getInitialCommands)
  13104. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13105. urlencode the given url inside Request::parseUrl(...)
  13106. * src/Request.{h, cc}
  13107. * src/Util.{h, cc}
  13108. * test/RequestTest.cc
  13109. Removed #!metalink3! notation support because it is deleted from
  13110. the metalink specification.
  13111. * src/Request.{h, cc}
  13112. * test/RequestTest.cc
  13113. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13114. Don't connect server before checking file integrity at startup, if
  13115. filesize and output file path are known.
  13116. * src/AbstractCommand.cc
  13117. * src/StreamFileAllocationEntry.cc
  13118. * src/Metalink2RequestGroup.cc
  13119. * src/RequestGroup.{h, cc}
  13120. * src/HttpResponseCommand.cc
  13121. * src/FtpNegotiationCommand.cc
  13122. Added DownloadFailureException. If it is thrown, RequestGroup should
  13123. halt.
  13124. * src/AbstractCommand.cc
  13125. * src/DownloadFailureException.h
  13126. * src/RequestGroup.cc
  13127. Catch RecoverableException, instead of DlAbortEx.
  13128. * src/RequestGroupMan.cc
  13129. * src/FillRequestGroupCommand.cc
  13130. * src/MetaFileUtil.cc
  13131. * src/IteratableChunkChecksumValidator.cc
  13132. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13133. getGID())
  13134. * src/CheckIntegrityCommand.cc
  13135. * src/message.h
  13136. Print gid instead of idx.
  13137. * src/RequestGroupMan.cc
  13138. Removed exception throwers declaration.
  13139. * src/DirectDiskAdaptor.{h, cc}
  13140. * src/SocketCore.{h, cc}
  13141. * src/MultiDiskAdaptor.{h, cc}
  13142. * src/HttpConnection.{h, cc}
  13143. * src/HttpResponse.{h, cc}
  13144. * src/DiskAdaptor.{h, cc}
  13145. * src/CopyDiskAdaptor.{h, cc}
  13146. * src/MultiDiskAdaptor.{h, cc}
  13147. * src/HttpHeaderProcessor.{h, cc}
  13148. * src/AbstractSingleDiskAdaptor.{h, cc}
  13149. * src/Util.{h, cc}
  13150. * test/UtilTest.cc
  13151. * src/DefaultDiskWriter.{h, cc}
  13152. * src/FtpConnection.{h, cc}
  13153. * src/AbstractDiskWriter.{h, cc}
  13154. Removed duplicate code.
  13155. * src/StreamCheckIntegrityEntry.cc
  13156. Removed unnecessary include.
  13157. * src/DiskWriter.h
  13158. Included Exception.h
  13159. * src/option_processing.cc
  13160. Included 2 files and added doc
  13161. * src/TrackerWatcherCommand.cc
  13162. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13163. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13164. Changed CheckIntegrityEntry interface so that it can define
  13165. the action when all the chunk checksums are valid.
  13166. * src/CheckIntegrityEntry.h
  13167. * src/StreamCheckIntegrityEntry.{h, cc}
  13168. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13169. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13170. to exit rather than doing seeding. So, it would be good to toggle this
  13171. behavior.
  13172. * src/CheckIntegrityCommand.cc
  13173. * src/AbstractCommand.cc
  13174. * src/RequestGroup.cc
  13175. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13176. Reflect the download length of in-flight pieces.
  13177. It makes the download length readout more precise.
  13178. * src/DefaultPieceStorage.{h, cc}
  13179. * test/DefaultPieceStorageTest.cc
  13180. * src/a2functional.h
  13181. * test/a2functionalTest.cc
  13182. Lower CPU load when --max-download-limit is used.
  13183. There is up and down in speed indicator when enabling
  13184. http-pipelining but a download goes well. I think the problem is that
  13185. because http-pipelining is enabled, DownloadCommand is created for
  13186. each segment and in its constructor, PeerStat::downloadStart() is
  13187. called. In PeerStat::downloadStart(), speed calculation object is
  13188. reseted, which makes download speed zero.
  13189. * src/DownloadCommand.cc
  13190. Rewritten using accumulate.
  13191. * src/RequestGroupMan.cc (calculateStat)
  13192. Code clearnup.
  13193. * src/FtpNegotiationCommand.cc
  13194. * src/HttpResponseCommand.cc
  13195. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13196. Fixed: Can not resume: aria2 reports download already finished.
  13197. * src/AbstractCommand.{h, cc}
  13198. * src/HttpResponseCommand.cc
  13199. * src/FtpNegotiateCommand.cc
  13200. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13201. Now a file is stored in the directory specified in .metalnk file
  13202. (file[@name]).
  13203. * src/Metalink2RequestGroup.cc
  13204. Create the directory structure when opening the file if it doesn't
  13205. exist.
  13206. * src/AbstractDiskWriter.cc
  13207. * src/Util.{h, cc}
  13208. * src/File.h
  13209. * test/UtilTest.cc
  13210. Removed file name comparison
  13211. * src/Metalink2RequestGroup.cc
  13212. * src/HttpResponseCommand.cc
  13213. Rewritten using Util::mkdirs()
  13214. * src/FileEntry.cc (setupDir)
  13215. * test/FileEntryTest.cc
  13216. Updated doc
  13217. * src/SingleFileDownloadContext.h
  13218. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13219. Now SleepCommand dispatches nextCommand when halt is requested.
  13220. It avoids a possible long wait after hitting CTRL-C.
  13221. * src/SleepCommand.{h, cc}
  13222. * src/RequestGroupAware.{h, cc}
  13223. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13224. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13225. to open listen port, then remove the port number from the tracker
  13226. request.
  13227. * src/DefaultBtAnnounce.cc
  13228. * test/DefaultBtAnnounceTest.cc
  13229. * test/MockPieceStorage.h
  13230. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13231. them more testable.
  13232. * src/DefaultBtAnnounce.{h, cc}
  13233. * src/DefaultBtContext.{h, cc}
  13234. * src/Util.{h, cc}
  13235. * test/DefaultBtAnnounceTest.cc
  13236. * test/DefaultBtContextTest.cc
  13237. * test/UtilTest.cc
  13238. Added 'B' to upload bytes readout.
  13239. * src/ConsoleStatCalc.cc
  13240. Now the listen port for BitTorrent download is opened when it is
  13241. needed.
  13242. * src/DownloadEngineFactory.cc
  13243. * src/BtSetup.{h, cc}
  13244. * src/PeerListenCommand.{h, cc}
  13245. Now an exception thrown while parsing tracker response is now logged.
  13246. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13247. called, which means no retry is made in this case, assuming a tracker
  13248. has a problem.
  13249. * src/TrackerWatcherCommand.cc
  13250. Fixed: downloading a file whose length is unkown fails.
  13251. * src/DownloadCommand.cc
  13252. Simplified prepareForNextSegment()
  13253. * src/DownloadCommand.cc
  13254. Updated
  13255. * po/POTFILES.in
  13256. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13257. Re-implemented a file listing for Metalink, which was dropped while
  13258. http/ftp/torrent integration was being implemented.
  13259. * src/MetalinkHelper.{h, cc}: New class.
  13260. * test/MetalinkHelperTest.cc
  13261. * src/main.cc
  13262. * src/Metalink2RequestGroup.cc
  13263. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13264. Added the ability to display the detailed torrent file information.
  13265. Now -S option gives not only a file listing, but also total download
  13266. length, info hash, announce URI, piece length, the number of pieces,
  13267. and mode(single or multi-torrent).
  13268. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13269. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13270. KiB)
  13271. * test/UtilTest.cc
  13272. * src/main.cc
  13273. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13274. Added ftp://USER:PASSWD@Servername automatic parsing.
  13275. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13276. _password. Recognize username and password in URI.
  13277. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13278. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13279. * src/RequestFactory.{h, cc}: Removed.
  13280. * src/AuthConfigFactory.{h, cc}: New class.
  13281. * src/FtpConnection.cc: Use AuthConfigFactory.
  13282. * src/HttpRequest.cc: Use AuthConfigFactory.
  13283. * test/HttpRequestTest.cc: Updated.
  13284. * test/RequestTest.cc: Updated.
  13285. * test/AuthConfigFactoryTest.cc: New class.
  13286. * test/RequestFactoryTest.cc: Removed.
  13287. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13288. Use RequestGroup::allDownloadFinished() to decide whether the control
  13289. file should be removed or saved.
  13290. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13291. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13292. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13293. Use File::renameTo()
  13294. * src/DefaultBtProgressInfoFile.cc
  13295. Added --no-file-allocation-limit command-line option.
  13296. * src/version_usage.cc
  13297. * src/option_processing.cc
  13298. * src/OptionHandlerFactory.cc
  13299. * src/RequestGroup.{h, cc}
  13300. * src/BtCheckIntegrityEntry.cc
  13301. * src/StreamCheckIntegrityEntry.cc
  13302. * src/prefs.h
  13303. * doc/aria2c.1.txt
  13304. * doc/aria2c.1
  13305. Now prealloc is the default value for --file-allocation option.
  13306. * src/version_usage.cc
  13307. * src/option_processing.cc
  13308. * doc/aria2c.1.txt
  13309. * doc/aria2c.1
  13310. Don't URL-encode user-agent.
  13311. * src/HttpRequest.cc
  13312. Updated translations
  13313. * po/LINGUAS: Added nl for Dutch translation.
  13314. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13315. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13316. * po/POTFILES.in: Updated.
  13317. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13318. Added the ability to recognize url-list in a torrent file.
  13319. The retrieved URLs are attached to the corresponding FileEntry.
  13320. * src/DefaultBtContext.{h, cc}
  13321. * src/FileEntry.{h, cc}
  13322. * test/DefaultBtContextTest.cc
  13323. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13324. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13325. after the download finishes.
  13326. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13327. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13328. the data smaller than block length.
  13329. A block length can be specified by constructor's argument.
  13330. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13331. Get a missing piece in the range of given FileEntry. This function is
  13332. not used in the program yet.
  13333. * src/Util.h: Added some macros.
  13334. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13335. Added HTTP/1.1 keep alive and pipelining support.
  13336. See --enable-http-keep-alive and --enable-http-pipelining option.
  13337. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13338. Segment.
  13339. * src/HttpDownloadCommand.{h, cc}
  13340. * src/OptionHandlerFactory.cc
  13341. * src/HttpConnection.{h, cc}
  13342. * src/version_usage.cc
  13343. * src/HttpInitiateConnectionCommand.cc
  13344. * src/FtpInitiateConnectionCommand.cc
  13345. * src/Segment.h
  13346. * src/HttpRequestCommand.{h, cc}
  13347. * src/option_processing.cc
  13348. * src/prefs.h
  13349. * src/HttpResponseCommand.cc
  13350. * src/SegmentMan.{h, cc}
  13351. * src/FtpNegotiateCommand.cc
  13352. * src/HttpProxyResponseCommand.cc
  13353. * src/Request.cc
  13354. * src/HttpRequest.cc
  13355. * src/DownloadCommand.cc
  13356. * test/HttpRequestTest.cc
  13357. * test/RequestTest.cc
  13358. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13359. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13360. finished.
  13361. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13362. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13363. catching it inside the method.
  13364. When no file entry is found in a metalink without querying user
  13365. preferences, throw the exception with the error message that suggests
  13366. metalink file is probably broken.
  13367. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13368. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13369. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13370. processed.
  13371. * src/RequestGroupMan.cc (removeStoppedGroup)
  13372. Added debug message.
  13373. * src/BtPostDownloadHandler.cc
  13374. * src/MetalinkPostDownloadHandler.cc
  13375. * src/PostDownloadHandler.{h, cc}
  13376. * src/RequestGroup.cc
  13377. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13378. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13379. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13380. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13381. stops and there are any unfinished or in-progress downloads.
  13382. Added the legend of "stat".
  13383. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13384. Throw exception when chunck checksum verification fails.
  13385. * src/DownloadCommand.cc (validatePieceHash): New function.
  13386. * src/PiecedSegment.{h, cc} (clear): New function.
  13387. * src/GrowSegment.{h, cc} (clear): New function.
  13388. * src/Segment.h (clear): New function.
  13389. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13390. * test/SegmentTest.cc
  13391. * test/GrowSegmentTest.cc
  13392. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13393. Do not send referer when redirected.
  13394. * src/Request.cc (redirectUrl)
  13395. * test/RequestTest.cc
  13396. * test/HttpRequestTest.cc
  13397. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13398. Implemented BitTorrent/http/ftp integrated download.
  13399. I've rewritten lots of files and now some headers have forward
  13400. class declarations to reduce compile time.
  13401. The implementation is extremely alpha stage, I recommend to use this
  13402. for testing purpose only.
  13403. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13404. Fixed the compilation error on 64bit platform.
  13405. * test/HttpHeaderProcessorTest.cc
  13406. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13407. Merged Ross's patch that fixes compilation problem in MinGW
  13408. * test/DefaultBtProgressInfoFileTest.cc
  13409. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13410. Updated fr.po by sebone
  13411. * po/fr.po
  13412. Updated man page.
  13413. * doc/aria2c.1.txt
  13414. * Release 0.11.3
  13415. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13416. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13417. failure in Metalink.
  13418. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13419. Automatically save *.aria2 control file of http/ftp download in every
  13420. 60 seconds.
  13421. * src/AutoSaveCommand.{h, cc}: New class.
  13422. * src/TimeBasedCommand.{h, cc}: New class.
  13423. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13424. Disable parameterized URI support by default. Added -P option to
  13425. enable the feature.
  13426. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13427. * src/OptionHandlerFactory.cc
  13428. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13429. Updated Japanese translation.
  13430. * po/ja.po
  13431. Updated man page.
  13432. * doc/aria2c.1.txt
  13433. * Release 0.11.3-rc
  13434. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13435. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13436. it is successful, then renamed to *.aria2.
  13437. This prevents *.aria2 file from being truncated or corrupted when
  13438. file system becomes out of space.
  13439. * src/DefaultBtProgressInfoFile.cc (save)
  13440. * src/SegmentMan.cc (save)
  13441. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13442. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13443. Reduced the fragmentation of bitfield in http/ftp download.
  13444. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13445. * test/BitfieldManTest.cc
  13446. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13447. Added the ability to disable segmented download in .metalink.
  13448. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13449. 'url' tag.
  13450. * src/MetalinkEntry.{h, cc}
  13451. * src/RequestResource.{h, cc}
  13452. * src/MetalinkRequestInfo.cc
  13453. * src/Xml2MetalinkProcessor.cc
  13454. * test/Xml2MetalinkProcessorTest.cc
  13455. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13456. Added parameterized URI support.
  13457. * src/main.cc: -Z option added.
  13458. * src/OptionHandlerFactory.cc
  13459. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13460. * src/PStringDatum.h: New class.
  13461. * src/PStringSegment.{h,cc}: New class.
  13462. * src/PStringNumLoop.h: New class.
  13463. * src/PStringSelect.h: New class.
  13464. * src/NumberDecorator.h: New class.
  13465. * src/FixedWidthNumberDecorator.h: New class.
  13466. * src/AlphaNumberDecorator.h: New class.
  13467. * src/PStringVisitor.h: New class.
  13468. * src/PStringBuildVisitor.{h,cc}: New class.
  13469. * src/ParameterizedStringParser.{h,cc}: New class.
  13470. * src/Util.{h,cc}
  13471. (isNumber): New function.
  13472. (isLowercase): New function.
  13473. (isUppercase): New function.
  13474. (alphaToNum): New function.
  13475. * test/ParameterizedStringParserTest.cc: New class.
  13476. * test/AlphaNumberDecoratorTest.cc: New class.
  13477. * test/PStringBuildVisitorTest.cc: New class.
  13478. * test/UtilTest.cc
  13479. (testIsNumber): New function.
  13480. (testIsLowercase): New function.
  13481. (testIsUppercase): New function.
  13482. (testAlphaToNum): New function.
  13483. Added '\n' after the error message
  13484. * src/RequestInfo.h (printDownloadAbortMessage)
  13485. Added auto file renaming feature in http(s)/ftp download.
  13486. * src/main.cc: Added --auto-file-renaming command-line option.
  13487. * src/OptionHandlerFactory.cc
  13488. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13489. * src/RequestGroup.{h, cc}
  13490. (shouldCancelDownloadForSafety): Rewritten
  13491. (tryAutoFileRenaming): New function.
  13492. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13493. * src/HttpResponseCommand.cc
  13494. (executeInternal): Removed the call to RequestGroupMan::
  13495. isSameFileBeingDownloaded()
  13496. * src/FtpNegotiateCommand.cc
  13497. (recvSize): Removed the call to RequestGroupMan::
  13498. isSameFileBeingDownloaded()
  13499. * test/RequestGroupTest.cc: New class.
  13500. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13501. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13502. IO.
  13503. * src/DefaultBtProgressInfoFile.cc
  13504. * src/MetaFileUtil.cc
  13505. * src/SimpleLogger.cc
  13506. * src/SegmentMan.cc
  13507. * src/Util.cc
  13508. * src/Platform.cc
  13509. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13510. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13511. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13512. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13513. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13514. Fixed the bug that prevents file allocation is not done when
  13515. dowloading multi-torrent file.
  13516. * src/AbstractDiskWriter.cc (openFile)
  13517. Increase the maximum number of -j option from 15 to 45.
  13518. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13519. Added fr.po, thanks to Charles Landemaine.
  13520. * po/fr.po
  13521. * po/LINGUAS
  13522. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13523. gcc 3.4.4 support:
  13524. * src/DefaultBtContext.cc: int32_t -> int
  13525. * src/main.cc: int -> int32_t, int32_t -> int
  13526. * src/messageDigest.h: uint32_t -> unsigned int
  13527. * src/NameResolver.h: int32_t -> int
  13528. * src/PeerConnection.cc: int -> int32_t
  13529. * src/SpeedCalc.cc: int32_t -> int
  13530. * src/TrackerUpdateCommand.h: int -> int32_t
  13531. * src/Util.cc: int32_t -> int
  13532. * src/Util.h: int32_t -> int
  13533. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13534. * test/AnnounceListTest.cc: int -> int32_t
  13535. * test/ChunkedEncodingTest.cc: int -> int32_t
  13536. * test/DataTest.cc: int -> int32_t
  13537. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13538. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13539. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13540. * test/FeatureConfigTest.cc: int -> int32_t
  13541. * test/MetalinkEntryTest.cc: int -> int32_t
  13542. * test/MockBtRequestFactory.h: int -> int32_t
  13543. * test/MockPieceStorage.h: int -> int32_t
  13544. * test/OptionTest.cc: int -> int32_t
  13545. * test/RequestTest.cc: int -> int32_t
  13546. * test/SegmentManTest.cc: int -> int32_t
  13547. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13548. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13549. Move sleep functions to Util class:
  13550. * src/Util.cc
  13551. (sleep): New function.
  13552. (usleep): New function.
  13553. * src/DownloadCommand.cc: sleep -> Util::sleep
  13554. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13555. MinGW build enhancements. The following files are added:
  13556. * src/timegm.{c,h}
  13557. Changes to support the above new files:
  13558. * configure.ac
  13559. * src/Makefile.am
  13560. * src/a2time.h
  13561. * src/Util.cc:
  13562. * src/strptime.c: Added support for %Z option.
  13563. Fixed MinGW non-blocking bug.
  13564. * src/SocketCore.cc
  13565. * src/HttpRequestCommand.cc
  13566. Miscellenous build fixes/enhancements.
  13567. * configure.ac: Added summary report.
  13568. * src/Platform.h: Tweaked #include's.
  13569. * src/a2netcompat.h: Tweaked #include's.
  13570. * src/strptime.h: Tweaked #include's.
  13571. * src/gai_strerror.c: Tweaked #include's.
  13572. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13573. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13574. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13575. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13576. Increased the initial connection size in BitTorrent download to 40.
  13577. * src/BtRuntime.h
  13578. Added the usage message of --peer-id-prefix option.
  13579. * src/main.cc
  13580. * Release 0.11.2
  13581. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13582. MessageDigestHelper is introduced in order to simplify the use
  13583. of message digest. Removed repeated code.
  13584. The message digest algorithm is now specified by string, like "sha1",
  13585. "md5".
  13586. * src/messageDigest.{h, cc}
  13587. * src/MessageDigestHelper.{h, cc}: New class.
  13588. * src/DefaultPieceStorage.cc
  13589. * src/DefaultBtContext.{h, cc}
  13590. (computeFastSet): New function.
  13591. (setInfoHash): Added for unit testing.
  13592. (setNumPieces): Added for unit testing.
  13593. * src/DefaultBtInteractive.cc
  13594. * src/BtPieceMessage.cc
  13595. * src/Peer.cc
  13596. * src/Checksum.h
  13597. * src/message.h
  13598. * src/IteratableChecksumValidator.h
  13599. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13600. inside it.
  13601. * src/SegmentMan.{h, cc}
  13602. (checkIntegrity): Removed.
  13603. * src/IteratableChunkChecksumValidator.{h, cc}
  13604. * src/Util.h
  13605. (sha1Sum): Removed.
  13606. (simpleMessageDigest): Removed.
  13607. (fileChecksum): Removed.
  13608. (computeFastSet): Removed.
  13609. * src/ShaVisitor.cc
  13610. * src/ChunkChecksum.h
  13611. * src/DownloadCommand.cc
  13612. Removed messageDigest virtual functions.
  13613. * src/MultiDiskAdaptor.{h, cc}
  13614. * src/DiskAdaptor.h
  13615. * src/ByteArrayDiskWriter.h
  13616. * src/DiskWriter.h
  13617. * src/DiskAdaptorWriter.h
  13618. * src/AbstractSingleDiskAdaptor.{h, cc}
  13619. * src/AbstractDiskWriter.{h, cc}
  13620. Fixed comilation error when message digest is disabled.
  13621. * src/MetalinkEntry.{h, cc}
  13622. * src/MetalinkRequestInfo.cc
  13623. Removed srandom and random.
  13624. * src/SimpleRandomizer.h
  13625. Added size() virtual function to DiskAdaptor
  13626. * src/MultiDiskAdaptor.h
  13627. Fixed the bug that causes that files are not opened correctly in
  13628. multi-file torrent.
  13629. * src/TorrentRequestInfo.cc
  13630. * src/MultiDiskAdaptor.cc
  13631. Added SHA256 support
  13632. * src/messageDigest.cc
  13633. * src/Xml2MetalinkProcessor.cc
  13634. Show supported message digest algorithms
  13635. * src/main.cc
  13636. Updated contact info.
  13637. * src/main.cc
  13638. Applied Ross's patch
  13639. * src/a2netcompat.h
  13640. * src/main.cc
  13641. Fixed the bug that prevents a remote metalink from not being processed
  13642. even if '-o foo.metalink' is specified.
  13643. * src/MetalinkRequestInfo.cc
  13644. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13645. Merged Dan's patch:
  13646. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13647. Use va_copy to avoid core dump on amd64:
  13648. * src/SimpleLogger.cc
  13649. Updated contact info.
  13650. * src/main.cc
  13651. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13652. digest is not available.
  13653. * src/MetalinkEntry.h
  13654. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13655. Make a2netcompat.h include a2io.h to fix compilation error:
  13656. * src/a2netcompat.h
  13657. * src/SocketCore.cc: Removed include of a2io.h
  13658. * src/Util.cc: Removed include of a2io.h
  13659. Gather time related functions to a2time.h:
  13660. * src/a2time.h: New file.
  13661. * src/DefaultPeerStorage.cc
  13662. * src/SimpleLogger.cc
  13663. * src/Util.{h, cc}
  13664. * src/SimpleRandomizer.h
  13665. * src/TimeA2.{h,cc}
  13666. * src/DownloadCommand.cc
  13667. * src/main.cc
  13668. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13669. a2netcompat.h:
  13670. * src/NameResolver.cc
  13671. Fixed compilation error without openssl:
  13672. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13673. Added default block to suppress compiler warnings:
  13674. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13675. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13676. MinGW build enhancements. The following files are added:
  13677. * src/gai_strerror.{c,h}
  13678. * src/gettimeofday.{c,h}
  13679. Changes to support the above new files:
  13680. * configure.ac
  13681. * src/Makefile.am
  13682. * src/a2netcompat.h
  13683. * src/TimeA2.cc
  13684. * src/DefaultPeerStorage.cc
  13685. * src/NameResolver.cc: removed mingw_strerror() function.
  13686. * src/SocketCore.cc: removed mingw_strerror() function.
  13687. Miscellaneous MinGW build fixes.
  13688. * src/a2io.h: Use _lseeki64() instead of lseek()
  13689. * src/common.h
  13690. * src/DefaultFileAllocator.cc
  13691. * src/GlowFileAllocator.cc
  13692. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13693. * src/NameResolver.cc
  13694. (callback): Changed int32_t to int.
  13695. (resolve): Changed int32_t to int.
  13696. * src/Platform.cc
  13697. * src/Platform.h
  13698. * test/MultiDiskWriterTest.cc
  13699. * test/PeerMessageUtilTest.cc
  13700. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13701. Other enhancements and fixes.
  13702. * src/HttpRequestCommand.cc
  13703. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13704. * src/SocketCore.cc:
  13705. (error): New function to abstract errno/WSAGetLastError().
  13706. (errorMsg): New function to abstract errno/WSAGetLastError().
  13707. (initiateSecureConnection): Added more detailed error reporting.
  13708. * src/SocketCore.h: Added private variable blocking, to allow
  13709. proper handling of OpenSSL psuedo-errors.
  13710. * src/message.h
  13711. (EX_SSL_INIT_FAILURE)
  13712. (EX_SSL_IO_ERROR)
  13713. (EX_SSL_PROTOCOL_ERROR)
  13714. (EX_SSL_UNKNOWN_ERROR)
  13715. (EX_SSL_CONNECT_ERROR)
  13716. (EX_SOCKET_BLOCKING)
  13717. (EX_SOCKET_NONBLOCKING)
  13718. (EX_SOCKET_UNKNOWN_ERROR)
  13719. * src/Util.cc
  13720. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13721. reserved name.
  13722. (httpGMT): Fixed typo.
  13723. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13724. Merged Ross's win32 patch(manually)
  13725. In the course of merging, following files are added.
  13726. * src/strptime.{h,c}
  13727. * src/libgen.{h,c}
  13728. * src/inet_aton.{h,c}
  13729. * src/Platform.{h,cc}
  13730. * src/localtime_r.{h,c}
  13731. * src/getaddrinfo.{h,c}
  13732. I've gethered network related things, and put them to following file:
  13733. * src/a2netcompat.h
  13734. Also io related things are put to following file:
  13735. * src/a2io.h
  13736. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13737. * src/message.h
  13738. (MSG_ALLOCATION_COMPLETED)
  13739. (EX_TOO_LARGE_FILE)
  13740. (EX_SIZE_MISMATCH)
  13741. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13742. (EX_INVALID_CHUNK_CHECKSUM)
  13743. (EX_INVALID_RANGE_HEADER)
  13744. * src/FileAllocationCommand.cc
  13745. * src/HttpResponse.cc
  13746. * src/RequestGroup.cc
  13747. * src/MultiDiskAdaptor.cc
  13748. * src/OptionHandlerImpl.h
  13749. * src/HttpResponseCommand.cc
  13750. * src/FtpNegotiateCommand.cc
  13751. * src/IteratableChecksumValidator.cc
  13752. * src/SegmentMan.cc
  13753. * src/ChunkChecksumValidator.cc
  13754. Added Randomizer::getRandomNumber(long int)
  13755. * src/Randomizer.h (getRandomNumber)
  13756. * src/SimpleRandomizer.h (getRandomNumber)
  13757. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13758. * src/Util.cc (randomAlpha): Use this new function.
  13759. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13760. Converted int's to in32_t. long long int's are also converted to
  13761. int64_t
  13762. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13763. Fixed the bug that prevents cookies from being sent to the server
  13764. if the domain of cookie is FQDN and starts with ".".
  13765. * src/Cookie.cc (match)
  13766. To add the ability to change peer id.
  13767. * src/DefaultBtContext.h
  13768. (_peerIdPrefix): New variable
  13769. (setPeerIdPrefix): New function.
  13770. * src/torrentRequestInfo.cc
  13771. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13772. DefaultBtContext.
  13773. * src/main.cc (main): Added peer-id-prefix command-line option.
  13774. The usage message is not added yet.
  13775. * src/DefaultBtContext.cc
  13776. (generatePeerId): Use _peerIdPrefix.
  13777. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13778. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13779. Fixed the bug that prevents filename in content-disposition from
  13780. being retrieved when filename is not quoted.
  13781. * src/Util.cc (getContentDispositionFilename)
  13782. Fixed the bug that causes infinate loop and memory leak when file open
  13783. operation failed.
  13784. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13785. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13786. Fixed the bug that causes segfault when all URIs specified are
  13787. unsupported.
  13788. * src/RequestGroupMan.cc (getInitialCommands)
  13789. Check if RequestGroup::createNextCommand() returns empty list of
  13790. commands.
  13791. * src/RequestGroup.cc (createNextCommand)
  13792. Change log level from info to error so that users can notice that
  13793. an error occurred.
  13794. Fixed the bug that causes segfault when a zero-sized file is
  13795. downloaded.
  13796. * src/BitfieldMan.cc (isAllBitSet)
  13797. Return true if bitfieldLength is 0.
  13798. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13799. * src/main.cc
  13800. (showUsage): Added 3 usage examples for metalink download.
  13801. Replace MetalinkChunkChecksum with ChunkChecksum.
  13802. * src/MetalinkChunkChecksum.h: Removed.
  13803. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13804. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13805. * src/Xml2MetalinkProcessor.cc
  13806. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13807. * src/MetalinkRequestInfo.cc (execute)
  13808. * Release 0.11.1
  13809. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13810. Reads URIs from stdin when "-i -" is specified.
  13811. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13812. * src/UriListParser.h, src/UriListParser.cc: New class.
  13813. * src/StreamUriListParser.h: New class.
  13814. * src/FileUriListParser.h: New class.
  13815. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13816. instead of UriFileListParser.
  13817. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13818. Made console readout more readable.
  13819. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13820. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13821. Fix the bug that causes -s option not to work.
  13822. * src/main.cc (main)
  13823. * src/a2algo.h: New file.
  13824. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13825. Create directory structure specified in metalink file.
  13826. * src/RequestGroup.h, src/RequestGroup.cc
  13827. (initAndOpenFile): Create a directory to store files if it does not
  13828. exist.
  13829. (getDir): New function.
  13830. Added ETA and download speed for an individual file to readout.
  13831. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13832. * src/RequestGroup.h
  13833. (calculateDownloadSpeed): New function.
  13834. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13835. Made -S option work with metalink file and provided selective download
  13836. to metalink.
  13837. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13838. (filename): Removed.
  13839. (file): New variable.
  13840. (size): Removed.
  13841. (operator=): Updated.
  13842. (getPath): New function.
  13843. (getLength): New function.
  13844. (toFileEntry): New function.
  13845. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13846. (execute): Use toStream.
  13847. (showFileEntry): Removed.
  13848. * src/MetalinkRequestInfo.h
  13849. (targetFiles): New variable.
  13850. (setTargetFiles): New variable.
  13851. * src/MetalinkRequestInfo.cc
  13852. (execute): Added the ability to print file information included in
  13853. a metalink file.
  13854. Added selective download mode to metalink.
  13855. * src/main.cc
  13856. (showUsage): Updated to denote that -S and --select-file options are
  13857. applicable to metalink.
  13858. * src/FileEntry.h
  13859. (operator=): New function.
  13860. (getBasename): New function.
  13861. (getDirname): New function.
  13862. * src/Util.h, src/Util.cc
  13863. (toStream): New function.
  13864. * src/Xml2MetalinkProcessor.cc: Updated.
  13865. Made aria2 work with metalink with directory structure.
  13866. * src/File.h, src/File.cc
  13867. (getBasename): New function.
  13868. (getDirname): New function.
  13869. * src/RequestGroup.h, src/RequestGroup.cc
  13870. (_topDir): New variable.
  13871. (setTopDir): New function.
  13872. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13873. Rewrote HTTP header parsing with stringstream.
  13874. * src/HttpConnection.h, src/HttpConnection.cc
  13875. (HttpRequestEntry): New class.
  13876. (headerBuf): Removed.
  13877. (headerBufLength): Removed.
  13878. (outstandingHttpRequests): Now its element type is
  13879. HttpRequestEntryHandle.
  13880. (findEndOfHeader): Removed.
  13881. (receiveResponse): Rewritten.
  13882. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13883. Updated doc for -j option to notice that it should be used with -i
  13884. option.
  13885. * src/main.cc (showUsage)
  13886. Removed unused classes.
  13887. * src/RequestInfo.h
  13888. (FileInfo): Removed.
  13889. (checksum): Removed.
  13890. (fileInfo): Removed.
  13891. (setChecksum): Removed.
  13892. (getChecksum): Removed.
  13893. (getFileInfo): Removed.
  13894. Use ISO units.
  13895. * src/ConsoleDownloadEngine.cc
  13896. * src/TorrentConsoleDownloadEngine.cc
  13897. * src/Util.cc (abbrevSize)
  13898. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13899. Added the default listening ports to the help message.
  13900. * src/main.cc (showUsage)
  13901. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13902. Reduce the number of calls to gettimeofday to lower CPU load.
  13903. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13904. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13905. * src/Peer.h (calculateUploadSpeed): New function.
  13906. (calculateDownloadSpeed): New function.
  13907. * src/DefaultPeerStorage.cc
  13908. (CalculateStat): Added _now variable.
  13909. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13910. and Peer::calculateUploadSpeed(const struct timeval&)
  13911. Drop connection if no request or piece message is exchanged in
  13912. a certain interval.
  13913. * src/DefaultBtInteractive.h
  13914. (btRuntime): New variable.
  13915. (inactiveCheckPoint): New variable.
  13916. (checkActiveInteraction): New function.
  13917. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13918. request or piece message is received.
  13919. (checkActiveInteraction): New function.
  13920. (doInteractionProcessing): Call checkActiveInteraction.
  13921. Fixed the bug that causes remote Metalink and Torrent files are not
  13922. processed.
  13923. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13924. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13925. Changed format of log file.
  13926. * src/SimpleLogger.cc
  13927. * Release 0.11.0
  13928. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13929. * src/AbstractCommand.cc
  13930. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13931. MSG_MAX_TRY from error to info.
  13932. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13933. * src/message.h
  13934. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13935. (MSG_DOWNLOAD_ABORTED): Added %s.
  13936. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13937. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13938. * src/PeerAbstractCommand.cc
  13939. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13940. * src/Request.h
  13941. (cookieBox): Made ShardHandle.
  13942. * src/RequestGroup.h, src/RequestGroup.cc
  13943. (createNextCommandWithAdj): New function.
  13944. * src/FileAllocationCommand.cc
  13945. (executeInternal): Use createNextCommandWithAdj().
  13946. * src/CheckIntegrityCommand.cc
  13947. (executeInternal): Use createNextCommandWithAdj().
  13948. Added --load-cookies command-option.
  13949. * src/OptionHandlerFactory.cc
  13950. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13951. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13952. Now aria2 can handle cookie's expiration date.
  13953. * src/Cookie.h (expires): Changed its type to time_t.
  13954. * src/main.cc: Added --load-cookies command-line option.
  13955. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13956. * src/Util.h, src/Util.cc (httpGMT): New function.
  13957. * src/Request.cc (Request): Initialize cookieBox using
  13958. CookieBoxFactory.
  13959. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13960. * src/CookieParser.h, src/CookieParser.cc: New class.
  13961. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13962. * src/HttpResponseCommand.cc
  13963. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13964. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13965. download.
  13966. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13967. Added -j command-line option.
  13968. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13969. * src/main.cc
  13970. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13971. Rewritten using stringstream.
  13972. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13973. Rewritten using stringstream.
  13974. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13975. Make download size shown in MB, KB.
  13976. * src/ConsoleDownloadEngine.h (sendStatistics)
  13977. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13978. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13979. Accept incoming connections if download rate is low.
  13980. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13981. (_lowestSpeedLimit): New variable.
  13982. (setLowestSpeedLimit): New function.
  13983. (execute): Accept incoming connections if download rate is low.
  13984. MAX_PEERS is ignored in this case.
  13985. Disable PREF_OUT in multiple concurrent download:
  13986. * src/RequestGroup.h, src/RequestGroup.cc
  13987. (setUserDefinedFilename): New function.
  13988. * src/DownloadEngineFactory.cc
  13989. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13990. concurrent download.
  13991. * src/DefaultSegmentManFactory.cc
  13992. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13993. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13994. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13995. Added its overloaded method.
  13996. * src/RequestGroup.h
  13997. (_numConcurrentCommand): New variable.
  13998. (setNumConcurrentCommand): New function.
  13999. * src/RequestGroup.cc
  14000. Abort download if same file is being downloaded concurrently.
  14001. * src/RequestGroup.h, src/RequestGroupMan.cc
  14002. (isSameFileBeingDownloaded): New function.
  14003. * src/HttpResponseCommand.cc (executeInternal)
  14004. * src/FtpNegotiateCommand.cc (recvSize)
  14005. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14006. * main.cc: Added help message for -i option.
  14007. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14008. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14009. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14010. * src/MetalinkEntry.h
  14011. (checksum): Changed to ChecksumHandle
  14012. * src/MetalinkRequestInfo.cc
  14013. (checksum): Changed to ChecksumHandle
  14014. * src/File.cc
  14015. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14016. * src/common.h
  14017. (DIR_OPEN_MODE): New definition
  14018. * src/RequestGroup.cc
  14019. (prepareForNextAction): Added an argument.
  14020. * src/message.h
  14021. (MSG_GOOD_CHECKSUM): New definition
  14022. (MSG_BAD_CHECKSUM): New definition
  14023. * src/HttpResponseCommand.cc
  14024. (handleDefaultEncoding): Continue download sequence in new
  14025. non-segmented download.
  14026. * src/FileAllocationEntry.h
  14027. (_nextDownloadCommand): New variable.
  14028. * src/DownloadCommand.cc
  14029. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14030. available.
  14031. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14032. * src/IteratableChecksumValidator.h,
  14033. src/IteratableChecksumValidator.cc: New class.
  14034. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14035. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14036. Change file mode to 666:
  14037. * src/common.h (OPEN_MODE): New definition.
  14038. * src/File.cc
  14039. * src/Util.cc
  14040. * src/Directry.cc
  14041. * src/AbstractDiskWriter.cc
  14042. Change the level of log message "download aborted" to debug:
  14043. * src/PeerAbstractCommand.cc (execute)
  14044. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14045. * src/TrackerWatcherCommand.cc
  14046. (createCommand): Sleep some seconds after request failed.
  14047. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14048. then abort tracker request.
  14049. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14050. * Added the simultaneous download feature.
  14051. * src/main.cc: Print "Exception caught: " when exception is caught.
  14052. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14053. * src/ActivePeerConnectionCommand.cc
  14054. * src/PeerInteractionCommand.cc
  14055. * src/BtRuntime.h
  14056. (cuidCounter): Removed.
  14057. (getNewCuid): Removed.
  14058. * src/DownloadEngineFactory.cc
  14059. * src/PeerListenCommand.cc
  14060. * src/TrackerUpdateCommand.cc
  14061. * src/PeerInitiateConnectionCommand.cc
  14062. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14063. * src/PeerAbstractCommand.cc
  14064. (onAbort): Call PeerStorage::returnPeer()
  14065. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14066. (incomingPeers): New variable.
  14067. (addIncomingPeer): New function.
  14068. (returnPeer): New function.
  14069. (onErasingPeer): New function.
  14070. (addPeer): push_back -> push_front
  14071. (getActivePeers): Rewritten.
  14072. (calculateStat): Rewritten.
  14073. * src/PeerStorage.h
  14074. (TransferStat::copy): New function.
  14075. (TransferStat::TransferStat): New function.
  14076. (TransferStat::operator=): New function.
  14077. (addIncomingPeer): New function.
  14078. (returnPeer): New function.
  14079. * src/PeerListenCommand.cc
  14080. (execute): Use PeerStorage::addIncomingPeer() instead of
  14081. Peer::addPeer().
  14082. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14083. Connect to a peer actively when download speed is lower than specified
  14084. speed in torrent download:
  14085. * src/ActivePeerConnectionCommand.h: New class.
  14086. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14087. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14088. * src/main.cc: Fixed the bug that prevents download if .netrc
  14089. doesn't exist.
  14090. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14091. To cache resolved hostname:
  14092. * src/AbstractCommand.h, src/AbstractCommand.cc
  14093. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14094. Added dns cache.
  14095. * src/FtpInitiateConnectionCommand.cc
  14096. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14097. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14098. NameResolver working without ares.
  14099. * src/TorrentRequestInfo.cc
  14100. (execute): Don't cache dns in torrent download.
  14101. * src/HttpInitiateConnectionCommand.cc
  14102. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14103. * src/DNSCache.h: New class.
  14104. * src/UrlRequestInfo.cc
  14105. (execute): Use dns cache.
  14106. In http request, suppress port number in http request header if port
  14107. is 80 or 443:
  14108. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14109. request header if port is 80 or 443.
  14110. (createProxyRequest): Allways send port number.
  14111. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14112. To add the command-line option which disables netrc support:
  14113. * src/OptionHandlerFactory.cc
  14114. (createOptionHandlers): Added PREF_NO_NETRC.
  14115. * src/main.cc: Added -n option.
  14116. * src/prefs.h (PREF_NO_NETRC): New definition.
  14117. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14118. V_TRUE.
  14119. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14120. is V_FALSE. This may get configurable in the future release.
  14121. To clear peer's error status by time basis:
  14122. * src/PeerAbstractCommand.cc
  14123. (onAbort): Call Peer::startBadCondition().
  14124. * src/Peer.h, src/Peer.cc
  14125. (error): Removed.
  14126. (_badConditionStartTime): New variable.
  14127. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14128. (startBadCondition): New function.
  14129. (isGood): New function.
  14130. * src/DefaultPeerStorage.cc
  14131. (addPeer): Use Peer::isGood().
  14132. (FindFinePeer): Use Peer::isGood().
  14133. Always include port number in http request header:
  14134. * src/HttpRequest.cc (getHostText): Always include port number in
  14135. http request header.
  14136. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14137. To the ability to read options from a config file:
  14138. * src/main.cc: Command-line parameter validation is delegated to
  14139. OptionHandler class.
  14140. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14141. * src/Option.h, src/Option.cc (clear): New function.
  14142. * src/OptionParser.h, src/OptionParser.cc: New class.
  14143. * src/OptionHandler.h: New class.
  14144. * src/NameMatchOptionHandler.h: New class.
  14145. * src/OptionHandlerImpl.h: New classes.
  14146. * src/prefs.h: '_' -> '-'
  14147. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14148. (FTP_PASV): New definition.
  14149. * src/Util.h, src/Util.cc (getRealSize): New function.
  14150. To disable netrc support if .netrc file does not have correct
  14151. permissions:
  14152. * src/File.h, src/File.cc (mode): New function.
  14153. To prevent confidential information to be logged:
  14154. * src/HttpConnection.h, src/HttpConnection.cc
  14155. (eraseConfidentialInfo): New function.
  14156. (sendRequest): Call eraseConfidentialInfo().
  14157. (sendProxyRequest): Call eraseConfidentialInfo().
  14158. * src/main.cc: Validate permissions of .netrc file.
  14159. To add --user-agent command-line option:
  14160. * src/main.cc: Added new command line option: --user-agent
  14161. * src/prefs.h (PREF_USER_AGENT): New definition.
  14162. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14163. parameter to HttpRequest object.
  14164. * src/AbstractProxyRequestCommand.cc
  14165. (executeInternal): Set user-agent option parameter to HttpRequest
  14166. object.
  14167. Marged the patches from Dan Fandrich.
  14168. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14169. Use filename and size from Metalink file instead of sending HEAD
  14170. request:
  14171. * src/UrlRequestInfo.h
  14172. (_filename): New variable.
  14173. (_totalLength): New variable.
  14174. (setTotalLength): New variable.
  14175. (setFilename): New variable.
  14176. * src/MetalinkRequestInfo.cc
  14177. (execute): Set filename and size to UrlRequestInfo
  14178. * src/UrlRequestInfo.cc
  14179. (execute): Use filename and size from Metalink instead of seding
  14180. HEAD request to servers.
  14181. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14182. To add the ability to resume downloading a partially downloaded file
  14183. which is downloaded from the beginning:
  14184. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14185. takes this role.
  14186. * src/main.cc: Added -c option.
  14187. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14188. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14189. * src/prefs.h (PREF_CONTINUE): New definition.
  14190. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14191. * src/DefaultDiskWriter.cc
  14192. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14193. * src/AbstractDiskWriter.h
  14194. (glowFileAllocator): New variable.
  14195. * src/AbstractDiskWriter.cc
  14196. (openExistingFile): Now preallocate file space from the end of the
  14197. existing file if totalLength argument is specified and grater than 0.
  14198. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14199. to download exists in local, continue the download of the file.
  14200. --allow-overwrite=true is assumed in this context.
  14201. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14202. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14203. Throw exception if --check-integrity=true is specified but chunk
  14204. checksums are not provided:
  14205. * src/UrlRequestInfo.cc
  14206. Do not print URLs to stdout:
  14207. * src/UrlRequestInfo.cc
  14208. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14209. * src/Request.h: Use AuthResolver to get authentication information.
  14210. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14211. set to RequestFactory object.
  14212. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14213. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14214. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14215. create Request object.
  14216. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14217. To integrate Netrc into exsiting classes:
  14218. * src/Request.h
  14219. (_userDefinedAuthConfig): New variable.
  14220. (findNetrcAuthenticator): New function.
  14221. (segment): Removed.
  14222. (setUserDefinedAuthConfig): New function.
  14223. (resolveHttpAuthConfigItem): New function.
  14224. (resolveFtpAuthConfigItem): New function.
  14225. (resolveHttpProxyAuthConfigItem): New function.
  14226. * src/HttpRequest.h
  14227. (authConfig): Removed.
  14228. (proxyAuthConfig): Removed.
  14229. (setAuthConfig): Removed.
  14230. (setProxyAuthConfig): Removed.
  14231. * src/UrlRequest.h
  14232. (getHeadResult): Added a parameter: authConfigHandle
  14233. * src/common.h
  14234. (SingletonHolder.h): New include.
  14235. * src/main.cc
  14236. (Netrc.h): New include.
  14237. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14238. Added initial value of PREF_NETRC_PATH.
  14239. Added the initialization of netrc.
  14240. * src/AuthConfig.h: New class.
  14241. * src/prefs.h
  14242. (PREF_NETRC_PATH): New definition.
  14243. * src/HttpAuthConfig.h: Removed.
  14244. * src/Netrc.cc
  14245. (getRequiredNextToken): New function.
  14246. (skipMacdef): New function.
  14247. (parse): Rewritten.
  14248. * src/Netrc.h
  14249. (getRequiredNextToken): New function.
  14250. (skipMacdef): New function.
  14251. * src/Util.h, src/Util.cc
  14252. (getHomeDir): New function.
  14253. * src/TrackerWatcherComand.cc
  14254. (createRequestCommand): Use AuthConfig.
  14255. * src/FtpConnection.cc
  14256. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14257. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14258. * src/Request.cc
  14259. (findNetrcAuthenticator): New function.
  14260. (resolveHttpAuthConfigItem): New function.
  14261. (resolveFtpAuthConfigItem): New function.
  14262. (resolveHttpProxyAuthConfigItem): New function.
  14263. * src/UrlRequestInfo.cc: Use AuthConfig.
  14264. * src/HttpRequest.cc
  14265. (createRequest): Use authConfig.
  14266. (getProxyAuthString): Use authConfig.
  14267. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14268. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14269. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14270. To reduce overhead to find commands whose socket is either
  14271. readable or writable in the download engine loop:
  14272. * src/Command.h, src/Command.cc
  14273. (STATUS): New enum.
  14274. (status): New variable.
  14275. (statusMatch): New function.
  14276. (setStatusActive): New function.
  14277. (setStatusInactive): New function.
  14278. * src/DownloadEngine.h, src/DownloadEngine.cc
  14279. (executeCommand): New function.
  14280. (run): Simplified.
  14281. (waitData): Call Command::setStatusActive() when command's socket is
  14282. readable or writable.
  14283. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14284. To handle Segment as SegmentHandle:
  14285. * src/AbstractCommand.cc (execute): Rewritten.
  14286. * src/SegmentMan.h: Segment -> SegmentHandle
  14287. Introducded HttpResponse class, HttpRequest class to improve code
  14288. extensiveness and make it clear:
  14289. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14290. HttpResponse class.
  14291. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14292. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14293. * src/HttpConnection.cc: Contruction of http request were moved to
  14294. HttpRequest class.
  14295. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14296. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14297. * src/HttpAuthConfig.h: New class.
  14298. * src/Range.h: New class.
  14299. To make FtpTunnel{Request, Response}Command and
  14300. HttpProxy{Request, Response}Command derived from
  14301. AbstractProxy{Request, Response}Command:
  14302. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14303. Derived from AbstractProxyRequestCommand class.
  14304. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14305. Derived from AbstractProxyResponseCommand class.
  14306. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14307. Derived from AbstractProxyRequestCommand class.
  14308. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14309. Derived from AbstractProxyResponseCommand class.
  14310. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14311. : New class.
  14312. * src/AbstractProxyResponseCommand.h,
  14313. src/AbstractProxyResponseCommand.cc: New class.
  14314. To add netrc support:
  14315. * src/Netrc.h, src/Netrc.cc: New class.
  14316. * src/Util.h, src/Util.cc (split): New function.
  14317. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14318. "Content-Range" header instead of "Range" header.
  14319. * src/HttpHeader.h
  14320. (getStatus): Removed.
  14321. (setStatus): Removed.
  14322. * src/Segment.h
  14323. (getPositionToWrite): New function.
  14324. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14325. * src/HttpHeader.h
  14326. (Range.h): New include.
  14327. (status): New variable.
  14328. (HttpHeader): Initialized status with 0.
  14329. (getStatus): New function.
  14330. (setStatus): New function.
  14331. (getRange): New function.
  14332. (HttpHeaderHandle): New function.
  14333. * src/HttpHeader.cc
  14334. (getRange): New function.
  14335. * src/Request.h
  14336. (RequestWeakHandle): New definition.
  14337. * src/HttpConnection.h
  14338. (HttpConnectionHandle): New type definition.
  14339. * src/HttpConnection.cc
  14340. (receiveResponse): Set HTTP status to headers.
  14341. * src/main.cc
  14342. (showUsage): Fixed typo.
  14343. * src/Segment.h
  14344. (SegmentHandle): New type definition.
  14345. * src/BitfieldMan.h
  14346. (getMissingUnusedLength): New function.
  14347. * src/BitfieldMan.cc
  14348. (getMissingUnusedLength): New function.
  14349. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14350. To fix static initialization order problem:
  14351. * src/BitfieldManFactory.h
  14352. (defaultRandomizer): Removed.
  14353. (factory): New variable.
  14354. (getNewFactory): Removed.
  14355. (getFactoryInstance): New function.
  14356. (setDefaultRandomizer): Rewritten.
  14357. (getDefaultRandomizer): Rewritten.
  14358. * src/BitfieldManFactory.cc
  14359. (defaultRandomizer): Removed.
  14360. (factory): Initialized to 0.
  14361. (BitfieldManFactory): Initialized randomizer to 0.
  14362. * src/DefaultPieceStorage.cc
  14363. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14364. * src/Peer.cc
  14365. (Peer): getNewFactory() -> getFactoryInstance()
  14366. * src/SegmentMan.cc
  14367. (initBitfield): getNewFactory() -> getFactoryInstance()
  14368. * src/Piece.cc
  14369. (Piece): getNewFactory() -> getFactoryInstance()
  14370. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14371. To fix the bug that causes crash on Max OS X:
  14372. * src/SimpleRandomizer.h
  14373. (getInstance): Create new instance if the static variable is null.
  14374. * src/SimpleRandomizer.cc
  14375. (randomizer): Initialized to 0.
  14376. * src/BitfieldManFactory.h
  14377. (getNewFactory): Removed the call to setRandomizer().
  14378. To fix the miscalculation of the range of checksum:
  14379. * src/BitfieldMan.h
  14380. (isBitSetOffsetRange): New function.
  14381. * src/BitfieldMan.cc
  14382. (isBitSetOffsetRange): New function.
  14383. * src/SegmentMan.cc
  14384. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14385. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14386. * Release 0.10.1
  14387. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14388. To lower CPU usage in BitTorrent download when --max-upload-limit
  14389. command-line option specified:
  14390. * src/DefaultBtMessageDispatcher.cc
  14391. (sendMessages): Calculate uploading speed only when current message
  14392. is uploading data and is not sent yet.
  14393. * src/DefaultPeerStorage.h
  14394. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14395. * src/HttpResponseCommand.cc
  14396. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14397. This fixes compile error in Soralis 10.
  14398. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14399. To fix segfault in Metalink download:
  14400. * src/UrlRequestInfo.h
  14401. (filename): Removed.
  14402. (totalLength): Removed.
  14403. (setTotalLength): Removed.
  14404. (setFilename): Removed.
  14405. * src/MetalinkRequestInfo.cc
  14406. (execute): Do not set filename and totalLength to reqInfo.
  14407. Set chunk checksum to reqInfo if it is not null.
  14408. * src/HttpResponseCommand.cc
  14409. (executeInternal): Fixed filename in log.
  14410. (handleDefaultEncoding): Removed the call to initBitfield() and
  14411. markAllPiecesDone().
  14412. (handleOtherEncoding): Added HEAD method handling.
  14413. * src/FtpNegotiateCommand.cc
  14414. (executeInternal): Added SEQ_HEAD_OK handling.
  14415. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14416. return false.
  14417. * src/FtpNegotiateCommand.h
  14418. (SEQ_HEAD_OK): New definition.
  14419. * src/SegmentMan.cc
  14420. (initBitfield): Delete bitfield.
  14421. (isChunkChecksumValidationReady): Fixed the condition.
  14422. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14423. works fine.
  14424. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14425. * src/Xml2MetalinkProcessor.h
  14426. (xpathExists): New function.
  14427. * src/Xml2MetalinkProcessor.cc
  14428. (xpathExists): New function.
  14429. Not to send HEAD request if filename and size are available in Metalink
  14430. file:
  14431. * src/UrlRequestInfo.h
  14432. (filename): New variable.
  14433. (totalLength): New variable.
  14434. (setTotalLength): New function.
  14435. (setFilename): New function.
  14436. * src/MetalinkRequestInfo.cc
  14437. (execute): Set filename and size to UrlRequestInfo.
  14438. * src/MetalinkEntry.cc
  14439. (MetalinkEntry): Initialize size with 0.
  14440. * src/UrlRequestInfo.cc
  14441. (execute): Set filename and size to SegmentMan.
  14442. Not to download rest of the files after selected files are downloaded
  14443. in BitTorrent:
  14444. * src/PieceStorage.h
  14445. (allDownloadFinished): New function.
  14446. * src/DefaultBtAnnounce.cc
  14447. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14448. downloadFinished.
  14449. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14450. * src/DefaultPieceStorage.cc
  14451. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14452. Commented out the call to finishSelectiveDownloadingMode().
  14453. (downloadFinished): Call isFilteredAllBitSet() instead of
  14454. isAllBitSet().
  14455. (allDownloadFinished): New function.
  14456. * src/DefaultBtInteractive.cc
  14457. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14458. downloadFinished().
  14459. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14460. * src/TorrentDownloadEngine.cc
  14461. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14462. * src/BitfieldMan.h
  14463. (isFilteredAllBitSet): New function.
  14464. * src/ShareRatioSeedCriteria.h
  14465. (PieceStorage.h): New include.
  14466. (pieceStorage): New variable.
  14467. (evaluate):
  14468. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14469. * src/BitfieldMan.cc
  14470. (isFilteredAllBitSet): New function.
  14471. (isAllBitSet): Filter is not took into account.
  14472. Rename --force-truncate as --allow-overwrite:
  14473. * src/TorrentRequestInfo.cc
  14474. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14475. * src/main.cc
  14476. (showUsage): --force-truncate -> --allow-overwrite
  14477. * src/message.h
  14478. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14479. * src/prefs.h
  14480. (PREF_FORCE_TRUNCATE): Removed.
  14481. (PREF_ALLOW_OVERWRITE): New definition.
  14482. * src/SegmentMan.cc
  14483. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14484. * src/MetalinkRequestInfo.cc
  14485. (execute): Queueing message are now logged in info level.
  14486. * src/common.h
  14487. (LONG_LONG_MAX): Removed.
  14488. (LONG_LONG_MIN): Removed.
  14489. * src/HttpResponseCommand.cc
  14490. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14491. * src/FtpNegotiateCommand.cc
  14492. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14493. * src/main.cc
  14494. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14495. command-line option.
  14496. (main): Added --check-integriy and --realtime-chunk-checksum
  14497. command-line option.
  14498. --force-truncate -> --allow-overwrite
  14499. Set initial value of --check-integrity option to false.
  14500. Don't show usage when error occurs while persing command-line options.
  14501. Removed deprecated --upload-limit option.
  14502. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14503. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14504. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14505. * src/BtAllowedFastMessage.cc:
  14506. * src/BtBitfieldMessage.cc
  14507. * src/BtCancelMessage.cc
  14508. * src/BtChokeMessage.cc
  14509. * src/BtHaveAllMessage.cc
  14510. * src/BtHaveMessage.cc
  14511. * src/BtHaveNoneMessage.cc
  14512. * src/BtInterestedMessage.cc
  14513. * src/BtNotInterestedMessage.cc
  14514. * src/BtPieceMessage.cc
  14515. * src/BtPortMessage.cc
  14516. * src/BtRejectMessage.cc
  14517. * src/BtRequestMessage.cc
  14518. * src/BtSuggestPieceMessage.cc
  14519. * src/BtUnchokeMessage.cc
  14520. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14521. files are affected.
  14522. * src/ChunkChecksumValidator.cc
  14523. * src/SegmentMan.cc
  14524. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14525. To add chunk checksum validation:
  14526. * src/MetalinkEntry.h
  14527. (MetalinkChunkChecksum.h): New include.
  14528. (chunkChecksum): New variable.
  14529. * src/Request.h
  14530. (method): New variable.
  14531. (setMethod): New function.
  14532. (getMethod): New function.
  14533. (METHOD_GET): New static constant.
  14534. (METHOD_HEAD): New static constant.
  14535. * src/Xml2MetalinkProcessor.h
  14536. (getPieceHash): New function.
  14537. * src/PieceStorage.h
  14538. (markAllPiecesDone): New function.
  14539. (checkIntegrity): New function.
  14540. * src/FileAllocator.h
  14541. (NullFileAllocationMonitor.h): New include.
  14542. (FileAllocator): Initialize fileAllocationMonitor with new
  14543. NullFileAllocationMonitor().
  14544. * src/MultiDiskAdaptor.h
  14545. (messageDigest.h): Remove include.
  14546. (ctx): Removed.
  14547. (hashUpdate): Added ctx.
  14548. (MultiDiskAdaptor): Removed ctx.
  14549. (sha1Sum): Renamed as messageDigest.
  14550. (messageDigest): New function.
  14551. * src/UrlRequestInfo.h
  14552. (HeadResult): New class.
  14553. (digestAlgo): New variable.
  14554. (chunkChecksumLength): New variable.
  14555. (chunkChecksums): New variable.
  14556. (getHeadResult): New function.
  14557. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14558. (setDigestAlgo): New function.
  14559. (setChunkChecksumLength): New function.
  14560. (setChunkChecksums): New function.
  14561. * src/DefaultPieceStorage.cc
  14562. (DiskAdaptorWriter.h): New include.
  14563. (ChunkChecksumValidator.h): New include.
  14564. (markAllPiecesDone): New function.
  14565. (checkIntegrity): New function.
  14566. * src/DefaultBtContext.h
  14567. (getPieceHashes): New function.
  14568. * src/TorrentRequestInfo.cc
  14569. (execute): Try to validate chunk checksum if file already exists and
  14570. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14571. * src/messageDigest.h
  14572. (~MessageDigestContext): Added digestFree().
  14573. * src/MetalinkRequestInfo.cc
  14574. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14575. * src/DiskAdaptor.h
  14576. (messageDigest.h): New include.
  14577. (sha1Sum): Renamed as messageDigest.
  14578. (messageDigest): New function.
  14579. * src/DownloadCommand.h
  14580. (PeerStat.h): New include.
  14581. (maxDownloadSpeedLimit): New variable.
  14582. (startupIdleTime): New variable.
  14583. (lowestDownloadSpeedLimit): New variable.
  14584. (peerStat): New variable.
  14585. (setMaxDownloadSpeedLimit): New function.
  14586. (setStartupIdleTime): New function.
  14587. (setLowestDownloadSPeedLimit): New function.
  14588. * src/BtContext.h
  14589. (getPieceHashes): New function.
  14590. * src/main.cc
  14591. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14592. option to true for testing purpose.
  14593. * src/BtPieceMessage.cc
  14594. (checkPieceHash): Use messageDigest
  14595. * src/DownloadEngine.cc
  14596. (SetDescriptor): Removed.
  14597. (AccumulateActiveCommand): Removed.
  14598. (waitData): Rewritten.
  14599. (updateFdSet): Rewritten.
  14600. * src/MultiDiskAdaptor.cc
  14601. (hashUpdate): Added ctx.
  14602. (sha1Sum): Renamed as messageDigest.
  14603. (messageDigest): New function.
  14604. * src/BitfieldMan.h
  14605. (isBitRangeSet): New function.
  14606. (unsetBitRange): New function.
  14607. * src/ByteArrayDiskWriter.h
  14608. (sha1Sum): Renamed as messageDigest.
  14609. (messageDigest): New function.
  14610. * src/ConsoleDownloadEngine.cc
  14611. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14612. * src/DiskWriter.h
  14613. (messageDigest.h): New include.
  14614. (sha1Sum): Renamed as messageDigest.
  14615. (messageDigest): New function.
  14616. * src/ChunkChecksumValidator.h: New class.
  14617. * src/DiskAdaptorWriter.h: New class.
  14618. * src/prefs.h
  14619. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14620. (PREF_CHECK_INTEGRITY): New definition.
  14621. * src/HttpResponseCommand.cc
  14622. (handleDefaultEncoding): Added method "HEAD" handling.
  14623. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14624. (handleOtherEncoding):
  14625. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14626. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14627. startupIdleTime, lowestDownloadSpeedLimit to command.
  14628. * src/SegmentMan.h
  14629. (getSegmentEntryByIndex): New function.
  14630. (getSegmentEntryByCuid): New function.
  14631. (getSegmentEntryIteratorByCuid): New function.
  14632. (diskWriter): DiskWriter -> DiskWriterHandle
  14633. (pieceHashes): New variable.
  14634. (chunkHashLength): New variable.
  14635. (digestAlgo): New variable.
  14636. (FindPeerStat): Removed.
  14637. (getPeerStat): Rewritten.
  14638. (markAllPiecesDone): New function.
  14639. (checkIntegrity): New function.
  14640. (tryChunkChecksumValidation): New function.
  14641. (isChunkChecksumValidationReady): New function.
  14642. * src/BitfieldMan.cc
  14643. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14644. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14645. blocks to 0.
  14646. (isBitRangeSet): New function.
  14647. (unsetBitRange): New function.
  14648. * src/FtpNegotiateCommand.cc
  14649. (executeInternal): Set maxDownloadSpeedLimit,
  14650. startupIdleTime, lowestDownloadSpeedLimit to command.
  14651. (recvSize): Added method "HEAD" handling.
  14652. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14653. * src/AbstractSingleDiskAdaptor.cc
  14654. (sha1Sum): Renamed as messageDigest.
  14655. (messageDigest): New function.
  14656. * src/AbstractSingleDiskAdaptor.h
  14657. (sha1Sum): Renamed as messageDigest.
  14658. (messageDigest): New function.
  14659. * src/Util.h
  14660. (indexRange): New function.
  14661. * src/MetalinkEntry.cc
  14662. (MetalinkEntry): Initialized chunkChecksum to 0.
  14663. * src/ShaVisitor.cc
  14664. (~ShaVisitor): Removed the call to ctx.digestFree().
  14665. * src/SegmentMan.cc
  14666. (ChunkChecksumValidator.h): New include.
  14667. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14668. to DIGEST_ALGO_SHA1.
  14669. (~SegmentMan): Removed diskWriter.
  14670. (FindSegmentEntryByIndex): Removed.
  14671. (FindSegmentEntryByCuid): Removed.
  14672. (checkoutSegment): Rewritten.
  14673. (findSlowerSegmentEntry): Rewritten.
  14674. (getSegment): Rewritten.
  14675. (updateSegment): Rewritten.
  14676. (completeSegment): Rewritten.
  14677. (markAllPiecesDone): New function.
  14678. (checkIntegrity): New function.
  14679. (isChunkChecksumValidationReady): New function.
  14680. (tryChunkChecksumValidation): New function.
  14681. * src/Xml2MetalinkProcessor.cc
  14682. (getEntry): Get size and set it to entry.
  14683. Get chunk checksum and set it to entry.
  14684. (getPieceHash): New function.
  14685. * src/Util.cc
  14686. (sha1Sum): Removed ctx.digestFree()
  14687. (fileChecksum): Removed ctx.digestFree()
  14688. (indexRange): New function.
  14689. * src/Request.cc
  14690. (METHOD_GET): New variable.
  14691. (METHOD_HEAD): New variable.
  14692. (Request): Added method.
  14693. * src/UrlRequestInfo.cc
  14694. (FatalException.h): New include.
  14695. (message.h): New include.
  14696. (operator<<): Added operator<< for class HeadResult.
  14697. (getHeadResult): New function.
  14698. (execute): Get filename and size in separate download engine.
  14699. * src/ChunkChecksumValidator.cc: New class.
  14700. * src/DownloadCommand.cc:
  14701. (DownloadCommand): Added peerStat.
  14702. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14703. the value from Option.
  14704. The buffer size is now 16KB.
  14705. Use peerStat member instead of getting it from SegmentMan.
  14706. Use startupIdleTime member instead of gettingit from Option.
  14707. Added chunk checksum validation.
  14708. * src/AbstractDiskWriter.cc
  14709. (AbstractDiskWriter): Removed ctx.
  14710. (~AbstractDiskWriter): Removed ctx.digestFree()
  14711. (writeDataInternal): Returns the return value of write.
  14712. (readDataInternal): Returns the return value of read.
  14713. (sha1Sum): Renamed as messageDigest
  14714. (messageDigest): New function.
  14715. * src/AbstractDiwkWriter.h
  14716. (messageDigest.h): Removed include.
  14717. (ctx): Removed.
  14718. (sha1Sum): Renamed as messageDigest
  14719. (messageDigest): New function.
  14720. * src/DefaultPieceStorage.h
  14721. (markAllPiecesDone): New function.
  14722. (checkIntegrity): New function.
  14723. * src/NullFileAllocationMonitor.h: New class.
  14724. * src/MetalinkChunkChecksum.h: New class.
  14725. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14726. To decrease CPU usage in bittorrent download, calculation results in
  14727. BitfieldMan were cached and realtime fetching PeerObject was removed
  14728. with WeakHandle introduced. Option values are set to the objects
  14729. by setter before download begins.
  14730. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14731. * src/DefaultBtRequestFactory.h
  14732. (dispatcher): BtMessageDispatcherHandle ->
  14733. BtMessageDispatcherWeakHandle.
  14734. (messageFactory): New variable.
  14735. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14736. BtMessageDispatcherWeakHandle.
  14737. (setBtMessageFactory): New function.
  14738. * src/DefaultBtMessageDispatcher.cc:
  14739. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14740. from Option.
  14741. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14742. feating the value from Option.
  14743. Use messageFactory member.
  14744. * src/PeerInteractionCommand.cc
  14745. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14746. Add reverse dependencies to factory object.
  14747. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14748. dispatcher.
  14749. Set messageFactory to receiver.
  14750. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14751. btInteractive.
  14752. Set receiver to peerObject.
  14753. Set maxDownloadSpeedLimit to this.
  14754. (executeInternal): Use maxDownloadSpeedLimit member.
  14755. * src/BtChokeMessage.cc
  14756. (doReceivedAction): Use dispatcher, requestFactory member.
  14757. (onSendComplete): Use dispatcher member.
  14758. * src/PeerInteractionCommand.h
  14759. (maxDownloadSpeedLimit): New variable.
  14760. * src/DefaultBtMessageReceiver.h
  14761. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14762. (dispatcher):
  14763. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14764. (messageFactory): New variable.
  14765. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14766. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14767. (setDispatcher):
  14768. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14769. (setBtMessageFactory): New function.
  14770. * src/DefaultBtInteractive.cc
  14771. (initiateHandshake): Use messageFactory member.
  14772. (addBitfieldMessageToQueue): Use messageFactory member.
  14773. (addAllowedFastMessageToQueue): Use messageFactory member.
  14774. (decideChoking): Use messageFactory member.
  14775. (checkHave): Use messageFactory member.
  14776. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14777. (receiveMessages): Use maxDownloadSpeedLimit member.
  14778. (decideInterest): Use messageFactory member.
  14779. * src/BtRequestMessage.cc
  14780. (doReceivedAction): Use messageFactory, dispatcher member.
  14781. (onQueued): Use dispatcher member.
  14782. * src/BtPieceMessage.cc
  14783. (doReceivedAction): Use dispatcher member.
  14784. (send): Use peerConnection member.
  14785. (onWrongPiece): Use requestFactory member.
  14786. (handleChokingEvent): Use messageFactory, dispatcher member.
  14787. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14788. * src/BtMessageDispatcher.h
  14789. (BtMessageDispatcherWeakHandle): New type definition.
  14790. * src/SimpleBtMessage.cc
  14791. (send): Use peerConnection member.
  14792. * src/BtRejectMessage.cc
  14793. (doReceivedAction): Use dispatcher member.
  14794. * src/DefaultBtMessageDispatcher.h
  14795. (Option.h): Removed include.
  14796. (messageFactory): New variable.
  14797. (option): Removed.
  14798. (maxUploadSpeedLimit): New variable.
  14799. (requestTimeout): New variable.
  14800. (DefaultBtMessageDispatcher): Removed option.
  14801. Added maxUploadSpeedLimit, requestTimeout.
  14802. (setOption): Removed.
  14803. (getOption): Removed.
  14804. (setMaxUploadSpeedLimit): New function.
  14805. (setRequestTimeout): New function.
  14806. (setBtMessageFactory): New function.
  14807. * src/DefaultBtInteractive.h
  14808. (btMessageReceiver):
  14809. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14810. (dispatcher):
  14811. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14812. (btRequestFactory):
  14813. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14814. (peerConnection):
  14815. PeerConnectionHandle -> PeerConnectionWeakHandle
  14816. (messageFactory): New variable.
  14817. (option): Removed.
  14818. (keepAliveInterval): New variable.
  14819. (maxDownloadSpeedLimit): New variable.
  14820. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14821. (setBtMessageReceiver):
  14822. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14823. (setDispatcher):
  14824. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14825. (setBtRequestFactory):
  14826. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14827. (setPeerConnection):
  14828. PeerConnectionHandle -> PeerConnectionWeakHandle
  14829. (setOption): Removed.
  14830. (setKeepAliveInterval): New function.
  14831. (setMaxDownloadSpeedLimit): New function.
  14832. (setBtMessageFactory): New function.
  14833. * src/BitfieldMan.h
  14834. (cachedNumMissingBlock): New variable.
  14835. (cachedNumFilteredBlock): New variable.
  14836. (cachedCompletedLength): New variable.
  14837. (cachedFilteredComletedLength): New variable.
  14838. (cachedFilteredTotalLength): New variable.
  14839. (countMissingBlockNow): New function.
  14840. (countFilteredBlockNow): New function.
  14841. (getFilteredTotalLengthNow): New function.
  14842. (getCompletedLengthNow): New function.
  14843. (getFilteredCompletedLengthNow): New function.
  14844. (updateCache): New function.
  14845. * src/AbstractBtMessage.h
  14846. (BtMessageDispatcher.h): New include.
  14847. (PeerConnection.h): New include.
  14848. (BtRequestFactory.h): New include
  14849. (BtMessageFactory.h): New include.
  14850. (dispatcher): New variable.
  14851. (messageFactory): New variable.
  14852. (peerConnection: New variable.
  14853. (setBtMessageDispatcher): New function.
  14854. (setPeerConnection): New function.
  14855. (setBtMessageFactory): New function.
  14856. (setBtRequestFactory): New function.
  14857. * src/DefaultBtMessageFactory.cc
  14858. (setCommonProperty): Set dispatcher, requestFactory, this,
  14859. peerConnection to msg.
  14860. * src/BtRegistry.h
  14861. (BT_MESSAGE_RECEIVER): New macro.
  14862. * src/PeerConnection.h
  14863. (PeerConnectionWeakHandle): New type definition.
  14864. * src/BtMessageFactory.h
  14865. (BtMessageFactoryWeakHandle): New type definition.
  14866. * src/BitfieldMan.cc
  14867. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14868. cachedCompletedLength, cachedFilteredComletedLength,
  14869. cachedFilteredTotalLength.
  14870. Call updateCache().
  14871. (countMissingBlock): Return cachedNumMissingBlock.
  14872. (countMissingBlockNow): New function.
  14873. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14874. (countFilteredBlockNow): New function.
  14875. (setBit): Call updateCache().
  14876. (unsetBit): Call updateCache().
  14877. (setBitfield): Call updateCache().
  14878. (clearAllBit): Call updateCache().
  14879. (setAllBit): Use setBitInternal instead of setBit.
  14880. Call updateCache().
  14881. (addFilter): Call updateCache().
  14882. (enableFilter): Call updateCache().
  14883. (disableFilter): Call updateCache().
  14884. (clearFilter): Call updateCache().
  14885. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14886. (getFilteredTotalLengthNow): New function.
  14887. (getCompletedLength): Return cachedCompletedLength.
  14888. (getCompletedLengthNow): New function.
  14889. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14890. (getFilteredCompletedLengthNow): New function.
  14891. (updateCache): New function.
  14892. * src/BtMessageReceiver.h
  14893. (BtMessageReceiverWeakHandle): New type definition.
  14894. * src/DefaultBtMessageReceiver.cc
  14895. (receiveHandshake): Use messageFactory member.
  14896. (sendHandshake): Use messageFactory member.
  14897. (receiveMessage): Use messageFactory member.
  14898. * src/DefaultBtMessageFactory.h
  14899. (dispatcher): New variable.
  14900. (requestFactory): New variable.
  14901. (peerConnection): New variablle.
  14902. (setBtMessageDispatcher): New function.
  14903. (setBtRequestFactory): New function.
  14904. (setPeerConnection): New function.
  14905. * src/SharedHandle.h
  14906. (RefCount): New class.
  14907. (WeakHandle): New class.
  14908. * src/PeerObject.h
  14909. (BtMessageReceiver.h): New include.
  14910. (PeerObject): Added btMessageReceiver.
  14911. (btMessageReceiver): New variable.
  14912. * src/Util.cc
  14913. (countBit): Simplified.
  14914. * src/BtCancelMessage.cc
  14915. (doReceivedAction): Use dispatcher member.
  14916. * src/BtRequestFactory.h
  14917. (BtRequestFactoryWeakHandle): New type definition.
  14918. * src/PeerStorage.h
  14919. (downloadSpeed): int -> uint32_t
  14920. (uploadSpeed): int -> uint32_t
  14921. (sessionDownloadLength): long long int -> uint64_t
  14922. (sessionUploadLength): long long int -> uint64_t
  14923. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14924. To add RecoverableException, FatalException:
  14925. * src/AbstractCommand.cc
  14926. (onAbort): Exception -> RecoverableException
  14927. * src/PeerAbstractCommand.h
  14928. (RecoverableException.h): New include.
  14929. (onAbort): Exception -> RecoverableException.
  14930. * src/PeerInteractionCommand.cc
  14931. (onAbort): Exception -> RecoverableException.
  14932. * src/PeerAbstractCommand.cc
  14933. (execute): Exception -> RecoverableException.
  14934. (onAbort): Exception -> RecoverableException.
  14935. * src/TorrentRequestInfo.cc
  14936. (execute): Exception -> RecoverableException.
  14937. * src/MetalinkRequestInfo.cc
  14938. (execute): Exception -> RecoverableException.
  14939. * src/MetaFileUtil.cc: RecoverableException.
  14940. * src/AbstractCommand.h
  14941. (onAbort): Exception -> RecoverableException.
  14942. * src/DlRetryEx.h: Exception -> RecoverableException.
  14943. * src/DlAbortEx.h: Exception -> RecoverableException.
  14944. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14945. * src/Util.cc: Exception -> RecoverableException.
  14946. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14947. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14948. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14949. To make ID static const int
  14950. * src/BtInterestedMessage.h
  14951. (ID_t): Removed.
  14952. (ID): New variable.
  14953. (getId): Made non-const.
  14954. * src/BtPieceMessage.h
  14955. (ID_t): Removed.
  14956. (ID): New variable.
  14957. (getId): Made non-const.
  14958. * src/BtChokeMessage.h
  14959. (ID_t): Removed.
  14960. (ID): New variable.
  14961. (getId): Made non-const.
  14962. * src/BtHaveAllMessage.h
  14963. (ID_t): Removed.
  14964. (ID): New variable.
  14965. (getId): Made non-const.
  14966. * src/BtKeepAliveMessage.h
  14967. (ID_t): Removed.
  14968. (ID): New variable.
  14969. (getId): Made non-const.
  14970. * src/BtHandshakeMessage.h
  14971. (ID): New variable.
  14972. (getId): Made non-const.
  14973. * src/BtSuggestPieceMessage.h
  14974. (ID_t): Removed.
  14975. (ID): New variable.
  14976. (getId): Made non-const.
  14977. * src/BtPortMessage.h
  14978. (ID_t): Removed.
  14979. (ID): New variable.
  14980. (getId): Made non-const.
  14981. * src/AbstractBtMessage.h
  14982. (id): Removed.
  14983. (AbstractBtMessage): Removed id.
  14984. (getId): Removed.
  14985. * src/BtHaveMessage.h
  14986. (ID_t): Removed.
  14987. (ID): New variable.
  14988. (getId): Made non-const.
  14989. * src/BtAllowedFastMessage.h
  14990. (ID_t): Removed.
  14991. (ID): New variable.
  14992. (getId): Made non-const.
  14993. * src/BtCancelMessage.h
  14994. (ID_t): Removed.
  14995. (ID): New variable.
  14996. (getId): Made non-const.
  14997. * src/BtNotInterestedMessage.h
  14998. (ID_t): Removed.
  14999. (ID): New variable.
  15000. (getId): Made non-const.
  15001. * src/BtChokeMessage.h
  15002. (ID_t): Removed.
  15003. (ID): New variable.
  15004. (getId): Made non-const.
  15005. * src/BtRejectMessage.h
  15006. (ID_t): Removed.
  15007. (ID): New variable.
  15008. (getId): Made non-const.
  15009. * src/BtBitfieldMessage.h
  15010. (ID_t): Removed.
  15011. (ID): New variable.
  15012. (getId): Made non-const.
  15013. * src/BtUnchokeMessage.h
  15014. (ID_t): Removed.
  15015. (ID): New variable.
  15016. (getId): Made non-const.
  15017. * src/BtRequestMessage.h
  15018. (ID_t): Removed.
  15019. (ID): New variable.
  15020. (getId): Made non-const.
  15021. * src/BtHaveMessage.h
  15022. (ID_t): Removed.
  15023. (ID): New variable.
  15024. (getId): Made non-const.
  15025. To add --force-truncate command-line option and a check whether
  15026. the file already exists:
  15027. * src/DirectDiskAdaptor.h
  15028. (getFilePath): Made virtual public.
  15029. * src/MultiDiskAdaptor.h
  15030. (File.h): New include.
  15031. (DiskWriterEntry::fileEntry): Made private.
  15032. (DiskWriterEntry::fileExists): New function.
  15033. (DiskWriterEntry::getFileEntry): New function.
  15034. (fileExists): New function.
  15035. (getFilePath): New function.
  15036. * src/TorrentRequestInfo.cc
  15037. (FatalException.h): New include.
  15038. (message.h): New include.
  15039. (RecoverableException.h): New include.
  15040. (execute): Added a check whether file is already exists or not.
  15041. * src/DiskAdaptor.h
  15042. (fileExists): New function.
  15043. (getFilePath): New function.
  15044. * src/main.cc
  15045. (showUsage): Added an explanation of --force-truncate command-line
  15046. option.
  15047. (main): Added --force-truncate command-line option.
  15048. * src/Exception.h
  15049. (setMsg): buf[256] -> buf[1024]
  15050. * src/CopyDiskWriter.h
  15051. (getFilePath): Made public virtual.
  15052. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15053. (fileExists): New function.
  15054. * src/DownloadEngineFactory.cc
  15055. (newTorrentConsoleEngine): Don't open file here.
  15056. * src/message.h
  15057. (EX_FILE_ALREADY_EXISTS): New definition.
  15058. * src/prefs.h
  15059. (PREF_FOECE_TRUNCATE): New definition.
  15060. * src/HttpResponseCommand.cc
  15061. (handleDefaultEncoding): Added a check whether the file already exists.
  15062. * src/SegmentMan.h
  15063. (fileExists): New function.
  15064. (shouldCancelDownloadForSafety): New function.
  15065. * src/FtpNegotiateCommand.cc
  15066. (recvSize): Added a check whether the file already exists.
  15067. * src/AbstractSingleDiskAdaptor.cc
  15068. (File.h): New include.
  15069. (fileExists): New function.
  15070. * src/AbstractSingleDiskAdaptor.h
  15071. (getFilePath): Removed.
  15072. (fileExists): New function.
  15073. * src/SegmentMan.cc
  15074. (fileExists): New function.
  15075. (shouldCancelDownloadForSafety): New function.
  15076. To fix regression bug in torrent downloading:
  15077. * src/DefaultBtRequestFactory.cc
  15078. (doChokedAction): New function.
  15079. * src/DefaultBtRequestFactory.h
  15080. (doChokedAction): New function.
  15081. * src/DefaultBtMessageDispatcher.cc
  15082. (doChokedAction): Do not delete request if its target is in allowed
  15083. fast set.
  15084. * src/DefaultBtInteractive.cc
  15085. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15086. (sendKeepAlive): Send keep alive message even if the outgoing message
  15087. queue is not empty.
  15088. (decideInterest): Simplified the code.
  15089. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15090. it is already called when BtChokeMessage is received from a peer.
  15091. * src/BtRequestFactory.h
  15092. (doChokedAction): New function.
  15093. To clean up code:
  15094. * src/PeerInteractionCommand.h
  15095. (executeInternal): Added virtual keyword explicitly.
  15096. (prepareForRetry): Added virtual keyword explicitly.
  15097. (prepareForNextPeer): Added virtual keyword explicitly.
  15098. (onAbort): Added virtual keyword explicitly.
  15099. * src/RequestSlot.cc
  15100. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15101. * src/BtPieceMessage.cc
  15102. (doReceivedAction): Added a debug log of piece's bitfield.
  15103. * src/Piece.h
  15104. (getBitfieldLength): New function.
  15105. * src/ByteArrayDiskWriter.cc
  15106. (clear): Added buf = 0 to avoid double free corruption.
  15107. * src/FileAllocator.cc
  15108. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15109. Added cp.reset().
  15110. * src/BitfieldMan.h
  15111. (operator=): Rewritten.
  15112. * src/BitfieldMan.cc
  15113. (BitfieldMan): Initialized bitfield, useBitfield.
  15114. * src/PeerConnection.cc
  15115. (receiveMessage): Added a call to socket->readable() after getting
  15116. message length to avoid possible EOF.
  15117. * src/Util.cc
  15118. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15119. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15120. To add an ability to pre-allocate file space:
  15121. * src/DirectDiskAdaptor.h: Rewritten.
  15122. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15123. * src/MultiDiskAdaptor.h: Rewritten.
  15124. * src/DefaultPieceStorage.cc
  15125. (MultiDiskWriter.h): Removed include.
  15126. (PreAllocationDiskWriter.h): Removed include.
  15127. (FileAllocationMonitor.h): New include.
  15128. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15129. (initStorage): Rewritten.
  15130. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15131. * src/FileAllocator.h: New class.
  15132. * src/FileAllocator.cc: New class.
  15133. * src/FileAllocationMonitor.h: New class.
  15134. * src/FileAllocationMonitor.cc: New class.
  15135. * src/ConsoleFileAllocationMonitor.h: New class.
  15136. * src/ConsoleFileAllocationMonitor.cc: New class.
  15137. * src/AbstractSingleDiskAdaptor.h: New class.
  15138. * src/AbstractSingleDiskAdaptor.cc: New class.
  15139. * src/DiskAdaptor.h
  15140. (Directory.h): Removed include.
  15141. (DiskWriter.h): Removed include.
  15142. (FileEntry.h): Removed include.
  15143. (diskWriter): Removed.
  15144. (DiskAdaptor): Removed diskWriter.
  15145. (openFile): Made pure virtual.
  15146. (closeFile): Made pure virtual.
  15147. (openExistingFile): Made pure virtual.
  15148. (initAndOpenFile): Made pure virtual.
  15149. (writeData): Made pure virtual.
  15150. (readData): Made pure virtual.
  15151. (sha1Sum): Made pure virtual.
  15152. (getStoreDir): Returns const reference of storeDir.
  15153. (DiskAdaptorHandle): New type definition.
  15154. * src/main.cc
  15155. (ConsoleFileAllocationMonitor.h): New include.
  15156. (showUsage): Added default value description of -s option.
  15157. Added the description of --file-allocation option.
  15158. (main): Set default value of --file-allocation option to 'none'.
  15159. Added --file-allocation command-line option.
  15160. Setup FileAllocationMonitorFactory.
  15161. * src/FtpInitiateConnectionCommand.cc
  15162. (executeInternal): Removed diskWriter related processing, which was
  15163. moved to FtpNegotiationCommand.cc.
  15164. * src/DirectDiskAdaptor.cc
  15165. (getFilePath): Made non-const.
  15166. * src/CopyDiskAdaptor.h
  15167. (DiskAdaptor.h): Removed include.
  15168. (DiskWriter.h): Removed include.
  15169. (AbstractSingleDiskAdaptor.h): New include.
  15170. (getFilePath): Made non-const. Added virtual keyword.
  15171. (CopyDiskAdaptor): Removed diskWriter.
  15172. (getTempFile): Returns const reference.
  15173. (CopyDiskAdaptorHandle): New type definition.
  15174. * src/ByteArrayDiskWriter.cc
  15175. (clear): Simplified.
  15176. (initAndOpenFile): Rewritten.
  15177. (openFile): Call initAndOpenFile()
  15178. * src/MultiDiskAdaptor.cc: Rewritten.
  15179. * src/DownloadEngineFactory.cc
  15180. (FileAllocator.h): New include.
  15181. (FileAllocationMonitor.h): New include.
  15182. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15183. create DefaultDiskWriter with file allocator.
  15184. * src/DiskWriter.h
  15185. (initAndOpenFile): Added totalLength argument.
  15186. (openFile): Added totalLength argument.
  15187. * src/prefs.h
  15188. (PREF_FILE_ALLOCATION): New definition.
  15189. (V_PREALLOC): New definition.
  15190. (V_NONE): New definition.
  15191. * src/HttpResponseCommand.cc
  15192. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15193. size.
  15194. * src/FtpNegotiateCommand.cc
  15195. (Util.h): New include.
  15196. (recvSize): Open file here.
  15197. * src/Util.h
  15198. (ullitos): New function.
  15199. * src/CopyDiskWriter.h
  15200. (getFilePath): Made non-const.
  15201. * src/DefaultDiskWriter.h
  15202. (Option.h): New include.
  15203. (totalLength): Removed.
  15204. (DefaultDiskWriter): Removed totalLength.
  15205. (initAndOpenFile): Added totalLength argument.
  15206. (DefaultDiskWriterHandle): New type definition.
  15207. (createNewDiskWriter): New function.
  15208. * src/Util.cc
  15209. (ullitos): New function.
  15210. * src/DefaultDiskWriter.cc
  15211. (message.h): New include.
  15212. (FileAllocator.h): New include.
  15213. (prefs.h): New include.
  15214. (Util.h): New include.
  15215. (DefaultDiskWriter): Removed totalLength.
  15216. (initAndOpenFile): Added file allocation.
  15217. (createNewDiskWriter): New function. Just for temporary solution.
  15218. It will be rewritten later.
  15219. * src/DiskAdaptor.cc
  15220. (DiskAdaptor): Removed diskWriter.
  15221. * src/AbstractDiskWriter.cc
  15222. (LogFactory.h): New include.
  15223. (AbstractDiskWriter): Added fileAllocator, logger.
  15224. (openFile): Added totalLength argument.
  15225. * src/AbstractDiskWriter.h
  15226. (FileAllocator.h): New include.
  15227. (Logger.h): New include.
  15228. (fileAllocator): New variable.
  15229. (logger): New variable.
  15230. (openFile): Added totalLength argument. Added virtual keyword
  15231. explicitly.
  15232. (openExistingFile): Added totalLength argument. Added virtual keyword
  15233. explicitly.
  15234. (closeFile): Added virtual keyword explicitly.
  15235. (sha1Sum): Added virtual keyword explicitly.
  15236. (writeData): Added virtual keyword explicitly.
  15237. (readData): Added virtual keyword explicitly.
  15238. (setFileAllocator): New function.
  15239. * src/DefaultPieceStorage.h
  15240. (FileAllocator.h): New include.
  15241. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15242. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15243. * src/FileProgressMonitor.h: New class.
  15244. To compile aria2 on PC-BSD:
  15245. * src/DefaultBtContext.cc
  15246. (libgen.h): New include.
  15247. To fix memory leak:
  15248. * src/Exception.h
  15249. (~Exception): Delete cause. Fixed memory leak.
  15250. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15251. Rewritten a portion of bittorrent implementation:
  15252. * src/BtMessageValidator.h: New class.
  15253. * src/BtBitfieldMessageValidator.h: New class.
  15254. * src/BtHandshakeMessageValidator.h: New class.
  15255. * src/BtRequestMessageValidator.h: New class.
  15256. * src/BtSuggestPieceMessageValidator.h: New class.
  15257. * src/BtAllowedFastMessageValidator.h: New class.
  15258. * src/BtRejectMessageValidator.h: New class.
  15259. * src/BtCancelMessageValidator.h: New class.
  15260. * src/BtPieceMessageValidator.h: New class.
  15261. * src/BtHaveMessageValidator.h: New class.
  15262. * src/BtEventListener.h: New class.
  15263. * src/AbstractBtEventListener.h: New class.
  15264. * src/BtEvent.h: New class.
  15265. * src/BtChokingEvent.h: New class.
  15266. * src/BtChokedEvent.h: New class.
  15267. * src/BtCancelSendingPieceEvent.h: New class.
  15268. * src/BtAbortOutstandingRequestEvent.h: New class.
  15269. * src/Randomizer.h: New class.
  15270. * src/SimpleRandomizer.h: New class.
  15271. * src/BtMessage.h: New class.
  15272. * src/AbstractBtMessage.h: New class.
  15273. * src/SimpleBtMessage.h: New class.
  15274. * src/BtHaveMessage.h: New class.
  15275. * src/BtInterestedMessage.h: New class.
  15276. * src/BtAllowedFastMessage.h: New class.
  15277. * src/BtUnchokeMessage.h: New class.
  15278. * src/BtCancelMessage.h: New class.
  15279. * src/BtNotInterestedMessage.h: New class.
  15280. * src/BtChokeMessage.h: New class.
  15281. * src/BtHaveNoneMessage.h: New class.
  15282. * src/BtHandshakeMessage.h: New class.
  15283. * src/BtSuggestPieceMessage.h: New class.
  15284. * src/BtHaveMessage.h: New class.
  15285. * src/BtPieceMessage.h: New class.
  15286. * src/BtHaveAllMessage.h: New class.
  15287. * src/BtKeepAliveMessage.h: New class.
  15288. * src/BtPortMessage.h: New class.
  15289. * src/BtRejectMessage.h: New class.
  15290. * src/BtBitfieldMessage.h: New class.
  15291. * src/BtRequestMessage.h: New class.
  15292. * src/DefaultBtRequestFactory.h: New class.
  15293. * src/DefaultBtMessageReceiver.h: New class.
  15294. * src/BtInteractive.h: New class.
  15295. * src/BtMessageDispatcher.h: New class.
  15296. * src/DefaultBtMessageDispatcher.h: New class.
  15297. * src/DefaultBtInteractive.h: New class.
  15298. * src/BitfieldManFactory.h: New class.
  15299. * src/HandleRegistry.h: New class.
  15300. * src/BtMessageFactory.h: New class.
  15301. * src/BtMessageReceiver.h: New class.
  15302. * src/DefaultBtMessageFactory.h: New class.
  15303. * src/PeerObject.h: New class.
  15304. * src/BtRequestFactory.h: New class.
  15305. * src/SuggestPieceMessage.h: Removed.
  15306. * src/PortMessage.h: Removed.
  15307. * src/SuggestPieceMessage.h: Removed.
  15308. * src/KeepAliveMessage.h: Removed.
  15309. * src/HandshakeMessage.h: Removed.
  15310. * src/PeerInteraction.h: Removed.
  15311. * src/UnchokeMessage.h: Removed.
  15312. * src/PieceMessage.h: Removed.
  15313. * src/RequestMessage.h: Removed.
  15314. * src/InterestedMessage.h: Removed.
  15315. * src/HaveMessage.h: Removed.
  15316. * src/CancelMessage.h: Removed.
  15317. * src/RejectMessage.h: Removed.
  15318. * src/AllowedFastMessage.h: Removed.
  15319. * src/HaveNoneMessage.h: Removed.
  15320. * src/SimplePeerMessage.h: Removed.
  15321. * src/HaveAllMessage.h: Removed.
  15322. * src/BitfieldMessage.h: Removed.
  15323. * src/PeerMessageFactory.h: Removed.
  15324. * src/NotInterestedMessage.h: Removed.
  15325. * src/ChokeMessage.h: Removed.
  15326. * src/PeerMessage.h: Removed.
  15327. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15328. To know root cause of exception:
  15329. * src/Exception.h
  15330. (cause): New variable.
  15331. (Exception): Added a parameter.
  15332. (getMsg): Return const reference to msg.
  15333. (getCause): New function.
  15334. * src/DlRetryEx.h
  15335. (DlRetryEx): Added a parameter 'cause'.
  15336. Added an overloaded constructor.
  15337. (DlAbortEx): Added a parameter 'cause'.
  15338. Added an overloaded constructor.
  15339. * src/SimpleLogger.cc
  15340. (writeLog): Log nested exception messages recursively.
  15341. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15342. * src/DefaultBtProgressInfoFile.cc
  15343. (load): Fixed memory leak when the infohash doesn't match.
  15344. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15345. * src/DefaultPeerStorage.cc
  15346. (calculateStat): Simplified the code by combining 2 loops into 1.
  15347. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15348. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15349. for BitTorrent download:
  15350. * src/PeerAbstractCommand.cc
  15351. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15352. * src/main.cc:
  15353. (timeoutSpecified): Removed.
  15354. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15355. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15356. * src/TorrentRequestInfo.cc
  15357. (timeoutSpecified): Removed.
  15358. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15359. timeout value.
  15360. * src/prefs.h
  15361. (PREF_BT_TIMEOUT): New definition.
  15362. Delete unused variables:
  15363. * src/TorrentRequestInfo.cc
  15364. (requestInfo): Removed.
  15365. Move setSignalHander to Util::setGlobalSignalHandler:
  15366. * src/TorrentRequestInfo.cc:
  15367. setSignalHander -> Util::setGlobalSignalHandler
  15368. * src/main.cc
  15369. (setSignalHander): Removed.
  15370. (main): setSignalHander -> Util::setGlobalSignalHandler
  15371. * src/Util.h
  15372. (setGlobalSignalHandler): New function.
  15373. * src/Util.cc
  15374. (setGlobalSignalHandler): New function.
  15375. * src/UrlRequestInfo.cc:
  15376. setSignalHander -> Util::setGlobalSignalHandler
  15377. Reset peer status in order to exit gracefully:
  15378. * src/PeerAbstractCommand.cc
  15379. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15380. To fix the bug that causes the number of bytes uploaded is not saved
  15381. to .aria2 file:
  15382. * src/DefaultPeerStorage.h
  15383. (removedPeerSessionDownloadLength): New variable.
  15384. (removedPeerSessionUploadLength): New variable.
  15385. * src/DefaultPeerStorage.cc
  15386. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15387. removedPeerSessionUploadLength(0).
  15388. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15389. through all peers, and then add removedPeerSessionDownloadLength(
  15390. removedPeerSessionUploadLength) to it.
  15391. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15392. (to) the peer to removedPeerSessionDownloadLength
  15393. (removedPeerSessionUploadLength).
  15394. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15395. To add Metalink location option:
  15396. * src/MetalinkRequestInfo.cc
  15397. (execute): Call MetalinkEntry::setLocationPreference()
  15398. * src/main.cc
  15399. (showUsage): Added the help message for --metalink-location option.
  15400. (main): Added --metalink-location option.
  15401. * src/prefs.h
  15402. (PREF_METALINK_LOCATION): New definition.
  15403. * src/MetalinkEntry.cc
  15404. (AddLocationPreference): New function object.
  15405. (setLocationPreference): New function.
  15406. * src/Xml2MetalinkProcessor.cc
  15407. (getResource): Set location attribute to MetalinkResource
  15408. To show URLs to download
  15409. * src/UrlRequestInfo.h
  15410. (printUrls): New function.
  15411. To add multiple <file> Metalink support:
  15412. * src/MetalinkEntry.h
  15413. (MetalinkResources): Removed.
  15414. (setLocationPreference): New function.
  15415. (MetalinkEntryHandle): New type definition.
  15416. (MetalinkEntries): New type definition.
  15417. * src/Xml2MetalinkProcessor.h
  15418. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15419. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15420. (parseFile): Metalinker* -> MetalinkerHandle
  15421. * src/UrlRequestInfo.h
  15422. (execute): RequestInfo* -> RequestInfos
  15423. * src/MetalinkRequestInfo.cc
  15424. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15425. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15426. (execute): RequestInfo* -> RequestInfos
  15427. Added multiple <file> support. Print filename when it is queued.
  15428. * src/MetalinkRequestInfo.h
  15429. (execute): RequestInfo* -> RequestInfos
  15430. (getDownloadEngine): Removed.
  15431. * src/RequestInfo.h
  15432. (RequestInfoHandle): New type definition.
  15433. (RequestInfos): New type definition.
  15434. (execute): RequestInfo* -> RequestInfos
  15435. (getDownloadEngine): Removed.
  15436. * src/MetalinkResource.h
  15437. (MetalinkResourceHandle): New type definition.
  15438. (MetalinkResources): New type definition.
  15439. * src/MetalinkEntry.cc
  15440. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15441. because the element is now of type MetalinkResourceHandle.
  15442. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15443. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15444. (dropUnsupportedResource): Removed the deletion of the elements of
  15445. resources because the element is now of type MetalinkResourceHandle.
  15446. * src/Xml2MetalinkProcessor.cc
  15447. (parseFile): Metalinker* -> MetalinkerHandle
  15448. MetalinkEntry* -> MetalinkEntryHandle
  15449. Removed try-catch block.
  15450. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15451. MetalinkResource* -> MetalinkResourceHandle
  15452. Removed try-catch block.
  15453. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15454. Free result by using xmlXPathFreeObject()
  15455. * src/Metalinker.cc
  15456. (~Metalinker): Removed the deletion of entries.
  15457. MetalinkEntry* -> MetalinkEntryHandle
  15458. (queryEntry): Add multiple <file> Metalink support.
  15459. * src/Metalinker.h
  15460. (MetalinkEntries): Removed.
  15461. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15462. * src/MetalinkProcessor.h
  15463. (parseFile): Metalinker* -> MetalinkerHandle
  15464. Bug fixes:
  15465. * src/PeerChokeCommand.cc
  15466. (execute): cat01->cat02
  15467. * src/DefaultPieceStorage.cc
  15468. (DefaultPieceStorage): Added diskAdaptor(0)
  15469. * src/TrackerWatcherComand.cc:
  15470. (execute): Use btAnnounce->noMoreAnnounce()
  15471. to determin whether the function returns true or not.
  15472. * src/TrackerUpdateCommand.cc:
  15473. (execute): Use btAnnounce->noMoreAnnounce()
  15474. to determin whether the function returns true or not.
  15475. * src/FtpConnection.cc
  15476. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15477. This is the fix of the busy loop bug.
  15478. * src/DownloadCommand.cc
  15479. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15480. cached PeerStat.
  15481. The value of "name" entry in torrent file is now set by
  15482. *DiskAdaptor::setTopDir(...) methods.
  15483. * src/MultiDiskAdaptor.h
  15484. (topDir): New variable.
  15485. (setTopDir): New function.
  15486. (getTopDir): New function.
  15487. * src/MultiDiskAdaptor.cc
  15488. (getFilePath): Concat storDir, "/" and topDir.
  15489. (mkdir): Use getFilePath() to get the directory path for output.
  15490. * src/DefaultPieceStorage.cc
  15491. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15492. CopyDiskAdaptor.
  15493. * src/CopyDiskAdaptor.h
  15494. (topDir): New variable.
  15495. (setTopDir): New function.
  15496. (getTopDir): New function.
  15497. * src/CopyDiskAdaptor.cc
  15498. (fixFilename): Updated.
  15499. Misc
  15500. * src/UrlRequestInfo.h
  15501. (e): Removed.
  15502. (UrlRequestInfo): Removed e.
  15503. (getDownloadEngine): Removed.
  15504. * src/UrlRequestInfo.cc
  15505. (handler): Rewritten.
  15506. (printUrls): New function.
  15507. (execute): Call printUrls().
  15508. * src/HandshakeMessage.cc
  15509. (check): peerinteraction->getBtContext() -> btContext
  15510. * src/PeerInteraction.h
  15511. (getBtContext): Removed.
  15512. * src/TorrentRequestInfo.h
  15513. (execute): RequestInfo* -> RequestInfos
  15514. (getDownloadEngine): Removed.
  15515. * src/TorrentRequestInfo.cc
  15516. (haltRequested): Removed.
  15517. (btHaltRequested): New variable.
  15518. (torrentHandler): haltRequested -> btHaltRequested
  15519. (execute): RequestInfo* -> RequestInfos
  15520. * src/TorrentConsoleDownloadEngine.cc
  15521. (afterEachIteration): haltRequested -> btHaltRequested.
  15522. * src/ConsoleDownloadEngine.h
  15523. (initStatistics): Added virtual.
  15524. (calculateStatistics): Added virtual.
  15525. (onEndOfRun): Added virtual.
  15526. (afterEachIteration): Added virtual.
  15527. * src/ConsoleDownloadEngine.cc
  15528. (haltRequested): New variable.
  15529. (afterEachIteration): New function.
  15530. * src/main.cc
  15531. (requestInfo): Removed.
  15532. * src/SegmentMan.cc
  15533. (findSlowerSegmentEntry): Refactored.
  15534. * Release 0.9.0
  15535. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15536. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15537. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15538. * src/TorrentMan.h: Removed.
  15539. * src/TorrentMan.cc: Removed.
  15540. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15541. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15542. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15543. * src/PeerAbstractCommand.cc: Use btRuntime.
  15544. * src/BtContextAwareCommand.h: New class.
  15545. * src/FileEntry.h: Added accessor methods for following variables.
  15546. (path): Made private.
  15547. (length): Made private.
  15548. (offset): Made private.
  15549. (extracted): Made private.
  15550. (requested): Made private.
  15551. (FileEntries): New definition.
  15552. (FileEntryHandle): New definition.
  15553. * src/FileEntry.cc: New file.
  15554. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15555. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15556. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15557. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15558. * src/PieceStorage.h: New file.
  15559. * src/PeerInteractionCommand.h: Use btContext.
  15560. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15561. btRuntime.
  15562. * src/DefaultBtProgressInfoFile.h: New file.
  15563. * src/DefaultBtProgressInfoFile.cc: New file.
  15564. * src/File.cc
  15565. (Util.h): New include.
  15566. (mkdirs): New function.
  15567. * src/MultiDiskAdaptor.h
  15568. (mkdir): New function.
  15569. * src/PeerListProcessor.h
  15570. (Peers): Removed.
  15571. * src/PeerInteraction.h
  15572. (torrentMan): Removed.
  15573. (btContext): New variable.
  15574. (peerStorage): New variable.
  15575. (pieceStorage): New variable.
  15576. (btAnnounce): New variable.
  15577. (getTorrentMan): Removed.
  15578. (getBtContext): New function.
  15579. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15580. btAnnounce.
  15581. * src/HandshakeMessage.h
  15582. (TorrentMan.h): Removed.
  15583. * src/HandshakeMessage.cc: Use btContext.
  15584. * src/DefaultBtAnnounce.cc: New file.
  15585. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15586. * src/DefaultPieceStorage.cc: New file.
  15587. * src/DefaultBtContext.h: New file.
  15588. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15589. Use the accessor methods of FileEntry.
  15590. * src/CookieBox.cc: Updated to use Util::slice().
  15591. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15592. * src/common.h (SharedHandle.h): New include.
  15593. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15594. pieceStorage.
  15595. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15596. * src/DiskAdaptor.h
  15597. (topDir): Removed.
  15598. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15599. (setTopDir): Removed.
  15600. (getTopDir): Removed.
  15601. * src/BtContext.h: New file.
  15602. * src/DefaultPeerStorage.h: New file.
  15603. * src/PieceMessage.h (TorrentMan.h): Removed.
  15604. * src/RequestMessage.h (TorrentMan.h): Removed.
  15605. * src/TorrentDownloadEngine.h
  15606. (uploadLength): New variable.
  15607. (btContext): New variable.
  15608. (btRuntime): New variable.
  15609. (pieceStorage): New variable.
  15610. (peerStorage): New variable.
  15611. (btAnnounce): New variable.
  15612. (btProgressInfoFile): New variable.
  15613. (torrentMan): Removed.
  15614. (setBtContext): New function.
  15615. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15616. peerStorage, btAnnounce, btProgressInfoFile.
  15617. * src/Piece.h
  15618. (toString): New function.
  15619. (Pieces): New type definition.
  15620. * src/Peer.h
  15621. (active): New variable.
  15622. (Peer): Added active.
  15623. (activate): Set active to true.
  15624. (deactivate): Set active to false.
  15625. (isActive): New function.
  15626. (Peers): New type definition.
  15627. * src/DirectDiskAdaptor.cc
  15628. (getFilePath): Use the accessor methods of FileEntry.
  15629. * src/TorrentConsoleDownloadEngine.h
  15630. (afterEachIteration): New function.
  15631. * src/TorrentConsoleDownloadEngine.cc
  15632. (haltRequested): New variable.
  15633. (sendStatistics): Use pieceStorage, btRuntime.
  15634. (afterEachIteration): New function.
  15635. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15636. * src/Directry.h
  15637. (Directory): New function.
  15638. (DirectoryHandle): New type definition.
  15639. * src/BtProgressInfoFile.h: New file.
  15640. * src/RequestMessage.cc: Use pieceStorage.
  15641. * src/BtRuntime.h: New file.
  15642. * src/DefaultBtContext.cc: New file.
  15643. * src/BitfieldMan.h
  15644. (getCompletedLength): New function(private).
  15645. (getCompletedLength): New function.
  15646. (getFilteredCompletedLength): New function.
  15647. * src/BitfieldMan.h
  15648. (getCompletedLength): New function(private).
  15649. (getCompletedLength): New function.
  15650. (getFilteredCompletedLength): New function.
  15651. * src/MultiDiskAdaptor.cc
  15652. (mkdir): New function.
  15653. (openFile): Call mkdir().
  15654. (initAndOpenFile): Call mkdir().
  15655. * src/CancelMessage.h
  15656. (TorrentMan.h): Removed.
  15657. * src/RejectMessage.h
  15658. (TorrentMan.h): Removed.
  15659. * src/DownloadEngineFactory.cc
  15660. (DefaultPieceStorage.h): New include.
  15661. (DefaultPeerStorage.h): New include.
  15662. (DefaultBtAnnounce.h): New include.
  15663. (DefaultBtProgressInfoFile.h): New include.
  15664. (newTorrentConsoleEngine): Rewritten.
  15665. * src/ShareRatioSeedCriteria.h
  15666. (torrentMan): Removed.
  15667. (btContext): New variable.
  15668. (peerStorage): New variable.
  15669. (btRuntime): New variable.
  15670. (evaluate): Use btContext, btRuntime, peerStorage.
  15671. * src/AnnounceTier.h: New file.
  15672. * src/BtAnnounce.h: New file.
  15673. * src/BtRegistry.h: New file.
  15674. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15675. * src/PeerConnection.h (TorrentMan.h): Removed.
  15676. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15677. * src/Util.h
  15678. (slice): Added an argument.
  15679. * src/Util.cc
  15680. (slice): Added an argument to control whether trim is made or not.
  15681. * src/PeerStorage.h: New file.
  15682. * src/BtRegistry.cc: New file.
  15683. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15684. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15685. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15686. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15687. * src/TorrentRequestInfo.h
  15688. (e): Removed.
  15689. (showFileEntry): Added an argument.
  15690. (getDownloadEngine): Return 0.
  15691. * src/DefaultBtAnnounce.h: New file.
  15692. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15693. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15694. * src/PeerMessageFactory.h
  15695. (btContext): New variable.
  15696. (pieceStorage): New variable.
  15697. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15698. btAnnounce.
  15699. * src/DiskAdaptor.cc
  15700. (DiskAdaptor): Removed topDir.
  15701. (~DiskAdaptor): Removed topDir.
  15702. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15703. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15704. * src/File.h (mkdirs): New function.
  15705. * src/DefaultPeerStorage): New file.
  15706. * src/DownloadEngineFactory.h
  15707. (newTorrentConsoleEngine): Use btContext.
  15708. * src/BtContextAwareCommand.cc: New file.
  15709. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15710. * src/PeerMessage.h
  15711. (btContext): New variable.
  15712. (peerStorage): New variable.
  15713. (pieceStorage): New variable.
  15714. (setBtContext): New function.
  15715. * src/Directry.cc
  15716. (Directory): New function.
  15717. (createDir): Do nothing if name.size() == 0.
  15718. * src/AnnounceList.h
  15719. (AnnounceTier): Removed.
  15720. (AnnounceTiers): Removed.
  15721. * src/DefaultPieceStorage.h: New file.
  15722. * src/Piece.cc (toString): New function.
  15723. To fix typo:
  15724. * src/main.cc (showVersion): Fixed typo.
  15725. To fix compile warning:
  15726. * src/DelegatingPeerListProcessor.cc
  15727. (canHandle): Added "return false".
  15728. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15729. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15730. make the process of announce request testable.
  15731. * src/TrackerWatcherCommand.h
  15732. (TimeA2.h): Removed.
  15733. (interval): Removed.
  15734. (checkPoint): Removed.
  15735. (createRequestCommand): Added an argument 'url'.
  15736. (TrackerWatherCommand): Removed interval.
  15737. (createCommand): New function.
  15738. * src/DownloadEngineFactory.cc
  15739. (newTorrentConsoleEngine): Updated according to the changes in
  15740. TrackerWatherCommand.
  15741. * src/TorrentMan.cc
  15742. (DelegatingPeerListProcessor.h): New includes.
  15743. (TorrentMan): Added the initialization of announceInterval.
  15744. (isStoppedAnnounceReady): New function.
  15745. (isCompletedAnnounceReady): New function.
  15746. (isDefaultAnnounceReady): New function.
  15747. (isAnnounceReady): New function.
  15748. (getAnnounceUrl): New function.
  15749. (announceStart): New function.
  15750. (announceFailure): New function.
  15751. (announceSuccess): New function.
  15752. (isAllAnnounceFailed): New function.
  15753. (resetAnnounce): New function.
  15754. (processAnnounceResponse): New function.
  15755. (needMorePeerConnection): New function.
  15756. (noMoreAnnounce): New function.
  15757. * src/TrackerUpdateCommand.h
  15758. (getTrackerResponse): int->size_t
  15759. * src/TorrentMan.h
  15760. (isStoppedAnnounceReady): New function.
  15761. (isCompletedAnnounceReady): New function.
  15762. (isDefaultAnnounceReady): New function.
  15763. (announceInterval): New variable.
  15764. (isAnnounceReady): New function.
  15765. (getAnnounceUrl): New function.
  15766. (announceStart): New function.
  15767. (announceFailure): New function.
  15768. (announceSuccess): New function.
  15769. (isAllAnnounceFailed): New function.
  15770. (resetAnnounce): New function.
  15771. (processAnnounceResponse): New function.
  15772. (needMorePeerConnection): New function.
  15773. (noMoreAnnounce): New function.
  15774. * src/TrackerWatcherCommand.cc
  15775. (TrackerWatherCommand): Removed interval and checkPoint.
  15776. (execute): Rewritten.
  15777. (createCommand): New function.
  15778. (createRequestCommand): Rewritten.
  15779. * src/TrackerUpdateCommand.cc
  15780. (MetaFileUtil.h): Removed.
  15781. (DelegatingPeerListProcessor.h): Removed.
  15782. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15783. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15784. Request -> RequestHandle:
  15785. * src/HttpResponseCommand.h: Request->RequestHandle
  15786. * src/AbstractCommand.cc: Request->RequestHandle
  15787. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15788. * src/HttpRequestCommand.cc: Request->RequestHandle
  15789. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15790. * src/AbstractCommand.h: Request->RequestHandle
  15791. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15792. * src/HttpResponseCommand.cc: Request->RequestHandle
  15793. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15794. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15795. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15796. * src/HttpConnection.h: Request->RequestHandle
  15797. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15798. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15799. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15800. * src/DownloadCommand.h: Request->RequestHandle
  15801. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15802. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15803. * src/HttpRequestCommand.h: Request->RequestHandle
  15804. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15805. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15806. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15807. * src/HttpDownloadCommand.h: Request->RequestHandle
  15808. * src/FtpConnection.cc: Request->RequestHandle
  15809. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15810. * src/UrlRequestInfo.cc: Request->RequestHandle
  15811. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15812. * src/HttpConnection.h: Request->RequestHandle
  15813. * src/DownloadCommand.cc: Request->RequestHandle
  15814. * src/FtpConnection.h: Request->RequestHandle
  15815. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15816. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15817. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15818. * src/Request.h
  15819. (SharedHandle.h): New include.
  15820. (RequestHandle): New type definition.
  15821. (Requests): Redefined.
  15822. To add MULTITRACKER support:
  15823. * src/TrackerWatcherCommand.h
  15824. (createRequestCommand): New function.
  15825. * src/DownloadEngineFactory.cc
  15826. (newTorrentConsoleEngine): Removed req.
  15827. * src/prefs.h
  15828. (PREF_TRACKER_MAX_TRIES): New definition.
  15829. * src/TorrentMan.cc
  15830. (TorrentMan): Removed req. Added trackerNumTry.
  15831. (~TorrentMan): Removed req.
  15832. (setupInternal1): Added announceList.
  15833. * src/TorrentRequestInfo.cc
  15834. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15835. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15836. * src/main.cc
  15837. (main): Added PREF_TRACKER_MAX_TRIES.
  15838. * src/TorrentMan.h
  15839. (Request.h): Removed.
  15840. (AnnounceList.h): New include.
  15841. (trackerNumTry): New variable.
  15842. (req): Removed.
  15843. (announceList): New variable.
  15844. * src/TrackerWatcherCommand.cc
  15845. (execute): Rewritten.
  15846. (createRequestCommand): New function.
  15847. * src/TrackerUpdateCommand.cc
  15848. (execute): Updated with the use of AnnounceList.
  15849. * src/AnnounceList.cc: New class.
  15850. * src/AnnounceList.h: New class.
  15851. To fix typo:
  15852. * src/prefs.h
  15853. (PREF_MAX_TRIES): max_try->max_tries
  15854. To not to decode "+" as space in URL decode:
  15855. * src/Util.cc
  15856. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15857. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15858. To add timeout to async name resolution:
  15859. * src/AbstractCommand.h
  15860. (nameResolveFinished): New function. This is not elegant way. It needs
  15861. to be more refined.
  15862. (nameResolverCheck): New variable.
  15863. * src/AbstractCommand.cc
  15864. (AbstractCommand): Added nameResolverCheck.
  15865. (execute): Added the check whether the name resolution has finished.
  15866. (setNameResolverCheck): Set nameResolverCheck to true.
  15867. (disableNameResolverCheck): Set nameResolverCheck to false.
  15868. (nameResolverFinished): New function.
  15869. * src/FtpInitiateConnectionCommand.h
  15870. (nameResolverFinished): New function.
  15871. * src/FtpInitiateConnectionCommand.cc
  15872. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15873. * src/HttpInitiateConnectionCommand.h
  15874. (nameResolverFinished): New function.
  15875. * src/HttpInitiateConnectionCommand.cc
  15876. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15877. * src/prefs.h
  15878. (PREF_DNS_TIMEOUT): New definition.
  15879. * src/main.cc
  15880. (main): Added PREF_DNS_TIMEOUT.
  15881. To add the support for a non-compact response from a tracker:
  15882. * src/PeerListProcessor.h: New class.
  15883. * src/DefaultPeerListProcessor.h: New class.
  15884. * src/DefaultPeerListProcessor.cc: New class.
  15885. * src/CompactPeerListProcessor.h: New class.
  15886. * src/CompactPeerListProcessor.cc: New class.
  15887. * src/DelegatingPeerListProcessor.h: New class.
  15888. * src/DelegatingPeerListProcessor.cc: New class.
  15889. * src/TorrentMan.cc
  15890. (addPeer): New function(overload).
  15891. (addPeer): Delete unused peers only when new peer is added.
  15892. * src/TorrentMan.h
  15893. (PeerListProcessor.h): Included.
  15894. (Peers): Removed.
  15895. (addPeer): New function(overload).
  15896. * src/TrackerUpdateCommand.cc
  15897. (netinet/in.h): Removed.
  15898. (DelegatingPeerListProcessor.h): Included.
  15899. (execute): Updated to use DelegatingPeerListProcessor.
  15900. To fix the memory leak in TorrentMan::peers:
  15901. * src/PeerAbstractCommand.cc
  15902. (onAbort): Added peer->resetStatus().
  15903. * src/Peer.h
  15904. (resetStatus): Made public.
  15905. To improve the precision of the speed calculation:
  15906. * src/SpeedCalc.h
  15907. (nextInterval): New variable.
  15908. * src/SpeedCalc.cc
  15909. (reset): Added nextInterval.
  15910. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15911. (changeSw): Set nextInterval to 15 seconds relative to the current
  15912. instant time.
  15913. * src/main.cc
  15914. (showVersion): Updated.
  15915. (showUsage): Updated.
  15916. * Release 0.8.1
  15917. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15918. * src/main.cc
  15919. (showUsage): Commented out --min-segment-size option.
  15920. (main): Commented out --min-segment-size option.
  15921. * Release 0.8.0
  15922. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15923. * src/*.{h,cc}:
  15924. Added an exception to the license which allows linking with OpenSSL.
  15925. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15926. * src/AbstractCommand.cc
  15927. (execute): Check whether the download has finished before checking
  15928. socket status.
  15929. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15930. Do not exit even if no segment is available.
  15931. * src/prefs.h
  15932. (PREF_STARTUP_IDLE_TIME): New definition.
  15933. * src/PeerInteractionCommand.cc
  15934. (executeInternal): Removed max speed limit. Because it performs bad.
  15935. (receiveMessages): Added max speed limit. This was better than above,
  15936. but still a little bit to be desired. Sometimes the download speed
  15937. became much faster than I specified.
  15938. * src/SpeedCalc.h
  15939. (start): New variable.
  15940. (accumulatedLength): New variable.
  15941. (getAvgSpeed): New function.
  15942. * src/SpeedCalc.cc
  15943. (reset): Added start, accumulatedLength.
  15944. (update): Added calculation of an average speed.
  15945. (getAvgSpeed): New function.
  15946. * src/DownloadCommand.h
  15947. (sw): Removed.
  15948. * src/main.cc
  15949. (main): Added PREF_STARTUP_IDLE_TIME.
  15950. * src/PeerStat.h
  15951. (STATUS): Added REQUEST_IDLE.
  15952. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15953. (getAvgDownloadSpeed): New function
  15954. (requestIdle): New function.
  15955. * src/SegmentMan.h
  15956. (SegmentEntryHandle): New type definition.
  15957. (SegmentEntries): Now holds SegmentEntryHandle.
  15958. (findSlowerSegmentEntry): New funtion.
  15959. * src/SegmentMan.cc
  15960. (save): Updated according to the changes in SegmentEntries.
  15961. (read): Updated according to the changes in SegmentEntries.
  15962. (FindSegmentEntryByIndex): Updated according to the changes in
  15963. SegmentEntries.
  15964. (FindSegmentEntryByCuid): Updated according to the changes in
  15965. SegmentEntries.
  15966. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15967. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15968. Renamed uitr as itr.
  15969. (findSlowerSegmentEntry): New function.
  15970. (getSegment): Updated according to the changes in SegmentEntries.
  15971. Added the feature that cancels the segment with slow server and fast
  15972. one takes it over.
  15973. (cancelSegment): Updated according to the changes in SegmentEntries.
  15974. (getDownloadLength): Updated according to the changes in
  15975. SegmentEntries.
  15976. (init): Assigned 0 to bitfield after deleting it.
  15977. * src/DownloadCommand.cc
  15978. (STARTUP_IDLE_TIME): Removed.
  15979. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15980. * src/PeerChokeCommand.cc
  15981. (optUnchokingPeer): Updated according to the changes in Peer.
  15982. (ResetDelta): Removed.
  15983. (UploadFaster): Updated according to the changes in Peer.
  15984. (DownloadFaster): Updated according to the changes in Peer.
  15985. (execute): I clarify the meaning of "upload" and "download" here.
  15986. "upload" means the transfer from localhost to remote host.
  15987. "download" means the transfer from remote host to localhost.
  15988. Based on this rule, I swapped orderByUploadRate and
  15989. orderByDownloadRate.
  15990. * src/PeerInteractionCommand.cc
  15991. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15992. (executeInternal): Removed the argument of
  15993. peerInteraction->sendMessages().
  15994. (receiveMessages): Rewritten download speed limit.
  15995. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15996. * src/HttpResponseCommand.cc
  15997. (handleDefaultEncoding): If file size is unknown in torrent request,
  15998. do not call segmentMan->initBitfield() here.
  15999. Disabled persistent connection feature in torrent request.
  16000. * src/UrlRequestInfo.h
  16001. (UrlRequestInfo): Removed const qualifier from option.
  16002. * src/TorrentMan.h
  16003. (TransferStat): New class.
  16004. (deltaDownloadLength): Removed.
  16005. (deltaUploadLength): Removed.
  16006. (addDeltaDownloadLength): Removed.
  16007. (getDeltaDownloadLength): Removed.
  16008. (resetDeltaDownloadLength): Removed.
  16009. (addDeltaUploadLength): Removed.
  16010. (getDeltaUploadLength): Removed.
  16011. (resetDeltaUploadLength): Removed.
  16012. (addActivePeer): Added peer->activate().
  16013. (deleteActivePeer): Added peer->deactivate().
  16014. (calculateStat): New function.
  16015. * src/TorrentMan.cc
  16016. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16017. (calculateStat): New function.
  16018. * src/PeerInteraction.h
  16019. (uploadLimit): Removed.
  16020. (option): New variable.
  16021. (setUploadLimit): Removed.
  16022. (getUploadSpeed): Removed.
  16023. (sendMessages): Removed the argument "currentUploadSpeed".
  16024. * src/PeerInteraction.cc
  16025. (prefs.h): Included.
  16026. (PeerInteraction): Removed uploadLimit. Added option.
  16027. (sendMessages): Rewritten upload speed limit.
  16028. (sendHandshake): Removed the argument from sendMessages().
  16029. (sendBitfield): Removed the argument from sendMessages().
  16030. * src/PeerAbstractCommand.cc
  16031. (execute): Commented out the portion of upload limit.
  16032. (onAbort): Removed peer->resetStatus().
  16033. * src/TorrentRequestInfo.cc
  16034. (timeoutSpecified): Declared extern.
  16035. (execute): Set timeout to 180 if timeout is not specified by.
  16036. command-line.
  16037. * src/PieceMessage.cc
  16038. (receivedAction): Added peer->updateDownloadLength().
  16039. Removed peer->addPeerUpload().
  16040. Removed torrentMan->addDeltaDownloadLength().
  16041. (send): Added peer->updateUploadLength().
  16042. Removed peer->addPeerDownload().
  16043. Removed torrentMan->addDeltaUploadLength().
  16044. * src/main.cc
  16045. (timeoutSpecified): New variable.
  16046. (main): Set timeoutSpecified to false.
  16047. If the command-line option "--upload-limit" is specified, then
  16048. timeoutSpecified is set to true. This option will remain in the next
  16049. release, but be deprecated in the future release.
  16050. * src/TorrentRequestInfo.h
  16051. (TorrentRequestInfo): Removed const qualifier from op.
  16052. * src/PeerStat.h
  16053. (uploadSpeed): New variable.
  16054. (PeerStat): Added default value to cuid.
  16055. (calculateUploadSpeed): New function.
  16056. (updateUploadLength): New function.
  16057. (getMaxUploadSpeed): New function.
  16058. (getAvgUploadSpeed): New function.
  16059. (reset): Added uploadSpeed. Set status to IDLE.
  16060. * src/TorrentDownloadEngine.h
  16061. (cp): Declared as Time.
  16062. (sessionDownloadLengthArray): Removed.
  16063. (sessionUploadLengthArray): Removed.
  16064. (currentCp): Removed.
  16065. (lastCalcStat): New variable
  16066. (lastElapsed): Removed.
  16067. (sessionDownloadLength): Removed.
  16068. (calculateStat): New function.
  16069. * src/TorrentDownloadEngine.cc
  16070. (initStatistics): Removed lastElapsed, cp[],
  16071. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16072. currentCp, sessionDownloadLength.
  16073. Added cp.reset() and lastCalcStat.reset().
  16074. (calculateSpeed): Changed the name of the argument.
  16075. (calculateStatistics): Rewritten.
  16076. (calculateStat): New function.
  16077. * src/Peer.h
  16078. (PeerStat.h): Included.
  16079. (peerUpload): Removed.
  16080. (peerDownload): Removed.
  16081. (peerStat): New variable.
  16082. (sessionUploadLength): New variable.
  16083. (sessionDownloadLength): New variable.
  16084. (deltaUpload): Removed.
  16085. (deltaDownload): Removed.
  16086. (resetStatus): Made private.
  16087. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16088. Removed peerUpload, peerDownload.
  16089. (updateUploadLength): New function.
  16090. (addDeltaUpload): Removed.
  16091. (updateDownloadLength): New function.
  16092. (resetDeltaUpload): Removed.
  16093. (getDeltaUpload): Removed.
  16094. (addDeltaDownload): Removed.
  16095. (calculateUploadSpeed): New function.
  16096. (resetDeltaDownload): Removed.
  16097. (getDeltaDownload): Removed.
  16098. (calculateDownloadSpeed): New function.
  16099. (getSessionUploadLength): New function.
  16100. (getSessionDownloadLength): New function.
  16101. (activate): New function.
  16102. (deactivate): New function.
  16103. (addPeerUpload): Removed.
  16104. (setPeerUpload): Removed.
  16105. (getPeerUpload): Removed.
  16106. (addPeerDownload): Removed.
  16107. (setPeerDownload): Removed.
  16108. (getPeerDownload): Removed.
  16109. * src/Peer.cc
  16110. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16111. * src/MetalinkRequestInfo.h
  16112. (MetalinkRequestInfo): Removed const qualifier from op.
  16113. * src/RequestInfo.h
  16114. (op): Removed const qualifier.
  16115. (RequestInfo): Removed const qualifier from op.
  16116. * src/prefs.h
  16117. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16118. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16119. * src/PeerInteractionCommand.cc
  16120. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16121. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16122. * src/PeerInteraction.cc
  16123. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16124. * src/main.cc
  16125. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16126. Added the description of "--max-download-limit" option.
  16127. Removed the description of "--upload-limit" option.
  16128. Added the description of "--max-upload-limit" option.
  16129. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16130. Added "--max-download-limit" option and "--max-upload-limit" option.
  16131. Added the warning message if "--upload-limit" option is used.
  16132. * src/DownloadCommand.cc
  16133. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16134. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16135. To rewrite segment download mechanism for HTTP/FTP download.
  16136. Use BitfieldMan to manage segment download.
  16137. * src/HttpResponseCommand.h
  16138. (executeInternal): Pass the reference of segment.
  16139. * src/AbstractCommand.cc
  16140. (prepareForRetry): Call segmentMan->cancelSegment here.
  16141. (onAbort): Call segmentMan->cancelSegment here.
  16142. * src/HttpDownloadCommand.cc
  16143. (prepareForNextSegment): New function.
  16144. * src/DownloadEngineFactory.cc
  16145. (newConsoleEngine): Removed splitter.
  16146. (newTorrentConsoleEngine): Removed splitter.
  16147. * src/Request.h
  16148. (segment): Renamed from seg.
  16149. * src/FtpInitiateConnectionCommand.h
  16150. (executeInternal): Pass the reference of segment.
  16151. * src/AbstractCommand.h
  16152. (executeInternal): Pass the reference of segment.
  16153. * src/pref.h
  16154. (PREF_SEGMENT_SIZE): New definition.
  16155. * src/HttpProxyRequestCommand.h
  16156. (executeInternal): Pass the reference of segment.
  16157. * src/HttpResponseCommand.cc
  16158. (checkResponse): Allowed status 206 when a request range starts 0.
  16159. (handleDefaultEncoding): Rewritten the code related to Segment.
  16160. (handleOtherEncoding): Rewritten the code related to Segment.
  16161. * src/SegmentMan.h
  16162. (SegmentEntry): New class.
  16163. (SegmentEntries): New type definition.
  16164. (bitfield): New variable.
  16165. (usedSegmentEntries): New variable.
  16166. (onNullBitfield): New function.
  16167. (checkoutSegment): New function.
  16168. (segments): Removed.
  16169. (splitter): Removed.
  16170. (unregisterId): Removed.
  16171. (getSegment): New function(overload)
  16172. (getDownloadedSize): Removed.
  16173. (cancelSegment): New function.
  16174. (completeSegment): New function.
  16175. (initBitfield): New function.
  16176. (hasSegment): New function.
  16177. (getDownloadLength): New function.
  16178. * src/BitfieldMan.h
  16179. (getStartIndex): New function.
  16180. (getEndIndex): New function.
  16181. (getMissingUnusedIndex): New function(overload).
  16182. (getSparseMissingUnusedIndex): New function.
  16183. * src/BitfieldMan.cc
  16184. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16185. (getMissingUnusedIndex): New function(overload).
  16186. (Range): New class.
  16187. (getStartIndex): New function.
  16188. (getEndIndex): New function.
  16189. (getSparseMissingUnusedIndex): New function.
  16190. (isBitSetInternal): Return false if the given index is less than 0.
  16191. * src/HttpInitiateConnectionCommand.h
  16192. (executeInternal): Pass the reference of segment.
  16193. * src/FtpNegotiateCommand.h
  16194. (executeInternal): Pass the reference of segment.
  16195. * src/FtpNegotiateCommand.cc
  16196. (recvSize): Initialize bitfield here.
  16197. * src/FtpTunnelResponseCommand.h
  16198. (executeInternal): Pass the reference of segment.
  16199. * src/HttpConnection.cc
  16200. (createRequest): Rewritten range header processing.
  16201. * src/DownloadCommand.h
  16202. (executeInternal): Pass the reference of segment.
  16203. (prepareForRetry): Removed.
  16204. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16205. function.
  16206. * src/main.cc
  16207. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16208. * src/SegmentMan.cc
  16209. (SegmentMan): Added bitfield. Removed splitter.
  16210. (~SegmentMan): Added bitfield. Removed splitter.
  16211. (unregisterId): Removed.
  16212. (getSegment): Rewritten.
  16213. (updateSegment): Rewritten.
  16214. (save): Rewritten.
  16215. (read): Rewritten.
  16216. (finished): Rewritten.
  16217. (getDownloadedSize): Removed.
  16218. (initBitfield): New function.
  16219. (FindSegmentEntryByIndex): New function object.
  16220. (FindSegmentEntryByCuid): New function object.
  16221. (checkoutSegment): New function.
  16222. (onNullBitfield): New function.
  16223. (getSegment): New function(overload).
  16224. (CancelSegment): New function object.
  16225. (cancelSegment): New function.
  16226. (completeSegment): New function.
  16227. (hasSegment): New function.
  16228. (getDownloadLength): New function.
  16229. * src/FtpInitiateConnectionCommand.cc
  16230. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16231. * src/Segment.h: Rewritten.
  16232. * src/Segment.cc (operator<<): New function.
  16233. * src/HttpDownloadCommand.h
  16234. (prepareForNextSegment): New function.
  16235. * src/Request.cc
  16236. (resetUrl): Made segment null.
  16237. * src/DownloadEngine.cc
  16238. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16239. * src/HttpProxyRequestCommand.h
  16240. (executeInternal): Pass the reference of segment.
  16241. * src/DownloadCommand.cc
  16242. (executeInternal): Rewritten the code related to Segment.
  16243. (prepareForRetry): Removed.
  16244. (prepareForNextSegment): Rewritten.
  16245. * src/FtpTunnelResponseCommand.h
  16246. (executeInternal): Pass the reference of segment.
  16247. To add HTTP 1.1 persistent connection support(experimental)
  16248. * src/HttpRequestCommand.cc
  16249. (executeInternal): Disable keep alive if it is disabled by
  16250. configuration.
  16251. * src/Request.h
  16252. (keepAlive): New variable.
  16253. (isKeepAlive): New function.
  16254. (setKeepAlive): New function.
  16255. * src/pref.h
  16256. (PREF_HTTP_KEEP_ALIVE): New definition.
  16257. * src/HttpResponseCommand.cc
  16258. (executeInternal): Check the remote server supports keep alive.
  16259. * src/HttpConnection.cc
  16260. (createRequest): Send "Connection: close" only if keep alive is
  16261. disabled.
  16262. * src/main.cc
  16263. (main):
  16264. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16265. To add max download speed limit:
  16266. * src/pref.h
  16267. (PREF_MAX_SPEED_LIMIT): New definition.
  16268. * src/PeerInteractionCommand.cc
  16269. (executeInternal): Added max download speed limit. Not tested yet.
  16270. * src/SegmentMan.h
  16271. (PeerStats): New type definition.
  16272. (peerStats): New variable.
  16273. (registerPeerStat): New function.
  16274. (FindPeerStat): New function object.
  16275. (getPeerStat): New function.
  16276. (calculateDownloadSpeed): New function.
  16277. * src/SpeedCalc.h: New class.
  16278. * src/SpeedCalc.cc: New class.
  16279. * src/main.cc
  16280. (main):
  16281. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16282. download speed is not restricted).
  16283. * src/PeerStat.h: New class.
  16284. * src/SegmentMan.cc
  16285. (registerPeerStat): New function.
  16286. (calculateDownloadSpeed): New function.
  16287. * src/DownloadCommand.cc
  16288. (STARTUP_IDLE_TIME): New definition.
  16289. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16290. downloadStart.
  16291. (~DownloadCommand): Call peerStat->downloadStop.
  16292. (executeInternal): Added download speed limitter. Rewritten lowest
  16293. speed limitter.
  16294. * src/HttpConnection.cc
  16295. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16296. * src/AbstractCommand.cc
  16297. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16298. Added hostname to the error message.
  16299. * src/ConsoleDownloadEngine.cc
  16300. (calculateStatistics): Initialize psize with dlSize.
  16301. * src/PieceMessage.cc
  16302. (receivedAction): Do not call peerInteraction->abortPiece here.
  16303. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16304. * src/BitfieldMan.h
  16305. (clearAllUseBit): New function.
  16306. (setAllUseBit): New function.
  16307. * src/BitfieldMan.cc
  16308. (clearAllBit): Do not clear useBitfield here.
  16309. (clearAllUseBit): New function.
  16310. (setAllUseBit): New function.
  16311. * src/Piece.cc
  16312. (clearAllBlock): Call bitfield->clearAllUseBit().
  16313. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16314. To make filename URL-decoded:
  16315. * src/HttpResponseCommand.h: Updated doc.
  16316. * src/HttpResponseCommand.cc
  16317. (determinFilename): Made filename URL-decoded.
  16318. * src/FtpInitiateConnectionCommand.cc
  16319. (executeInternal): Made filename URL-decoded.
  16320. * src/Util.h (urldecode): New function.
  16321. * src/Util.cc (urldecode): New function.
  16322. To fix a bug that caused assertion failure in ares_strerror:
  16323. * src/NameResolver.cc (callback): Fixed the bug.
  16324. * Release 0.7.3
  16325. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16326. To add --seed-time and --seed-ratio command-line option:
  16327. * src/Option.h (getAsDouble): New function.
  16328. * src/Option.cc (getAsDouble): New function.
  16329. * src/SeedCheckCommand.h: New class.
  16330. * src/SeedCheckCommand.cc: New class.
  16331. * src/DownloadEngineFactory.cc
  16332. (SeedCheckCommand.h): Included.
  16333. (UnionSeedCriteria.h): Included.
  16334. (TimeSeedCriteria.h): Included.
  16335. (ShareRatioSeedCriteria.h): Included.
  16336. (newTorrentConsoleEngine): Added the processing of seed option.
  16337. * src/SeedCriteria.h: New class.
  16338. * src/ShareRatioSeedCriteria.h: New class.
  16339. * src/TimeSeedCriteria.h: New class.
  16340. * src/UnionSeedCriteria.h: New class.
  16341. * src/prefs.h
  16342. (PREF_SEED_TIME): New definition.
  16343. (PREF_SEED_RATIO): New definition.
  16344. * src/main.cc
  16345. (showUsage): Added --seed-time and --seed-ratio option.
  16346. (main): Added --seed-time and --seed-ratio option.
  16347. Made default log file name "/dev/null".
  16348. * src/SharedHandle.h
  16349. (SharedHandle): Copy constructor. Made it assignable from the
  16350. SharedHandle of the subclasses.
  16351. (operator=): Made it assignable from the SharedHandle of the
  16352. subclasses.
  16353. (getRefCount): New function.
  16354. To add notice log level and the switch to write log to stdout. This
  16355. switch is configurable per log level.
  16356. * src/Logger.h
  16357. (notice): New function.
  16358. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16359. constant.
  16360. * src/LogFactory.cc
  16361. (getInstance): The use of NullLogger was removed. A log message with
  16362. notice log level was made written to stdout along with log file.
  16363. * src/NullLogger.h
  16364. (notice): New function.
  16365. * src/SimpleLogger.h
  16366. (writeHeader): Added the 'file' argument.
  16367. (writeLog): Added the 'file' argument.
  16368. (writeFile): New function.
  16369. (stdoutField): New variable.
  16370. (SimpleLogger): Removed the default constructor.
  16371. (SimpleLogger): Made the default value of logfile 0.
  16372. (debug): Added 'virtual' keyword.
  16373. (info): Added 'virtual' keyword.
  16374. (warn): Added 'virtual' keyword.
  16375. (error): Added 'virtual' keyword.
  16376. (notice): New function.
  16377. (setStdout): New function.
  16378. * src/SimpleLogger.cc
  16379. (WRITE_LOG): Replaced writeLog with writeFile.
  16380. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16381. (SimpleLogger): Removed the default constructor.
  16382. (setStdout): New function.
  16383. (writeLog): Added the handling of NOTICE log level.
  16384. (writeFile): New function.
  16385. (notice): New function.
  16386. * src/TorrentMan.h: Updated doc.
  16387. * src/BitfieldMan.h: Updated doc.
  16388. * src/TrackerWatcherCommand.cc
  16389. (execute): Return true if error occurred in the request to the tracker
  16390. and halt is requested.
  16391. * src/TrackerUpdateCommand.cc
  16392. (execute): Return true if error occurred in the request to the tracker
  16393. and halt is requested.
  16394. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16395. DownloadEngine:
  16396. * src/TorrentConsoleDownloadEngine.h
  16397. (onSelectiveDownloadingCompletes): Removed.
  16398. * src/TorrentConsoleDownloadEngine.cc
  16399. (onSelectiveDownloadingCompletes): Removed.
  16400. * src/TorrentDownloadEngine.h
  16401. (onEndOfRun): Added 'virtual' keyword.
  16402. (afterEachIteration): Removed.
  16403. (onSelectiveDownloadingCompletes): Removed.
  16404. * src/TorrentDownloadEngine.cc
  16405. (onEndOfRun): Removed filenameFixed.
  16406. (afterEachIteration): Removed.
  16407. * src/TorrentMan.cc
  16408. (completePiece): Call onDownloadComplete here.
  16409. (onDownloadComplete): Added 2 log messages.
  16410. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16411. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16412. * src/NameResolver.h: Added the prototype declaration of callback().
  16413. To support c-ares library:
  16414. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16415. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16416. * src/FtpInitiateConnectionCommand.h:
  16417. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16418. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16419. * src/HttpInitiateConnectionCommand.h:
  16420. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16421. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16422. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16423. #1542285 by tizianomueller)
  16424. * src/HttpInitiateConnectionCommand.cc:
  16425. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16426. * src/FtpInitiateConnectionCommand.cc:
  16427. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16428. * src/DownloadEngine.h:
  16429. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16430. * src/DownloadEngine.cc:
  16431. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16432. To fix the bug that causes compilation failure with metalink-support
  16433. disabled(bug#1543587):
  16434. * src/main.cc: Fixed with the patch by tizianomueller.
  16435. * Release 0.7.2
  16436. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16437. * src/main.cc
  16438. (main): Added a message to inform users that aria2 is starting to
  16439. verify checksum.
  16440. * src/RequestInfo.cc
  16441. (printDownloadAbortMessage): Added a message to inform users that
  16442. transfer can be resumed.
  16443. * src/FeatureConfig.cc
  16444. (FEATURE_ASYNC_DNS): New definition.
  16445. (FeatureConfig): Added aysnc DNS entry.
  16446. To replace CommandUuid with Command* in SocketEntry and
  16447. NameResolverEntry:
  16448. * src/DownloadEngine.h
  16449. (CommandUuids): Removed.
  16450. (SocketEntry::commandUuid): Removed.
  16451. (SocketEntry::command): New variable.
  16452. (SocketEntry::SocketEntry): Updated.
  16453. (SocketEntry::operator==): Updated.
  16454. (NameResolverEntry::commandUuid): Removed.
  16455. (NameResolverEntry::command): New variable.
  16456. (NameResolverEntry::NameResolverEntry): Updated.
  16457. (NameResolverEntry::operator==): Updated.
  16458. (waitData): Changed the argument type.
  16459. (addSocketForReadCheck): Changed the argument type.
  16460. (deleteSocketForReadCheck): Changed the argument type.
  16461. (addSocketForWriteCheck): Changed the argument type.
  16462. (deleteSocketForWriteCheck): Changed the argument type.
  16463. (addNameResolverCheck): Changed the argument type.
  16464. (deleteNameResolverCheck): Changed the argument type.
  16465. * src/DownloadEngine.cc
  16466. (FindCommand): Removed.
  16467. (run): Removed activeUuid. Added activeCommands instead.
  16468. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16469. (AccumulateActiveCommand): New function object.
  16470. (waitData): Use AccumulateActiveCommand.
  16471. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16472. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16473. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16474. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16475. (addNameResolverCheck): Use Command instead of CommandUuid.
  16476. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16477. * src/AbstractCommand.cc
  16478. (disableReadCheckSocket): Updated according to the changes in
  16479. DownloadEngine.
  16480. (setReadCheckSocket): Updated according to the changes in
  16481. DownloadEngine.
  16482. (disableWriteCheckSocket): Updated according to the changes in
  16483. DownloadEngine.
  16484. (setWriteCheckSocket): Updated according to the changes in
  16485. DownloadEngine.
  16486. (setNameResolverCheck): Updated according to the changes in
  16487. DownloadEngine.
  16488. (disableNameResolverCheck): Updated according to the changes in
  16489. DownloadEngine.
  16490. * src/AbstractCommand.cc
  16491. (disableReadCheckSocket): Updated according to the changes in
  16492. DownloadEngine.
  16493. (setReadCheckSocket): Updated according to the changes in
  16494. DownloadEngine.
  16495. (disableWriteCheckSocket): Updated according to the changes in
  16496. DownloadEngine.
  16497. (setWriteCheckSocket): Updated according to the changes in
  16498. DownloadEngine.
  16499. * release 0.7.1
  16500. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16501. To handle the case where some BitTorrent tracker requires all letters
  16502. except for [A-Za-z0-9] is URL encoded.
  16503. * src/Util.h
  16504. (torrentUrlencode): New function.
  16505. * src/Util.cc
  16506. (ctype.h): Included.
  16507. (torrentUrlencode): New function.
  16508. * src/TrackerWatcherCommand.cc
  16509. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16510. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16511. To add asynchronous DNS support(libares):
  16512. * src/AbstractCommand.h
  16513. (setNameResolverCheck): New function.
  16514. (disableNameResolverCheck): New function
  16515. (resolveHostname): New function.
  16516. * src/AbstractCommand.cc
  16517. (setNameResolverCheck): New function.
  16518. (disableNameResolverCheck): New function
  16519. (resolveHostname): New function.
  16520. * src/FtpInitiateConnectionCommand.h
  16521. (nameResolver): New function.
  16522. * src/FtpInitiateConnectionCommand.cc
  16523. (Util.h): Included.
  16524. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16525. disableWriteCheckSocket.
  16526. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16527. (executeInternal): Added async DNS support.
  16528. * src/HttpInitiateConnectionCommand.h
  16529. (nameResolver): New function.
  16530. * src/HttpInitiateConnectionCommand.cc
  16531. (DlRetryEx.h): Included.
  16532. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16533. disableWriteCheckSocket.
  16534. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16535. (executeInternal): Added async DNS support.
  16536. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16537. by extern "C" declaration.
  16538. * src/NameResolver.cc: New class.
  16539. * src/Util.h:
  16540. (isNumberAndDotsNotation): New function
  16541. * src/Util.cc
  16542. (isNumberAndDotsNotation): New function.
  16543. * src/DownloadEngine.h
  16544. (NameResolver.h): Included.
  16545. (NameResolverEntry): New class.
  16546. (NameResolverEntries): New type definition.
  16547. (addNameResolverCheck): New function.
  16548. (deleteNameResolverCheck): New function.
  16549. * src/DownloadEngine.cc
  16550. (run): Initialize cp with 0.
  16551. (SetDescriptor::operator()): Added for NameResolverEntry.
  16552. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16553. (waitData): Check nameResolver entries.
  16554. (updateFdSet): Update fds in nameResolver entries.
  16555. (addNameResolverCheck): New function.
  16556. (deleteNameResolverCheck): new function.
  16557. * src/PeerInteractionCommand.cc
  16558. (executeInternal): Fixed wrong socket handling.
  16559. * src/main.cc
  16560. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16561. * src/Util.cc
  16562. (fileChecksum): Removed the call to ctx.digestReset().
  16563. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16564. * po/ru.po: Azamat sent me Russian translation.
  16565. * src/FtpNegotiateCommand.cc
  16566. (recvGreeting): Call disableWriteCheckSocket just after
  16567. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16568. (recvRetr): Recognized status code 125 as a acceptable response code.
  16569. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16570. case-insesitive filesystem(BUG#1531057).
  16571. * src/Time.h: Renamed as TimeA2.h.
  16572. * src/Time.cc: Renamed as TimeA2.cc.
  16573. * src/TimeA2.h: New class.
  16574. * src/TimeA2.cc: New class.
  16575. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16576. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16577. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16578. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16579. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16580. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16581. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16582. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16583. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16584. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16585. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16586. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16587. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16588. * release 0.7.0
  16589. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16590. * src/PeerChokeCommand.h
  16591. (PeerChokeCommand): Rearranged the arguments.
  16592. * src/PeerChokeCommand.cc
  16593. (PeerChokeCommand): Rearranged the arguments.
  16594. * src/MetalinkEntry.h
  16595. (Checksum.h): Included.
  16596. (md5): Removed.
  16597. (sha1): Removed.
  16598. (checksum): New variable.
  16599. (operator=): Updated.
  16600. (check): Removed.
  16601. * src/prefs.h
  16602. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16603. (PREF_FOLLOW_TORRENT): New definition.
  16604. (PREF_SELECT_FILE): New definition.
  16605. (PREF_FOLLOW_METALINK): New definition.
  16606. * src/MetalinkResource.h
  16607. (TYPE_HTTPS): Added to enum TYPE.
  16608. * src/TorrentMan.cc
  16609. (~TorrentMan): Rewritten.
  16610. * src/MultiDiskWriter.cc
  16611. (MultiDiskAdaptor): Updated according to the changes in
  16612. MessageDigestContext.
  16613. (~MultiDiskAdaptor): Updated according to the changes in
  16614. MessageDigestContext.
  16615. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16616. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16617. * src/Util.h
  16618. (fileChecksum): Updated according to the changes in
  16619. MessageDigestContext.
  16620. * src/Util.cc
  16621. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16622. (fileChecksum): Updated according to the changes in
  16623. MessageDigestContext.
  16624. * src/messageDigest.h: Rewritten.
  16625. * src/MetalinkEntry.cc
  16626. (check): Removed.
  16627. (Supported): Updated.
  16628. (dropUnsupportedResource): Fixed a memory leak.
  16629. * src/ShaVisitor.cc
  16630. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16631. (~ShaVisitor): Updated according to the changes in
  16632. MessageDigestContext.
  16633. (visit): Updated according to the changes in MessageDigestContext.
  16634. * src/main.cc
  16635. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16636. command-line option added.
  16637. * src/DownloadEngine.h
  16638. (SocketEntry): New class.
  16639. (SocketEntries): New definition.
  16640. (PairFind): Removed.
  16641. (SockCmdMap): Removed.
  16642. * src/DownloadEngine.cc
  16643. (DownloadEngine): Rewritten.
  16644. (~DownloadEngine): Rewritten.
  16645. (run): Renamed activeCommandUuids as activeUuids.
  16646. (SetDescriptor): Rewritten.
  16647. (AccumulateActiveCommandUuid): Removed.
  16648. (AccumulateActiveUuid): New function object.
  16649. (waitData): Rewritten.
  16650. (updateFdSet): Rewritten.
  16651. (addSocket): Rewritten.
  16652. (deleteSocket): Rewritten.
  16653. (addSocketForReadCheck): Rewritten.
  16654. (deleteSocketForReadCheck): Rewritten.
  16655. (addSocketForWriteCheck): Rewritten.
  16656. (deleteSocketForWriteCheck): Rewritten.
  16657. * src/Xml2MetalinkProcessor.cc
  16658. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16659. * src/DownloadCommand.cc
  16660. (executeInternal): Added the check routine for lowest speed limit.
  16661. * src/AbstractDiskWriter.cc
  16662. (AbstractDiskWriter): Updated according to the changes in
  16663. MessageDigestContext.
  16664. (~AbstractDiskWriter): Updated according to the changes in
  16665. MessageDigestContext.
  16666. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16667. * src/RequestInfo.h: New class.
  16668. * src/UrlRequestInfo.h: New class.
  16669. * src/UrlRequestInfo.cc: New class.
  16670. * src/TorrentRequestInfo.h: New class.
  16671. * src/TorrentRequestInfo.cc: New class.
  16672. * src/MetalinkRequestInfo.h: New class.
  16673. * src/MetalinkRequestInfo.cc: New class.
  16674. * src/Checksum.h: New class.
  16675. * src/DownloadEngineFactory.h: New class.
  16676. * src/DownloadEngineFactory.cc: New class.
  16677. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16678. * src/Option.h
  16679. (getAsBool): New function.
  16680. * src/Option.cc
  16681. (prefs.h): Included.
  16682. (defined): 0-length value is now recognized as undefined.
  16683. (getAsInt): Rewritten.
  16684. (getAsLLInt): Rewritten.
  16685. (getAsBool): New function.
  16686. * src/FeatureConfig.h: Rewritten.
  16687. * src/FeatureConfig.cc: Rewritten.
  16688. * src/prefs.h
  16689. (PREF_STDOUT_LOG): New definition.
  16690. (PREF_LOG): New definition.
  16691. (PREF_DIR): New definition.
  16692. (PREF_OUT): New definition.
  16693. (PREF_SPLIT): New definition.
  16694. (PREF_DAEMON): New definition.
  16695. (PREF_REFERER): New definition.
  16696. (PREF_TORRENT_FILE): New definition.
  16697. (PREF_LISTEN_PORT): New definition.
  16698. (PREF_METALINK_FILE): New definition.
  16699. (PREF_METALINK_VERSION): New definition.
  16700. (PREF_METALINK_LANGUAGE): New definition.
  16701. (PREF_METALINK_OS): New definition.
  16702. (PREF_METALINK_SERVERS): New definition.
  16703. * src/main.cc
  16704. (main): Following command-line parameters are now put into Option
  16705. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16706. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16707. metalinkLanguage, metalinkOs, metalinkServers
  16708. To fix the bug that aria2 can not handle http response header properly.
  16709. * src/HttpHeader.cc
  16710. (put): Made name lowercased.
  16711. (defined): Made name lowercased.
  16712. (getFirst): Made name lowercased.
  16713. (get): Made name lowercased.
  16714. (getFirstAsInt): Rewritten.
  16715. (getFirstAsLLInt): Rewritten.
  16716. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16717. * src/TorrentMan.h:
  16718. (advertisePiece): Updated doc.
  16719. (getAdvertisedPieceIndexes): Updated doc.
  16720. (removeAdvertisedPiece); New function.
  16721. * src/TorrentMan.cc
  16722. (FindElapsedHave): New function object.
  16723. (removeAdvertisedPiece): New function.
  16724. * src/HaveEraseCommand.h: New class.
  16725. * src/HaveEraseCommand.cc: New class.
  16726. * src/FeatureConfig.h: New class.
  16727. * src/FeatureConfig.cc: New class.
  16728. * src/Request.h
  16729. (defaultPorts): Removed.
  16730. * src/Request.cc
  16731. (FeatureConfig.h): Included.
  16732. (Request): Removed the statements related to defaultPorts.
  16733. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16734. A default port number is now retrieved from FeatureConfig.
  16735. * src/main.cc
  16736. (HaveEraseCommand.h): Included.
  16737. (showVersion): Added the output of feature list.
  16738. (main): Added HaveEraseCommand to command queue in BitTorrent
  16739. downloading.
  16740. * src/PeerInteractionCommand.h
  16741. (chokeCheckPoint): Commented out.
  16742. (periodicExecPoint): New variable.
  16743. * src/PeerInteractionCommand.cc
  16744. (executeInternal): Following methods are now called in at least every
  16745. 0.5 seconds to reduce CPU usage:
  16746. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16747. checkHave(), sendKeepAlive().
  16748. (checkLongTimePeerChoking): Commented out.
  16749. * src/BitfieldMan.h
  16750. (getNthBitIndex): Changed the method signature.
  16751. (getMissingIndexRandomly): Changed the method signature.
  16752. * src/BitfieldMan.cc
  16753. (getNthBitIndex): Rewritten
  16754. (getMissingIndexRandomly): Rewritten.
  16755. (hasMissingPiece): Rewritten.
  16756. (getMissingIndex): Refactored.
  16757. (getMissingUnusedIndex); Refactored.
  16758. (getMissingIndex): Refactored.
  16759. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16760. * src/PeerMessage.h
  16761. (Piece.h): Included.
  16762. (SharedHandle.h): Included.
  16763. (invalidate): New variable.
  16764. (uploading): New variable.
  16765. (isInvalidate): New function.
  16766. (isUploading): New function.
  16767. (onPush): New function.
  16768. (onChoked): New function.
  16769. (onCanceled): New function.
  16770. (onAbortPiece): New function.
  16771. (PeerMessageHandle): New type definition.
  16772. * src/PeerMessage.cc
  16773. (PeerMessage): Added the initialization for invalidate and uploading.
  16774. * src/CancelMessage.h
  16775. (CancelMessage): Rewritten.
  16776. * src/RejectMessage.h
  16777. (RejectMessage): Rewritten.
  16778. * src/Metalinker.h
  16779. (operator=): Defined.
  16780. * src/MetaEntry.h
  16781. (operator=): Defined.
  16782. * src/MetalinkResource.h
  16783. (operator=): Defined.
  16784. * src/AllowedFastMessage.h
  16785. (AllowedFastMessage): Rewritten.
  16786. * src/HandshakeMessage.h
  16787. (HandshakeMessage): New function(overload).
  16788. * src/HandshakeMessage.cc
  16789. (HandshakeMessage): Rewritten.
  16790. (init): New function.
  16791. * src/HaveMessage.h
  16792. (HaveMessage): Rewritten.
  16793. * src/Time.h
  16794. (operator=): Defined the function body here.
  16795. * src/Time.cc
  16796. (operator=): Removed.
  16797. * src/SocketCore.h
  16798. (operator==): Defined here.
  16799. (operator!=): Defined here.
  16800. (operator<): Defined here.
  16801. * src/SocketCore.cc
  16802. (operator==): Removed.
  16803. (operator<): Removed.
  16804. * src/BitfieldMan.h
  16805. (operator=): Defined the function body here.
  16806. * src/BitfieldMan.cc
  16807. (operator=): Removed.
  16808. * src/TorrentMan.h
  16809. (deleteErrorPeer): Removed.
  16810. (deleteUnusedPeer); New function.
  16811. * src/TorrentMan.cc
  16812. (addPeer): Call deleteUnusedPeer.
  16813. (deleteErrorPeer): Removed.
  16814. (deleteUnusedPeer): New function.
  16815. * src/PeerAbstractCommand.h
  16816. (setNoCheck): New function.
  16817. (noCheck): New variable.
  16818. * src/PeerAbstractCommand.cc
  16819. (PeerAbstractCommand): Added the initialization of noCheck.
  16820. (execute): Added a check for noCheck.
  16821. (setNoCheck): New function.
  16822. * src/Util.h
  16823. (stdio.h): Included.
  16824. * src/Util.cc
  16825. (unistd.h): Included.
  16826. * src/DefaultDiskWriter.cc
  16827. (unistd.h): Included.
  16828. * src/Peer.h
  16829. (operator==): Defined the function body here.
  16830. (operator!=): Defined the function body here.
  16831. * src/Peer.cc
  16832. (operator==): Removed.
  16833. (operator!=): Removed.
  16834. * src/Piece.h
  16835. (Piece): Defined the function body here(copy constructor).
  16836. (operator=): Defined the function body here.
  16837. (operator==): Defined the function body here.
  16838. * src/Piece.cc
  16839. (Piece): Removed(copy constructor).
  16840. (operator=): Removed.
  16841. (operator==): Removed.
  16842. * src/PeerMessageUtil.h
  16843. (ChokeMessage.h): Removed.
  16844. (UnchokeMessage.h): Removed.
  16845. (InterestedMessage.h): Removed.
  16846. (NotInterestedMessage.h): Removed.
  16847. (HaveMessage.h): Removed.
  16848. (BitfieldMessage.h): Removed.
  16849. (RequestMessage.h): Removed.
  16850. (CancelMessage.h): Removed.
  16851. (PieceMessage.h): Removed.
  16852. (HandshakeMessage.h): Removed.
  16853. (KeepAliveMessage.h): Removed.
  16854. (PortMessage.h): Removed.
  16855. (HaveAllMessage.h): Removed.
  16856. (HaveNoneMessage.h): Removed.
  16857. (PeerConnection.h): Removed.
  16858. (HandshakeMessage.h): Included.
  16859. * src/BitfieldMessage.h
  16860. (init): New function.
  16861. (BitfieldMessage): Rewritten.
  16862. (BitfieldMessage): New function(overload).
  16863. * src/RequestSlot.h
  16864. (operator=): Defined the function body here.
  16865. (operator==): Defined the function body here.
  16866. * src/RequestSlot.cc
  16867. (operator=): Removed.
  16868. (operator==): Removed.
  16869. To remove the dependency on the PeerMessage subclass from
  16870. PeerInteraction:
  16871. * src/PeerMessageFactory.h: New class.
  16872. * src/PeerMessageFactory.cc: New class.
  16873. * src/SimplePeerMessage.cc
  16874. (send): If invalidate is true then do nothing.
  16875. * src/PeerInteractionCommand.cc
  16876. (HandshakeMessage.h): Included.
  16877. (KeepAliveMessage.h): Included.
  16878. (ChokeMessage.h): Included.
  16879. (UnchokeMessage.h): Included.
  16880. (HaveMessage.h): Included.
  16881. (executeInternal): Call setNoCheck().
  16882. Removed setWriteCheckSocket(socket).
  16883. * src/PeerInteraction.h
  16884. (ChokeMessage.h): Removed.
  16885. (UnchokeMessage.h): Removed.
  16886. (InterestedMessage.h): Removed.
  16887. (NotInterestedMessage.h): Removed.
  16888. (HaveMessage.h): Removed.
  16889. (BitfieldMessage.h): Removed.
  16890. (RequestMessage.h): Removed.
  16891. (CancelMessage.h): Removed.
  16892. (PieceMessage.h): Removed.
  16893. (HandshakeMessage.h): Removed.
  16894. (KeepAliveMessage.h): Removed.
  16895. (PortMessage.h): Removed.
  16896. (HaveAllMessage.h): Removed.
  16897. (HaveNoneMessage.h): Removed.
  16898. (RejectMessage.h): Removed.
  16899. (AllowedFastMessage.h): Removed.
  16900. (SuggestPieceMessage.h): Removed.
  16901. (PeerMessageFactory.h): Included.
  16902. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16903. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16904. (PeerMessageFactory): New variable.
  16905. (createPeerMessage): Removed.
  16906. (createHandshakeMessage): Removed.
  16907. (setPeerMessageCommonProperty): Removed.
  16908. (addRequestSlot): New function.
  16909. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16910. (getPeerMessageFactory): New function.
  16911. (createRequestMessage): Removed.
  16912. (createCancelMessage): Removed.
  16913. (createPieceMessage): Removed.
  16914. (createHaveMessage): Removed.
  16915. (createChokeMessage): Removed.
  16916. (createUnchokeMessage): Removed.
  16917. (createInterestedMessage): Removed.
  16918. (createNotInterestedMessage): Removed.
  16919. (createBitfieldMessage): Removed.
  16920. (createKeepAliveMessage): Removed.
  16921. (createHaveAllMessage): Removed.
  16922. (createHaveNoneMessage): Removed.
  16923. (createRejectMessage): Removed.
  16924. (createAllowedFastMessage): Removed.
  16925. * src/PeerInteraction.cc
  16926. (PeerInteraction): Allocate PeerMessageFactory here.
  16927. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16928. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16929. PieceMessage::ID.
  16930. (addMessage): Simplified by using PeerMessage::onPush().
  16931. (addRequestSlot): New function.
  16932. (rejectAllPieceMessageInQueue): Simplified by using
  16933. PeerMessage::onChoked().
  16934. (rejectPieceMessageInQueue): Simplified by using
  16935. PeerMessage::onCanceled().
  16936. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16937. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16938. (createHandshakeMessage): Removed.
  16939. (createPeerMessage): Removed.
  16940. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16941. (setPeerMessageCommonProperty): Removed.
  16942. (createRequestMessage): Removed.
  16943. (createCancelMessage): Removed.
  16944. (createPieceMessage): Removed.
  16945. (createHaveMessage): Removed.
  16946. (createChokeMessage): Removed.
  16947. (createUnchokeMessage): Removed.
  16948. (createInterestedMessage): Removed.
  16949. (createNotInterestedMessage): Removed.
  16950. (createBitfieldMessage): Removed.
  16951. (createKeepAliveMessage): Removed.
  16952. (createHaveAllMessage): Removed.
  16953. (createHaveNoneMessage): Removed.
  16954. (createRejectMessage): Removed.
  16955. (createAllowedFastMessage): Removed.
  16956. * src/PieceMessage.h
  16957. (createRejectMessage): New function.
  16958. (PieceMessage): Rewritten.
  16959. (onChoked): New function.
  16960. (onCanceled): New function.
  16961. * src/PieceMessage.cc
  16962. (send): If invalidate is true then do nothing, just return.
  16963. (createRejectMessage): New function.
  16964. (onChoked): New function.
  16965. (onCanceled): New function.
  16966. * src/RequestMessage.h
  16967. (RequestMessage): Rewritten.
  16968. (onPush): New function.
  16969. (onAbortPiece): New function.
  16970. * src/RequestMessage.cc
  16971. (onPush): New function.
  16972. (onAbortPiece): New function.
  16973. Update fd_set when a socket is added or deleted in order to improve
  16974. performance:
  16975. * src/DownloadEngine.h
  16976. (rfdset): New variable.
  16977. (wfdset): New variable.
  16978. (updateFdSet): New function.
  16979. * src/DownloadEngine.cc
  16980. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16981. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16982. (waitData): Copy rfdset and wfdset.
  16983. (updateFdSet): New function.
  16984. (addSocket): Call updateFdSet.
  16985. (deleteSocket): Call updateFdSet.
  16986. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16987. To add the support for Metalink3.0 backward compatible links:
  16988. * src/Request.h
  16989. (SAFE_CHARS): Added '#'.
  16990. (METALINK_MARK): New definition.
  16991. * src/Request.cc
  16992. (parseUrl): Added the support for Metalink3.0 backward compatible
  16993. links.
  16994. etc
  16995. * src/PeerInteraction.cc
  16996. (MsgPushBack): Removed.
  16997. (sendMessages): Use STL copy and back_inserter.
  16998. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16999. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17000. * src/TorrentMan.h
  17001. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17002. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17003. * src/SharedHandle.h: New class.
  17004. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17005. * src/HttpResponseCommand.h
  17006. (HttpResponseCommand): Wrapped Socket.
  17007. * src/SocketCore.h
  17008. (operator==): New function.
  17009. (operator!=): New function.
  17010. (operator<): New function.
  17011. (getSockfd): New function.
  17012. (isOpen): New function.
  17013. (writeData): New function.
  17014. * src/SocketCore.cc
  17015. (operator==): New function.
  17016. (operator!=): New function.
  17017. (operator<): New function.
  17018. * src/AbstractCommand.h
  17019. (socket): Changed its type to SocketHandle.
  17020. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17021. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17022. (disableReadCheckSocket): New function.
  17023. (disableWriteCheckSocket): New function.
  17024. (readCheckTarget): Changed its type to SocketHandle.
  17025. (writeCheckTarget): Changed its type to SocketHandle.
  17026. (AbstractCommand): Replaced Socket with SocketHandle.
  17027. * src/AbstractCommand.cc
  17028. (AbstractCommand): Replaced Socket with SocketHandle.
  17029. (~AbstractCommand): Removed the deallocation for Socket object.
  17030. (disableReadCheckSocket): New function.
  17031. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17032. (disableWriteCheckSocket): New function.
  17033. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17034. * src/HttpDownloadCommand.cc
  17035. (DownloadCommand): Replaced Socket with SocketHandle.
  17036. * src/PeerAbstractCommand.h
  17037. (socket): Changed its type to SocketHandle.
  17038. (peer): Changed its type to PeerHandle.
  17039. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17040. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17041. (disableReadCheckSocket): New function.
  17042. (disableWriteCheckSocket): New function.
  17043. (readCheckTarget): Changed its type to SocketHandle.
  17044. (writeCheckTarget): Changed its type to SocketHandle.
  17045. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17046. Replaced Peer with PeerHandle.
  17047. * src/HttpRequestCommand.cc
  17048. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17049. Use disableReadCheckSocket.
  17050. * src/PeerInitiateConnectionCommand.h
  17051. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17052. * src/PeerChokeCommand.cc
  17053. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17054. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17055. (execute): Use PeerHandle.
  17056. * src/PeerConnection.h
  17057. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17058. (socket): Changed its type to SocketHandle.
  17059. (PeerConnection): Replaced Socket with SocketHandle.
  17060. * src/PeerConnection.cc
  17061. (PeerConnection): Replaced Socket with SocketHandle.
  17062. * src/PeerInteractionCommand.h
  17063. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17064. Replaced Peer with PeerHandle.
  17065. * src/PeerInteractionCommand.cc
  17066. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17067. Replaced Peer with PeerHandle.
  17068. (executeInternal): Use disableWriteCheckSocket.
  17069. Use HandshakeMessageHandle.
  17070. (receiveMessages): Use PeerMessageHandle.
  17071. (prepareForNextPeer): Use PeerHandle.
  17072. * src/HttpProxyRequestCommand.h
  17073. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17074. * src/HttpResponseCommand.cc
  17075. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17076. * src/TorrentMan.cc
  17077. (nullPeer): Added external reference.
  17078. (~TorrentMan): Removed the deallocation of the elements of peers.
  17079. (addPeer): Rewritten.
  17080. (isPeerAvailable): Use nullPeer.
  17081. (deleteOldpeers): Replaced with deleteErrorPeer.
  17082. (deleteErrorPeer): New function.
  17083. (getPeer): Use PeerHandle and nullPeer.
  17084. (hasMissingPiece): Replaced Peer with PeerHandle.
  17085. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17086. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17087. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17088. (getMissingPiece): Replaced Peer with PeerHandle.
  17089. * src/FtpNegotiateCommand.cc
  17090. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17091. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17092. (recvGreeting): Use disableWriteCheckSocket.
  17093. (recvPasv): Removed the allocation of Socket.
  17094. Use disableReadCheckSocket.
  17095. (sendRestPasv): Use disableWriteCheckSocket.
  17096. (recvRetr): Changed assertion.
  17097. * src/PeerInteraction.h
  17098. (SharedHandle.h): Included SharedHandle.h.
  17099. (PeerMessageHandle): New type definition.
  17100. (HandshakeMessageHandle): New type definition.
  17101. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17102. (peer): Changed its type to PeerHandle.
  17103. (createHandshakeMessage): Replaced HandshakeMessage with
  17104. HandshakeMessageHandle.
  17105. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17106. (PeerInteraction): Replaced Peer with PeerHandle.
  17107. Replaced Socket with SocketHandle.
  17108. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17109. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17110. (receiveHandshake): Replaced HandshakeMessage with
  17111. HandshakeMessageHandle.
  17112. * src/PeerInteraction.cc
  17113. (PeerInteraction): Replaced Peer with PeerHandle.
  17114. Replaced Socket with SocketHandle.
  17115. (~PeerInteraction): Removed the deallocation of the elements of
  17116. messageQueue.
  17117. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17118. (isSendingMessageInProgress): Replaced PeerMessage with
  17119. PeerMessageHandle.
  17120. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17121. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17122. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17123. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17124. (abortPiece): Use PeerMessageHandle.
  17125. (receiveHandshake): Replaced HandshakeMessage with
  17126. HandshakeMessageHandle. Removed try-catch block.
  17127. (createHandshakeMessage): Replaced HandshakeMessage with
  17128. HandshakeMessageHandle.
  17129. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17130. Removed try-catch block.
  17131. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17132. * src/HttpProxyResponseCommand.cc
  17133. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17134. * src/FtpTunnelResponseCommand.h
  17135. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17136. * src/HttpConnection.cc
  17137. (HttpConnection): Replaced Socket with SocketHandle.
  17138. * src/PeerAbstractCommand.cc
  17139. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17140. (~PeerAbstractCommand): Removed the deallocation of socket.
  17141. Use disableReadCheckSocket, disableWriteCheckSocket.
  17142. (disableReadCheckSocket): New function.
  17143. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17144. (disableWriteCheckSocket): New function.
  17145. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17146. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17147. * src/FtpTunnelRequestCommand.cc
  17148. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17149. (~FtpTunnelRequestCommand): Corrected indentation.
  17150. * src/DownloadCommand.h
  17151. (DownloadCommand): Replaced Socket with SocketHandle.
  17152. * src/PeerListenCommand.cc
  17153. (PeerListenCommand): Removed the initialization of socket.
  17154. (~PeerListenCommand): Removed the deallocation of socket.
  17155. (bindPort): Use SocketHandle.
  17156. (execute): Use SocketHandle and PeerHandle.
  17157. * src/FtpDowndloadCommand.cc
  17158. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17159. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17160. * src/main.cc
  17161. (main): Corrected indentation.
  17162. * src/HttpInitiateConnectionCommand.cc
  17163. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17164. (executeInternal): Removed the allocation of socket.
  17165. * src/HttpRequestCommand.h
  17166. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17167. * src/FtpNegotiationCommand.h
  17168. (dataSocket): Changed its type to SocketHandle.
  17169. (serverSocket): Changed its type to SocketHandle.
  17170. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17171. * src/TorrentMan.h
  17172. (MAX_PEER_UPDATE): Removed.
  17173. (MAX_PEERS): New definition.
  17174. (Peers): The element is now of type PeerHandle.
  17175. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17176. (getPeer): Replaced Peer with PeerHandle.
  17177. (deleteOldErrorPeers): Removed.
  17178. (deleteErrorPeer): New function.
  17179. (hasMissingPiece): Replaced Peer with PeerHandle.
  17180. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17181. (getMissingPiece): Replaced Peer with PeerHandle.
  17182. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17183. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17184. (addActivePeer): Replaced Peer with PeerHandle.
  17185. (deleteActivePeer): Replaced Peer with PeerHandle.
  17186. Added a check for the return value of find.
  17187. * src/FtpTunnelResponseCommand.cc
  17188. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17189. * src/FtpInitiateConnectionCommand.cc
  17190. (executeInternal): Removed the allocation of socket.
  17191. * src/DownloadEngine.h
  17192. (Sockets): An element is now of type SocketHandle.
  17193. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17194. (CommandUuids): New type definition.
  17195. (rsockets): Changed its type to SockCmdMap.
  17196. (wsockets): Changed its type to SockCmdMap.
  17197. (addSocket): Rewritten.
  17198. (deleteSocket): Rewritten.
  17199. (addSocketForReadCheck): Rewritten.
  17200. (deleteSocketForReadCheck): Rewritten.
  17201. (addSocketForWriteCheck): Rewritten.
  17202. (deleteSocketForWriteCheck): Rewritten.
  17203. (PairFind): New template class.
  17204. * src/HttpDownloadCommand.h
  17205. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17206. * src/FtpConnection.cc
  17207. (FtpConnection): Replaced Socket with SocketHandle.
  17208. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17209. block.
  17210. * src/InitiateConnectionCommandFactory.cc
  17211. (DlAbortEx.h): Included DlAbortEx.h.
  17212. (createInitiateConnectionCommand): Throw exception if the protocol of
  17213. requested URI is not supported.
  17214. * src/Peer.cc
  17215. (nullPeer): Changed its type to PeerHandle.
  17216. (operator==): New function.
  17217. (operator!=): New function.
  17218. * src/Peer.h
  17219. (SharedHandle.h): Included SharedHandle.h.
  17220. (operator==): New function.
  17221. (operator!=): New function.
  17222. (Peer): Added the default constructor.
  17223. Use resetStatus() to initialize member variables.
  17224. (nullPeer): Removed.
  17225. * src/TrackerUpdateCommand.cc
  17226. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17227. with MIN_PEERS.
  17228. * src/PeerListenCommand.h
  17229. (socket): Changed its type to SocketHandle.
  17230. * src/Command.h
  17231. (CommandUuid): New type definition.
  17232. (uuid): New variable.
  17233. (uuidGen): New variable.
  17234. (Command): Added the initialization of uuid.
  17235. (getUuid): New function.
  17236. * src/Socket.h
  17237. (Socket): Removed.
  17238. (SocketHandle): New type definition.
  17239. * src/DownloadEngine.h
  17240. (FindCommand): New function object.
  17241. (run): The portion of socket check was rewritten.
  17242. (SetDescriptor): New function object.
  17243. (AccumulateActiveCommandUuid): New function object.
  17244. (waitData): Rewritten.
  17245. (addSocket): Rewritten.
  17246. (deleteSocket): Rewritten.
  17247. (addSocketForReadCheck): Rewritten.
  17248. (addSocketForWriteCheck): Rewritten.
  17249. (deleteSocketForReadCheck): Rewritten.
  17250. (deleteSocketForWriteCheck): Rewritten.
  17251. * src/HttpProxyResponseCommand.h
  17252. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17253. * src/HttpConnection.h
  17254. (socket): Changed its type to SocketHandle.
  17255. (HttpConnection): Replaced Socket with SocketHandle.
  17256. * src/PeerInitiateConnectionCommand.cc
  17257. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17258. (executeInternal): Removed the allocation of socket.
  17259. (prepareForNextPeer): Use PeerHandle.
  17260. * src/PeerMessage.h
  17261. (peer): Changed its type to PeerHandle.
  17262. (getPeer): Replaced Peer with PeerHandle.
  17263. (setPeer): Replaced Peer with PeerHandle.
  17264. * src/DownloadCommand.cc
  17265. (DownloadCommand): Replaced Socket with SocketHandle.
  17266. * src/FtpConnection.h
  17267. (socket): Changed its type to SocketHandle.
  17268. (FtpConnection): Replaced Socket with SocketHandle.
  17269. (sendPort); Replaced Socket with SocketHandle.
  17270. * src/FtpDowndloadCommand.h
  17271. (ctrlSocket): Changed its type to SocketHandle.
  17272. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17273. * src/HttpProxyRequestCommand.cc
  17274. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17275. * src/FtpTunnelRequestCommand.h
  17276. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17277. etc
  17278. * src/PeerChokeCommand.h
  17279. (setAllPeerChoked): Removed.
  17280. (setAllPeerResetDelta): Removed.
  17281. * src/PeerChokeCommand.cc
  17282. (setAllPeerChoked): Removed.
  17283. (ChokePeer): New function object.
  17284. (setAllPeerResetDelta): Removed.
  17285. (ResetDelta): New function object.
  17286. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17287. (execute): Show download speed when the local node is a seeder.
  17288. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17289. using STL.
  17290. * src/TrackerWatcherCommand.h
  17291. (MIN_PEERS): Removed.
  17292. * src/TorrentMan.cc
  17293. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17294. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17295. To fix the bug that .aria2 file is not saved if downloading is stopped
  17296. by the errors:it results that aria2 can not resume downloading:
  17297. * src/main.cc
  17298. (normalDownload): Added the call to save().
  17299. (main): Added the deletion of the elements in 'reserved'.
  17300. To fix log:
  17301. * src/PeerInteraction.cc
  17302. (receiveHandshake): Fixed log.
  17303. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17304. To improve download performance in BitTorrent:
  17305. * src/TorrentMan.cc
  17306. (getPeer): Check the number of connections. Return nullPeer if
  17307. it is greater than MAX_PEER_UPDATE.
  17308. This code was originally here, but was removed in 0.5.1.
  17309. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17310. To improve the conditional compilation:
  17311. * src/MultiDiskWriter.h:
  17312. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17313. * src/MultiDiskWriter.cc:
  17314. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17315. * src/Util.h:
  17316. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17317. Added ENABLE_BITTORRENT around computeFastSet().
  17318. * src/Util.cc:
  17319. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17320. Added ENABLE_BITTORRENT around computeFastSet().
  17321. * src/messageDigest.h:
  17322. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17323. * src/ShaVisitor.h:
  17324. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17325. * src/ShaVisitor.cc:
  17326. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17327. * src/main.cc:
  17328. Added ENABLE_BITTORRENT around includes and blocks related to
  17329. BitTorrent.
  17330. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17331. digest support is not available.
  17332. * src/AbstractDiskWriter.h:
  17333. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17334. * src/AbstractDiskWriter.cc:
  17335. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17336. * src/MetalinkEntry.cc
  17337. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17338. support is not available.
  17339. To add command-line options for Metalink:
  17340. * src/main.cc:
  17341. Added metalink-version, metalink-language, metalink-os,
  17342. follow-metalink.
  17343. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17344. * src/main.cc: Use these definition.
  17345. * Release 0.6.0
  17346. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17347. To add Metalink support(http/ftp only):
  17348. * src/AbstractCommand.h
  17349. (tryReserved): New function.
  17350. * src/AbstractCommand.cc
  17351. (execute): Call tryReserved().
  17352. (tryReserved): New function.
  17353. * src/Request.h
  17354. (Requests): New type definition.
  17355. * src/SegmentMan.h
  17356. (reserved): New variable.
  17357. * src/Util.h
  17358. (fileChecksum): New function.
  17359. (toUpper): New function.
  17360. (toLower): New function.
  17361. * src/Util.cc
  17362. (messageDigest.h): Included.
  17363. (trim): Trim \r\n\t.
  17364. (fileChecksum): New function.
  17365. (toUpper): New function.
  17366. (toLower): New function.
  17367. * src/main.cc
  17368. (normalDownload): New function.
  17369. (main): Added 2 command-line options: metalink-file,
  17370. metalink-connection. Their usage has not been written yet.
  17371. * src/MetalinkProcessor.h: New class.
  17372. * src/Xml2MetalinkProcessor.h: New class.
  17373. * src/Xml2MetalinkProcessor.cc: New class.
  17374. * src/MetalinkEntry.h: New class.
  17375. * src/MetalinkEntry.cc: New class.
  17376. * src/MetalinkResource.h: New class.
  17377. * src/MetalinkResource.cc: New class.
  17378. To add md5 message digest checking:
  17379. * src/messageDigest.h: Rewritten.
  17380. * src/MultiDiskWriter.cc: Updated according to the changes in
  17381. messageDigest.h.
  17382. * src/ShaVisitor.cc: Updated according to the changes in
  17383. messageDigest.h.
  17384. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17385. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17386. messageDigest.h.
  17387. To fix a bug that causes segfault when the payload length in peer
  17388. message is less than 0:
  17389. * src/PeerConnection.cc:
  17390. (receiveMessage): Fixed the bug.
  17391. * src/PeerMessageUtil.cc
  17392. (checkLength): Throw an exception if length is less than or equals to
  17393. 0.
  17394. To add new interfaces to Base64 encoding/decoding:
  17395. * src/Base64.h
  17396. (part_encode): Changed the method signature.
  17397. (encode): New function(overload).
  17398. (decode): New function(overload).
  17399. * src/Base64.cc
  17400. (part_encode): Rewritten.
  17401. (encode): Rewritten.
  17402. (encode): New function(overload).
  17403. To prevent a peer to download same piece if there is an error in
  17404. checksum:
  17405. * src/PieceMessage.cc
  17406. (receivedAction): Call peerInteraction->abortPiece().
  17407. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17408. To fix the bug that causes same have message is sent many times to
  17409. a single peer.
  17410. * src/Time.cc
  17411. (isNewer): Use Util::difftv().
  17412. * src/Util.cc
  17413. (difftv): Added a cast to (long long int).
  17414. * src/TorrentMan.cc
  17415. (advertisePiece): Use push_front.
  17416. (getAdvertisedPieceIndexes): A performance improvement was made.
  17417. To fix the bug that sends tracker requests without a sleep interval
  17418. when the number of connections is less than 15.
  17419. * src/TrackerWatcherCommand.cc
  17420. (execute): Now the number of connections is not a factor to decide
  17421. whether or not a tracker request should be sent or not.
  17422. * src/Time.h
  17423. (setTimeInSec): New function.
  17424. * src/Time.cc
  17425. (setTimeInSec): New function.
  17426. etc.
  17427. * src/ChokeMessage.cc
  17428. (receivedAction): Removed peer->snubbing = false
  17429. * src/PeerConnection.h
  17430. (receiveHandshake): Updated doc.
  17431. * src/TorrentMan.h
  17432. (getAdvertisedPieceIndexes): Updated the method signature.
  17433. * src/TorrentMan.cc
  17434. (getAdvertisedPieceIndexes): Updated the method signature.
  17435. * src/Time.h
  17436. (getTimeInMicros): Added a cast to (long long int).
  17437. (getTimeInMillis): Added a cast to (long long int).
  17438. * Release 0.5.2
  17439. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17440. To make a listening socket non-block:
  17441. * src/SocketCore.h
  17442. (setNonBlockingMode): New function.
  17443. * src/SocketCore.cc
  17444. (setNonBlockingMode): New function.
  17445. (beginListen): Added a call to setNonBlockingMode().
  17446. (acceptConnection): Call setNonBlockingMode().
  17447. (setBlockingMode): Updated.
  17448. To handle tracker's NAT-checking:
  17449. * src/PeerConnection.cc
  17450. (receiveHandshake): 'msg' param is filled with received data and
  17451. its length is assigned to 'length' param, even if all handshake
  17452. message is not yet received.
  17453. * src/PeerInteractionCommand.cc
  17454. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17455. a new peer connects to localhost.
  17456. A call to peerInteraction->sendHandshake() was removed because
  17457. it is called from peerInteraction->receiveHandshake(true).
  17458. * src/PeerInteraction.h
  17459. (quickReplied): New variable.
  17460. (receiveHandshake): Added an argument.
  17461. * src/PeerInteraction.cc
  17462. (PeerInteraction): Added the initialization of quickReplied.
  17463. (receiveHandshake): Send handshake message as soon as the info hash
  17464. in a handshake message from a peer is correct.
  17465. To change the random part of peer id and key parameter:
  17466. * src/TorrentMan.h
  17467. (key): New variable.
  17468. * src/TorrentMan.cc
  17469. (setupInternal1): Use Util::randomAlpha() to generate random part
  17470. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17471. key is also generated by Util::randomAlpha() and it is now 8 character
  17472. long.
  17473. * src/Util.h
  17474. (randomAlpha): New function.
  17475. * src/Util.cc
  17476. (randomAlpha): New function.
  17477. * src/TrackerWatcherCommand.cc
  17478. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17479. Added no_peer_id=1.
  17480. Set snubbing flag to false when a choke message is received from a
  17481. snubbed peer.
  17482. * src/ChokeMessage.cc
  17483. (receivedAction): Set snubbing flag to false.
  17484. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17485. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17486. * src/SimpleLogger.h (writeHeader): New function.
  17487. * src/SimpleLogger.cc (writeHeader): New function.
  17488. (writeLog): Fixed the bug that causes segfaults if exception message
  17489. contains an unescaped "%" character.
  17490. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17491. when a tracker request fails.
  17492. * src/Request.cc (parseUrl): Query string is now handled properly.
  17493. * Release 0.5.1
  17494. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17495. To add Time class which represents a specific instant in time and
  17496. its precision is microseconds. Time checking procedures were rewritten
  17497. using this object.
  17498. * src/Time.h: New class.
  17499. * src/Time.cc: New class.
  17500. * src/AbstractCommand.h
  17501. (updateCheckPoint): Removed.
  17502. (isTimeoutDetected): Removed.
  17503. (checkPoint): Changed the type to Time.
  17504. (timeout): New variable.
  17505. (setTimeout): New function.
  17506. * src/AbstractCommand.cc
  17507. (AbstractCommand): Removed the initialization of checkPoint.
  17508. Added the initialization of timeout.
  17509. (updateCheckPoint): Removed.
  17510. (isTimeoutDetected): Removed.
  17511. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17512. * src/PeerChokeCommand.h
  17513. (checkPoint): Changed the type to Time.
  17514. * src/PeerChokeCommand.cc
  17515. (PeerChokeCommand): Removed the initialization of checkPoint.
  17516. (execute): Rewritten using Time object.
  17517. * src/TrackerWatcherCommand.h
  17518. (checkPoint): Changed the type to Time.
  17519. * src/TrackerWatcherCommand.cc
  17520. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17521. (execute): Rewritten.
  17522. * src/ConsoleDownloadEngine.h
  17523. (cp): Changed the type to Time.
  17524. (startup): Changed the type to Time.
  17525. * src/ConsoleDownloadEngine.cc
  17526. (initStatistics): Use cp.reset(), startup.reset().
  17527. (calculateStatistics): Rewritten using Time object.
  17528. * src/PeerAbstractCommand.h
  17529. (updateCheckPoint): Removed.
  17530. (isTimeoutDetected): Removed.
  17531. (checkPoint): Changed the type to Time.
  17532. * src/PeerAbstractCommand.cc
  17533. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17534. (updateCheckPoint): Removed.
  17535. (isTimeoutDetected): Removed.
  17536. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17537. * src/PeerInteractionCommand.cc
  17538. (PeerInteractionCommand): Removed the initializations of struct
  17539. timeval variables.
  17540. * src/PeerInteractionCommand.h
  17541. (keepAliveCheckPoint): Changed the type to Time.
  17542. (chokeCheckPoint): Changed the type to Time.
  17543. (freqCheckPoint): Changed the type to Time.
  17544. (haveCheckTime): Changed the type to Time.
  17545. * src/PeerInteractionCommand.cc
  17546. (executeInternal): Rewritten using Time object.
  17547. (detectMessageFlooding): Rewritten using Time object.
  17548. (checkLongTimePeerChoking): Rewritten using Time object.
  17549. (sendKeepAlive): Rewritten using Time object.
  17550. (checkHave): Rewritten using Time object.
  17551. * src/SleepCommand.h
  17552. (checkPoint): Changed the type to Time.
  17553. * src/SleepCommand.cc
  17554. (SleepCommand): Removed the initialization of checkPoint.
  17555. (execute): Rewritten using Time object.
  17556. * src/TorrentAutoSaveCommand.h
  17557. (checkPoint): Changed the type to Time.
  17558. * src/TorrentAutoSaveCommand.cc
  17559. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17560. (execute): Rewritten.
  17561. * src/DownloadCommand.h
  17562. (sw): Changed the type to Time.
  17563. * src/DownloadCommand.cc
  17564. (DownloadCommand): Removed the initialization of sw.
  17565. (executeInternal): Rewritten.
  17566. * src/RequestSlot.h
  17567. (dispatchedTime): Changed the type to Time.
  17568. * src/RequestSlot.cc
  17569. (RequestSlot): Removed the call to setDispatchedTime().
  17570. (setDispatchedTime): Rewirtten.
  17571. (isTimeout): Rewritten.
  17572. (getLatencyInMillis): Rewritten.
  17573. * src/TorrentDownloadEngine.h
  17574. (cp): Changed the type to Time[2].
  17575. (startup): Changed the type to Time.
  17576. * src/TorrentDownloadEngine.cc
  17577. (initStatistics): Rewritten.
  17578. (calculateStatistics): Rewritten.
  17579. * src/DownloadEngine.cc
  17580. (run): Rewritten.
  17581. To detect all attempts to connect to the tracker are failed:
  17582. * src/AbstractCommand.cc
  17583. (execute): Increment e->segmentMan->errors if a command aborted.
  17584. * src/SegmentMan.h
  17585. (errors): New variable.
  17586. * src/SegmentMan.cc
  17587. (SegmentMan): Added the initialization of errors.
  17588. (init): Added the initialization of errors.
  17589. * src/TrackerWatcherCommand.cc
  17590. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17591. request was failed.
  17592. To handle snubbed peers:
  17593. * src/PeerChokeCommand.cc
  17594. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17595. (execute): Snubbed peers don't get unchoked.
  17596. * src/PeerInteraction.h
  17597. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17598. * src/PeerInteraction.cc
  17599. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17600. back the requested 16k block in 60 seconds.
  17601. * src/PieceMessage.cc
  17602. (receivedAction): A peer's snubbed state is cleard if it sends
  17603. the requested 16k block in 60 seconds.
  17604. * src/Peer.h
  17605. (snubbing): New variable.
  17606. * src/Peer.cc
  17607. (resetStatus): Added snubbed = false.
  17608. To fix the bug that causes have message is not sent:
  17609. * src/PeerInteractionCommand.cc
  17610. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17611. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17612. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17613. * src/TorrentMan.h
  17614. (HaveEntry): New class.
  17615. (advertisePiece): Rewritten.
  17616. (getAdvertisedPieceIndexes): Rewritten.
  17617. (Haves): Changed the type.
  17618. (getAdvertisedPieceIndexes): Added an argument.
  17619. Others:
  17620. * src/TorrentMan.h
  17621. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17622. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17623. * src/TorrentMan.cc
  17624. (getPeer): Don't check the number of connections here.
  17625. (setupInternal1): Changed peerId.
  17626. * src/PeerInteractionCommand.h
  17627. (KEEP_ALIVE_INTERVAL): New definition.
  17628. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17629. * src/main.cc
  17630. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17631. * src/DownloadEngine.h: Removed unnecessary header includes.
  17632. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17633. To fix the bug that causes segfaults if a tracker returns a zero-length
  17634. list as "peers":
  17635. * src/TrackerUpdateCommand.cc
  17636. (execute): Added a check to see wether the type of peers is Data*.
  17637. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17638. * Release 0.5.0
  17639. To fix compile issue with gcc3:
  17640. * src/CancelMessage.h
  17641. (ID): Renamed as ID_t
  17642. (ID_t): New enum.
  17643. * src/RejectMessage.h
  17644. (ID): Renamed as ID_t
  17645. (ID_t): New enum.
  17646. * src/SuggestPieceMessage.h
  17647. (ID): Renamed as ID_t
  17648. (ID_t): New enum.
  17649. * src/AllowedFastMessage.h
  17650. (ID): Renamed as ID_t
  17651. (ID_t): New enum.
  17652. * src/PortMessage.h
  17653. (ID): Renamed as ID_t
  17654. (ID_t): New enum.
  17655. * src/HaveNoneMessage.h
  17656. (ID): Renamed as ID_t
  17657. (ID_t): New enum.
  17658. * src/KeepAliveMessage.h
  17659. (ID): Renamed as ID_t
  17660. (ID_t): New enum.
  17661. * src/HaveAllMessage.h
  17662. (ID): Renamed as ID_t
  17663. (ID_t): New enum.
  17664. * src/UnchokeMessage.h
  17665. (ID): Renamed as ID_t
  17666. (ID_t): New enum.
  17667. * src/BitfieldMessage.h
  17668. (ID): Renamed as ID_t
  17669. (ID_t): New enum.
  17670. * src/PieceMessage.h
  17671. (ID): Renamed as ID_t
  17672. (ID_t): New enum.
  17673. * src/RequestMessage.h
  17674. (ID): Renamed as ID_t
  17675. (ID_t): New enum.
  17676. * src/NotInterestedMessage.h
  17677. (ID): Renamed as ID_t
  17678. (ID_t): New enum.
  17679. * src/ChokeMessage.h
  17680. (ID): Renamed as ID_t
  17681. (ID_t): New enum.
  17682. * src/InterestedMessage.h
  17683. (ID): Renamed as ID_t
  17684. (ID_t): New enum.
  17685. * src/HaveMessage.h
  17686. (ID): Renamed as ID_t
  17687. (ID_t): New enum.
  17688. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17689. * src/PeerAbstractCommand.h
  17690. (beforeSocketCheck): Removed.
  17691. * src/PeerAbstractCommand.cc
  17692. Modified in order to call executeInternal() even if socket check
  17693. and upload limit check fail.
  17694. * src/PeerInteractionCommand.h
  17695. (keepAlive): Removed.
  17696. (sendKeepAlive): New function.
  17697. (checkHave): New function.
  17698. (beforeSocketCheck): Removed.
  17699. * src/PeerInteractionCommand.cc
  17700. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17701. calls to checkHave() and sendKeepAlive().
  17702. (keepAlive): Renamed to sendKeepAlive().
  17703. (sendKeepAlive): New function.
  17704. (beforeSocketCheck): Removed.
  17705. (checkHave): New function.
  17706. * src/BitfieldMan.cc
  17707. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17708. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17709. 0.
  17710. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17711. * src/TorrentMan.h
  17712. (UsedPieces): Removed.
  17713. (Pieces): New type definition.
  17714. * src/Piece.h: Updated doc.
  17715. * src/Peer.h
  17716. (totalLength): Removed.
  17717. * src/Peer.cc
  17718. (updateLatency): Fixed the latency calculation.
  17719. * src/TorrentMan.cc
  17720. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17721. than or equal to MAX_PEER_LIST_SIZE.
  17722. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17723. then return false.
  17724. (deleteOldErrorPeers): Rewritten.
  17725. (deleteUsedPiece): Fixed the miss use of STL remove.
  17726. * src/PeerInteraction.h
  17727. (Pieces): Removed.
  17728. (deleteTimeoutRequestSlot): Removed.
  17729. (deleteCompletedRequestSlot): Removed.
  17730. (checkRequestSlot): New function.
  17731. * src/PeerInteraction.cc
  17732. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17733. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17734. (checkRequestSlot): New function.
  17735. * src/DownloadEngine.cc
  17736. (run): Clear activeSockets before calling waitData().
  17737. (waitData): Removed a call to activeSockets.clear().
  17738. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17739. To attempt to handle EINTR:
  17740. * src/SocketCore.cc
  17741. (isReadable): Added EINTR handling.
  17742. (isWritable): Added EINTR handling.
  17743. To improve the performance:
  17744. * src/AbstractCommand.cc
  17745. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17746. * src/PeerInteractionCommand.h
  17747. (receiveMessage): Renamed as receiveMessages().
  17748. (receiveMessages): New function.
  17749. * src/PeerInteractionCommand.cc
  17750. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17751. () function. detectMessageFlooding() is moved here.
  17752. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17753. (). The flooding detection for have message is comment out.
  17754. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17755. Util::difftv().
  17756. (receiveMessage): Renamed as receiveMessages().
  17757. (receiveMessages): New function.
  17758. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17759. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17760. * src/SleepCommand.cc
  17761. (execute): Use Util::difftvsec() instead of Util::difftv().
  17762. * src/BitfieldMan.h
  17763. (getNthBitIndex): New function.
  17764. (hasMissingPiece): New function.
  17765. (getAllMissingIndexes): New function.
  17766. * src/BitfieldMan.cc
  17767. (countSetBit): Rewritten.
  17768. (getNthBitIndex): New function.
  17769. (getMissingIndexRandomly): Rewritten.
  17770. (hasMissingPiece): New function.
  17771. (getAllMissingIndexes): New function.
  17772. * src/TorrentMan.cc
  17773. (hasMissingPiece): New function.
  17774. (deleteUsedPiece): Rewritten using STL.
  17775. * src/PeerInteraction.cc
  17776. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17777. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17778. (addRequests): Updated the number of pending requests.
  17779. * src/PeerAbstractCommand.cc
  17780. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17781. (execute): Returns true if TorrentMan::isHalt() is true.
  17782. Corrected the condition of upload limit checking.
  17783. * src/Util.h
  17784. (countBit): New function.
  17785. * src/Util.cc
  17786. (nbits): New variable.
  17787. (countBit): New function.
  17788. * src/DownloadEngine.h
  17789. (SockCmdMap): New type definition.
  17790. (waitData): Added an argument.
  17791. (addSocket): Added an argument.
  17792. (addSocketForReadCheck): Added an argument.
  17793. (addSocketForWriteCheck): Added an argument.
  17794. * src/DownloadEngine.cc
  17795. (run): Executes only commands whose sockets are ready to read or write.
  17796. All commands are executed in every 1 second.
  17797. (waitData): Calls select() again if it returned
  17798. EINTR.
  17799. (addSocket): Saves socket and command object pair to the map.
  17800. (deleteSocket): Deletes socket and command object pair from the map.
  17801. (addSocketForReadCheck): Added an argument.
  17802. (addSocketForWriteCheck): Added an argument.
  17803. * src/DownloadCommand.cc
  17804. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17805. To send "event=stopped" to the tracker when the application finishes:
  17806. * src/PeerChokeCommand.h
  17807. (checkPoint): New variable.
  17808. * src/PeerChokeCommand.cc
  17809. (PeerChokeCommand): Added the initialization of checkPoint.
  17810. (execute): The interval check is now done by checkPoint, not
  17811. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17812. * src/TorrentMan.h
  17813. (halt): New function.
  17814. (hasMissingPiece): New function.
  17815. (isHalt): New function.
  17816. (setHalt): New function.
  17817. * src/TorrentMan.cc
  17818. (TorrentMan): Added the initialization of halt.
  17819. * src/TorrentAutoSaveCommand.h
  17820. (checkPoint): New variable.
  17821. * src/PeerListenCommand.cc
  17822. (execute): Returns true if TorrentMan::isHalt() is true.
  17823. * src/main.cc
  17824. (setSignalHander): Added flags argument.
  17825. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17826. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17827. Removed printDownloadAbortMessage() after torrent downloading loop.
  17828. * src/TorrentAutoSaveCommand.cc
  17829. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17830. (execute): Returns true if TorrentMan::isHalt() is true.
  17831. The interval check is now done by checkPoint, not SleepCommand.
  17832. * src/TrackerWatcherCommand.cc
  17833. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17834. event=stopped.
  17835. * src/TrackerUpdateCommand.cc
  17836. (prepareForRetry): Do not use SleepCommand here.
  17837. (execute): Returns true if TorrentMan::isHalt() is true.
  17838. Others:
  17839. * src/TorrentMan.cc
  17840. (getMissingPieceIndex): Updated log message.
  17841. * src/PeerInteraction.cc
  17842. (createPeerMessag): Updated log message.
  17843. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17844. To add the ability to download several pieces in mix in a command and
  17845. increase the number of request slots according to request-cancel
  17846. latency:
  17847. * src/PeerInteractionCommand.cc
  17848. (executeInternal): The number of messages to be received at a time
  17849. is increased from 10 to 50.
  17850. * src/LogFactory
  17851. (getInstance): Added NullLogger.
  17852. * src/NullLogger.h: New class.
  17853. * src/BitfieldMan.h
  17854. (getMissingIndex): New function.
  17855. * src/BitfieldMan.cc
  17856. (getMissingIndex): New function.
  17857. * src/TorrentMan.h
  17858. (checkOutPiece): New function.
  17859. (getMissingPieceIndex): New function.
  17860. (getMissingFastPieceIndex): New function.
  17861. (getMissingFastPiece): New function.
  17862. * src/TorrentMan.cc
  17863. (updatePiece): Rewritten using STL.
  17864. (syncPiece): Rewritten using STL.
  17865. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17866. checkOutPiece().
  17867. (getMissingPieceIndex): New function.
  17868. (getMissingFastPieceIndex): New function.
  17869. (getMissingFastPiece): New function.
  17870. (checkOutPiece): New function.
  17871. * src/PeerInteraction.h
  17872. (Pieces): New type definition.
  17873. (piece): Removed.
  17874. (pieces): New variable.
  17875. (getNewPieceAndSendInterest): Added the "piece" argument.
  17876. (abortPiece): Added the "piece" argument.
  17877. (abortAllPieces): New function.
  17878. (isInRequestSlot): New function.
  17879. (hasDownloadPiece): Added the "index" argument.
  17880. (setDownloadPiece): Removed.
  17881. (getDownloadPiece): Added the "index" argument.
  17882. (updatePiece): New function.
  17883. (createRequestMessage): Added the "index" argument.
  17884. * src/PeerInteraction.cc
  17885. (onChoked): Rewritten.
  17886. (abortPiece): Rewirtten.
  17887. (abortAllPieces): New function.
  17888. (deleteTimeoutRequestSlot): Rewritten.
  17889. Clarified code a little bit.
  17890. (deleteCompletedRequestSlot): Rewritten.
  17891. (isInRequestSlot): New function.
  17892. (syncPiece): Rewritten.
  17893. (updatePiece): New function.
  17894. (getNewPieceAndSendInterest): Rewritten.
  17895. (addRequests): Rewritten.
  17896. (getDownloadPiece): Rewritten.
  17897. (hasDownloadPiece): Rewritten.
  17898. (createRequestMessage): Added the "index" argument.
  17899. * src/common.h
  17900. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17901. (DIV_FLOOR): New definition.
  17902. * src/PieceMessage.cc
  17903. (receivedAction): Update request-piece latency here.
  17904. * src/RequestSlot.h
  17905. (getLatencyInMillis): New function.
  17906. * src/RequestSlot.cc
  17907. (isTimeout): Rewritten using getLatencyInMillis.
  17908. (getLatencyInMillis): New function.
  17909. * src/Piece.h
  17910. (operator==): New function.
  17911. (getMissingBlockIndex): New function.
  17912. * src/Piece.cc
  17913. (operator==): New function.
  17914. (getMissingBlockIndex): New function.
  17915. * src/Peer.h
  17916. (DEFAULT_LATENCY): New definition.
  17917. (latency): New variable.
  17918. (updateLatency): New function.
  17919. (getLatency): New function.
  17920. * src/Peer.cc
  17921. (resetStatus): Reset latecy.
  17922. (updateLatency): New function.
  17923. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17924. * src/SocketCore.cc
  17925. (isReadable): Added secure to the condition.
  17926. * src/HttpConnection.cc
  17927. (receiveResponse): Fixed a bug that causes no response header
  17928. exception.
  17929. * src/Peer.h
  17930. (getFastSet): Fixed the return value type.
  17931. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17932. To remove a wait from download loop:
  17933. * src/DownloadEngine.cc
  17934. (run): Comment out shortSleep.
  17935. To rewrite the message handling:
  17936. * src/SimplePeerMessage.h: New class.
  17937. * src/SimplePeerMessage.cc: New class.
  17938. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17939. (msg): New variable.
  17940. (create): New function.
  17941. (send): Removed.
  17942. (getMessage): New function.
  17943. (getMessageLength): New function.
  17944. * src/CancelMessage.cc
  17945. (create): New function.
  17946. (receivedAction): Replaced deleteRequestMessageInQueue with
  17947. rejectPieceMessageInQueue.
  17948. (send): Removed.
  17949. (getMessage): New function.
  17950. (getMessageLength): New function.
  17951. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17952. (msg): New variable.
  17953. (msgLength): New variable.
  17954. (~BitfieldMessage): Deleted msg.
  17955. (send): Removed.
  17956. (getMessage): New function.
  17957. (getMessageLength): New function.
  17958. * src/BitfieldMessage.cc
  17959. (create): New function.
  17960. (send): Removed.
  17961. (getMessage): New function.
  17962. (getMessageLength): New function.
  17963. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17964. (msg): New variable.
  17965. (sendPredicate): New function.
  17966. (onSendComplete): New function.
  17967. (send): Removed.
  17968. (getMessage): New function.
  17969. (getMessageLength): New function.
  17970. (create): New function.
  17971. * src/ChokeMessage.cc
  17972. (create): New function.
  17973. (send): Removed.
  17974. (sendPredicate): New function.
  17975. (getMessage): New function.
  17976. (getMessageLength): New function.
  17977. (onSendComplete): New function.
  17978. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17979. (msg): New variable.
  17980. (send): Removed.
  17981. (getMessage): New function.
  17982. (getMessageLength): New function.
  17983. * src/KeepAliveMessage.cc
  17984. (send): Removed.
  17985. (getMessage): New function.
  17986. (getMessageLength): New function.
  17987. * src/PortMessage.h
  17988. (create): New function.
  17989. (receivedAction): Updated log message.
  17990. * src/PortMessage.cc: New file.
  17991. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17992. (msg): New variable.
  17993. (sendPredicate): New function.
  17994. (onSendComplete): New function.
  17995. (create): New function.
  17996. (send): Removed.
  17997. (getMessage): New function.
  17998. (getMessageLength): New function.
  17999. * src/UnchokeMessage.cc
  18000. (create): New function.
  18001. (send): Removed.
  18002. (sendPredicate): New function.
  18003. (getMessage): New function.
  18004. (getMessageLength): New function.
  18005. (onSendComplete): New function.
  18006. * src/PieceMessage.h
  18007. (leftPieceDataLength): Removed.
  18008. (leftDataLength): New variable.
  18009. (headerSend): New variable.
  18010. (pendingCount): New variable.
  18011. (msgHeader): New variable.
  18012. (sendPieceData): New function.
  18013. (incrementPendingCount): New function.
  18014. (isPendingCountMax): New function.
  18015. (create): New function.
  18016. (getMessageHeader): New function.
  18017. (getMessageHeaderLength): New function.
  18018. * src/PieceMessage.cc
  18019. (create): New function.
  18020. (getMessageHeader): New function.
  18021. (getMessageHeaderLength): New function.
  18022. (send): Rewritten.
  18023. (sendPieceData): New function.
  18024. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18025. (msg): New variable.
  18026. (create): New function.
  18027. (getMessage): New function.
  18028. (getMessageLength): New function.
  18029. * src/HaveMessage.cc
  18030. (create): New function.
  18031. (send): Removed.
  18032. (sendPieceData): New function.
  18033. (getMessage): New function.
  18034. (getMessageLength): New function.
  18035. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18036. (msg): New variable.
  18037. (create): New function.
  18038. (send): Removed.
  18039. (getMessage): New function.
  18040. (getMessageLength): New function.
  18041. * src/RequestMessage.cc
  18042. (create): New function.
  18043. (receivedAction): Added the handling of fast extension.
  18044. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18045. (send): Removed.
  18046. (getMessage): New function.
  18047. (getMessageLength): New function.
  18048. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18049. (msg): New variable.
  18050. (sendPredicate): New function.
  18051. (onSendComplete): New function.
  18052. (create): New function.
  18053. (getMessage): New function.
  18054. (getMessageLength): New function.
  18055. * src/InterestedMessage.cc
  18056. (create): New function.
  18057. (send): Removed.
  18058. (sendPieceData): New function.
  18059. (getMessage): New function.
  18060. (getMessageLength): New function.
  18061. (onSendComplete): New function.
  18062. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18063. (msg): New variable.
  18064. (sendPieceData): New function.
  18065. (onSendComplete): New function.
  18066. (create): New function.
  18067. (send): Removed.
  18068. (getMessage): New function.
  18069. (getMessageLength): New function.
  18070. * src/NotInterestedMessage.cc
  18071. (create): New function.
  18072. (send): Removed.
  18073. (sendPredicate): New function.
  18074. (getMessage): New function.
  18075. (getMessageLength): New function.
  18076. (onSendComplete): New function.
  18077. * src/AllowedFastMessage.h: New class.
  18078. * src/AllowedFastMessage.cc: New class.
  18079. * src/RejectMessage.h: New class.
  18080. * src/RejectMessage.cc: New class.
  18081. * src/SuggestPieceMessage.h: New class.
  18082. * src/SuggestPieceMessage.cc: New class.
  18083. * src/HaveAllMessage.h: New class.
  18084. * src/HaveAllMessage.cc: New class.
  18085. * src/HaveNoneMessage.h: New class.
  18086. * src/HaveNoneMessage.cc: New class.
  18087. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18088. (msg): New variable.
  18089. (reserved): New variable.
  18090. (create): New function.
  18091. (getId): New function.
  18092. (receivedAction): New function.
  18093. (getMessage): New function.
  18094. (getMessageLength): New function.
  18095. (isFastExtensionSupported): New function.
  18096. * src/HandshakeMessage.cc
  18097. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18098. (create): New function.
  18099. (getMessage): New function.
  18100. (getMessageLength): New function.
  18101. (toString): Added the output of reserved field.
  18102. (check): Added const qualifier.
  18103. (isFastExtensionSupported): New function.
  18104. * src/PeerMessageUtil.h
  18105. (createChokeMessage): Removed.
  18106. (createUnchokeMessage): Removed.
  18107. (createInterestedMessage): Removed.
  18108. (createNotInterestedMessage): Removed.
  18109. (createHaveMessage): Removed.
  18110. (createBitfieldMessage): Removed.
  18111. (createRequestMessage): Removed.
  18112. (createCancelMessage): Removed.
  18113. (createPieceMessage): Removed.
  18114. (createPortMessage): Removed.
  18115. (createChokeMessage): Removed.
  18116. (createUnchokeMessage): Removed.
  18117. (createInterestedMessage): Removed.
  18118. (createNotInterestedMessage): Removed.
  18119. (createHaveMessage): Removed.
  18120. (createBitfieldMessage): Removed.
  18121. (createRequestMessage): Removed.
  18122. (createCancelMessage): Removed.
  18123. (createPieceMessage): Removed.
  18124. (createKeepAliveMessage): Removed.
  18125. (createHandshakeMessage): Removed.
  18126. (setIntParam): New function.
  18127. (createPeerMessageString): New function.
  18128. * src/PeerMessageUtil.cc
  18129. (createChokeMessage): Removed.
  18130. (createUnchokeMessage): Removed.
  18131. (createInterestedMessage): Removed.
  18132. (createNotInterestedMessage): Removed.
  18133. (createHaveMessage): Removed.
  18134. (createBitfieldMessage): Removed.
  18135. (createRequestMessage): Removed.
  18136. (createCancelMessage): Removed.
  18137. (createPieceMessage): Removed.
  18138. (createPortMessage): Removed.
  18139. (createRequestMessage): Removed.
  18140. (createCancelMessage): Removed.
  18141. (createPieceMessage): Removed.
  18142. (createHaveMessage): Removed.
  18143. (createChokeMessage): Removed.
  18144. (createUnchokeMessage): Removed.
  18145. (createInterestedMessage): Removed.
  18146. (createNotInterestedMessage): Removed.
  18147. (createBitfieldMessage): Removed.
  18148. (createKeepAliveMessage): Removed.
  18149. (createHandshakeMessage): Removed.
  18150. (setIntParam): New function.
  18151. (createPeerMessageString): New function.
  18152. * src/PeerConnection.h
  18153. (peer): Removed.
  18154. (torrentMan): Removed.
  18155. (createNLengthMessage): Removed.
  18156. (setIntParam): Removed.
  18157. (writeOutgoingMessageLog): Removed all overloaded functions.
  18158. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18159. (sendMessage): New function.
  18160. (sendHandshake): Removed.
  18161. (sendKeepAlive): Removed.
  18162. (sendChoke): Removed.
  18163. (sendUnchoke): Removed.
  18164. (sendInterested): Removed.
  18165. (sendNotInterested): Removed.
  18166. (sendHave): Removed.
  18167. (sendBitfield): Removed.
  18168. (sendRequest): Removed.
  18169. (sendPiece): Removed.
  18170. (sendPieceHeader): Removed.
  18171. (sendPieceData): Removed.
  18172. (sendCancel): Removed.
  18173. (getPeer): Removed.
  18174. * src/PeerConnection.cc
  18175. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18176. (sendHandshake): Removed.
  18177. (sendKeepAlive): Removed.
  18178. (createNLengthMessage): Removed.
  18179. (setIntParam): Removed.
  18180. (writeOutgoingMessageLog): Removed all overloaded functions.
  18181. (sendChoke): Removed.
  18182. (sendUnchoke): Removed.
  18183. (sendInterested): Removed.
  18184. (sendNotInterested): Removed.
  18185. (sendHave): Removed.
  18186. (sendBitfield): Removed.
  18187. (sendRequest): Removed.
  18188. (sendPiece): Removed.
  18189. (sendPieceHeader): Removed.
  18190. (sendPieceData): Removed.
  18191. (sendMessage): New function.
  18192. (sendCancel): Removed.
  18193. * src/PeerInteractionCommand.cc
  18194. (PeerInteractionCommand): Call setUploadLimit.
  18195. (executeInternal): Call setUploadLimit.
  18196. Added the handling of "inProgress" state of handshake message.
  18197. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18198. sendNow().
  18199. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18200. sendNow().
  18201. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18202. * src/TorrentMan.h
  18203. (PEER_ID_LENGTH): New definition.
  18204. (hasAllPieces): New function.
  18205. * src/TorrentMan.cc
  18206. (getMissingPiece): Added the handling of fast extension.
  18207. (cancelPiece): Call updatePiece().
  18208. (hasAllPieces): New function.
  18209. * src/PeerInteraction.h
  18210. (fastSet): New variable.
  18211. (getNewPieceAndSendInterest): Changed the return type to void.
  18212. (send): Renamed as sendMessages.
  18213. (deleteAllRequestSlot): Removed.
  18214. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18215. (cancelAllRequest): Removed all overloaded functions.
  18216. (deleteAllRequestSlot): Removed.
  18217. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18218. (rejectPieceMessageInQueue): New function.
  18219. (rejectAllPieceMessageInQueue): New function.
  18220. (onChoked): New function.
  18221. (isSendingMessageInProgress): New function.
  18222. (getCorrespondingRequestSlot): Changed its arguments.
  18223. (isInFastSet): New function.
  18224. (addFastSetIndex): New function.
  18225. (addRequests): New function.
  18226. (sendNow): Removed.
  18227. (trySendNow): Removed.
  18228. (sendBitfield): New function.
  18229. (sendAllowdFast): New function.
  18230. (createHaveAllMessage): New function.
  18231. (createHaveNoneMessage): New function.
  18232. (createRejectMessage): New function.
  18233. (createAllowedFastMessage): New function.
  18234. * src/PeerInteraction.cc
  18235. (send): Renamed as sendMessages.
  18236. (sendMessages): New function.
  18237. (MsgPushBack): New class.
  18238. (isSendingMessageInProgress): New function.
  18239. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18240. (rejectAllPieceMessageInQueue): New function.
  18241. Added the handling of fast extension.
  18242. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18243. (rejectPieceMessageInQueue): New function.
  18244. Added the handling of fast extension.
  18245. (deleteRequestSlot): Replaced for loop with std::find.
  18246. (onChoked): New function.
  18247. (deleteAllRequestSlot): Removed.
  18248. (abortPiece): Rewirtten.
  18249. (deleteTimeoutRequestSlot): Updated log messages.
  18250. (getCorrespondingRequestSlot): Changed its arguments.
  18251. (cancelAllRequest): Removed all overloaded functions.
  18252. (receiveHandshake): Added the check to see whether an incoming peer
  18253. supports fast extension.
  18254. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18255. PeerMessageUtil.
  18256. (createPeerMessage): Use create() of each message class instead of
  18257. PeerMessageUtil.
  18258. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18259. AllowedFastMessage were added.
  18260. (getNewPieceAndSendInterest): Changed its return value type to void.
  18261. Added the handling of fast extension.
  18262. (addRequests): New function.
  18263. (sendNow): Removed.
  18264. (sendHandshake): Rewritten.
  18265. (trySendNow): Removed.
  18266. (sendBitfield): New function.
  18267. (sendAllowdFast): New function.
  18268. (isInFastSet): New function.
  18269. (addFastSetIndex): New function.
  18270. (createRequestMessage): Use RequestMessage::create instead of
  18271. PeerMessageUtil.
  18272. (createCancelMessage): Use CancelMessage::create instead of
  18273. PeerMessageUtil.
  18274. (createPieceMessage): Use PieceMessage::create instead of
  18275. PeerMessageUtil.
  18276. (createHaveMessage): Use HaveMessage::create instead of
  18277. PeerMessageUtil.
  18278. (createChokeMessage): Use ChokeMessage::create instead of
  18279. PeerMessageUtil.
  18280. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18281. PeerMessageUtil.
  18282. (createInterestedMessage): Use InterestedMessage::create instead of
  18283. PeerMessageUtil.
  18284. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18285. of PeerMessageUtil.
  18286. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18287. PeerMessageUtil.
  18288. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18289. PeerMessageUtil.
  18290. (createHaveAllMessage): New function.
  18291. (createHaveNoneMessage): New function.
  18292. (createRejectMessage): New function.
  18293. (createAllowedFastMessage: New function.
  18294. * src/Util.h
  18295. (sha1Sum): New function.
  18296. (computeFastSet): New function.
  18297. * src/Util.cc
  18298. (sha1Sum): New function.
  18299. (computeFastSet): New function.
  18300. * src/Peer.h
  18301. (fastExtensionEnabled): New variable.
  18302. (fastSet): New variable.
  18303. (setAllBitfield): New function.
  18304. (setFastExtensionEnabled): New function.
  18305. (isFastExtensionEnabled): New function.
  18306. (addFastSetIndex): New function.
  18307. (getFastSet): New function.
  18308. (isInFastSet): New function.
  18309. (countFastSet): New function.
  18310. * src/Peer.cc
  18311. (isInFastSet): New function.
  18312. (addFastSetIndex): New function.
  18313. (setAllBitfield): New function.
  18314. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18315. sockets.
  18316. * src/PeerAbstractCommand.cc
  18317. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18318. and uploadLimit.
  18319. (execute): Changed the procedure of checking sockets. The upload speed
  18320. checking were added.
  18321. (setUploadLimit): New function.
  18322. (setUploadLimitCheck): New function.
  18323. * src/PeerAbstractCommand.h
  18324. (setUploadLimit): New function.
  18325. (setUploadLimitCheck): New function.
  18326. (uploadLimit): New variable.
  18327. (uploadLimitCheck): New variable.
  18328. To contact a tracker regularly:
  18329. * src/TrackerWatcherCommand.h (interval): New variable.
  18330. (checkPoint): New variable.
  18331. (TrackerWatcherCommand): Added interval argument.
  18332. * src/TrackerWatcherCommand.cc
  18333. (TrackerWatcherCommand): Initialized checkPoint.
  18334. (execute): Now a tracker is contacted in every specified period.
  18335. If peer list is not needed, send request with numwant=0.
  18336. * src/TrackerUpdateCommand.cc
  18337. (execute): Updated log messages.
  18338. * src/DownloadEngine.cc
  18339. (~DownloadEngine): Removed two asserts.
  18340. (waitData): Uncommented wfds. May be a bug fix.
  18341. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18342. * src/PeerInteractionCommand.h
  18343. (checkInactiveConnection): Removed.
  18344. * src/PeerInteractionCommand.cc
  18345. (executeInternal): Removed following function calls:
  18346. detectMessageFlooding(), checkLongTimePeerChoking and
  18347. checkInactiveConnection().
  18348. (checkInactiveConnection): Removed.
  18349. (detectMessageFlooding): Removed function call to
  18350. checkInactiveConnection().
  18351. * src/PeerMessageUtil.h
  18352. (createChokeMessage): New function. Overload.
  18353. (createUnchokeMessage): New function. Overload.
  18354. (createInterestedMessage): New function. Overload.
  18355. (createNotInterestedMessage): New function. Overload.
  18356. (createHaveMessage): New function. Overload.
  18357. (createBitfieldMessage): New function. Overload.
  18358. (createRequestMessage): New function. Overload.
  18359. (createCancelMessage): New function. Overload.
  18360. (createPieceMessage): New function. Overload.
  18361. (createKeepAliveMessage): New function. Overload.
  18362. * src/PeerMessageUtil.cc
  18363. (createChokeMessage): New function. Overload.
  18364. (createUnchokeMessage): New function. Overload.
  18365. (createInterestedMessage): New function. Overload.
  18366. (createNotInterestedMessage): New function. Overload.
  18367. (createHaveMessage): New function. Overload.
  18368. (createBitfieldMessage): New function. Overload.
  18369. (createRequestMessage): New function. Overload.
  18370. (createCancelMessage): New function. Overload.
  18371. (createPieceMessage): New function. Overload.
  18372. (createKeepAliveMessage): New function. Overload.
  18373. * src/SendMessageQueue.cc
  18374. (createRequestMessage): Use PeerMessageUtil.
  18375. (createCancelMessage): Use PeerMessageUtil.
  18376. (createPieceMessage): Use PeerMessageUtil.
  18377. (createHaveMessage): Use PeerMessageUtil.
  18378. (createChokeMessage): Use PeerMessageUtil.
  18379. (createUnchokeMessage): Use PeerMessageUtil.
  18380. (createInterestedMessage): Use PeerMessageUtil.
  18381. (createNotInterestedMessage): Use PeerMessageUtil.
  18382. (createBitfieldMessage): Use PeerMessageUtil.
  18383. (createKeepAliveMessage): Use PeerMessageUtil.
  18384. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18385. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18386. * src/PeerInteraction.h: New class.
  18387. * src/PeerInteraction.cc: New class.
  18388. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18389. Each peer message has its own class.
  18390. * src/PendingMessages.h: Removed.
  18391. * src/PendingMessages.cc: Removed. The sending process was moved to
  18392. each message class.
  18393. * src/RequestSlotMan.h: Removed.
  18394. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18395. SendMessageQueue.
  18396. * src/RequestMessage.h: New class.
  18397. * src/RequestMessage.cc: New class.
  18398. * src/CancelMessage.h: New class.
  18399. * src/CancelMessage.cc: New class.
  18400. * src/BitfieldMessage.h: New class.
  18401. * src/BitfieldMessage.cc: New class.
  18402. * src/ChokeMessage.h: New class.
  18403. * src/ChokeMessage.cc: New class.
  18404. * src/KeepAliveMessage.h: New class.
  18405. * src/KeepAliveMessage.cc: New class.
  18406. * src/PortMessage.h: New class.
  18407. * src/UnchokeMessage.h: New class.
  18408. * src/UnchokeMessage.cc: New class.
  18409. * src/PieceMessage.h: New class.
  18410. * src/PieceMessage.cc: New class.
  18411. * src/HaveMessage.h: New class.
  18412. * src/HaveMessage.cc: New class.
  18413. * src/BitfieldMessage.h: New class.
  18414. * src/BitfieldMessage.cc: New class.
  18415. * src/NotInterestedMessage.h: New class.
  18416. * src/NotInterestedMessage.cc: New class.
  18417. * src/InterestedMessage.h: New class.
  18418. * src/InterestedMessage.cc: New class.
  18419. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18420. (getSendMessageQueue): New function.
  18421. (setSendMessageQueue): New function.
  18422. * src/HandshakeMessage.cc: New class.
  18423. * src/PeerConnection.h (receiveMessage): Changed return value and
  18424. arguments.
  18425. (receiveHandshake): Changed return value and arguments.
  18426. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18427. here.
  18428. (receiveHandshake): Do not create handshake class here.
  18429. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18430. (piece): Removed.
  18431. (syncPiece): Removed.
  18432. (sendInterest): Removed.
  18433. (sendMessages): Removed.
  18434. (createRequestPendingMessage): Removed.
  18435. (checkPieceHash): Removed.
  18436. (erasePieceOnDisk): Removed.
  18437. (getNewPieceAndSendInterest): Removed.
  18438. (onGotNewPice): Removed.
  18439. (onGotWrongPiece): Removed.
  18440. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18441. Removed peerConnection, piece.
  18442. (~PeerInteractionCommand): Removed peerConnection.
  18443. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18444. (syncPiece): Moved to SendMessageQueue.
  18445. (decideChoking): Removed PendingMessage.
  18446. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18447. The action after receiving peer message was moved to each message
  18448. class.
  18449. (onGotNewPice): Moved to SendMessageQueue.
  18450. (onGotWrongPiece): Moved to SendMessageQueue.
  18451. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18452. (sendInterest): Moved to SendMessageQueue.
  18453. (createRequestPendingMessage): Removed.
  18454. (sendMessages): Moved to SendMessageQueue.
  18455. (onAbort): Use SendMessageQueue::abortPiece()
  18456. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18457. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18458. (checkPieceHash): Moved to SendMessageQueue.
  18459. (erasePieceOnDisk): Moved to SendMessageQueue.
  18460. * src/PeerMessageUtil.h
  18461. (createBitfieldMessage): Removed.
  18462. (createHaveMessage): Changed return value and arguments.
  18463. (createBitfieldMessage): Changed return value and arguments.
  18464. (createRequestCancelMessage): Removed.
  18465. (createPieceMessage): Changed return value and arguments.
  18466. (getShortIntParam): New function.
  18467. (checkIndex): Changed arguments.
  18468. (checkBegin): Changed arguments.
  18469. (checkLength): Changed arguments.
  18470. (checkPieceOffset): Removed.
  18471. (checkRange): New function.
  18472. (checkBitfield): Changed arguments.
  18473. (createPeerMessage): Removed.
  18474. (checkIntegrity): Removed.
  18475. (createHandshakeMessage): Changed arguments.
  18476. (createChokeMessage): New function.
  18477. (createUnchokeMessage): New function.
  18478. (createInterestedMessage): New function.
  18479. (createNotInterestedMessage): New function.
  18480. (createRequestMessage): New function.
  18481. (createCancelMessage): New function.
  18482. (createPortMessage): New function.
  18483. * src/PeerMessageUtil.cc
  18484. (createBitfieldMessage): Removed.
  18485. (createHaveMessage): Changed return value and arguments.
  18486. (createBitfieldMessage): Changed return value and arguments.
  18487. (createRequestCancelMessage): Removed.
  18488. (createPieceMessage): Changed return value and arguments.
  18489. (getShortIntParam): New function.
  18490. (checkIndex): Changed arguments.
  18491. (checkBegin): Changed arguments.
  18492. (checkLength): Changed arguments.
  18493. (checkPieceOffset): Removed.
  18494. (checkRange): New function.
  18495. (checkBitfield): Changed arguments.
  18496. (createPeerMessage): Removed.
  18497. (checkIntegrity): Removed.
  18498. (createHandshakeMessage): Changed arguments.
  18499. (createChokeMessage): New function.
  18500. (createUnchokeMessage): New function.
  18501. (createInterestedMessage): New function.
  18502. (createNotInterestedMessage): New function.
  18503. (createRequestMessage): New function.
  18504. (createCancelMessage): New function.
  18505. (createPortMessage): New function.
  18506. * src/PeerMessage.h
  18507. (id): Removed.
  18508. (index): Removed.
  18509. (begin): Removed.
  18510. (length): Removed.
  18511. (bitfield): Removed.
  18512. (bitfieldLength): Removed.
  18513. (block): Removed.
  18514. (blockLength): Removed.
  18515. (inProgress): New variable.
  18516. (cuid): New variable.
  18517. (peer): New variable.
  18518. (sendMessageQueue): New variable.
  18519. (logger): New variable.
  18520. (setBitfield): Removed.
  18521. (getBitfield): Removed.
  18522. (setBlock): Removed.
  18523. (getBlock): Removed.
  18524. (getBitfieldLength): Removed.
  18525. (getBlockLength): Removed.
  18526. (isInProgress): New function.
  18527. (toString): Made pure virtual.
  18528. (check): New function.
  18529. (send): New function.
  18530. (receivedAction): New function.
  18531. (getId): Made pure virtual.
  18532. (setId): Removed.
  18533. (getIndex): Removed.
  18534. (setIndex): Removed.
  18535. (getBegin): Removed.
  18536. (setBegin): Removed.
  18537. (getLength): Removed.
  18538. (setLength): Removed.
  18539. (getCuid): New function.
  18540. (setCuid): New function.
  18541. (getPeer): New function.
  18542. (setPeer): New function.
  18543. (getSendMessageQueue): New function.
  18544. (setSendMessageQueue): New function.
  18545. (ID): Removed.
  18546. * src/PeerMessage.cc
  18547. (setBitfield): Removed.
  18548. (setBlock): Removed.
  18549. (toString): Removed.
  18550. * src/TorrentMan.h
  18551. (getPieceLength): New function.
  18552. (getPieceLength): New function.
  18553. * src/SendMessageQueue.h
  18554. (REQUEST_TIME_OUT): New definition.
  18555. (RequestSlots): New definition.
  18556. (MessageQueue): New definition.
  18557. (requestSlotMan): Removed.
  18558. (pendingMessages): Removed.
  18559. (requestSlots): New variable.
  18560. (messageQueue): New variable.
  18561. (torrentMan): New variable.
  18562. (peerConnection): New variable.
  18563. (peer): New variable.
  18564. (piece): New variable.
  18565. (getNewPieceAndSendInterest): New function.
  18566. (createPeerMessage): New function.
  18567. (createHandshakeMessage): New function.
  18568. (send): Made private.
  18569. (setPeerMessageCommonProperty): New function.
  18570. (deleteAllRequestSlot): New function.
  18571. (deleteRequestMessageInQueue): New function.
  18572. (cancelAllRequest): Made private.
  18573. (cancelAllRequest): Made private.
  18574. (countRequestSlot): Made private.
  18575. (addPendingMessage): Removed.
  18576. (deletePendingPieceMessage): Removed.
  18577. (deletePendingRequestMessage): Removed.
  18578. (addMessage): New function.
  18579. (deletePieceMessageInQueue): New function.
  18580. (deleteTimeoutRequestSlot): Changed argument.
  18581. (deleteCompletedRequestSlot): Changed argument.
  18582. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18583. (getCorrespondingRequestSlot): New function.
  18584. (countPendingMessage): Removed.
  18585. (countMessageInQueue): New function.
  18586. (getTorrentMan): New function.
  18587. (getPeerConnection): New function.
  18588. (hasDownloadPiece): New function.
  18589. (getDownloadPiece): New function.
  18590. (setDownloadPiece): New function.
  18591. (syncPiece): New function.
  18592. (sendMessages): New function.
  18593. (sendNow): New function.
  18594. (trySendNow): New function.
  18595. (abortPiece): New function.
  18596. (sendHandshake): New function.
  18597. (receiveMessage): New function.
  18598. (receiveHandshake): New function.
  18599. (createRequestMessage): New function.
  18600. (createCancelMessage): New function.
  18601. (createPieceMessage): New function.
  18602. (createHaveMessage): New function.
  18603. (createChokeMessage): New function.
  18604. (createUnchokeMessage): New function.
  18605. (createInterestedMessage): New function.
  18606. (createNotInterestedMessage): New function.
  18607. (createBitfieldMessage): New function.
  18608. (createKeepAliveMessage): New function.
  18609. * src/SendMessageQueue.cc
  18610. (SendMessageQueue): Removed requestSlotMan.
  18611. Instantiated peerConnection here.
  18612. (~SendMessageQueue): Removed requestSlotMan.
  18613. Added deletion of peerConnection and the contents of messageQueue.
  18614. (send): Updated according to the change of messageQueue.
  18615. (addPendingMessage): Renamed to addMessage.
  18616. (addMessage): New function.
  18617. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18618. (deletePieceMessageInQueue): New function.
  18619. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18620. (deleteRequestMessageInQueue): New function.
  18621. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18622. here.
  18623. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18624. (...) was moved here.
  18625. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18626. moved here.
  18627. (deleteCompletedRequestSlot):
  18628. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18629. (getCorrespondingRequestSlot):
  18630. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18631. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18632. (countPendingMessage): Renamed to countMessageInQueue.
  18633. (countMessageInQueue): New function.
  18634. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18635. (receiveHandshake): New function.
  18636. (createHandshakeMessage): New function.
  18637. (receiveMessage): New function.
  18638. (createPeerMessage): New function.
  18639. (syncPiece): New function.
  18640. (getNewPieceAndSendInterest): New function.
  18641. (sendMessages): New function.
  18642. (sendNow): New function.
  18643. (trySendNow): New function.
  18644. (sendHandshake): New function.
  18645. (abortPiece): New function.
  18646. (getDownloadPiece): New function.
  18647. (getPeerMessageCommonProperty): New function.
  18648. (createRequestMessage): New function.
  18649. (createCancelMessage): New function.
  18650. (createPieceMessage): New function.
  18651. (createHaveMessage): New function.
  18652. (createChokeMessage): New function.
  18653. (createUnchokeMessage): New function.
  18654. (createInterestedMessage): New function.
  18655. (createNotInterestedMessage): New function.
  18656. (createBitfieldMessage): New function.
  18657. (createKeepAliveMessage): New function.
  18658. To add simple Content-Disposition support:
  18659. * src/HttpResponseCommand.h (determinFilename): New function.
  18660. * src/HttpResponseCommand.cc (executeInternal):
  18661. Use determinFilename(headers) instead of req->getFile() when comparing
  18662. filename.
  18663. (determinFilename): New function.
  18664. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18665. req->getFile().
  18666. (handleOtherEncoding): Use determinFilename(headers) instead of
  18667. req->getFile().
  18668. * src/Util.h (getContentDispositionFilename): New function.
  18669. * src/Util.cc (getContentDispositionFilename): New function.
  18670. * src/LogFactory.h (release): New function.
  18671. * src/LogFactory.cc (release): New function.
  18672. To fix a bug that causes out-of-bound exception when HTTP status
  18673. line is wrong:
  18674. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18675. size.
  18676. * src/common.h (Deleter): New class.
  18677. * src/SegmentMan.cc
  18678. (~SegmentMan): Added deletion of splitter and diskWriter.
  18679. * src/DownloadEngine.h
  18680. (Commands): Use deque.
  18681. (clearQueue): New function.
  18682. * src/DownloadEngine.cc
  18683. (~DownloadEngine): Added deletion of segmentMan.
  18684. (cleanQueue): New function.
  18685. * src/TorrentDownloadEngine.h
  18686. (TorrentDownloadEngine): The implementation was moved to
  18687. TorrentDownloadEngine.cc.
  18688. (~TorrentDownloadEngine): The implementation was moved to
  18689. TorrentDownloadEngine.cc.
  18690. * src/TorrentDownloadEngine.cc
  18691. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18692. * src/main.cc
  18693. (clearRequest): Removed.
  18694. (handler): Added deletion of e.
  18695. (torrentHandler): Added deletion of te.
  18696. (main): Do not share splitter.
  18697. Use Deleter instead of clearRequest.
  18698. Deletion of classes were updated.
  18699. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18700. * src/main.cc (main): Fixed typo.
  18701. * src/message.h: Fixed typo.
  18702. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18703. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18704. To add --select-file command-line option:
  18705. * src/Util.cc
  18706. (unfoldRange): New function.
  18707. (getNum): New function.
  18708. (unfoldSubRange): New function
  18709. * src/main.cc
  18710. (showUsage): Added help message.
  18711. (main): Added --select-file command-line option. Updated the layout of
  18712. file listing.
  18713. * src/common.h
  18714. (Integers): New definition.
  18715. * src/SocketCore.cc
  18716. (writeData): Removed timeout argument.
  18717. (readData): Removed timeout argument.
  18718. (peekData): Removed timeout argument.
  18719. * src/Socket.cc
  18720. (writeData): Removed timeout argument.
  18721. (readData): Removed timeout argument.
  18722. (peekData): Removed timeout argument.
  18723. * Release 0.4.1
  18724. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18725. To deploy upload rate based choking algorithm:
  18726. * src/PeerInteractionCommand.cc
  18727. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18728. peer currently used.
  18729. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18730. download completes. Simplified.
  18731. (receiveMessage): Updated.
  18732. * src/TorrentMan.h
  18733. (activePeers): New variable.
  18734. (addActivePeer): New function.
  18735. (getActivePeers): New function.
  18736. (deleteActivePeer): New function.
  18737. * src/TorrentMan.cc
  18738. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18739. * src/PeerAbstractCommand.cc
  18740. (onAbort): Use peer->resetStatus().
  18741. * src/main.cc
  18742. (PeerChokeCommand.h): Included.
  18743. (main): Added the instance of ChokingCommand to the command queue.
  18744. * src/Peer.h
  18745. (amChoking): Renamed from amChocking
  18746. (chokingRequired): New variable.
  18747. (optUnchoking): New variable.
  18748. (deltaUpload): New variable.
  18749. (deltaDownload): New variable.
  18750. (addDeltaUpload): New function.
  18751. (resetDeltaUpload): New function.
  18752. (addDeltaDownload): New function.
  18753. (resetDeltaDownload): New function.
  18754. (addPeerUpload): Added a call to addDeltaUpload.
  18755. (addPeerDownload): Added a call to addDeltaDownload.
  18756. * src/Peer.cc
  18757. (shouldBeChoking): Renamed from shouldChoke.
  18758. (resetStatus): New function.
  18759. * src/PeerChokeCommand.h: New class.
  18760. * src/PeerChokeCommand.cc: New class.
  18761. To add lazy upload speed limiter:
  18762. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18763. statistics calculation to TorrentDownloadEngine.
  18764. * src/TorrentConsoleDownloadEngine.cc
  18765. (sendStatistics): Renamed from printStatistics.
  18766. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18767. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18768. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18769. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18770. calculation.
  18771. (sendStatistics): New function as pure virtual function.
  18772. (getUploadSpeed): New function.
  18773. * src/TorrentDownloadEngine.cc
  18774. (initStatistics): New function.
  18775. (calculateSpeed): New function.
  18776. (calculateStatistics): New function.
  18777. * src/SendMessageQueue.h
  18778. (uploadLength): New variable.
  18779. (send): Added an argument.
  18780. (setUploadLimit): New function.
  18781. (getUploadLimit): New function.
  18782. * src/SendMessageQueue.cc
  18783. (send): Added upload speed limiter.
  18784. * src/prefs.h
  18785. (PREF_UPLOAD_LIMIT): New definition.
  18786. * src/PeerInteractionCommand.cc
  18787. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18788. * src/main.cc
  18789. (main): Added --upload-limit option
  18790. For bug fixes:
  18791. * src/main.cc
  18792. (showUsage): Corrected --listen-port help
  18793. Other changes:
  18794. * src/TorrentMan.cc
  18795. (getPeer): Return nullPeer if connection is grather than
  18796. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18797. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18798. To add some useful information to the exception message:
  18799. * src/SocketCore.cc : Updated messages.
  18800. * src/SegmentMan.cc :
  18801. * src/TorrentMan.cc : Updated messages.
  18802. * src/MultiDiskWriter.cc : Updated messages.
  18803. * src/Util.cc : Updated messages.
  18804. * src/AbstractDiskWriter.cc : Updated messages.
  18805. * src/PreAllocationDiskWriter.cc : Updated messages.
  18806. * src/message.cc : Added new messages. Updated some messages.
  18807. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18808. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18809. Updated threshold from 30 to 15.
  18810. * src/AbstractDiskWriter.h (filename): New variable.
  18811. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18812. (createFile): Assigned filename.
  18813. * src/main.cc: Updated the help message for http-auth-scheme.
  18814. * Release 0.4.0
  18815. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18816. To add TrackerUpdateCommand with which replaces
  18817. CompactTrackerResponseProcessor:
  18818. * src/TrackerWatcherCommand.h (req): Removed.
  18819. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18820. if the number of peer connections are less than 30.
  18821. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18822. * src/SegmentMan.h (diskWriter): New function.
  18823. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18824. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18825. (main): Use TrackerUpdateCommand.
  18826. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18827. (req): New variable.
  18828. (setTrackerResponseProcessor): Removed.
  18829. (getTrackerResponseProcessor): Removed.
  18830. (processTrackerResponse): Removed.
  18831. * src/DownloadEngine.h (diskWriter): Removed.
  18832. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18833. to torrentMan->processTrackerResponse().
  18834. To add Util::expandBuffer:
  18835. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18836. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18837. * src/Util.h (expandBuffer): New function.
  18838. To fix the bug that causes segmentation fault when "-l ." is specified
  18839. in command-line option:
  18840. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18841. (openFile): New function.
  18842. (closeFile): New function.
  18843. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18844. (~SimpleLogger): Call closeFile();
  18845. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18846. * src/main.cc (main): Added a check to see logger is configured
  18847. properly.
  18848. To enable HTTP authentication without specifying "--http-auth-scheme"
  18849. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18850. * src/HttpConnection.cc (createRequest): Send Authorization header
  18851. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18852. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18853. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18854. * src/Peer.cc (shouldChoke): Updated algorithm.
  18855. * src/message.h (EX_AUTH_FAILED): New definition.
  18856. (EX_FILE_OPEN): New definition.
  18857. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18858. if status == 401.
  18859. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18860. if req->isTorrent == true.
  18861. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18862. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18863. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18864. (createFile): Updated message.
  18865. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18866. To add a readout of estimated remaining time to normal HTTP/FTP
  18867. downloads:
  18868. * src/ConsoleDownloadEngine.h (startup): New variable.
  18869. (startupLength): New variable.
  18870. (isStartupLengthSet): New variable.
  18871. (avgSpeed): New variable.
  18872. (eta): New variable.
  18873. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18874. estimated remaining time.
  18875. (initStatistics): Initialized newly added variables.
  18876. (calculateStatistics): Calculate average speed and estimated remaining
  18877. time.
  18878. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18879. * src/TrackerDownloadCommand.h: Removed.
  18880. * src/TrackerDownloadCommand.cc: Removed.
  18881. * src/TrackerInitCommand.h: Removed.
  18882. * src/TrackerInitCommand.cc: Removed.
  18883. * src/TrackerUpdateCommand.h: Removed.
  18884. * src/TrackerUpdateCommand.cc: Removed.
  18885. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18886. url written in TrackerInitCommand was moved here. Do not create
  18887. tracker request command if torrentMan->trackers != 0.
  18888. * src/CompactTrackerResponseProcessor.h: New class.
  18889. * src/CompactTrackerResponseProcessor.cc: New class.
  18890. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18891. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18892. Decoupled TorrentDownloadEngine from this.
  18893. * src/SegmentMan.h (init): New function.
  18894. * src/SegmentMan.cc (init): New function.
  18895. * src/TorrentMan.h (responseProcessor): New variable.
  18896. (trackers): New variable.
  18897. (setTrackerResponseProcessor): New function.
  18898. (getTrackerResponseProcessor): New function.
  18899. (processTrackerResponse): New function.
  18900. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18901. (processTrackerResponse): New function.
  18902. * src/main.cc (main): Use ByteArrayDiskWriter and
  18903. CompactTrackerResponseProcessor.
  18904. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18905. processTrackerResponse().
  18906. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18907. readout.
  18908. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18909. which indicates download has completed.
  18910. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18911. (closeFile): fd >= 0, not fd > 0
  18912. * src/main.cc (main): Added short cut for show-files.
  18913. Added short cut for torrent-file.
  18914. Added new command-line option listen-port.
  18915. Updated i18n messages.
  18916. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18917. To add LogFactory which creates singleton logger:
  18918. * src/LogFactory.h: New class.
  18919. * src/LogFactory.cc: New class.
  18920. * src/Command.h (logger): New variable.
  18921. (Constructor): Use LogFactory.
  18922. * src/AbstractCommand.cc: Use Command::logger
  18923. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18924. Use LogFactory.
  18925. * src/SegmentSplitter.h : Made logger protected.
  18926. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18927. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18928. * src/DownloadEngine.h : Made logger protected.
  18929. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18930. * src/PeerInteractionCommand.cc : Use Command::logger.
  18931. * src/HttpResponseCommand.cc : Use Command::logger.
  18932. * src/SegmentMan.h : Made logger private.
  18933. * src/TorrentMan.h : Made logger private.
  18934. * src/TorrentMan.cc : Use LogFactory.
  18935. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18936. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18937. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18938. Use LogFactory.
  18939. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18940. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18941. Use LogFactory.
  18942. * src/DownloadCommand.cc : Use Command::logger.
  18943. * src/PeerAbstractCommand.cc : Use Command::logger.
  18944. * src/PeerListenCommand.cc : Use Command::logger.
  18945. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18946. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18947. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18948. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18949. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18950. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18951. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18952. Use LogFactory.
  18953. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18954. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18955. Use LogFactory.
  18956. * src/main.cc (main): Use LogFactory.
  18957. * src/DiskAdaptor.h (logger): New variable.
  18958. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18959. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18960. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18961. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18962. parameter to a tracker request.
  18963. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18964. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18965. * src/main.cc (setSignalHander): New function.
  18966. (main): Added a handler for SIGTERM.
  18967. (handler): Updated message.
  18968. (torrentHandler): Updated message.
  18969. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18970. * src/TorrentConsoleDownloadEngine.cc
  18971. (onPartialDownloadingCompletes): Renamed as
  18972. onSelectiveDownloadingCompletes.
  18973. (onSelectiveDownloadingCompletes): Updated message.
  18974. To add DiskAdaptor which abstract DiskWriter family:
  18975. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18976. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18977. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18978. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18979. MultiDiskAdaptor.h.
  18980. (readFileEntry): Changed its arguments.
  18981. (setup): setupDiskWriter is merged into this function.
  18982. (setupDiskWriter): Removed.
  18983. (setFileFilter): New function.
  18984. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18985. made in readFileEntry.
  18986. (getFilePath): Removed.
  18987. (getTempFilePath): Removed.
  18988. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18989. (fixFilename): Removed.
  18990. (copySingleFile): Removed.
  18991. (splitMultiFile): Removed.
  18992. (deleteTempFile): Removed.
  18993. (setFileEntriesToDownload): Removed.
  18994. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18995. (isSelectiveDownloadingMode): New function.
  18996. (setAllMultiFileRequestedState): Removed.
  18997. (finishPartialDownloadingMode): Renamed as
  18998. finishSelectiveDownloadingMode.
  18999. (finishSelectiveDownloadingMode): New function.
  19000. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19001. (getSelectedTotalLength): New function.
  19002. (onDownloadComplete): Use diskAdaptor.
  19003. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19004. (Range): Removed.
  19005. (setMultiFileEntries): Renamed as setFileEntries.
  19006. (setFileEntries): New function.
  19007. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19008. (pieceLength): New variable.
  19009. * src/main.cc (printDownloadCompeleteMessage): New function.
  19010. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19011. (main): Renamed torrent-show-files to show-files.
  19012. Rewritten file contents listing.
  19013. * src/TorrentMan.h (FileEntry): Removed.
  19014. (multiFileTopDir): Removed.
  19015. (multiFileEntries): Removed.
  19016. (diskWriter): Removed.
  19017. (diskAdaptor): New variable.
  19018. * src/DefaultDiskWriter.h (totalLength): New variable.
  19019. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19020. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19021. diskWriter.
  19022. * src/TorrentConsoleDownloadEngine.h
  19023. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19024. (partialTotalLength): Renamed as selectedTotalLength.
  19025. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19026. openExistingFile, otherwise call initAndOpenFile.
  19027. (closeFile): fd > 0, not fd != 0.
  19028. * src/DirectDiskAdaptor.h: New class.
  19029. * src/DirectDiskAdaptor.cc: New class.
  19030. * src/MultiDiskAdaptor.h: New class.
  19031. * src/MultiDiskAdaptor.cc: New class.
  19032. * src/CopyDiskAdaptor.h: New class.
  19033. * src/CopyDiskAdaptor.cc: New class.
  19034. * src/DiskAdaptor.h: New class.
  19035. * src/DiskAdaptor.cc: New class.
  19036. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19037. (PREF_SHOW_FILES): New definition.
  19038. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19039. To add the ability to download multi torrent into respective files
  19040. directly:
  19041. * src/DiskWriter.h (openFile): New function.
  19042. (seek): Removed.
  19043. * src/MultiDiskWriter.h: New class.
  19044. * src/MultiDiskWriter.cc: New class.
  19045. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19046. protected.
  19047. (openFile): New function.
  19048. * src/AbstractDiskWriter.cc (openFile): New function.
  19049. * src/prefs.h (V_FALSE): New definition.
  19050. (PREF_DIRECT_FILE_MAPPING): New definition.
  19051. * src/TorrentMan.h (setupDiskWriter): New function.
  19052. (setAllMultiFileRequestedState): New function.
  19053. (onDownloadComplete): New function.
  19054. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19055. (setupDiskWriter): New function.
  19056. (getFilePath): Updated.
  19057. (getTempFilePath): Updated.
  19058. (getSegmentFilePath): Updated.
  19059. (fixFilename): Updated.
  19060. (deleteTempFile): Updated.
  19061. (setAllMultiFileRequestedState): New function.
  19062. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19063. (finishPartialDownloadingMode): Reset requested flags.
  19064. (onDownloadComplete): New function.
  19065. * src/main.cc: Added --direct-file-mapping option.
  19066. Use TorrentMan::setupDiskWriter().
  19067. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19068. onDownloadComplete().
  19069. To fix ETA bug:
  19070. * src/Util.h (difftvsec): New function.
  19071. * src/Util.cc (difftvsec): New function.
  19072. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19073. type of "elapsed" instead of long long int.
  19074. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19075. The updates of statistics takes place every 1 seconds.
  19076. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19077. (calculateSpeed): Changed its argument signature.
  19078. * src/PeerMessage.cc (toString): Fixed message.
  19079. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19080. To print ETA:
  19081. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19082. completion handling when dealing with
  19083. TorrentMan::isPartialDownloadingMode() == true.
  19084. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19085. New function.
  19086. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19087. (sessionDownloadLength): New variable.
  19088. (avgSpeed): New variable.
  19089. (eta): New variable.
  19090. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19091. new variables: eta, avgSpeed, startup.
  19092. (calculateSpeed): Calculate average speed and ETA.
  19093. (printStatistics): Added ETA.
  19094. * src/Util.h (secfmt): New function.
  19095. * src/Util.cc (secfmt): New function.
  19096. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19097. To detect "keep alive" flooding:
  19098. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19099. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19100. variable: keepAliveCount.
  19101. (detectMessageFlooding): Added "keep alive" flooding detection.
  19102. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19103. received.
  19104. To add the ability to download only specified files in multi-file
  19105. torrent:
  19106. * src/BitfieldMan.h (filterBitfield): New variable.
  19107. (filterEnabled): New variable.
  19108. (setFilterBit): New function.
  19109. (enableFilter): New function.
  19110. (disableFilter): New function.
  19111. (isFilterEnabled): New function.
  19112. (getFilteredTotalLength): New function.
  19113. (getCompletedLength): New function.
  19114. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19115. filterBitfield, filterEnabled.
  19116. (CopyConstructor): Added filterBitfield and filterEnabled.
  19117. (operator==): Added filterBitfield and filterEnabled.
  19118. (Destructor): Added filterBitfield.
  19119. (getMissingIndex): Use filterBitfield.
  19120. (getMissingUnusedIndex): Use filterBitfield.
  19121. (getFirstMissingUnusedIndex): Use filterBitfield.
  19122. (getFirstMissingUnusedIndex): Use filterBitfield.
  19123. (getAllMissingIndexes): Use filterBitfield.
  19124. (countMissingBlock): Use filterBitfield.
  19125. (countBlock): Use filterBitfield.
  19126. (setBitInternal): Added new argument on.
  19127. (setUseBit): Use setBitInternal.
  19128. (unsetUseBit): Use setBitInternal.
  19129. (setBit): Use setBitInternal.
  19130. (unsetBit): Use setBitInternal.
  19131. (isAllBitSet): Use filterBitfield.
  19132. (setFilterBit): New function.
  19133. (addFilter): New function.
  19134. (enableFilter): New function.
  19135. (disableFilter): New function.
  19136. (clearFilter): New function.
  19137. (isFilterEnabled): New function.
  19138. (getFilteredTotalLength): New function.
  19139. (getCompletedLength): New function.
  19140. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19141. Initalized newly added variables.
  19142. [FileEntry](offset): New variable.
  19143. [FileEntry](extracted): New variable.
  19144. [FileEntry](requested): New variable.
  19145. (readFileEntry): New function.
  19146. (option): New variable.
  19147. (splitMultiFile): Removed const qualifier.
  19148. (fixFilename): Removed const qualifier.
  19149. (readFileEntryFromMetaInfoFile): New function.
  19150. (finishPartialDownloadingMode): New function.
  19151. (isPartialDownloadingMode): New function.
  19152. (setFileEntriesToDownload): New function.
  19153. (getCompletedLength): New function.
  19154. (getPartialTotalLength): New function.
  19155. * src/TorrentMan.cc (readFileEntry): New function.
  19156. (setup): Use readFileEntry. If no-preallocation option is specified,
  19157. use DefaultDiskWriter.
  19158. (readFileEntryFromMetaInfoFile): New function.
  19159. (fixFilename): Removed const qualifier.
  19160. (splitMultiFile): Removed const qualifier.
  19161. (setFileEntriesToDownload): New function.
  19162. (isPartialDownloadingMode): New function.
  19163. (finishPartialDownloadingMode): New function.
  19164. (getCompletedLength): New function.
  19165. (getPartialTotalLength): New function.
  19166. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19167. New variable.
  19168. (partialTotalLength): New variable.
  19169. (downloadLength): New variable.
  19170. (totalLength): New variable.
  19171. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19172. Added log.
  19173. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19174. partialTotalLength, downloadLength, totalLength.
  19175. (calculate): Calculate downloadLength and totalLength.
  19176. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19177. * src/main.cc (addCommand): Changed argument signature.
  19178. (main): Added new variable: args. Added new option "torrent-show-files"
  19179. "no-preallocation". Usage is not updated yet.
  19180. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19181. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19182. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19183. Attempt to add the ability to listing file entries in a .torrent file.
  19184. This feature is not yet complete.
  19185. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19186. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19187. (getName): New function.
  19188. * src/TorrentMan.h (getMultiFileEntries): New function.
  19189. (getName): New function.
  19190. * src/main.cc (main): Use above 2 funtion.
  19191. * Release 0.3.2
  19192. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19193. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19194. (detectMessageFlooding): Updated threshold value.
  19195. (checkLongTimePeerChoking): Updated timeout value.
  19196. (getNewPieceAndSendInterest): Added debug log.
  19197. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19198. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19199. (getPeer): Updated.
  19200. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19201. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19202. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19203. is localhost.
  19204. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19205. * src/PendingMessage.cc (processMessage): Not to send piece message
  19206. if peer is not interested in the pieces localhost has.
  19207. * src/Peer.cc (shouldChoke): Updated.
  19208. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19209. * src/Util.cc (isPowerOf): New function.
  19210. * src/Util.h (isPowerOf): New function.
  19211. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19212. whether or not it is power of 2.
  19213. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19214. Added new class SendMessageQueue that includes PendingMessages and
  19215. RequestSlotMan.
  19216. * src/SendMessageQueue.h: New class.
  19217. * src/SendMessageQueue.cc: New class.
  19218. * src/PendingMessage.h: Added new member variable blockIndex and its
  19219. accessors.
  19220. (createRequestMessage): Updated.
  19221. * src/PendingMessage.cc (createRequestMessage): Updated.
  19222. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19223. SendMessageQueue.
  19224. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19225. (receiveMessage): Updated with SendMessageQueue.
  19226. (deletePendingPieceMessage): Removed.
  19227. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19228. (sendInterest): Updated with SendMessageQueue.
  19229. (createRequestPendingMessage): Updated with SendMessageQueue.
  19230. (sendMessages): Updated with SendMessageQueue.
  19231. (onAbort): Updated with SendMessageQueue.
  19232. (keepAlive): Updated with SendMessageQueue.
  19233. (beforeSocketCheck): Updated SendMessageQueue.
  19234. * src/PeerInteractionCommand (sendMessages): Shuffle
  19235. missingBLockIndexes before using it.
  19236. Added its own timeout for peer connection.
  19237. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19238. setter.
  19239. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19240. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19241. Added setTimeout() call.
  19242. (executeInternal): Added setTimeout() call.
  19243. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19244. Added timeout.
  19245. (isTimeoutDetected): Updated.
  19246. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19247. option.
  19248. Added *simple* message flooding checker.
  19249. * src/PeerInteractionCommand.cc (executeInternal):
  19250. Added detectMessageFlooding() call.
  19251. (detectMessageFlooding): New function.
  19252. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19253. (beforeSocketCheck): Added detectMessageFlooding() call.
  19254. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19255. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19256. Removed deletePendingPieceMessage(), getRequestSlot(),
  19257. deleteRequestSlot(), deleteAllRequestSlot().
  19258. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19259. Added checkLongTimePeerChoking() call.
  19260. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19261. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19262. if duplicate == false.
  19263. The parameter "uploaded" and "downloaded" in the tracker request are
  19264. the size since the client sent the "started" event to the tracker.
  19265. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19266. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19267. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19268. getSessionDownloadedSize(), getSessionUploadedSize().
  19269. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19270. getSessionUploadedSize() instead of getDownloadedSize(),
  19271. getUploadedSize().
  19272. * src/PendingMessage.cc (processMessage): Do not send request message
  19273. if the peer is choking the client.
  19274. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19275. less than interval.
  19276. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19277. * configure.in: Added gnutls support. Added several CPP macros.
  19278. * m4/openssl.m4: Added.
  19279. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19280. readData(), peekData(). Added gnutls support.
  19281. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19282. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19283. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19284. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19285. Instead, added a check for whether setup method has executed
  19286. successfully.
  19287. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19288. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19289. * src/Makefile.am: Updated.
  19290. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19291. using whether OpenSSL or gcrypt, depending on the result of configure
  19292. script.
  19293. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19294. messageDigest.h.
  19295. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19296. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19297. Fixed memory leak.
  19298. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19299. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19300. Removed instantiation of TrackerInitCommand. Instead,
  19301. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19302. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19303. ENABLE_SSL.
  19304. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19305. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19306. If a piece is already acquired by another command, delete the request
  19307. slots for the piece.
  19308. * src/TrackerUpdateCommand.cc (execute):
  19309. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19310. Added a check whether peer list is null.
  19311. Fixed the bug that causes sending completed event to the tracker
  19312. several times.
  19313. * src/TrackerInitCommand.cc (execute):
  19314. Fixed the bug that causes sending completed event to the tracker
  19315. several times.
  19316. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19317. by using messageDigest.h.
  19318. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19319. * PeerConnection.cc: Replaced log message "keep-alive" with
  19320. "keep alive".
  19321. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19322. localhost long time.
  19323. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19324. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19325. at most 100 failure entry from the list. If with duplicate = false,
  19326. MAX_PEER_LIST is not checked.
  19327. * PeerListenCommand.cc: Fixed the argument order of log message.
  19328. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19329. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19330. Added warn().
  19331. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19332. Implemented warn().
  19333. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19334. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19335. * Request.h: Added AFTER_COMPLETED event.
  19336. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19337. instead of downloaded size and progress(%) after download completes.
  19338. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19339. message to the peer if it is interested in what localhost has
  19340. downloaded.
  19341. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19342. destination instead of just renaming it.
  19343. * TorrentMan.cc: Added deleteTempFile().
  19344. * PeerAbstractCommand.cc: do not stop execution after download
  19345. completes. This makes localhost a seeder.
  19346. * Util.{h,cc}: Added fileCopy().
  19347. * PeerListenCommand.cc: do not stop execution after download completes.
  19348. This makes localhost a seeder.
  19349. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19350. Added TorrentMan::deleteTempFile() to torrentHandler.
  19351. Initialized the variable dir as ".".
  19352. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19353. Deleted renameSingleFile().
  19354. Added copySingleFile(), deleteTempFile().
  19355. * DownloadEngine.h: Added virtual function afterEachIteration().
  19356. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19357. in onEndOfRun() to afterEachIteration().
  19358. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19359. true.
  19360. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19361. In rangedFileCopy(), added try-catch block to properly close file
  19362. descriptors.
  19363. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19364. Added afterEachIteration(), isFilenameFixed().
  19365. * Peer.cc: Changed choking strategy.
  19366. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19367. * TrackerInitCommand.cc: Send completed event only once.
  19368. * DownloadEngine.cc: Added a call to afterEachIteration().
  19369. * TrackerUpdateCommand.cc: Do not stop execution after download
  19370. completes.
  19371. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19372. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19373. received from a tracker.
  19374. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19375. Decreased the number of failure peers to delete to 0(just comment out
  19376. the line).
  19377. * Release 0.3.1
  19378. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19379. * PeerInteractionCommand.cc: added a call to
  19380. TorrentMan::unadvertisePiece in Destructor.
  19381. * PeerInteractionCommand.cc: make have message sent immediately
  19382. if the size of pending message queue is zero.
  19383. * TorrentMan.cc: set the maximum size of peer list to 250.
  19384. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19385. to deque.
  19386. * Util.cc: fixed rangedFileCopy.
  19387. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19388. to Constructor. Also, moved digest cleanup to Destructor.
  19389. * MetaFileUtil.cc: fixed memory leak
  19390. * replaced std::vector with std::deque.
  19391. * AbstractCommand.cc: casted timeout value to long long int.
  19392. * ChunkedEncoding.cc: fixed memory leak.
  19393. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19394. * SleepCommand.cc: casted timeout value to long long int.
  19395. * Data.cc: fixed memory leak.
  19396. * Data.cc: fixed toLLInt().
  19397. * BitfieldMan.cc: fixed memory leak.
  19398. * TorrentMan.cc: initialized storeDir to ".".
  19399. * TorrentMan.cc: fixed memory leak.
  19400. * TorrentMan.cc: corrected file paths of splitted files.
  19401. * PeerAbstractCommand.cc: casted timeout to long long int.
  19402. * main.cc: added delete(req) and delete(te->diskWriter).
  19403. * RequestSlot.cc: casted timeout value to long long int.
  19404. * Request.cc: fixed memory leak.
  19405. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19406. have the piece.
  19407. * Peer.{h,cc}: added hasPiece(int index).
  19408. * main.cc: corrected addCommand.
  19409. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19410. * BitTorrent protocol support added.
  19411. * Release 0.3.0
  19412. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19413. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19414. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19415. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19416. decoding did not work properly.
  19417. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19418. * DownloadEngine.h: included sys/time.h
  19419. * DownloadEngine.cc: remove sys/time.h
  19420. * Makefile.am (SUBDIRS): Add intl.
  19421. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19422. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19423. * main.cc: correct help message for --http-auth-scheme.
  19424. * main.cc: changed e-mail address for bug reports.
  19425. * ja.po: added japanese translation.
  19426. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19427. * SimpleLogger.cc: flush log file instead of stdout.
  19428. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19429. * main.cc: Fixed command-line option: max-tries
  19430. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19431. does not equal to seg.sp.
  19432. * DownloadCommand.cc: If EOF is got from the server and the total size
  19433. of file is not zero, then throw DlRetryEx.
  19434. * main.cc: Set the minium value of min-segment-size to 1024.
  19435. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19436. fails because of a regression since 0.2.0 release.
  19437. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19438. * HttpConnection.cc:
  19439. * common.h: defined the user agent name as macro
  19440. * DownloadEngine.{h, cc}:
  19441. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19442. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19443. * main.cc: Download complete/abort message is now generated by main.
  19444. * Makefile.am (SUBDIRS): Add m4.
  19445. (ACLOCAL_AMFLAGS): New variable.
  19446. (EXTRA_DIST): New variable.
  19447. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19448. * gettext: added gettext functionality
  19449. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19450. * AbstractCommand.cc:
  19451. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19452. unregister its cuid from SegmentMan.
  19453. * DownloadEngine.cc: .aria2 file was written when a downloading
  19454. failed with errors.
  19455. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19456. Added "User-Agent" header to CONNECT proxy request.
  19457. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19458. properly.
  19459. * Logger.h:
  19460. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19461. * ChunkedEncoding.cc: Added #include directive for strings.h
  19462. * Release 0.2.1
  19463. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19464. * Util.{h,cc}: added startsWith().
  19465. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19466. Util::endsWith().
  19467. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19468. * common.h: added #include directive of limit.h.
  19469. * DownloadEngine.cc: added #include directive of sys/time.h and
  19470. algorithm.
  19471. * Exception.h: added #include directive of stdio.h.
  19472. * AbstractCommand.h: added #include directive of sys/time.h.
  19473. * DownloadCommand.h: added #include directive of sys/time.h.
  19474. * *.h: added #include directive of common.h to all base classes.
  19475. subclasses' one was removed.
  19476. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19477. does not define these macros.
  19478. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19479. * Release 0.2.0
  19480. * main.cc:
  19481. * HttpInitiateConnectionCommand.{h,cc}:
  19482. * prefs.h:
  19483. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19484. We can now use GET command in http proxy.
  19485. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19486. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19487. that splits slowest segment of SegmentMan::commands vector.
  19488. This is the default split algorithm of aria2.
  19489. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19490. that splits first segment of SegmentMan::commands vector.
  19491. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19492. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19493. * Segment.h:
  19494. * SegmentMan.cc: Added speed field to Segment.h
  19495. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19496. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19497. * message.h: Change file size related %d to %lld.
  19498. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19499. * FtpInitiateConnectionCommand.{h,cc}:
  19500. * FtpNegotiationCommand.{h,cc}:
  19501. * FtpDownloadCommand.{h,cc}:
  19502. * FtpConnection.{h,cc}: Added FTP support
  19503. * SimpleLogger.cc: Log message now includes time information.
  19504. * main.cc: The value of --http-auth-scheme option is chagned from
  19505. 'BASIC' to 'basic'
  19506. * main.cc: Added --timeout command-line option.
  19507. * main.cc: Added --min-segment-size command-line option.
  19508. * main.cc: Added --max-retries command-line option.
  19509. * prefs.h: option string constants are now defined in prefs.h
  19510. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19511. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19512. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19513. with version 0.1.0's one.
  19514. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19515. * configure.in: Added --enable-ssl option to configure script.
  19516. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19517. cannot permit absoluteURI as Request-URI.
  19518. * HttpConnection.cc: Added Referer support.
  19519. * main.cc: Added referer command-line option.
  19520. * main.cc: Added rety-wait command-line option.
  19521. * Exception.h: Fixed formating bug in Exception::setMsg()
  19522. * SocketCore.{h,cc}:
  19523. * Socket.{h, cc}:
  19524. * Request.cc:
  19525. * InitiateConnectionCommandFactory.cc:
  19526. * HttpRequestCommand.cc: Added HTTPS support.
  19527. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19528. for SocketCore.
  19529. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19530. size is wrong
  19531. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19532. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19533. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19534. * Release 0.1.0