ChangeLog 714 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119
  1. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Documented --bt-lpd-interface option in man page.
  3. * doc/aria2c.1.txt
  4. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Bump up version number to 1.9.0
  6. * configure.ac
  7. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Fixed the bug that FillRequestGroupCommand is not invoked when
  9. RequestGroupMan::createInitialCommand() creates no Command object.
  10. * src/FillRequestGroupCommand.cc
  11. * src/RequestGroupMan.cc
  12. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Added debug logs.
  14. * src/FileEntry.cc
  15. * src/SegmentMan.cc
  16. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Fixed unit test error with mingw32 build.
  18. * test/LpdMessageReceiverTest.cc
  19. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Updated automake-1.11.1
  21. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Fixed compile error and unit test error without openssl and
  23. gnutls.
  24. * src/MetalinkParserController.cc
  25. * test/MetalinkProcessorTest.cc
  26. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Fixed unitest fails if openssl doesn't support sha-256.
  28. * src/MetalinkParserStateV4Impl.cc
  29. * test/MetalinkProcessorTest.cc
  30. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Wait until message arrives(again)
  32. * test/LpdMessageReceiverTest.cc
  33. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Added missing wallclock.h to SRCS.
  35. * src/Makefile.am
  36. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Fixed compile error with --disable-bittorrent
  38. * test/Metalink2RequestGroupTest.cc
  39. * test/MetalinkParserControllerTest.cc
  40. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Added --reuse-uri option. This option has existed quite long, but
  42. been hidden.
  43. * doc/aria2c.1.txt
  44. * src/OptionHandlerFactory.cc
  45. * src/usage_text.h
  46. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Ignore filename parameter if it contains directory traversal
  48. directives.
  49. * src/util.cc
  50. * test/UtilTest.cc
  51. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. urldecode -> percentDecode
  53. * src/FtpConnection.cc
  54. * src/FtpNegotiationCommand.cc
  55. * src/HttpResponse.cc
  56. * src/Request.cc
  57. * src/magnet.cc
  58. * src/util.cc
  59. * src/util.h
  60. * test/UtilTest.cc
  61. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. urlencode -> percentEncode,
  63. torrentUrlencode -> torrentPercentEncode
  64. * src/BtHandshakeMessage.cc
  65. * src/BtHandshakeMessageValidator.h
  66. * src/DHTMessageFactoryImpl.cc
  67. * src/DefaultBtAnnounce.cc
  68. * src/HandshakeExtensionMessage.cc
  69. * src/HttpRequest.cc
  70. * src/XmlRpcMethodImpl.cc
  71. * src/bittorrent_helper.cc
  72. * src/util.cc
  73. * src/util.h
  74. * test/DHTAnnouncePeerMessageTest.cc
  75. * test/DHTGetPeersMessageTest.cc
  76. * test/DHTGetPeersReplyMessageTest.cc
  77. * test/UTPexExtensionMessageTest.cc
  78. * test/UtilTest.cc
  79. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Fixed the bug that filename is percent encoded where it must be
  81. percent decoded in sendMdtm().
  82. * src/FtpConnection.cc
  83. * test/FtpConnectionTest.cc
  84. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. url -> uri in Request class.
  86. * src/AbstractCommand.cc
  87. * src/AdaptiveURISelector.cc
  88. * src/DefaultBtAnnounce.cc
  89. * src/FeedbackURISelector.cc
  90. * src/FileEntry.cc
  91. * src/FileEntry.h
  92. * src/HttpRequest.h
  93. * src/HttpResponse.cc
  94. * src/InitiateConnectionCommandFactory.cc
  95. * src/Metalink2RequestGroup.cc
  96. * src/OptionHandlerImpl.h
  97. * src/ProtocolDetector.cc
  98. * src/Request.cc
  99. * src/Request.h
  100. * src/XmlRpcMethodImpl.cc
  101. * test/AuthConfigFactoryTest.cc
  102. * test/FtpConnectionTest.cc
  103. * test/HttpRequestTest.cc
  104. * test/HttpResponseTest.cc
  105. * test/RequestTest.cc
  106. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Added getServers XML-RPC method.
  108. * doc/aria2c.1.txt
  109. * src/FileEntry.h
  110. * src/XmlRpcMethodFactory.cc
  111. * src/XmlRpcMethodImpl.cc
  112. * src/XmlRpcMethodImpl.h
  113. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Pool request when download finished.
  115. * src/DownloadCommand.cc
  116. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  118. 1-based.
  119. * doc/aria2c.1.txt
  120. * src/XmlRpcMethodImpl.cc
  121. * test/XmlRpcMethodTest.cc
  122. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Call RequestGroupMan::requestQueueCheck() when
  124. max-concurrent-downloads option is changed or new downloads are
  125. added/inserted into reserved list.
  126. * src/RequestGroupMan.cc
  127. * src/XmlRpcMethodImpl.cc
  128. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Added aria2.forceRemove XML-RPC method.
  130. * doc/aria2c.1.txt
  131. * src/XmlRpcMethodFactory.cc
  132. * src/XmlRpcMethodImpl.cc
  133. * src/XmlRpcMethodImpl.h
  134. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Added debug log.
  136. * src/AbstractCommand.cc
  137. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Create CreateRequestCommand to the number of -s/-C when URIs are
  139. added by XML-RPC.
  140. * src/RequestGroup.cc
  141. * src/RequestGroup.h
  142. * src/XmlRpcMethodImpl.cc
  143. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. Added 'status' key to the response of getUri XML-RPC method.
  145. * doc/aria2c.1.txt
  146. * src/XmlRpcMethodImpl.cc
  147. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Replaced Time::reset() call with assigning of global::wallclock.
  149. * src/BtLeecherStateChoke.cc
  150. * src/BtSeederStateChoke.cc
  151. * src/PeerSessionResource.cc
  152. * src/RequestSlot.cc
  153. * src/ServerStat.cc
  154. * src/SpeedCalc.cc
  155. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Added changeUri XML-RPC method. This method removes/adds URIs
  157. dynamically.
  158. * doc/aria2c.1.txt
  159. * src/AbstractCommand.cc
  160. * src/DownloadContext.cc
  161. * src/DownloadContext.h
  162. * src/FileEntry.cc
  163. * src/FileEntry.h
  164. * src/Request.cc
  165. * src/Request.h
  166. * src/RequestGroup.cc
  167. * src/RequestGroupMan.cc
  168. * src/XmlRpcMethodFactory.cc
  169. * src/XmlRpcMethodImpl.cc
  170. * src/XmlRpcMethodImpl.h
  171. * test/FileEntryTest.cc
  172. * test/XmlRpcMethodTest.cc
  173. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Rewritten copy ctor of RequestSlot to use initialization list.
  175. * src/RequestSlot.h
  176. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Added Time global::wallclock to cache "current time" to reduce the
  178. call gettimeofday(). Global variables are now in namespace global.
  179. * src/AbstractCommand.cc
  180. * src/ActivePeerConnectionCommand.cc
  181. * src/AdaptiveURISelector.cc
  182. * src/BtLeecherStateChoke.cc
  183. * src/BtLeecherStateChoke.h
  184. * src/BtSeederStateChoke.cc
  185. * src/BtSeederStateChoke.h
  186. * src/BtStopDownloadCommand.cc
  187. * src/ConsoleStatCalc.cc
  188. * src/DHTBucket.cc
  189. * src/DHTGetPeersCommand.cc
  190. * src/DHTMessageTrackerEntry.cc
  191. * src/DHTNode.cc
  192. * src/DHTPeerAnnounceEntry.cc
  193. * src/DHTPeerAnnounceStorage.cc
  194. * src/DHTSetup.cc
  195. * src/DefaultBtAnnounce.cc
  196. * src/DefaultBtInteractive.cc
  197. * src/DefaultBtMessageDispatcher.cc
  198. * src/DefaultPeerStorage.cc
  199. * src/DefaultPieceStorage.cc
  200. * src/DownloadCommand.cc
  201. * src/DownloadEngine.cc
  202. * src/FileEntry.cc
  203. * src/HttpServerBodyCommand.cc
  204. * src/HttpServerCommand.cc
  205. * src/HttpServerResponseCommand.cc
  206. * src/LpdMessageDispatcher.cc
  207. * src/MultiUrlRequestInfo.cc
  208. * src/Peer.cc
  209. * src/Peer.h
  210. * src/PeerAbstractCommand.cc
  211. * src/PeerStat.h
  212. * src/RequestSlot.cc
  213. * src/RequestSlot.h
  214. * src/SegmentMan.cc
  215. * src/ServerStatMan.cc
  216. * src/SleepCommand.cc
  217. * src/SpeedCalc.cc
  218. * src/SpeedCalc.h
  219. * src/TimeA2.cc
  220. * src/TimeA2.h
  221. * src/TimeBasedCommand.cc
  222. * src/TimeSeedCriteria.h
  223. * src/UTMetadataRequestTracker.h
  224. * src/UTPexExtensionMessage.cc
  225. * src/wallclock.h
  226. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Fixed the bug that util::itos(INT64_MIN) fails.
  228. * src/util.cc
  229. * src/util.h
  230. * test/UtilTest.cc
  231. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Fixed memory leak in SocketBuffer when _bufq is not empty when
  233. SocketBuffer is deleted. Added BufEntry constructor and deleted
  234. static factory functions.
  235. * src/SocketBuffer.cc
  236. * src/SocketBuffer.h
  237. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  239. queue maintenance is requested by RequestGroup to avoid to call
  240. the function unnecessarily.
  241. * src/FillRequestGroupCommand.cc
  242. * src/RequestGroup.cc
  243. * src/RequestGroup.h
  244. * src/RequestGroupMan.cc
  245. * src/RequestGroupMan.h
  246. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Don't use hash for Peer::id. Simple concatenation of ip address
  248. and port is enough.
  249. * src/Peer.cc
  250. * test/PeerTest.cc
  251. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Enclosed log of DHTMessage::toString() with Logger::info().
  253. * src/DHTMessageDispatcherImpl.cc
  254. * src/DHTMessageReceiver.cc
  255. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Rewritten util::toHex().
  257. * src/util.cc
  258. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Removed SocketBuffer::feedAndSend(). Renamed
  260. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  261. * src/FtpConnection.cc
  262. * src/HttpConnection.cc
  263. * src/HttpServer.cc
  264. * src/MSEHandshake.cc
  265. * src/PeerConnection.cc
  266. * src/SocketBuffer.cc
  267. * src/SocketBuffer.h
  268. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Removed unused PeerConnection::sendMessage(). Updated doc.
  270. * src/PeerConnection.cc
  271. * src/PeerConnection.h
  272. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Reduced copying/std::string instantiation in sending/receiving
  274. BitTorrent messages.
  275. * src/BtBitfieldMessage.cc
  276. * src/BtBitfieldMessage.h
  277. * src/BtExtendedMessage.cc
  278. * src/BtExtendedMessage.h
  279. * src/BtHandshakeMessage.cc
  280. * src/BtHandshakeMessage.h
  281. * src/BtKeepAliveMessage.cc
  282. * src/BtKeepAliveMessage.h
  283. * src/BtPieceMessage.cc
  284. * src/BtPieceMessage.h
  285. * src/BtPortMessage.cc
  286. * src/BtPortMessage.h
  287. * src/BtUnchokeMessage.h
  288. * src/DefaultBtMessageReceiver.cc
  289. * src/IndexBtMessage.cc
  290. * src/IndexBtMessage.h
  291. * src/PeerConnection.cc
  292. * src/PeerConnection.h
  293. * src/RangeBtMessage.cc
  294. * src/RangeBtMessage.h
  295. * src/SimpleBtMessage.cc
  296. * src/SimpleBtMessage.h
  297. * src/SocketBuffer.cc
  298. * src/SocketBuffer.h
  299. * src/ZeroBtMessage.cc
  300. * src/ZeroBtMessage.h
  301. * test/BtAllowedFastMessageTest.cc
  302. * test/BtBitfieldMessageTest.cc
  303. * test/BtCancelMessageTest.cc
  304. * test/BtChokeMessageTest.cc
  305. * test/BtExtendedMessageTest.cc
  306. * test/BtHandshakeMessageTest.cc
  307. * test/BtHaveAllMessageTest.cc
  308. * test/BtHaveMessageTest.cc
  309. * test/BtHaveNoneMessageTest.cc
  310. * test/BtInterestedMessageTest.cc
  311. * test/BtKeepAliveMessageTest.cc
  312. * test/BtNotInterestedMessageTest.cc
  313. * test/BtPieceMessageTest.cc
  314. * test/BtPortMessageTest.cc
  315. * test/BtRejectMessageTest.cc
  316. * test/BtRequestMessageTest.cc
  317. * test/BtSuggestPieceMessageTest.cc
  318. * test/BtUnchokeMessageTest.cc
  319. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Rewritten SocketBuffer. Old implementation uses single std::string
  321. to store data and erase sent data, which is costly. New
  322. implementation uses deque to hold each data to avoid to mutate
  323. string.
  324. * src/SocketBuffer.cc
  325. * src/SocketBuffer.h
  326. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Removed unused FileEntry::extracted
  328. * src/FileEntry.cc
  329. * src/FileEntry.h
  330. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Wait until data arrives.
  332. * test/LpdMessageReceiverTest.cc
  333. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. In Metalink4, if size element contains invalid size, discard whole
  335. document. Added strict hash value check for metalink3/4.
  336. * src/MetalinkParserController.cc
  337. * src/MetalinkParserStateMachine.cc
  338. * src/MetalinkParserStateMachine.h
  339. * src/MetalinkParserStateV3Impl.cc
  340. * src/MetalinkParserStateV4Impl.cc
  341. * src/util.cc
  342. * src/util.h
  343. * test/MetalinkParserControllerTest.cc
  344. * test/MetalinkProcessorTest.cc
  345. * test/metalink4.xml
  346. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Added strict attribute validation for metalink4. When
  348. specification violation is found, discard the whole document.
  349. * src/ExpatMetalinkProcessor.cc
  350. * src/MetalinkParserStateMachine.cc
  351. * src/MetalinkParserStateMachine.h
  352. * src/MetalinkParserStateV4Impl.cc
  353. * src/XML2SAXMetalinkProcessor.cc
  354. * test/Makefile.am
  355. * test/MetalinkProcessorTest.cc
  356. * test/metalink4-attrs.xml: Removed
  357. * test/metalink4-dirtraversal.xml: Removed
  358. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Added test for Metaurl transaction.
  360. * src/MetalinkParserController.cc
  361. * test/MetalinkParserControllerTest.cc
  362. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Avoid costly BtMessage::toString() if info level log is not
  364. required.
  365. * src/DefaultBtInteractive.cc
  366. * src/Logger.h
  367. * src/SimpleBtMessage.cc
  368. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Reserved vector elements based on profiler results.
  370. * src/DefaultBtInteractive.cc
  371. * src/DefaultBtProgressInfoFile.cc
  372. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Avoid to calculate end() iterator in each loop. std::deque is
  374. particularly slow. Make sure that recalculate end iterator if
  375. element is erased during loop.
  376. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Use vector instead of deque for containers which is used for
  378. mostly read-only purpose.
  379. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Fixed typo
  381. * test/Makefile.am
  382. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  384. * test/Makefile.am
  385. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Small optimization: In updateTransferStatFor(), don't search peer
  387. ID twice.
  388. * src/DefaultPeerStorage.cc
  389. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Use vector instead of deque for MetalinkEntry and MetalinkResource
  391. objects.
  392. * src/Metalink2RequestGroup.cc
  393. * src/Metalink2RequestGroup.h
  394. * src/MetalinkEntry.cc
  395. * src/MetalinkEntry.h
  396. * src/MetalinkHelper.cc
  397. * src/MetalinkHelper.h
  398. * src/Metalinker.cc
  399. * src/Metalinker.h
  400. * src/main.cc
  401. * test/MetalinkEntryTest.cc
  402. * test/MetalinkHelperTest.cc
  403. * test/MetalinkProcessorTest.cc
  404. * test/MetalinkerTest.cc
  405. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Fixed the bug that grouped FileEntry objects are not used but
  407. instead all FileEntry objects are used for each metaurl group.
  408. * src/Metalink2RequestGroup.cc
  409. * test/Metalink2RequestGroupTest.cc
  410. * test/metalink4-groupbymetaurl.xml
  411. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Use vector instead of deque for ChunkChecksum.
  413. * src/ChunkChecksum.h
  414. * src/MetalinkParserController.cc
  415. * src/MetalinkParserController.h
  416. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  418. algorithm in Metalink properly
  419. * src/MetalinkParserController.cc
  420. * src/MetalinkParserController.h
  421. * src/messageDigest.cc
  422. * src/messageDigest.h
  423. * test/MetalinkProcessorTest.cc
  424. * test/metalink4.xml
  425. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Replaced null or control characters in file path with '_'. For
  427. MinGW32 build, additional characters which is not allowed in
  428. Windows kernel are also replaced. util::detectDirTraversal() now
  429. returns true if given string contains null or control characters.
  430. * src/DownloadContext.cc
  431. * src/DownloadContext.h
  432. * src/Metalink2RequestGroup.cc
  433. * src/MetalinkParserController.cc
  434. * src/bittorrent_helper.cc
  435. * src/util.cc
  436. * src/util.h
  437. * test/UtilTest.cc
  438. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Discard metalink:file if its name attribute is empty string.
  440. Removed FileEntry instantiation in
  441. MetalinkParserController::setFileLengthOfEntry()
  442. * src/MetalinkParserController.cc
  443. * src/MetalinkParserStateV3Impl.cc
  444. * src/MetalinkParserStateV4Impl.cc
  445. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Discard torrent file if path data in it contains directory
  447. traversal directives. Discard metalink:file element in Metalink3
  448. format if its name attribute contains directory traversal
  449. directives. Ignore name attribute of metalink:signature element
  450. in Metalink3 format if it contains directory traversal directives.
  451. * src/MetalinkParserStateV3Impl.cc
  452. * src/bittorrent_helper.cc
  453. * src/message.h
  454. * test/BittorrentHelperTest.cc
  455. * test/Makefile.am
  456. * test/MetalinkProcessorTest.cc
  457. * test/metalink3-dirtraversal.xml
  458. * test/test.xml
  459. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Removed useless comment
  461. * src/MetalinkParserStateV4Impl.cc
  462. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Supported name attribute of metalink::metaurl element and
  464. multi-file torrent with Metalink4. Files with same metaurl are
  465. grouped and downloaded in one RequestGroup.
  466. * src/BtDependency.cc
  467. * src/FileEntry.h
  468. * src/Metalink2RequestGroup.cc
  469. * src/Metalink2RequestGroup.h
  470. * src/MetalinkEntry.cc
  471. * src/MetalinkEntry.h
  472. * src/MetalinkHelper.cc
  473. * src/MetalinkHelper.h
  474. * src/MetalinkMetaurl.cc
  475. * src/MetalinkMetaurl.h
  476. * src/MetalinkParserController.cc
  477. * src/RequestGroup.cc
  478. * src/RequestGroup.h
  479. * src/bittorrent_helper.cc
  480. * test/BittorrentHelperTest.cc
  481. * test/BtDependencyTest.cc
  482. * test/MetalinkHelperTest.cc
  483. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  485. * src/MetalinkMetaurl.h
  486. * src/MetalinkParserController.cc
  487. * src/MetalinkParserController.h
  488. * src/MetalinkParserStateMachine.cc
  489. * src/MetalinkParserStateMachine.h
  490. * src/MetalinkParserStateV4Impl.cc
  491. * test/MetalinkProcessorTest.cc
  492. * test/metalink4-dirtraversal.xml
  493. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  495. element.
  496. * src/Makefile.am
  497. * src/Metalink2RequestGroup.cc
  498. * src/MetalinkEntry.cc
  499. * src/MetalinkEntry.h
  500. * src/MetalinkMetaurl.cc
  501. * src/MetalinkMetaurl.h
  502. * src/MetalinkParserController.cc
  503. * src/MetalinkParserController.h
  504. * src/MetalinkParserStateMachine.cc
  505. * src/MetalinkParserStateMachine.h
  506. * src/MetalinkParserStateV4Impl.cc
  507. * src/MetalinkParserStateV4Impl.h
  508. * test/MetalinkProcessorTest.cc
  509. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Added Metalink4 support. Currently, name attribute of
  511. metalink::metaurl is ignored and multi-file torrent cannot be used
  512. with Metalink4.
  513. * doc/aria2c.1.txt
  514. * src/DownloadHandlerConstants.cc
  515. * src/ExpatMetalinkProcessor.cc
  516. * src/Makefile.am
  517. * src/Metalink2RequestGroup.cc
  518. * src/MetalinkEntry.cc
  519. * src/MetalinkEntry.h
  520. * src/MetalinkParserController.cc
  521. * src/MetalinkParserController.h
  522. * src/MetalinkParserState.h
  523. * src/MetalinkParserStateImpl.cc
  524. * src/MetalinkParserStateImpl.h
  525. * src/MetalinkParserStateMachine.cc
  526. * src/MetalinkParserStateMachine.h
  527. * src/MetalinkParserStateV3Impl.cc
  528. * src/MetalinkParserStateV3Impl.h
  529. * src/MetalinkParserStateV4Impl.cc
  530. * src/MetalinkParserStateV4Impl.h
  531. * src/MetalinkResource.cc
  532. * src/MetalinkResource.h
  533. * src/Metalinker.cc
  534. * src/RequestGroup.cc
  535. * src/RequestGroup.h
  536. * src/XML2SAXMetalinkProcessor.cc
  537. * src/messageDigest.cc
  538. * src/util.cc
  539. * src/util.h
  540. * test/Makefile.am
  541. * test/MetalinkEntryTest.cc
  542. * test/MetalinkParserControllerTest.cc
  543. * test/MetalinkProcessorTest.cc
  544. * test/MetalinkerTest.cc
  545. * test/UtilTest.cc
  546. * test/metalink4-attrs.xml
  547. * test/metalink4-dirtraversal.xml
  548. * test/metalink4.xml
  549. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Added aiFlags argument to getInterfaceAddress(). Use
  551. AI_NUMERICHOST to find interface specified using
  552. --bt-lpd-interface option to avoid time-consuming address lookup.
  553. * src/BtSetup.cc
  554. * src/SocketCore.cc
  555. * src/SocketCore.h
  556. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  558. is bad in LpdMessageReceiver.
  559. * src/LpdMessage.h
  560. * src/LpdMessageReceiver.cc
  561. * src/LpdMessageReceiver.h
  562. * src/LpdReceiveMessageCommand.cc
  563. * test/LpdMessageReceiverTest.cc
  564. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Added --bt-lpd-interface option to specify the interface to use
  566. for Local Peer Discovery. LpdMessageDispatcher object now has its
  567. own socket. LpdMessageReceiver's socket is binded to multicast
  568. address to only receive multicast packets.
  569. * src/BtSetup.cc
  570. * src/LpdMessageDispatcher.cc
  571. * src/LpdMessageDispatcher.h
  572. * src/LpdMessageReceiver.cc
  573. * src/LpdMessageReceiver.h
  574. * src/LpdReceiveMessageCommand.cc
  575. * src/LpdReceiveMessageCommand.h
  576. * src/OptionHandlerFactory.cc
  577. * src/SocketCore.cc
  578. * src/SocketCore.h
  579. * src/prefs.cc
  580. * src/prefs.h
  581. * src/usage_text.h
  582. * test/LpdMessageDispatcherTest.cc
  583. * test/LpdMessageReceiverTest.cc
  584. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Put the portion of code to get interface addresses in
  586. SocketCore::bindAddress() into newly added getInterfaceAddress().
  587. * src/SocketCore.cc
  588. * src/SocketCore.h
  589. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Rewritten util::parseInt() and parseUInt()
  591. * src/util.cc
  592. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Fixed compile error with mingw32 cross compiler. Defined
  594. a2_sockopt_t as void* for the target systems other than mingw32.
  595. * src/SocketCore.cc
  596. * src/a2netcompat.h
  597. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Removed 'always true' condition
  599. * src/util.cc
  600. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Documented --bt-enable-lpd option in man page.
  602. * doc/aria2c.1.txt
  603. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Added Local Peer Discovery. It is disabled by default. Use
  605. --bt-enable-lpd to enable the function.
  606. * src/BtConstants.h
  607. * src/BtSetup.cc
  608. * src/LpdDispatchMessageCommand.cc
  609. * src/LpdDispatchMessageCommand.h
  610. * src/LpdMessage.h
  611. * src/LpdMessageDispatcher.cc
  612. * src/LpdMessageDispatcher.h
  613. * src/LpdMessageReceiver.cc
  614. * src/LpdMessageReceiver.h
  615. * src/LpdReceiveMessageCommand.cc
  616. * src/LpdReceiveMessageCommand.h
  617. * src/Makefile.am
  618. * src/OptionHandlerFactory.cc
  619. * src/Peer.cc
  620. * src/Peer.h
  621. * src/PeerInteractionCommand.cc
  622. * src/SocketCore.cc
  623. * src/SocketCore.h
  624. * src/prefs.cc
  625. * src/prefs.h
  626. * src/usage_text.h
  627. * src/util.cc
  628. * src/util.h
  629. * test/LpdMessageDispatcherTest.cc
  630. * test/LpdMessageReceiverTest.cc
  631. * test/Makefile.am
  632. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. User-defined custom request headers specified by --header option
  634. now override builtin headers if they have same name.
  635. * src/HttpRequest.cc
  636. * src/HttpRequest.h
  637. * test/HttpRequestTest.cc
  638. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Rewirtten util::isNumber()
  640. * src/util.cc
  641. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  643. because without it localized error messages are not printed
  644. correctly.
  645. * src/Platform.cc
  646. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Added unit tests for util::getContentDispositionFilename() from
  648. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  649. tests are passed.
  650. * src/util.cc
  651. * test/UtilTest.cc
  652. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  654. util.cc
  655. * src/Platform.cc
  656. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Support RFC2231 "Parameter Value Character Set and Language
  658. Information" in Content-Disposition header.
  659. * src/HttpResponse.cc
  660. * src/util.cc
  661. * src/util.h
  662. * test/UtilTest.cc
  663. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Print CXXFLAGS
  665. * configure.ac
  666. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Small optimization for A2_WOULDBLOCK(e)
  668. * src/SocketCore.cc
  669. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Removed test file
  671. * test/CookieStorageTest.cc
  672. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Check both EAGAIN and EWOULDBLOCK
  674. * src/SocketCore.cc
  675. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  676. Removed ret == 0 checking for SSL_read(), SSL_write() and
  677. SSL_peek() because the checks are done in the caller. In
  678. SocketBuffer::send(), throw exception if nothing could be written
  679. and socket error was not EWOULDBLOCK
  680. * src/SocketBuffer.cc
  681. * src/SocketCore.cc
  682. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Fixed error code handling so that it can handle Winsock2 error
  684. code.
  685. * src/SocketCore.cc
  686. * src/SocketCore.h
  687. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  688. Bump up version number to 1.9.0a
  689. * configure.ac
  690. * doc/aria2c.1.txt
  691. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Fixed the bug that aria2 doesn't handle return value if error
  693. occurred before download begins.
  694. * src/MultiUrlRequestInfo.cc
  695. * src/main.cc
  696. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Removed SegmentManFactory class.
  698. * src/AbstractSegmentManFactory.h
  699. * src/DefaultSegmentManFactory.cc
  700. * src/DefaultSegmentManFactory.h
  701. * src/Makefile.am
  702. * src/RequestGroup.cc
  703. * src/RequestGroup.h
  704. * src/SegmentManFactory.h
  705. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Destroyed digest context after getting calculated hash.
  707. * src/Piece.cc
  708. * src/Piece.h
  709. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Removed BitfieldManFactory class.
  711. * src/BitfieldManFactory.cc
  712. * src/BitfieldManFactory.h
  713. * src/DefaultPieceStorage.cc
  714. * src/Makefile.am
  715. * src/PeerSessionResource.cc
  716. * src/Piece.cc
  717. * src/main.cc
  718. * test/DefaultPieceStorageTest.cc
  719. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Removed unused methods from BitfieldMan class. Moved
  721. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  722. class.
  723. * src/BitfieldMan.cc
  724. * src/BitfieldMan.h
  725. * src/BitfieldManFactory.cc
  726. * src/BitfieldManFactory.h
  727. * src/bitfield.h
  728. * src/main.cc
  729. * test/BitfieldManTest.cc
  730. * test/DefaultPieceStorageTest.cc
  731. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Moved getFirstNMissingIndex to bitfield.h and made it return the
  733. number of appended indexes.
  734. * src/BitfieldMan.cc
  735. * src/BitfieldMan.h
  736. * src/Piece.cc
  737. * src/Piece.h
  738. * src/bitfield.h
  739. * test/BitfieldManTest.cc
  740. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Added more tests.
  742. * test/BitfieldManTest.cc
  743. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  745. unused block indexes at once instead of calling
  746. getFirstMissingUnusedIndex() multiple times. Made use of it in
  747. Piece class and DefaultBtRequestFactory class via Piece class.
  748. * src/BitfieldMan.cc
  749. * src/BitfieldMan.h
  750. * src/DefaultBtRequestFactory.cc
  751. * src/Piece.cc
  752. * src/Piece.h
  753. * test/BitfieldManTest.cc
  754. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Use std::make_pair(...)
  756. * src/DHTMessageTracker.cc
  757. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Use std::make_pair(...)
  759. * src/bittorrent_helper.cc
  760. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. urlencode(removeFragment(...)) in parseUrl(...)
  762. * src/Request.cc
  763. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  765. * src/AbstractCommand.cc
  766. * src/AdaptiveURISelector.cc
  767. * src/BtPieceMessage.cc
  768. * src/BtPortMessage.cc
  769. * src/CreateRequestCommand.cc
  770. * src/DHTAbstractNodeLookupTask.cc
  771. * src/DHTBucket.cc
  772. * src/DHTGetPeersCommand.cc
  773. * src/DHTMessageDispatcherImpl.cc
  774. * src/DHTMessageFactoryImpl.cc
  775. * src/DHTMessageTracker.cc
  776. * src/DHTPeerAnnounceStorage.cc
  777. * src/DHTRoutingTable.cc
  778. * src/DHTSetup.cc
  779. * src/DefaultBtAnnounce.cc
  780. * src/DefaultBtInteractive.cc
  781. * src/DefaultBtMessageDispatcher.cc
  782. * src/DefaultBtMessageReceiver.cc
  783. * src/DefaultBtProgressInfoFile.cc
  784. * src/DefaultBtRequestFactory.cc
  785. * src/DefaultPeerStorage.cc
  786. * src/DefaultPieceStorage.cc
  787. * src/DownloadCommand.cc
  788. * src/DownloadEngine.cc
  789. * src/EpollEventPoll.cc
  790. * src/FileAllocationCommand.cc
  791. * src/FileEntry.cc
  792. * src/FtpNegotiationCommand.cc
  793. * src/HandshakeExtensionMessage.cc
  794. * src/HttpListenCommand.cc
  795. * src/HttpServer.cc
  796. * src/HttpSkipResponseCommand.cc
  797. * src/IteratableChunkChecksumValidator.cc
  798. * src/Logger.h
  799. * src/MSEHandshake.cc
  800. * src/MetalinkPostDownloadHandler.cc
  801. * src/MultiDiskAdaptor.cc
  802. * src/PeerAbstractCommand.cc
  803. * src/PeerConnection.cc
  804. * src/PeerListenCommand.cc
  805. * src/PeerReceiveHandshakeCommand.cc
  806. * src/RequestGroup.cc
  807. * src/RequestGroupMan.cc
  808. * src/SegmentMan.cc
  809. * src/SelectEventPoll.cc
  810. * src/ServerStat.cc
  811. * src/SimpleBtMessage.cc
  812. * src/SocketCore.cc
  813. * src/TrackerWatcherCommand.cc
  814. * src/UTMetadataDataExtensionMessage.cc
  815. * src/UTMetadataRequestFactory.cc
  816. * src/UTMetadataRequestTracker.cc
  817. * src/XmlRpcMethod.cc
  818. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Changed log level from debug to info
  820. * src/BtDependency.cc
  821. * src/BtPostDownloadHandler.cc
  822. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Removed unused PeerSessionResource::_latency.
  824. * src/BtConstants.h
  825. * src/BtPieceMessage.cc
  826. * src/Peer.cc
  827. * src/Peer.h
  828. * src/PeerSessionResource.cc
  829. * src/PeerSessionResource.h
  830. * test/PeerSessionResourceTest.cc
  831. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Fixed the bug that --file-allocation=falloc doesn't work with
  833. single file download.
  834. * src/AbstractSingleDiskAdaptor.cc
  835. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. Release 1.8.2
  837. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Added Portuguese translation. Updated Ukrainian and Spanish
  839. translation. Thanks to all translators.
  840. * po/LINGUAS
  841. * po/es.po
  842. * po/pt.po
  843. * po/uk.po
  844. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Remove fragment from redirected URI.
  846. * src/Request.cc
  847. * test/RequestTest.cc
  848. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Updated po templates.
  850. * po/aria2.pot
  851. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Drop legacy ifdef for ares support and code cleanup.
  853. * src/AsyncNameResolver.cc
  854. * src/AsyncNameResolver.h
  855. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Call ares_library_init and ares_library_cleanup if they are
  857. available. Some code cleanups.
  858. * src/Platform.cc
  859. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Call ares_process_fd() each time after epoll to handle timeout.
  861. * src/EpollEventPoll.cc
  862. * src/EpollEventPoll.h
  863. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Suppressed type-cast compiler warning
  865. * src/CookieStorage.cc
  866. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Fixed compile error on Mac OS X.
  868. * src/CookieStorage.h
  869. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Removed cookietest.txt from Makefile.am
  871. * test/Makefile.am
  872. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Updated version number in man page.
  874. * doc/aria2c.1.txt
  875. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Rewritten help message for --allow-overwrite option.
  877. * doc/aria2c.1.txt
  878. * src/usage_text.h
  879. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Added bittorrent key to the response of tellStatus XML-RPC method.
  881. The associated value of the key is a struct and contains data
  882. retrieved from .torrent file, such as name, announce-list,
  883. comment, etc.
  884. * doc/aria2c.1.txt
  885. * src/XmlRpcMethodImpl.cc
  886. * src/XmlRpcMethodImpl.h
  887. * test/XmlRpcMethodTest.cc
  888. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Removed parse(std::istream&) and parse(const std::string&) from
  890. CookieParser.
  891. * src/CookieParser.cc
  892. * src/CookieParser.h
  893. * test/CookieParserTest.cc
  894. * test/cookietest.txt: Removed
  895. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Fixed the bug that cookie for domain a.b.c is not sent to the host
  897. a.b.c if no other cookies are stored. Fixed the bug that
  898. Cookie::markOriginServerOnly() is not called when cookies are
  899. loaded from file/sqlite3 database.
  900. * src/Cookie.h
  901. * src/CookieStorage.cc
  902. * src/NsCookieParser.cc
  903. * src/Sqlite3MozCookieParser.cc
  904. * test/CookieStorageTest.cc
  905. * test/NsCookieParserTest.cc
  906. * test/Sqlite3MozCookieParserTest.cc
  907. * test/cookies.sqlite
  908. * test/nscookietest.txt
  909. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  911. both _pieceStorage and _segmentMan are initialized or they are
  912. not.
  913. * src/RequestGroup.cc
  914. * src/RequestGroup.h
  915. * test/BtDependencyTest.cc
  916. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Bump up version number to 1.8.2
  918. * configure.ac
  919. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Replaced "." with A2STR::DOT_C
  921. * src/AbstractCommand.cc
  922. * src/Cookie.cc
  923. * src/DownloadContext.cc
  924. * src/FtpConnection.cc
  925. * src/RequestGroup.cc
  926. * src/util.cc
  927. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Replaced isNumberAndDotsNotation() with isNumericHost().
  929. isNumericHost() can handle IPv6 address.
  930. * src/Cookie.cc
  931. * src/CookieStorage.cc
  932. * src/util.cc
  933. * src/util.h
  934. * test/CookieTest.cc
  935. * test/UtilTest.cc
  936. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Included A2STR.h
  938. * src/CookieStorage.cc
  939. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Rewritten Cookie storage.
  941. * src/Cookie.cc
  942. * src/Cookie.h
  943. * src/CookieParser.cc
  944. * src/CookieStorage.cc
  945. * src/CookieStorage.h
  946. * src/a2functional.h
  947. * test/CookieParserTest.cc
  948. * test/CookieStorageTest.cc
  949. * test/CookieTest.cc
  950. * test/HttpResponseTest.cc
  951. * test/TestUtil.h
  952. * test/a2functionalTest.cc
  953. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Handle redirected URI which is not properly percent encoded.
  955. * src/Request.cc
  956. * test/RequestTest.cc
  957. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  959. not found' in the N times(N is where --max-file-not-found=N, N>0)
  960. in a row without single '200 OK' response.
  961. * src/RequestGroup.cc.
  962. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  964. readout by 80 characters in mingw32 build. Catch exception in
  965. DHTMessageReceiver::receiveMessage().
  966. * src/AbstractDiskWriter.cc
  967. * src/ConsoleStatCalc.cc
  968. * src/DHTMessageReceiver.cc
  969. * src/File.cc
  970. * src/RequestGroupMan.cc
  971. * src/a2io.h
  972. * test/FileTest.cc
  973. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Fixed compile error with intel compiler
  975. * src/XmlRpcMethodImpl.cc
  976. * src/XmlRpcMethodImpl.h
  977. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Release 1.8.1
  979. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Updated Swedish, Russian and Italian translations. Thanks to all
  981. translators.
  982. * po/it.po
  983. * po/ru.po
  984. * po/sv.po
  985. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Fixed broken OptionParser::findByName().
  987. * src/OptionParser.cc
  988. * test/OptionParserTest.cc
  989. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. Fixed test error without BitTorrent support.
  991. * test/XmlRpcMethodTest.cc
  992. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Fixed compile error without GNUTLS/OpenSSL.
  994. * src/util.cc
  995. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Changed compression level to Z_DEFAULT_COMPRESSION.
  997. * src/GZipEncoder.cc
  998. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Added missing command line options: --http-no-cache,
  1000. --bt-save-metadata and --bt-metadata-only.
  1001. * doc/xmlrpc/aria2rpc
  1002. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1004. client accepts gzip content encoding.
  1005. * src/A2STR.cc
  1006. * src/A2STR.h
  1007. * src/GZipEncoder.cc
  1008. * src/GZipEncoder.h
  1009. * src/HttpHeader.cc
  1010. * src/HttpHeader.h
  1011. * src/HttpServer.cc
  1012. * src/HttpServer.h
  1013. * src/HttpServerBodyCommand.cc
  1014. * src/HttpServerCommand.cc
  1015. * src/Makefile.am
  1016. * src/XmlRpcResponse.cc
  1017. * src/XmlRpcResponse.h
  1018. * test/GZipEncoderTest.cc
  1019. * test/Makefile.am
  1020. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Added XML-RPC client sample code in Python.
  1022. * doc/aria2c.1.txt
  1023. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Updated po templates.
  1025. * po/aria2.pot
  1026. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Bump up version number to 1.8.1
  1028. * configure.ac
  1029. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Added version number to man page. Updated copyright year in man
  1031. page.
  1032. * doc/aria2c.1.txt
  1033. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Rewritten toTagString
  1035. * src/NameMatchOptionHandler.cc
  1036. * test/OptionHandlerTest.cc
  1037. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Added dir and files key to the response struct of aria2.tellStatus
  1039. XML-RPC method. The value associated with files key is the list
  1040. of files. Its element is the same struct used in aria2.getFiles
  1041. XML-RPC method. Added uris key to the response struct of
  1042. aria2.getFiles XML-RPC method. The value associated with uris key
  1043. is the list of URIs. Its element is the same struct used in
  1044. aria2.getUris XML-RPC method.
  1045. * doc/aria2c.1.txt
  1046. * src/XmlRpcMethodImpl.cc
  1047. * test/XmlRpcMethodTest.cc
  1048. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1050. struct containing Session ID, which is generated each time when
  1051. aria2 is invoked.
  1052. * doc/aria2c.1.txt
  1053. * doc/xmlrpc/aria2rpc
  1054. * src/DownloadEngine.cc
  1055. * src/DownloadEngine.h
  1056. * src/XmlRpcMethodFactory.cc
  1057. * src/XmlRpcMethodImpl.cc
  1058. * src/XmlRpcMethodImpl.h
  1059. * test/XmlRpcMethodTest.cc
  1060. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Moved generateRandomKey() from bittorrent_helper to util.
  1062. * src/DHTBucket.cc
  1063. * src/DHTNode.cc
  1064. * src/bittorrent_helper.cc
  1065. * src/bittorrent_helper.h
  1066. * src/util.cc
  1067. * src/util.h
  1068. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Updated doc about GID.
  1070. * doc/aria2c.1.txt
  1071. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1073. accepts a negative integer. 'offset' == -1 points last download
  1074. in the waiting queue and 'offset' == -2 points the download before
  1075. the last download, and so on. The downloads in the response are in
  1076. reversed order.
  1077. * doc/aria2c.1.txt
  1078. * src/XmlRpcMethodImpl.cc
  1079. * src/XmlRpcMethodImpl.h
  1080. * test/XmlRpcMethodTest.cc
  1081. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Added --human-readable option. This option, when true is given,
  1083. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1084. 3.4Mi) in the console readout. The default value is true and it
  1085. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1086. appears when false is given. In this case, sizes and speed are
  1087. printed without in bytes. No Ki, Mi units conversion is used.
  1088. This may be useful for a program to parse the output of aria2.
  1089. * doc/aria2c.1.txt
  1090. * src/ConsoleStatCalc.cc
  1091. * src/ConsoleStatCalc.h
  1092. * src/OptionHandlerFactory.cc
  1093. * src/main.cc
  1094. * src/prefs.cc
  1095. * src/prefs.h
  1096. * src/usage_text.h
  1097. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1099. option accepts empty string "". When "" is given, it erases
  1100. previously defined proxy.
  1101. * doc/aria2c.1.txt
  1102. * src/OptionHandlerImpl.h
  1103. * src/usage_text.h
  1104. * test/OptionHandlerTest.cc
  1105. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Code cleanup for proxy URI handling.
  1107. * src/AbstractCommand.cc
  1108. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Added --bt-metadata-only option. If true is given to this option,
  1110. aria2 downloads metadata only. The file(s) described in metadata
  1111. will not be downloaded. This option has effect only when
  1112. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1113. * doc/aria2c.1.txt
  1114. * src/OptionHandlerFactory.cc
  1115. * src/UTMetadataPostDownloadHandler.cc
  1116. * src/download_helper.cc
  1117. * src/prefs.cc
  1118. * src/prefs.h
  1119. * src/usage_text.h
  1120. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1122. deleted when exception is thrown. Make sure that when passing
  1123. std::deque<Command*> to function to store Commands, handle
  1124. exception and delete these Commands.
  1125. * src/AbstractCommand.cc
  1126. * src/CheckIntegrityCommand.cc
  1127. * src/FileAllocationCommand.cc
  1128. * src/RequestGroup.cc
  1129. * src/TrackerWatcherCommand.cc
  1130. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1132. * src/A2STR.cc
  1133. * src/A2STR.h
  1134. * src/FtpNegotiationCommand.cc
  1135. * src/HttpResponseCommand.cc
  1136. * src/util.cc
  1137. * src/util.h
  1138. * test/UtilTest.cc
  1139. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Treat --dir="" as --dir="."
  1141. * src/FtpNegotiationCommand.cc
  1142. * src/HttpResponseCommand.cc
  1143. * src/Metalink2RequestGroup.cc
  1144. * src/UTMetadataPostDownloadHandler.cc
  1145. * src/bittorrent_helper.cc
  1146. * src/download_helper.cc
  1147. * src/util.cc
  1148. * src/util.h
  1149. * test/UtilTest.cc
  1150. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Code clean up.
  1152. * src/main.cc
  1153. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Reset GID to 1 when they reach maximum value. Rewritten
  1155. CUIDCounter::newID()
  1156. * src/CUIDCounter.h
  1157. * src/RequestGroup.cc
  1158. * src/RequestGroup.h
  1159. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1160. Documented --http-no-cache option in man page.
  1161. * doc/aria2c.1.txt
  1162. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Added --http-no-cache option. When true is given, aria2 sends
  1164. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1165. cached content. If false is given , these headers are not sent
  1166. and you can add Cache-Control header with a directive you like
  1167. using --header option.
  1168. * src/HttpRequest.cc
  1169. * src/HttpRequest.h
  1170. * src/HttpRequestCommand.cc
  1171. * src/OptionHandlerFactory.cc
  1172. * src/download_helper.cc
  1173. * src/prefs.cc
  1174. * src/prefs.h
  1175. * src/usage_text.h
  1176. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Removed Logger from OptionParser. When OptionParser is used to
  1178. parse options at bootstrap, LogFactory is not configured yet
  1179. properly. When LogFactory is used in OptionParser, it initializes
  1180. itself to return a logger which has no ability to write log to the
  1181. disk.
  1182. * src/OptionParser.cc
  1183. * src/OptionParser.h
  1184. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Added following sentance to the help message of --out option:
  1186. --out option is ignored when -Z is used.
  1187. * doc/aria2c.1.txt
  1188. * src/usage_text.h
  1189. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Added --bt-save-metadata option to -i list options.
  1191. * doc/aria2c.1.txt
  1192. * src/download_helper.cc
  1193. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1195. additional libraries.
  1196. * src/MultiUrlRequestInfo.cc
  1197. * src/NameResolver.cc
  1198. * src/SelectEventPoll.cc
  1199. * src/SelectEventPoll.h
  1200. * src/SocketCore.cc
  1201. * src/SocketCore.h
  1202. * src/a2netcompat.h
  1203. * src/daemon.cc
  1204. * src/main.cc
  1205. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Fixed typo.
  1207. * src/DHTMessageReceiver.cc
  1208. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Fixed the bug that causes segmentation fault if unknown option is
  1210. put in aria2.conf file. BUG#2928303
  1211. * src/OptionParser.cc
  1212. * src/OptionParser.h
  1213. * src/option_processing.cc
  1214. * test/OptionParserTest.cc
  1215. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Ignore port message with port=0.
  1217. * src/BtPortMessage.cc
  1218. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Run autoupdate
  1220. * configure.ac
  1221. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Updated autoconf/automake auxiliary files.
  1223. * INSTALL
  1224. * config.guess
  1225. * config.sub
  1226. * depcomp
  1227. * install-sh
  1228. * m4/intldir.m4
  1229. * missing
  1230. * mkinstalldirs
  1231. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Removed unused function.
  1233. * src/SharedHandle.h
  1234. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Find pooled socket using all cached addresses.
  1236. * src/DNSCache.h
  1237. * src/DownloadEngine.cc
  1238. * src/DownloadEngine.h
  1239. * src/InitiateConnectionCommand.cc
  1240. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Updated copyright year.
  1242. * src/version_usage.cc
  1243. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Pool connection if _contentEncodingDecoder is used and server
  1245. supports persistent connection.
  1246. * src/HttpDownloadCommand.cc
  1247. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Updated doc.
  1249. * src/DownloadCommand.cc
  1250. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Untabify. Fixed one line in copyright which is longer than 80
  1252. columns.
  1253. * src
  1254. * test
  1255. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Release 1.8.0
  1257. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Updated po templates.
  1259. * po/aria2.pot
  1260. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Documented --bt-save-metadata option in man page.
  1262. * doc/aria2c.1.txt
  1263. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Fixed usage of --bt-save-metadata option.
  1265. * src/usage_text.h
  1266. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Updated po templates.
  1268. * po/aria2.pot
  1269. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1271. causes name resolution error when none of network interface has
  1272. IPv4 address.
  1273. * src/main.cc
  1274. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Bump up version number to 1.8.0.
  1276. * configure.ac
  1277. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Use info hash as a filename when saving BitTorrent metadata.
  1279. * src/UTMetadataPostDownloadHandler.cc
  1280. * test/UTMetadataPostDownloadHandlerTest.cc
  1281. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Documented system.multicall XML-RPC method in man page.
  1283. * doc/aria2c.1.txt
  1284. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Added signal handler for SIGHUP to save .aria2 file when terminal
  1286. is closed. The handler is the same one for SIGINT and SIGTERM.
  1287. * src/MultiUrlRequestInfo.cc
  1288. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Defined method name in XmlRpcMethod subclasses.
  1290. * src/XmlRpcMethodFactory.cc
  1291. * src/XmlRpcMethodImpl.cc
  1292. * src/XmlRpcMethodImpl.h
  1293. * test/XmlRpcMethodTest.cc
  1294. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Added system.multicall XML-RPC method.
  1296. * src/XmlRpcMethod.cc
  1297. * src/XmlRpcMethod.h
  1298. * src/XmlRpcMethodFactory.cc
  1299. * src/XmlRpcMethodImpl.cc
  1300. * src/XmlRpcMethodImpl.h
  1301. * test/XmlRpcMethodTest.cc
  1302. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Check structure depth when decoding.
  1304. * src/bencode.cc
  1305. * src/bencode.h
  1306. * test/BencodeTest.cc
  1307. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1308. Documented tellStopped XML-RPC method in man page.
  1309. * doc/aria2c.1.txt
  1310. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. Added tellStopped XML-RPC method to aria2rpc.
  1312. * doc/xmlrpc/aria2rpc
  1313. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Added tellStopped XML-RPC method. This method returns stopped
  1315. download in the specified range. It takes same parameters with
  1316. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1317. * src/XmlRpcMethodFactory.cc
  1318. * src/XmlRpcMethodImpl.cc
  1319. * src/XmlRpcMethodImpl.h
  1320. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1322. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1323. when conducting unit tests because they fail if networking
  1324. interface is not configured with IPv4 address.
  1325. * src/NameResolver.cc
  1326. * src/SocketCore.cc
  1327. * src/SocketCore.h
  1328. * src/a2netcompat.h
  1329. * test/AllTest.cc
  1330. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Fixed unit test error
  1332. * test/UTMetadataPostDownloadHandlerTest.cc
  1333. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Defined static string constants for efficiency.
  1335. * src/XmlRpcMethodImpl.cc
  1336. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Added --bt-save-metadata option. When true is given, it saves
  1338. metadata as .torrent file. This option has effect only when
  1339. BitTorrent Magnet URI is used. The filename is name in metadata
  1340. with suffix .torrent. The directory to be saved is the same
  1341. directory where download file is saved. If the same file already
  1342. exists, metdata is not saved.
  1343. * src/OptionHandlerFactory.cc
  1344. * src/UTMetadataPostDownloadHandler.cc
  1345. * src/UTMetadataPostDownloadHandler.h
  1346. * src/message.h
  1347. * src/prefs.cc
  1348. * src/prefs.h
  1349. * src/usage_text.h
  1350. * test/UTMetadataDataExtensionMessageTest.cc
  1351. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Added util::saveAs() function. Use it in Signature::save().
  1353. * src/Signature.cc
  1354. * src/util.cc
  1355. * src/util.h
  1356. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Upcase info hash in Magnet URI.
  1358. * doc/aria2c.1.txt
  1359. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Refactored RequestGroupMan::changeReservedGroupPosition()
  1361. * src/RequestGroupMan.cc
  1362. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Updated the description for aria2.addTorrent XML-RPC method.
  1364. * doc/aria2c.1.txt
  1365. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Added changePosition to aria2rpc.
  1367. * doc/xmlrpc/aria2rpc
  1368. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Documented changePosition XML-RPC method in man page.
  1370. * doc/aria2c.1.txt
  1371. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1373. pos and how. This method changes the position of download denoted
  1374. by gid. If how is POS_SET, it moves the download to a position
  1375. relative to the beginning of the queue. If how is POS_CUR, it
  1376. moves the download to a position relative to the current
  1377. position. If how is POS_END, it moves the download to a position
  1378. relative to the end of the queue. If the destination position is
  1379. less than 0 or beyond the end of the queue, it moves the download
  1380. to the beginning or the end of the queue respectively. Returns
  1381. the destination position.
  1382. * src/RequestGroupMan.cc
  1383. * src/RequestGroupMan.h
  1384. * src/XmlRpcMethodFactory.cc
  1385. * src/XmlRpcMethodImpl.cc
  1386. * src/XmlRpcMethodImpl.h
  1387. * test/RequestGroupManTest.cc
  1388. * test/XmlRpcMethodTest.cc
  1389. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Added getOption and getGlobalOption to aria2rpc.
  1391. * doc/xmlrpc/aria2rpc
  1392. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Documented getOption and getGlobalOption XML-RPC method in man
  1394. page
  1395. * doc/aria2c.1.txt
  1396. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Added getOption and getGlobalOption XML-RPC method. getOption
  1398. takes GID as a parameter and returns its options as struct.
  1399. getGlobalOption takes no parameter and returns global
  1400. options. Because global option is used as a template for the
  1401. option of newly added downloads, it includes options returned by
  1402. getOption.
  1403. * src/Option.h
  1404. * src/XmlRpcMethodFactory.cc
  1405. * src/XmlRpcMethodImpl.cc
  1406. * src/XmlRpcMethodImpl.h
  1407. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Sort _optionHandlers in OptionParser by name in ascending order.
  1409. Use vector instead of deque for efficiency.
  1410. * src/OptionHandler.h
  1411. * src/OptionHandlerFactory.h
  1412. * src/OptionParser.cc
  1413. * src/OptionParser.h
  1414. * src/version_usage.cc
  1415. * test/OptionParserTest.cc
  1416. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Code cleanup
  1418. * src/XmlRpcMethod.cc
  1419. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Documented about followedBy and belongsTo in man page.
  1421. * doc/aria2c.1.txt
  1422. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Added following 2 keys, followedBy and belongsTo, to the response
  1424. of tellStatus.
  1425. followedBy: List of GIDs which are generated by the consequence of
  1426. this download. For example, when aria2 downloaded Metalink file,
  1427. it generates downloads described in it(see *--follow-metalink*
  1428. option). This value is useful to track these auto generated
  1429. downloads. If there is no such downloads, this key will not be
  1430. included in the response.
  1431. belongsTo: GID of a parent download. Some downloads are a part of
  1432. another download. For example, if a file in Metalink has
  1433. BitTorrent resource, the download of .torrent is a part of that
  1434. file. If this download has no parent, this key will not be
  1435. included in the response.
  1436. * src/BtPostDownloadHandler.cc
  1437. * src/DownloadResult.h
  1438. * src/Metalink2RequestGroup.cc
  1439. * src/MetalinkPostDownloadHandler.cc
  1440. * src/RequestGroup.cc
  1441. * src/RequestGroup.h
  1442. * src/UTMetadataPostDownloadHandler.cc
  1443. * src/XmlRpcMethodImpl.cc
  1444. * src/XmlRpcMethodImpl.h
  1445. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Assigned BObject in BDE() to avoid segmentation fault when calling
  1447. methods of BDE::none().
  1448. * src/BDE.cc
  1449. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Show info hash in Magnet URI in upper case letters in -S output.
  1451. * src/bittorrent_helper.cc
  1452. * test/BittorrentHelperTest.cc
  1453. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Removed old useless comment
  1455. * src/MultiUrlRequestInfo.cc
  1456. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1458. not properly used in configure script and failed to detect gnutls.
  1459. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1460. and the initialization of pkg-config is done in first occurrence
  1461. of PKG_CHECK_MODULES which is not executed because it is inside of
  1462. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1463. * configure.ac
  1464. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Release 1.7.2
  1466. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1468. true even if all downloads haven't finished, especially when
  1469. PostDownloadHandler is involved. Changed the condition so that it
  1470. only returns true if both _requestGroups and _reservedGroups are
  1471. empty.
  1472. * src/RequestGroupMan.cc
  1473. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Log listening port for BitTorrent/DHT in notice level.
  1475. * src/DHTConnectionImpl.cc
  1476. * src/PeerListenCommand.cc
  1477. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Updated po templates.
  1479. * po/aria2.pot
  1480. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Bump up version number to 1.7.2
  1482. * configure.ac
  1483. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Changed default value of --enable-dht from 'false' to 'true'.
  1485. * doc/aria2c.1.txt
  1486. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Enabled DHT by default because of Magnet URI support. To disable
  1488. DHT, use --enable-dht=false
  1489. * src/OptionHandlerFactory.cc
  1490. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Print Magnet URI in -S output.
  1492. * src/AnnounceList.cc
  1493. * src/bittorrent_helper.cc
  1494. * src/bittorrent_helper.h
  1495. * test/BittorrentHelperTest.cc
  1496. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Added --bt-prioritize-piece option to aria2rpc.
  1498. * doc/xmlrpc/aria2rpc
  1499. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Refer Magnet URI in --help. Made some cosmetic changes.
  1501. * src/version_usage.cc
  1502. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Updated -T and -M option.
  1504. * doc/aria2c.1.txt
  1505. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Fixed typo
  1507. * doc/aria2c.1.txt
  1508. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Fixed the bug that line separator is missing in horizontal bar.
  1510. * doc/xmlrpc/aria2mon
  1511. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Updated usage text for --metalink-file option.
  1513. * src/usage_text.h
  1514. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. If '-' is given as an argument to --metalink-file option, aria2
  1516. reads Metalink file from stdin.
  1517. * src/OptionHandlerFactory.cc
  1518. * src/OptionHandlerImpl.h
  1519. * src/a2io.h
  1520. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Fixed the bug that aria2 listens wrong port if --interface option
  1522. is used.
  1523. * src/SocketCore.cc
  1524. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Fixed the bug that query parameter in magnet URI is not decoded.
  1526. * src/magnet.cc
  1527. * test/MagnetTest.cc
  1528. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Specified defaultSize as an argument for easy testing.
  1530. * src/util.cc
  1531. * src/util.h
  1532. * test/UtilTest.cc
  1533. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Release 1.7.1
  1535. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Bump up version number to 1.7.1
  1537. * configure.ac
  1538. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Fixed the bug --bt-prioritize-piece=tail is not working.
  1540. * src/util.cc
  1541. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Release 1.7.0
  1543. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Updated po templates.
  1545. * po/aria2.pot
  1546. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Updated help message for --bt-prioritize-piece. Some cosmetic
  1548. changes.
  1549. * doc/aria2c.1.txt
  1550. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1552. * src/usage_text.h
  1553. * src/util.cc
  1554. * test/UtilTest.cc
  1555. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Updated Russian, Ukrainian, German and French translations.
  1557. Thanks to all translators involved.
  1558. * po/de.po
  1559. * po/fr.po
  1560. * po/ru.po
  1561. * po/uk.po
  1562. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Mentioned about pkg-config
  1564. * README
  1565. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Fixed typo. Referred --index-out option in BitTorrent notes.
  1567. * README
  1568. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1570. bind, try all addresses until success
  1571. * src/SocketCore.cc
  1572. * src/SocketCore.h
  1573. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Updated po templates.
  1575. * po/aria2.pot
  1576. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Bump up version number to 1.7.0
  1578. * configure.ac
  1579. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1581. * src/DefaultPieceStorage.cc
  1582. * src/DefaultPieceStorage.h
  1583. * src/PieceStorage.h
  1584. * src/UnknownLengthPieceStorage.cc
  1585. * src/UnknownLengthPieceStorage.h
  1586. * test/MockPieceStorage.h
  1587. * test/ProtocolDetectorTest.cc
  1588. * test/XmlRpcMethodTest.cc
  1589. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Documented in man page that if getifaddrs() is missing,
  1591. --interface option doesn't accept interface name.
  1592. * doc/aria2c.1.txt
  1593. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1595. * src/DefaultBtAnnounce.cc
  1596. * src/DefaultBtAnnounce.h
  1597. * test/DefaultBtAnnounceTest.cc
  1598. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Fixed the bug that connection is always dropped if handshake
  1600. message in extension protocol don't have metadata_size.
  1601. src/HandshakeExtensionMessage.cc
  1602. * src/HandshakeExtensionMessage.cc
  1603. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1605. text saying DHT is recommended when Magnet URI is provided.
  1606. * doc/aria2c.1.txt
  1607. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1609. URI is supplied. Notify user that they should consider enabling
  1610. DHT if they use Magnet URI.
  1611. * src/RequestGroup.cc
  1612. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Added --disable-ipv6 option to disable IPv6.
  1614. * doc/aria2c.1.txt
  1615. * src/InitiateConnectionCommand.cc
  1616. * src/NameResolver.cc
  1617. * src/NameResolver.h
  1618. * src/OptionHandlerFactory.cc
  1619. * src/main.cc
  1620. * src/prefs.cc
  1621. * src/prefs.h
  1622. * src/usage_text.h
  1623. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Updated usage text for --bt-prioritize-piece option.
  1625. * doc/aria2c.1.txt
  1626. * src/usage_text.h
  1627. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1629. given and PACKAGE is missing in the system or FEATURE cannot be
  1630. enabled, print error message and stop the script.
  1631. * configure.ac
  1632. * m4/aria2_arg.m4
  1633. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Halt metadata download immediately when metadata download is done.
  1635. Don't wait unresponsive tracker.
  1636. * src/ByteArrayDiskWriter.h
  1637. * src/DefaultBtInteractive.cc
  1638. * src/DefaultExtensionMessageFactory.cc
  1639. * src/DefaultExtensionMessageFactory.h
  1640. * src/PeerInteractionCommand.cc
  1641. * src/UTMetadataDataExtensionMessage.cc
  1642. * src/UTMetadataDataExtensionMessage.h
  1643. * src/UTMetadataRequestExtensionMessage.cc
  1644. * test/UTMetadataDataExtensionMessageTest.cc
  1645. * test/UTMetadataRequestExtensionMessageTest.cc
  1646. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Documented --interface option in man page.
  1648. * doc/aria2c.1.txt
  1649. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Try resolved address in the order received from the resolver.
  1651. * src/DNSCache.h
  1652. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Added debug logs.
  1654. * src/SocketCore.cc
  1655. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Fixed type of tail to uint64_t
  1657. * src/util.cc
  1658. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Added --interface option. This feature binds sockets to given
  1660. interface. You can specify interface name, IP address and
  1661. hostname.
  1662. * configure.ac
  1663. * src/OptionHandlerFactory.cc
  1664. * src/SocketCore.cc
  1665. * src/SocketCore.h
  1666. * src/main.cc
  1667. * src/message.h
  1668. * src/prefs.cc
  1669. * src/prefs.h
  1670. * src/usage_text.h
  1671. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Updated man page for bt-prioritize-piece option in -i list.
  1673. * doc/aria2c.1.txt
  1674. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. Added bt-prioritize-piece option to -i list.
  1676. * src/download_helper.cc
  1677. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Removed --http-auth-scheme option from man page.
  1679. * doc/aria2c.1.txt
  1680. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Removed --http-auth-scheme option since it doesn't do nothing.
  1682. * src/OptionHandlerFactory.cc
  1683. * src/prefs.cc
  1684. * src/prefs.h
  1685. * src/usage_text.h
  1686. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Adjusted the number of peer info which get_peers reply message can
  1688. carry.
  1689. * src/DHTGetPeersReplyMessage.cc
  1690. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Added extension_message_test_helper.h to aria2c_SOURCES.
  1692. * test/Makefile.am
  1693. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Documented --bt-prioritize-piece option in man page.
  1695. * doc/aria2c.1.txt
  1696. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. Added option --bt-prioritize-piece. This option instruct aria2 to
  1698. try to download first and last pieces of each file first. The
  1699. argument can contain 2 keywords:head and tail. To include both
  1700. keywords, they must be separated by comma. These keywords can take
  1701. one parameter, SIZE. For example , if head=SIZE is specified,
  1702. pieces in the range of first SIZE bytes of each file get higher
  1703. priority. tail=SIZE means the range of last SIZE bytes of each
  1704. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1705. * src/DefaultPieceStorage.h
  1706. * src/Makefile.am
  1707. * src/OptionHandlerFactory.cc
  1708. * src/OptionHandlerImpl.h
  1709. * src/PriorityPieceSelector.cc
  1710. * src/PriorityPieceSelector.h
  1711. * src/RequestGroup.cc
  1712. * src/prefs.cc
  1713. * src/prefs.h
  1714. * src/usage_text.h
  1715. * src/util.cc
  1716. * src/util.h
  1717. * test/Makefile.am
  1718. * test/MockPieceSelector.h
  1719. * test/PriorityPieceSelectorTest.cc
  1720. * test/UtilTest.cc
  1721. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Fixed typo
  1723. * src/HttpRequest.h
  1724. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. In Magnet URI with tr parameter, put each announce URI in separate
  1726. tier.
  1727. * src/bittorrent_helper.cc
  1728. * test/BittorrentHelperTest.cc
  1729. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Renamed ExtensionMessage::getBencodedData() as
  1731. ExtensionMessage::getPayload()
  1732. * src/BtExtendedMessage.cc
  1733. * src/ExtensionMessage.h
  1734. * src/HandshakeExtensionMessage.cc
  1735. * src/HandshakeExtensionMessage.h
  1736. * src/UTMetadataDataExtensionMessage.cc
  1737. * src/UTMetadataDataExtensionMessage.h
  1738. * src/UTMetadataRejectExtensionMessage.cc
  1739. * src/UTMetadataRejectExtensionMessage.h
  1740. * src/UTMetadataRequestExtensionMessage.cc
  1741. * src/UTMetadataRequestExtensionMessage.h
  1742. * src/UTPexExtensionMessage.cc
  1743. * src/UTPexExtensionMessage.h
  1744. * test/HandshakeExtensionMessageTest.cc
  1745. * test/MockExtensionMessage.h
  1746. * test/UTMetadataDataExtensionMessageTest.cc
  1747. * test/UTMetadataRejectExtensionMessageTest.cc
  1748. * test/UTMetadataRequestExtensionMessageTest.cc
  1749. * test/UTPexExtensionMessageTest.cc
  1750. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Updated man page for BitTorrent Magnet URI.
  1752. * doc/aria2c.1.txt
  1753. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Call DownloadContext::setOwnerRequestGroup() in
  1755. RequestGroup::setDownloadContext().
  1756. * src/BtDependency.cc
  1757. * src/RequestGroup.cc
  1758. * src/RequestGroup.h
  1759. * src/download_helper.cc
  1760. * test/DefaultBtMessageDispatcherTest.cc
  1761. * test/DefaultExtensionMessageFactoryTest.cc
  1762. * test/HandshakeExtensionMessageTest.cc
  1763. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1765. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1766. from metadata, use new metadata2Torrent() function.
  1767. * src/BtDependency.cc
  1768. * src/UTMetadataPostDownloadHandler.cc
  1769. * src/bittorrent_helper.cc
  1770. * src/bittorrent_helper.h
  1771. * test/BittorrentHelperTest.cc
  1772. * test/BtDependencyTest.cc
  1773. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Use createRequestGroupForUri to create the download for torrent
  1775. file.
  1776. * src/Metalink2RequestGroup.cc
  1777. * test/Metalink2RequestGroupTest.cc
  1778. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Fixed typo
  1780. * src/DownloadContext.h
  1781. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Use createRequestGroupForBitTorrent()
  1783. * src/BtPostDownloadHandler.cc
  1784. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Added remove().
  1786. * src/Option.cc
  1787. * src/Option.h
  1788. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Removed options which is only valid for URIs specified in
  1790. command-line. If they are left, because op is used as a template
  1791. for new RequestGroup(such as created in XML-RPC command,
  1792. BtPostDownloadHandler etc), they causes unintentional effect.
  1793. * src/main.cc
  1794. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Refer to option value of PREF_OUT only in download_helper.
  1796. * src/FtpNegotiationCommand.cc
  1797. * src/HttpResponseCommand.cc
  1798. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1800. * src/download_helper.cc
  1801. * src/download_helper.h
  1802. * src/XmlRpcMethodImpl.cc
  1803. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Updated man page for changeOption XML-RPC method.
  1805. * doc/aria2c.1.txt
  1806. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Added --bt-max-peers option to changeOption XML-RPC method.
  1808. * src/XmlRpcMethod.cc
  1809. * src/XmlRpcMethodImpl.cc
  1810. * test/XmlRpcMethodTest.cc
  1811. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1813. * test/XmlRpcMethodTest.cc
  1814. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Removed redundant DownloadContext::hasAttribute(...) calls.
  1816. * src/ConsoleStatCalc.cc
  1817. * src/RequestGroup.cc
  1818. * src/XmlRpcMethodImpl.cc
  1819. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Changed the number of tracker request attempt from 5 to 2.
  1821. * src/TrackerWatcherCommand.cc
  1822. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Use host and protocol in original URI, because URI selector
  1824. selects URI based on original URI, not redirected one.
  1825. * src/Request.cc
  1826. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Fixed the bug which causes segmentation fault with tellWaiting
  1828. XML-RPC method when BitTorrent download is waiting. The key of
  1829. BtRegistry is changed from info hash to GID, because it is
  1830. registered per RequestGroup, not info hash.
  1831. * src/BtRegistry.cc
  1832. * src/BtRegistry.h
  1833. * src/BtSetup.cc
  1834. * src/ConsoleStatCalc.cc
  1835. * src/InitiatorMSEHandshakeCommand.cc
  1836. * src/PeerInitiateConnectionCommand.cc
  1837. * src/PeerInteractionCommand.cc
  1838. * src/PeerInteractionCommand.h
  1839. * src/PeerReceiveHandshakeCommand.cc
  1840. * src/RequestGroup.cc
  1841. * src/XmlRpcMethodImpl.cc
  1842. * test/BtRegistryTest.cc
  1843. * test/XmlRpcMethodTest.cc
  1844. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Updated man page for changeOption XML-RPC method.
  1846. * doc/aria2c.1.txt
  1847. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1849. method.
  1850. * src/XmlRpcMethod.cc
  1851. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. Documented about BitTorrent Magnet URI in man page.
  1853. * doc/aria2c.1.txt
  1854. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1856. inherited to generated RequestGroup.
  1857. * src/UTMetadataPostDownloadHandler.cc
  1858. * test/UTMetadataPostDownloadHandlerTest.cc
  1859. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. Prepended "[METADATA]" before dn.
  1861. * src/bittorrent_helper.cc
  1862. * test/BittorrentHelperTest.cc
  1863. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Rewritten Magnet URI parser.
  1865. * src/Makefile.am
  1866. * src/ProtocolDetector.cc
  1867. * src/bittorrent_helper.cc
  1868. * src/bittorrent_helper.h
  1869. * src/download_helper.cc
  1870. * src/magnet.cc
  1871. * src/magnet.h
  1872. * test/BittorrentHelperTest.cc
  1873. * test/MagnetTest.cc
  1874. * test/Makefile.am
  1875. * test/ProtocolDetectorTest.cc
  1876. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Use hton64
  1878. * src/base32.cc
  1879. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Added Base32 encoded BitTorrent Magnet Link support.
  1881. * src/Makefile.am
  1882. * src/base32.cc
  1883. * src/base32.h
  1884. * src/bittorrent_helper.cc
  1885. * test/Base32Test.cc
  1886. * test/BittorrentHelperTest.cc
  1887. * test/Makefile.am
  1888. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1890. supported yet. Fixed typo in method name in RequestGroup. In
  1891. metadataGetMode, don't show "Your share ratio was ..." message.
  1892. * src/DefaultBtInteractive.cc
  1893. * src/DefaultBtInteractive.h
  1894. * src/DownloadHandlerFactory.cc
  1895. * src/DownloadHandlerFactory.h
  1896. * src/HandshakeExtensionMessage.cc
  1897. * src/Makefile.am
  1898. * src/Metalink2RequestGroup.cc
  1899. * src/PeerInteractionCommand.cc
  1900. * src/RequestGroup.cc
  1901. * src/RequestGroup.h
  1902. * src/UTMetadataPostDownloadHandler.cc
  1903. * src/UTMetadataPostDownloadHandler.h
  1904. * src/download_helper.cc
  1905. * test/HandshakeExtensionMessageTest.cc
  1906. * test/Makefile.am
  1907. * test/UTMetadataPostDownloadHandlerTest.cc
  1908. * test/UTMetadataRejectExtensionMessageTest.cc
  1909. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. In metadataGetMode, don't show SEEDING.
  1911. * src/ConsoleStatCalc.cc
  1912. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1913. Fixed ut_metadata data handling. Implemented
  1914. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1915. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1916. metadata_size is received.
  1917. * src/DefaultExtensionMessageFactory.cc
  1918. * src/DefaultExtensionMessageFactory.h
  1919. * src/HandshakeExtensionMessage.cc
  1920. * src/HandshakeExtensionMessage.h
  1921. * src/UTMetadataDataExtensionMessage.cc
  1922. * src/UTMetadataDataExtensionMessage.h
  1923. * src/UTMetadataRequestExtensionMessage.cc
  1924. * src/UTMetadataRequestFactory.cc
  1925. * src/UTMetadataRequestFactory.h
  1926. * src/UTMetadataRequestTracker.cc
  1927. * src/UTMetadataRequestTracker.h
  1928. * test/DefaultExtensionMessageFactoryTest.cc
  1929. * test/HandshakeExtensionMessageTest.cc
  1930. * test/MockBtMessage.h
  1931. * test/UTMetadataDataExtensionMessageTest.cc
  1932. * test/UTMetadataRequestExtensionMessageTest.cc
  1933. * test/UTMetadataRequestFactoryTest.cc
  1934. * test/UTMetadataRequestTrackerTest.cc
  1935. * test/extension_message_test_helper.h
  1936. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Drop connection if ut_metadata reject message is received.
  1938. * src/UTMetadataRejectExtensionMessage.cc
  1939. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1941. get high enough in that mode.
  1942. * src/ActivePeerConnectionCommand.cc
  1943. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Added BitTorrent magnet link support to ProtocolDetector.
  1945. * src/ProtocolDetector.cc
  1946. * src/ProtocolDetector.h
  1947. * test/ProtocolDetectorTest.cc
  1948. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Don't inject validator into BtMessage in metadataGetMode because
  1950. most of the checks depends on the total length of download but it
  1951. is unknown. Delegate metadataGetMode to BtMessage.
  1952. * src/DefaultBtMessageFactory.cc
  1953. * src/DefaultBtMessageFactory.h
  1954. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1956. * src/DefaultPieceStorage.h
  1957. * src/PieceStorage.h
  1958. * src/UnknownLengthPieceStorage.h
  1959. * test/MockPieceStorage.h
  1960. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Added markTotalLengthIsKnown().
  1962. * src/DownloadContext.h
  1963. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1965. missing. If metadata is missing, always use DHT when it is ready.
  1966. * src/BtSetup.cc
  1967. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1968. Added parseMagnetLink(). Hex encoded info hash is supported.
  1969. Base32 encoded info hash is not supported yet.
  1970. * src/bittorrent_helper.cc
  1971. * src/bittorrent_helper.h
  1972. * test/BittorrentHelperTest.cc
  1973. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Added FromHex()
  1975. * src/util.cc
  1976. * src/util.h
  1977. * test/UtilTest.cc
  1978. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Added _metadataGetMode member variable. It toggles the action when
  1980. messages are received: usually they almost do nothing if
  1981. _metadataGetMode is true.
  1982. * src/AbstractBtMessage.cc
  1983. * src/AbstractBtMessage.h
  1984. * src/BtAllowedFastMessage.cc
  1985. * src/BtBitfieldMessage.cc
  1986. * src/BtCancelMessage.cc
  1987. * src/BtChokeMessage.cc
  1988. * src/BtHaveAllMessage.cc
  1989. * src/BtHaveMessage.cc
  1990. * src/BtInterestedMessage.cc
  1991. * src/BtNotInterestedMessage.cc
  1992. * src/BtPieceMessage.cc
  1993. * src/BtRejectMessage.cc
  1994. * src/BtRequestMessage.cc
  1995. * src/BtUnchokeMessage.cc
  1996. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Added bencode::decode overload functions. They have extra argument
  1998. 'end', passed by reference. 'end' points to the beyond the last
  1999. position of data used in decoding process.
  2000. * src/bencode.cc
  2001. * src/bencode.h
  2002. * test/BencodeTest.cc
  2003. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2004. Initial support of Extension for Peers to Send Metadata
  2005. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2006. metadata from swarm.
  2007. * src/BtConstants.h
  2008. * src/DefaultBtInteractive.cc
  2009. * src/DefaultExtensionMessageFactory.cc
  2010. * src/DefaultExtensionMessageFactory.h
  2011. * src/ExtensionMessage.h
  2012. * src/ExtensionMessageRegistry.h
  2013. * src/HandshakeExtensionMessage.cc
  2014. * src/HandshakeExtensionMessage.h
  2015. * src/Makefile.am
  2016. * src/PeerConnection.h
  2017. * src/PeerInteractionCommand.cc
  2018. * src/UTMetadataDataExtensionMessage.cc
  2019. * src/UTMetadataDataExtensionMessage.h
  2020. * src/UTMetadataExtensionMessage.cc
  2021. * src/UTMetadataExtensionMessage.h
  2022. * src/UTMetadataRejectExtensionMessage.cc
  2023. * src/UTMetadataRejectExtensionMessage.h
  2024. * src/UTMetadataRequestExtensionMessage.cc
  2025. * src/UTMetadataRequestExtensionMessage.h
  2026. * src/bittorrent_helper.cc
  2027. * src/bittorrent_helper.h
  2028. * test/BittorrentHelperTest.cc
  2029. * test/DefaultExtensionMessageFactoryTest.cc
  2030. * test/HandshakeExtensionMessageTest.cc
  2031. * test/Makefile.am
  2032. * test/UTMetadataDataExtensionMessageTest.cc
  2033. * test/UTMetadataRejectExtensionMessageTest.cc
  2034. * test/UTMetadataRequestExtensionMessageTest.cc
  2035. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Cancel segment in prepareForRetry() because there is a chance that
  2037. the command has segments.
  2038. * src/CreateRequestCommand.cc
  2039. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Fixed the bug that slow server is not knocked down in favor of
  2041. faster one.
  2042. * src/AbstractCommand.cc
  2043. * src/DefaultPieceStorage.cc
  2044. * src/DefaultPieceStorage.h
  2045. * src/PieceStorage.h
  2046. * src/UnknownLengthPieceStorage.cc
  2047. * src/UnknownLengthPieceStorage.h
  2048. * test/MockPieceStorage.h
  2049. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Fixed the bug that Request object is not added to
  2051. _inFlightRequests in findFasterRequest().
  2052. * src/FileEntry.cc
  2053. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Changed the strategry of how to increase the number of outstanding
  2055. requests. Now the number is doubled if there are no outstanding
  2056. requests after receiving messages.
  2057. * src/BtConstants.h
  2058. * src/DefaultBtInteractive.cc
  2059. * src/DefaultBtInteractive.h
  2060. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Check socket for reading if there are outstanding requests.
  2062. * src/PeerInteractionCommand.cc
  2063. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Moved frequently called methods to header file so they get
  2065. inlined.
  2066. * src/RequestSlot.cc
  2067. * src/RequestSlot.h
  2068. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Copied in_addr instead of just casting from char* which might
  2070. violate strict aliasing rules.
  2071. * src/AsyncNameResolver.cc
  2072. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Use dynamic_pointer_cast
  2074. * test/BtPieceMessageTest.cc
  2075. * test/BtRequestMessageTest.cc
  2076. * test/DefaultBtRequestFactoryTest.cc
  2077. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Added testSetUrl20()
  2079. * test/RequestTest.cc
  2080. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Code cleanup
  2082. * src/bittorrent_helper.cc
  2083. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Use C++ style cast
  2085. * src/AsyncNameResolver.cc
  2086. * src/Base64.h
  2087. * src/BtBitfieldMessage.cc
  2088. * src/BtHandshakeMessage.cc
  2089. * src/DefaultBtMessageFactory.cc
  2090. * src/DefaultBtProgressInfoFile.cc
  2091. * src/EpollEventPoll.cc
  2092. * src/ExpatMetalinkProcessor.cc
  2093. * src/IteratableChecksumValidator.cc
  2094. * src/IteratableChunkChecksumValidator.cc
  2095. * src/MessageDigestHelper.cc
  2096. * src/Platform.cc
  2097. * src/RequestGroupMan.cc
  2098. * src/SingleFileAllocationIterator.cc
  2099. * src/Sqlite3MozCookieParser.cc
  2100. * src/XML2SAXMetalinkProcessor.cc
  2101. * src/Xml2XmlRpcRequestProcessor.cc
  2102. * src/util.cc
  2103. * src/util.h
  2104. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Fixed integer potential alignment problem.
  2106. * src/bitfield.h
  2107. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2109. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2110. include file ordering.
  2111. * src/PeerListProcessor.h
  2112. * src/bittorrent_helper.cc
  2113. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2115. * src/Request.cc
  2116. * src/util.cc
  2117. * src/util.h
  2118. * test/RequestTest.cc
  2119. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. Rewritten util::uitos()
  2121. * src/util.h
  2122. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Code cleanup
  2124. * src/Request.cc
  2125. * src/Request.h
  2126. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Rewritten Request::parseUrl()
  2128. * src/Request.cc
  2129. * test/RequestTest.cc
  2130. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Removed unused macro SAFE_CHARS
  2132. * src/Request.cc
  2133. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Updated doc
  2135. * src/DHTRoutingTableDeserializer.cc
  2136. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Release 1.6.3
  2138. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Removed unused function.
  2140. * test/DHTPeerAnnounceStorageTest.cc
  2141. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Only decrement cols if cols > 0
  2143. * src/ConsoleStatCalc.cc
  2144. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2146. translations. Thanks to all translators.
  2147. * po/ca.po
  2148. * po/fr.po
  2149. * po/it.po
  2150. * po/ja.po
  2151. * po/pl.po
  2152. * po/ru.po
  2153. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Updated translation template
  2155. * po
  2156. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Fixed compile error without ssl library.
  2158. * src/util.cc
  2159. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Logged received nodes in get_peers reply message.
  2161. * src/DHTAbstractNodeLookupTask.cc
  2162. * src/DHTAbstractNodeLookupTask.h
  2163. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2164. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2165. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2166. * src/DHTMessageDispatcherImpl.cc
  2167. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Don't reuse URI if Request pool is not empty.
  2169. * src/CreateRequestCommand.cc
  2170. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2172. receive get_peers request for torrent which the client is now
  2173. downloading.
  2174. * src/BtSetup.cc
  2175. * src/DHTPeerAnnounceEntry.cc
  2176. * src/DHTPeerAnnounceEntry.h
  2177. * src/DHTPeerAnnounceStorage.cc
  2178. * src/DHTPeerAnnounceStorage.h
  2179. * src/RequestGroup.cc
  2180. * test/DHTPeerAnnounceEntryTest.cc
  2181. * test/DHTPeerAnnounceStorageTest.cc
  2182. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2183. Fixed the bug that in Windows environment new blank line is
  2184. inserted when console readout is updated.
  2185. * src/ConsoleStatCalc.cc
  2186. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Throw exception if binding listening port is failed. Removed
  2188. RequestGroupMan::getInitialCommand(). Use
  2189. fillRequestGroupFromReserver() instead. Delete commands for
  2190. RequestGroup which has errors when it is being added.
  2191. * src/BtSetup.cc
  2192. * src/DownloadEngine.cc
  2193. * src/DownloadEngine.h
  2194. * src/DownloadEngineFactory.cc
  2195. * src/MultiUrlRequestInfo.cc
  2196. * src/RequestGroupMan.cc
  2197. * src/RequestGroupMan.h
  2198. * test/RequestGroupManTest.cc
  2199. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Fixed the bug that when downloading more than one torrent,
  2201. listening port is not reported properly to tracker for 2nd or
  2202. later torrents.
  2203. * src/BtSetup.cc
  2204. * src/PeerListenCommand.cc
  2205. * src/PeerListenCommand.h
  2206. * src/RequestGroup.cc
  2207. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Bump up version number to 1.6.3
  2209. * configure.ac
  2210. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Removed Util.cc from POTFILES.in
  2212. * po/POTFILES.in
  2213. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Updated man page for previous change.
  2215. * doc/aria2c.1.txt
  2216. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2217. If user name is embedded but password is missing in URI, first
  2218. resolve password using .netrc. If password is found in .netrc,
  2219. then use it as password. If not, use the password specified in
  2220. --ftp-passwd.
  2221. * src/AuthConfigFactory.cc
  2222. * src/Request.cc
  2223. * src/Request.h
  2224. * test/AuthConfigFactoryTest.cc
  2225. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Fixed typo
  2227. * doc/aria2c.1.txt
  2228. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Fixed typo
  2230. * src/usage_text.h
  2231. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2232. Added missing bitfield.cc
  2233. * src/bitfield.cc
  2234. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Renamed Util.{cc,h} as util.{cc,h}
  2236. * src/Util.cc
  2237. * src/Util.h
  2238. * src/util.cc
  2239. * src/util.h
  2240. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Moved static functions in Util class to namespace util.
  2242. * src
  2243. * test
  2244. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2246. Moved generateRandomKey to bittorrent_helper.cc.
  2247. * src/DHTBucket.cc
  2248. * src/DHTGetPeersMessage.cc
  2249. * src/DHTGetPeersReplyMessage.cc
  2250. * src/DHTMessage.cc
  2251. * src/DHTNode.cc
  2252. * src/DHTTokenTracker.cc
  2253. * src/DHTUtil.cc: Removed.
  2254. * src/DHTUtil.h: Removed.
  2255. * src/Makefile.am
  2256. * src/Util.cc
  2257. * src/Util.h
  2258. * src/bitfield.h
  2259. * src/bittorrent_helper.cc
  2260. * src/bittorrent_helper.h
  2261. * test/ARC4Test.cc
  2262. * test/BNodeTest.cc
  2263. * test/DHTAnnouncePeerMessageTest.cc
  2264. * test/DHTAnnouncePeerReplyMessageTest.cc
  2265. * test/DHTFindNodeMessageTest.cc
  2266. * test/DHTFindNodeReplyMessageTest.cc
  2267. * test/DHTGetPeersMessageTest.cc
  2268. * test/DHTGetPeersReplyMessageTest.cc
  2269. * test/DHTPingMessageTest.cc
  2270. * test/DHTPingReplyMessageTest.cc
  2271. * test/DHTTokenTrackerTest.cc
  2272. * test/DHTUtilTest.cc: Removed.
  2273. * test/Makefile.am
  2274. * test/UtilTest.cc
  2275. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Removed the call to trim() because trim() is called for each
  2277. element in split().
  2278. * src/CookieParser.cc
  2279. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Replaced Util::slice() with split()
  2281. * src/AbstractCommand.cc
  2282. * src/CookieParser.cc
  2283. * src/File.cc
  2284. * src/HttpHeaderProcessor.cc
  2285. * src/HttpRequest.cc
  2286. * src/Metalink2RequestGroup.cc
  2287. * src/MetalinkParserController.cc
  2288. * src/Netrc.cc
  2289. * src/NsCookieParser.cc
  2290. * src/ParameterizedStringParser.cc
  2291. * src/ServerStatMan.cc
  2292. * src/UriListParser.cc
  2293. * src/Util.cc
  2294. * src/Util.h
  2295. * src/bittorrent_helper.cc
  2296. * test/UtilTest.cc
  2297. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Use request->getDir() instead of "/" for embedded user/pass in
  2299. URI.
  2300. * src/AuthConfigFactory.cc
  2301. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Fixed wrong insertion point for BasicCred.
  2303. * src/AuthConfigFactory.cc
  2304. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Allowed non-regular file in LocalFilePathOptionHandler
  2306. * src/OptionHandlerImpl.h
  2307. * src/message.h
  2308. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2310. * src/Netrc.cc
  2311. * src/Util.h
  2312. * test/NetrcTest.cc
  2313. * test/sample.netrc
  2314. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Fixed typo
  2316. * src/BtDependency.cc
  2317. * src/BtRejectMessage.cc
  2318. * src/FtpConnection.cc
  2319. * src/HttpHeaderProcessor.h
  2320. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2321. Fixed lintian report in man page
  2322. * doc/aria2c.1.txt
  2323. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Release 1.6.2
  2325. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Updated Ukrainian translation. Thanks to all translators.
  2327. * po/uk.po
  2328. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Updated translation template
  2330. * po
  2331. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Bump up version number to 1.6.2
  2333. * configure.ac
  2334. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Updated licence message in -v output.
  2336. * src/version_usage.cc
  2337. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Replaced aria2 with aria2c in help message.
  2339. * src/version_usage.cc
  2340. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2342. * src/version_usage.cc
  2343. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Quoted localedir
  2345. * src/Makefile.am
  2346. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2348. utime. Check header for utime.h.
  2349. * configure.ac
  2350. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2352. * configure.ac
  2353. * src/daemon.cc
  2354. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Don't set localedir manually. Leave it to autoconf.
  2356. * configure.ac
  2357. * src/Makefile.am
  2358. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Added --install to ACLOCAL_AMFLAGS.
  2360. Removed m4 from SUBDIRS.
  2361. Updated automake 1.11 and autoconf 2.64.
  2362. Replaced some obsolute macros with new one.
  2363. * Makefile.am
  2364. * configure.ac
  2365. * m4/aria2_arg.m4
  2366. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Removed Makefile.am in m4 directory.
  2368. * configure.ac
  2369. * m4/ChangeLog
  2370. * m4/Makefile.am
  2371. * m4/Makefile.in
  2372. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Removed unused m4 macros.
  2374. * m4/intldir.m4
  2375. * m4/inttypes.m4
  2376. * m4/isc-posix.m4
  2377. * m4/libgnutls-extra.m4
  2378. * m4/ulonglong.m4
  2379. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Fixed the bug that causes segmentation fault if
  2381. req->getCurrentUrl() contains printf formatting characters such as
  2382. %d. The statement that causes this bug is useless and removed.
  2383. * src/AbstractCommand.cc
  2384. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. * Release 1.6.1
  2386. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Updated Simplified Chinese translation. Thanks to translators.
  2388. * po/zh_CN.po
  2389. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Updated translation template
  2391. * po
  2392. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Bump up version number to 1.6.1
  2394. * configure.ac
  2395. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Changed interval from 120 to 60 for dropping inactive peer.
  2397. * src/DefaultBtInteractive.cc
  2398. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Updated man page for --user-agent and --peer-id-prefix option.
  2400. * doc/aria2c.1.txt
  2401. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Code clean up
  2403. * src/BtPostDownloadHandler.cc
  2404. * src/ContentTypeRequestGroupCriteria.cc
  2405. * src/ContentTypeRequestGroupCriteria.h
  2406. * src/DownloadHandlerConstants.cc
  2407. * src/DownloadHandlerConstants.h
  2408. * src/DownloadHandlerFactory.cc
  2409. * src/MetalinkPostDownloadHandler.cc
  2410. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Don't save control file when aria2 exists while checking piece
  2412. hash(behavior of -V option). If control file doesn't exist when
  2413. aria2 launched, the completed length in saved control file will be
  2414. 0 byte and this confuses user. disableSaveControlFile() is called
  2415. in RequestGroup::processCheckIntegrityEntry().
  2416. enableSaveControlFile() will be called after hash checking is
  2417. done. See CheckIntegrityCommand.
  2418. * src/CheckIntegrityCommand.cc
  2419. * src/RequestGroup.cc
  2420. * src/RequestGroup.h
  2421. * src/RequestGroupMan.cc
  2422. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Included version number in Peer ID and client version. Peer ID
  2424. now starts with "aria2/VERSION-", where VERSION is
  2425. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2426. * src/DefaultBtInteractive.cc
  2427. * src/OptionHandlerFactory.cc
  2428. * src/bittorrent_helper.cc
  2429. * src/bittorrent_helper.h
  2430. * src/main.cc
  2431. * src/usage_text.h
  2432. * test/BittorrentHelperTest.cc
  2433. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Fixed memory leak.
  2435. * src/DownloadCommand.cc
  2436. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2437. Removed server, port, user and passwd key from options before
  2438. XMLRPC::Client.call since they are not options of aria2.
  2439. * doc/xmlrpc/aria2mon
  2440. * doc/xmlrpc/aria2rpc
  2441. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Included version number in user-agent string.
  2443. * src/OptionHandlerFactory.cc
  2444. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Fixed the bug that the option values changed by XML-RPC
  2446. method(changeOption and changeGlobalOption) are overwritten to the
  2447. previous value by the next these request which doesn't contain
  2448. that option value. Supporse max-download-limit is initially 0. You
  2449. changed this value to 100K by changeOption. Then you issue
  2450. changeOption request to change max-upload-limit to 50K. This
  2451. second request doesn't contain xml-download-limit, so it is back
  2452. to initial value, 0. Another improvement is that exception is
  2453. thrown when changeOption and changeGlobalOption request contains
  2454. option name which doesn't allowed in each request.
  2455. * src/DownloadEngine.h
  2456. * src/XmlRpcMethod.cc
  2457. * src/XmlRpcMethod.h
  2458. * src/XmlRpcMethodImpl.cc
  2459. * src/download_helper.cc
  2460. * src/download_helper.h
  2461. * test/XmlRpcMethodTest.cc
  2462. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Added missing MetalinkParserStateImpl.{cc,h}
  2464. * src/MetalinkParserStateImpl.cc
  2465. * src/MetalinkParserStateImpl.h
  2466. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Put all MetalinkParserState subclasses into
  2468. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2469. * src/FileMetalinkParserState.cc: Removed
  2470. * src/FileMetalinkParserState.h: Removed
  2471. * src/FilesMetalinkParserState.cc: Removed
  2472. * src/FilesMetalinkParserState.h: Removed
  2473. * src/FinMetalinkParserState.cc: Removed
  2474. * src/FinMetalinkParserState.h: Removed
  2475. * src/HashMetalinkParserState.cc: Removed
  2476. * src/HashMetalinkParserState.h: Removed
  2477. * src/InitialMetalinkParserState.cc: Removed
  2478. * src/InitialMetalinkParserState.h: Removed
  2479. * src/LanguageMetalinkParserState.cc: Removed
  2480. * src/LanguageMetalinkParserState.h: Removed
  2481. * src/Makefile.am
  2482. * src/MetalinkMetalinkParserState.cc: Removed
  2483. * src/MetalinkMetalinkParserState.h: Removed
  2484. * src/MetalinkParserState.h
  2485. * src/MetalinkParserStateMachine.cc
  2486. * src/MetalinkParserStateMachine.h
  2487. * src/OSMetalinkParserState.cc: Removed
  2488. * src/OSMetalinkParserState.h: Removed
  2489. * src/PieceHashMetalinkParserState.cc: Removed
  2490. * src/PieceHashMetalinkParserState.h: Removed
  2491. * src/PiecesMetalinkParserState.cc: Removed
  2492. * src/PiecesMetalinkParserState.h: Removed
  2493. * src/ResourcesMetalinkParserState.cc: Removed
  2494. * src/ResourcesMetalinkParserState.h: Removed
  2495. * src/SignatureMetalinkParserState.cc: Removed
  2496. * src/SignatureMetalinkParserState.h: Removed
  2497. * src/SizeMetalinkParserState.cc: Removed
  2498. * src/SizeMetalinkParserState.h: Removed
  2499. * src/SkipTagMetalinkParserState.cc: Removed
  2500. * src/SkipTagMetalinkParserState.h: Removed
  2501. * src/URLMetalinkParserState.cc: Removed
  2502. * src/URLMetalinkParserState.h: Removed
  2503. * src/VerificationMetalinkParserState.cc: Removed
  2504. * src/VerificationMetalinkParserState.h: Removed
  2505. * src/VersionMetalinkParserState.cc: Removed
  2506. * src/VersionMetalinkParserState.h: Removed
  2507. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2508. Move all functions in PeerMessageUtil to bittorrent_helper.
  2509. * src/BtBitfieldMessage.cc
  2510. * src/BtBitfieldMessageValidator.h
  2511. * src/BtExtendedMessage.cc
  2512. * src/BtHandshakeMessage.cc
  2513. * src/BtHandshakeMessageValidator.h
  2514. * src/BtPieceMessage.cc
  2515. * src/BtPieceMessageValidator.h
  2516. * src/BtPortMessage.cc
  2517. * src/DHTFindNodeReplyMessage.cc
  2518. * src/DHTGetPeersReplyMessage.cc
  2519. * src/DHTMessageFactoryImpl.cc
  2520. * src/DHTRoutingTableDeserializer.cc
  2521. * src/DHTRoutingTableSerializer.cc
  2522. * src/DHTTokenTracker.cc
  2523. * src/DefaultBtMessageFactory.cc
  2524. * src/IndexBtMessage.cc
  2525. * src/IndexBtMessage.h
  2526. * src/IndexBtMessageValidator.h
  2527. * src/Makefile.am
  2528. * src/PeerMessageUtil.cc: Removed.
  2529. * src/PeerMessageUtil.h: Removed.
  2530. * src/RangeBtMessage.cc
  2531. * src/RangeBtMessage.h
  2532. * src/RangeBtMessageValidator.h
  2533. * src/UTPexExtensionMessage.cc
  2534. * src/ZeroBtMessage.cc
  2535. * src/ZeroBtMessage.h
  2536. * src/bittorrent_helper.cc
  2537. * src/bittorrent_helper.h
  2538. * test/BittorrentHelperTest.cc
  2539. * test/BtAllowedFastMessageTest.cc
  2540. * test/BtBitfieldMessageTest.cc
  2541. * test/BtCancelMessageTest.cc
  2542. * test/BtChokeMessageTest.cc
  2543. * test/BtExtendedMessageTest.cc
  2544. * test/BtHandshakeMessageTest.cc
  2545. * test/BtHaveAllMessageTest.cc
  2546. * test/BtHaveMessageTest.cc
  2547. * test/BtHaveNoneMessageTest.cc
  2548. * test/BtInterestedMessageTest.cc
  2549. * test/BtNotInterestedMessageTest.cc
  2550. * test/BtPieceMessageTest.cc
  2551. * test/BtPortMessageTest.cc
  2552. * test/BtRejectMessageTest.cc
  2553. * test/BtRequestMessageTest.cc
  2554. * test/BtSuggestPieceMessageTest.cc
  2555. * test/BtUnchokeMessageTest.cc
  2556. * test/DHTFindNodeReplyMessageTest.cc
  2557. * test/DHTGetPeersReplyMessageTest.cc
  2558. * test/DHTMessageFactoryImplTest.cc
  2559. * test/DHTRoutingTableDeserializerTest.cc
  2560. * test/DHTRoutingTableSerializerTest.cc
  2561. * test/DefaultBtMessageFactoryTest.cc
  2562. * test/DefaultExtensionMessageFactoryTest.cc
  2563. * test/Makefile.am
  2564. * test/PeerListProcessorTest.cc
  2565. * test/PeerMessageUtilTest.cc: Removed.
  2566. * test/UTPexExtensionMessageTest.cc
  2567. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Limit the size of values list when sending get_peers reply.
  2569. * src/DHTGetPeersReplyMessage.cc
  2570. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. Updated banner
  2572. * doc/xmlrpc/aria2rpc
  2573. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Added missing help message for remove command.
  2575. * doc/xmlrpc/aria2rpc
  2576. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Generated configure and config.h.in
  2578. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2579. Add check for fork(), which is missing on MinGW
  2580. * src/daemon.cc
  2581. * configure.ac
  2582. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2584. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2585. Util::httpGMT().
  2586. * src/Util.cc
  2587. * src/Util.h
  2588. * test/UtilTest.cc
  2589. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. * Release 1.6.0
  2591. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Fixed a path to xmlrpc/README.txt
  2593. * doc/Makefile.am
  2594. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Added XML-RPC in -v Configuration output.
  2596. * src/FeatureConfig.cc
  2597. * src/FeatureConfig.h
  2598. * test/FeatureConfigTest.cc
  2599. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Updated Bulgarian, Russian, Slovak and Japanese
  2601. translations. Thanks to all translators.
  2602. * po/bg.po
  2603. * po/ja.po
  2604. * po/ru.po
  2605. * po/sk.po
  2606. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Removed --retry-wait option from aria2rpc
  2608. * doc/xmlrpc/aria2rpc
  2609. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Removed --retry-wait option from man page.
  2611. * doc/aria2c.1.txt
  2612. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Removed --retry-wait option since the current architecture doesn't
  2614. allow sleep for particular URI.
  2615. * src/AbstractCommand.cc
  2616. * src/OptionHandlerFactory.cc
  2617. * src/download_helper.cc
  2618. * src/prefs.cc
  2619. * src/prefs.h
  2620. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Removed Retry-After header support. Since the current architecture
  2622. doesn't allow sleep for particular URI.
  2623. * src/HttpSkipResponseCommand.cc
  2624. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Updated the help message for --daemon option.
  2626. * doc/aria2c.1.txt
  2627. * src/usage_text.h
  2628. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Added our own daemon() function for systems which desn't have
  2630. daemon(3).
  2631. * configure.ac
  2632. * src/Makefile.am
  2633. * src/daemon.cc
  2634. * src/daemon.h
  2635. * src/option_processing.cc
  2636. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Simplified File::getCurrentDir()
  2638. * src/File.cc
  2639. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Use exit() instead of _exit
  2641. * src/RequestGroupMan.cc
  2642. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Replaced "CATEGORY" with "TAGS".
  2644. * src/usage_text.h
  2645. * doc/aria2c.1.txt
  2646. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2647. Updated the help message for --help option.
  2648. * src/usage_text.h
  2649. * doc/aria2c.1.txt
  2650. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Updated man page for added help tags.
  2652. * doc/aria2c.1.txt
  2653. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Added help category #file. Added #file tag to the options related
  2655. to downloaded file.
  2656. * src/OptionHandlerFactory.cc
  2657. * src/help_tags.h
  2658. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Added help categories: #cookie and #hook. Added #https tag to
  2660. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2661. * src/OptionHandlerFactory.cc
  2662. * src/help_tags.h
  2663. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2664. Made MSG_NOT_FILE translatable.
  2665. * src/message.h
  2666. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Updated man page for --help option.
  2668. * doc/aria2c.1.txt
  2669. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Updated doc.
  2671. * src/XmlRpcMethod.h
  2672. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Help category now starts with "#" to distinguish a category from
  2674. keyword search. For example, "http" categroy is now "#http". You
  2675. can type "--help=#http" to get explanation of options related to
  2676. http. If '#' is omitted, then the argument is treated as a keyword
  2677. and aria2 searches options whose name includes the keyword and
  2678. print matched ones. For example, "--help=http" will show options
  2679. whose name includes "http".
  2680. * src/OptionHandlerFactory.cc
  2681. * src/help_tags.h
  2682. * src/usage_text.h
  2683. * src/version_usage.cc
  2684. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Documented missing experimental tag and newly added xml-rpc tag in
  2686. man page.
  2687. * doc/aria2c.1.txt
  2688. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Added xml-rpc help tag. Tagged xml-rpc related options with
  2690. xml-rpc tag.
  2691. * src/OptionHandlerFactory.cc
  2692. * src/help_tags.h
  2693. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. Updated message when a path is not a file. Updated common message
  2695. for wrong option.
  2696. * src/OptionHandlerException.cc
  2697. * src/message.h
  2698. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Use File::isFile() instead of File::exists(). Updated message when
  2700. a path is not a file.
  2701. * src/OptionHandlerImpl.cc
  2702. * src/message.h
  2703. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Fixed the bug that server performence profile is not updated when
  2705. aria2c was terminated by emergency shutdown.
  2706. * src/TrackerWatcherCommand.cc
  2707. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Use LocalFilePathOptionHandler for -T and -M option.
  2709. Updated message of MSG_FILE_NOT_EXIST.
  2710. * src/OptionHandlerFactory.cc
  2711. * src/message.h
  2712. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Added LocalFilePathOptionHandler which check whether the specified
  2714. file path does exist or not.
  2715. * src/OptionHandlerImpl.cc
  2716. * src/message.h
  2717. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Updated wiki page URI.
  2719. * README
  2720. * doc/aria2c.1.txt
  2721. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Added README.txt for xmlrpc directory.
  2723. * doc/Makefile.am
  2724. * doc/xmlrpc/README.txt
  2725. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Bump up version number to 1.6.0.
  2727. * configure.ac
  2728. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Added XML-RPC client scripts written in ruby.
  2730. * doc/Makefile.am
  2731. * doc/xmlrpc/aria2mon
  2732. * doc/xmlrpc/aria2rpc
  2733. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Added support for IPv6 literal address in URI. Now aria2 can
  2735. handle URI such as http://[::1]/
  2736. * src/HttpRequest.cc
  2737. * src/HttpRequest.h
  2738. * src/Request.cc
  2739. * src/Request.h
  2740. * test/HttpRequestTest.cc
  2741. * test/OptionHandlerTest.cc
  2742. * test/RequestTest.cc
  2743. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Fixed the bug that HTTP request header for XML-RPC request is not
  2745. parsed properly.
  2746. * src/HttpHeader.cc
  2747. * src/HttpHeaderProcessor.cc
  2748. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2749. Fixed the bug that XML-RPC authorization might be done before HTTP
  2750. request header is fully received.
  2751. * src/HttpServerCommand.cc
  2752. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Documented --xml-rpc-listen-all option in man page.
  2754. * doc/aria2c.1.txt
  2755. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Added --xml-rpc-listen-all option. If true is given to this
  2757. option, aria2 listens incoming XML-RPC requests on all network
  2758. interfaces. If false is given, listens only on local loopback
  2759. interface. The default value is false.
  2760. * src/HttpListenCommand.cc
  2761. * src/OptionHandlerFactory.cc
  2762. * src/SocketCore.cc
  2763. * src/SocketCore.h
  2764. * src/prefs.cc
  2765. * src/prefs.h
  2766. * src/usage_text.h
  2767. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. * Release 1.5.2
  2769. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Updated Ukrainian and Russian translations. Thanks to all
  2771. translators.
  2772. * po/ru.po
  2773. * po/uk.po
  2774. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Bump up version number to 1.5.2
  2776. * configure.ac
  2777. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Get comment, comment.utf-8, created by and creation date from
  2779. .torrent file and print them in -S output.
  2780. * src/bittorrent_helper.cc
  2781. * src/bittorrent_helper.h
  2782. * test/BittorrentHelperTest.cc
  2783. * test/test.torrent
  2784. * test/utf8.torrent
  2785. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Show exact file size along in -S option output.
  2787. * src/Util.h
  2788. * src/bittorrent_helper.cc
  2789. * test/UtilTest.cc
  2790. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Avoided unnecessary memory allocation in
  2792. BitfieldMan::getCompletedLength().
  2793. * src/BitfieldMan.cc
  2794. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Fixed the bug that download fails if
  2796. SocketCore::establishConnection() throws exception and aria2
  2797. doesn't try another address.
  2798. * src/AbstractCommand.cc
  2799. * src/InitiateConnectionCommand.cc
  2800. * src/message.h
  2801. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2803. detected properly.
  2804. * m4/sqlite3.m4
  2805. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2807. because it causes compile error if PARAMS macro is defined.
  2808. * src/XmlRpcElements.cc
  2809. * src/XmlRpcElements.h
  2810. * src/XmlRpcRequestParserStateImpl.cc
  2811. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. * Release 1.5.1
  2813. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Bump up version number to 1.5.1
  2815. * configure.ac
  2816. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2817. Fixed compile error without BitTorrent support
  2818. * src/DefaultBtProgressInfoFile.cc
  2819. * src/DownloadEngine.cc
  2820. * src/DownloadEngine.h
  2821. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Added missing '=' in Download Results
  2823. * src/RequestGroupMan.cc
  2824. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Fixed compiler warning
  2826. * src/DefaultBtProgressInfoFile.cc
  2827. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Fixed compiler warning on 32bit systems.
  2829. * src/DownloadCommand.cc
  2830. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Call flush from ServerStatMan::save()
  2832. * src/ServerStatMan.cc
  2833. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Check stream status after file is opened.
  2835. * src/CookieStorage.cc
  2836. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Rewritten Signature::save()
  2838. * src/Signature.cc
  2839. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Rewritten RequestGroupMan::saveServerStat()
  2841. * src/RequestGroupMan.cc
  2842. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Rewritten stream error handling
  2844. * src/DHTAutoSaveCommand.cc
  2845. * src/DHTRoutingTableDeserializer.cc
  2846. * src/DHTRoutingTableSerializer.cc
  2847. * src/DHTSetup.cc
  2848. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Check stream status after file is opened.
  2850. * src/DefaultBtProgressInfoFile.cc
  2851. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Rewritten stream error handling
  2853. * src/DefaultBtProgressInfoFile.cc
  2854. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2855. Make sure that stream is closed before renaming file. Unit test
  2856. fails on mingw32 in the previous implementation.
  2857. * src/CookieStorage.cc
  2858. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Fixed the unit test error without sqlite3
  2860. * test/CookieStorageTest.cc
  2861. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Fixed the undefined reference error
  2863. * test/HttpResponseTest.cc
  2864. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. * Release 1.5.0
  2866. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2868. Ukrainian translations. Thanks to all translators.
  2869. * po/ru.po
  2870. * po/it.po
  2871. * po/da.po
  2872. * po/bg.po
  2873. * po/ja.po
  2874. * po/uk.po
  2875. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Added missing src/Logger.cc
  2877. * src/Logger.cc
  2878. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Rewritten Logger to avoiding constly virtual call.
  2880. * src/LogFactory.cc
  2881. * src/LogFactory.h
  2882. * src/Logger.h
  2883. * src/Makefile.am
  2884. * src/Makefile.in
  2885. * src/NullLogger.h: Removed.
  2886. * src/SimpleLogger.cc
  2887. * src/SimpleLogger.h
  2888. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Updated doc
  2890. * src/main.cc
  2891. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Updated debug log message
  2893. * src/AbstractCommand.cc
  2894. * src/message.h
  2895. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Avoid to create zombie process when commands specified in
  2897. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2898. X and NetBSD.
  2899. * src/main.cc
  2900. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Fixed typo
  2902. * src/usage_text.h
  2903. * doc/aria2c.1.txt
  2904. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Documented 'errorCode' of tellStatus in man page.
  2906. * doc/aria2c.1.txt
  2907. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2909. This key is only available for stopped/completed downloads and its
  2910. value is the error code defined in EXIT STATUS in man page.
  2911. * src/XmlRpcMethodImpl.cc
  2912. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Fixed the bug that session download length is not updated when
  2914. PeerStat is not fastest one.
  2915. * src/SegmentMan.cc
  2916. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Updated doc.
  2918. * doc/aria2c.1.txt
  2919. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2920. Updated doc.
  2921. * src/AbstractCommand.cc
  2922. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2923. Handle the case when DownloadContext has no FileEntry.
  2924. * src/XmlRpcMethodImpl.cc
  2925. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Handle the situation where struct option.name is char *.
  2927. * configure.ac
  2928. * src/OptionParser.cc
  2929. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2930. Code cleanup
  2931. * src/AbstractCommand.cc
  2932. * src/DownloadCommand.cc
  2933. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Use option of each download to create AuthConfig instead of global
  2935. option.
  2936. * src/AuthConfigFactory.cc
  2937. * src/AuthConfigFactory.h
  2938. * src/FtpNegotiationCommand.cc
  2939. * src/HttpRequest.cc
  2940. * src/HttpRequest.h
  2941. * src/HttpRequestCommand.cc
  2942. * src/HttpSkipResponseCommand.cc
  2943. * src/MultiUrlRequestInfo.cc
  2944. * test/AuthConfigFactoryTest.cc
  2945. * test/FtpConnectionTest.cc
  2946. * test/HttpRequestTest.cc
  2947. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Don't call prepareForRetry(1) if all segments are ignored in
  2949. SegmentMan.
  2950. * src/AbstractCommand.cc
  2951. * src/BitfieldMan.cc
  2952. * src/BitfieldMan.h
  2953. * src/SegmentMan.cc
  2954. * src/SegmentMan.h
  2955. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Removed FileEntry::getAssociatedUris()
  2957. * src/FileEntry.h
  2958. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Updated doc: TODO1.5 -> TODO
  2960. * src/FileEntry.cc
  2961. * src/HttpResponseCommand.cc
  2962. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2964. involved.
  2965. * src/RequestGroup.cc
  2966. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Eliminated duplicated filterBitfield initialization code.
  2968. * src/BitfieldMan.cc
  2969. * src/BitfieldMan.h
  2970. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2972. relatively naive approach, though). For DownloadFailureException,
  2973. we handle the case when req is null properly.
  2974. * src/AbstractCommand.cc
  2975. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Added function returning suffix of control file to
  2977. DefaultBtProgressInfoFile.
  2978. * src/DefaultBtProgressInfoFile.cc
  2979. * src/DefaultBtProgressInfoFile.h
  2980. * src/RequestGroup.cc
  2981. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2982. Documented getVersion in man page.
  2983. * doc/aria2c.1.txt
  2984. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Documented type of offset and num for tellWaiting xml-rpc method.
  2986. * doc/aria2c.1.txt
  2987. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Implemented getVersion xml-rpc method. This method returns struct
  2989. which has 2 key-value pairs: "version" key is associated to the
  2990. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2991. associated to the list of enabled features, such as "Async DNS",
  2992. "BitTorrent".
  2993. * src/FeatureConfig.h
  2994. * src/XmlRpcMethodFactory.cc
  2995. * src/XmlRpcMethodImpl.cc
  2996. * src/XmlRpcMethodImpl.h
  2997. * test/XmlRpcMethodTest.cc
  2998. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2999. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3000. for compatibility issue.
  3001. * src/SocketCore.cc
  3002. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Fixed compile error with openSSL
  3004. * src/bittorrent_helper.cc
  3005. * src/messageDigest.h
  3006. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Removed bad code: setting certificate type priority to key
  3008. exchange priority.
  3009. * src/SocketCore.cc
  3010. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Disconnect seeder if client is also in seed state.
  3012. * src/BtBitfieldMessage.cc
  3013. * src/BtHaveAllMessage.cc
  3014. * src/BtHaveMessage.cc
  3015. * src/message.h
  3016. * test/BtBitfieldMessageTest.cc
  3017. * test/BtHaveAllMessageTest.cc
  3018. * test/BtHaveMessageTest.cc
  3019. * test/MockPieceStorage.h
  3020. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Keep CreateRequestCommand in queue when no segment is available so
  3022. that they can pick up pieces which slow BitTorrent peers are
  3023. downloading.
  3024. * src/AbstractCommand.cc
  3025. * src/CreateRequestCommand.cc
  3026. * src/CreateRequestCommand.h
  3027. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. --bt-stop-timeout now only checks download speed.
  3029. * src/BtStopDownloadCommand.cc
  3030. * src/BtStopDownloadCommand.h
  3031. * src/BtSetup.cc
  3032. * src/usage_text.h
  3033. * doc/aria2c.1.txt
  3034. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Fixed compile error regarding BUFSIZE.
  3036. * src/DownloadCommand.cc
  3037. * src/DownloadCommand.h
  3038. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Documented tellWaiting xml-rpc method in man page.
  3040. * doc/aria2c.1.txt
  3041. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. Bump up version number to 1.5.0
  3043. * configure.ac
  3044. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Removed resolved TODO1.5
  3046. * src/AbstractCommand.cc
  3047. * src/DownloadCommand.cc
  3048. * src/RequestGroup.cc
  3049. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Release pooled and in-flight Request objectsand URIResult objects
  3051. in FileEntry after download completed.
  3052. * src/DownloadContext.cc
  3053. * src/DownloadContext.h
  3054. * src/FileEntry.cc
  3055. * src/FileEntry.h
  3056. * src/RequestGroup.cc
  3057. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Set manual and source attribute in aria2c.1.txt
  3059. * doc/aria2c.1.txt
  3060. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Documented that the default value of --use-head is 'false' in man
  3062. page.
  3063. * doc/aria2c.1.txt
  3064. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3065. Added bt-stop-timeout option to -i list.
  3066. * doc/aria2c.1.txt
  3067. * src/download_helper.cc
  3068. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Fixed typo
  3070. * doc/aria2c.1.txt
  3071. * src/usage_text.h
  3072. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Removed peer-id-prefix option from -i list.
  3074. * doc/aria2c.1.txt
  3075. * src/download_helper.cc
  3076. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Fixed typo
  3078. * doc/aria2c.1.txt
  3079. * src/usage_text.h
  3080. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Documented --bt-stop-timeout option in man page.
  3082. * doc/aria2c.1.txt
  3083. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Updated README regarding multi-file torrent web-seeding.
  3085. * doc/README.txt
  3086. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Updated man page regarding multi-file torrent web-seeding.
  3088. * doc/aria2c.1.txt
  3089. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3090. Updated doc
  3091. * src/version_usage.cc
  3092. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Winsock select() doesn't work if no socket is in FD_SET. To
  3094. overcome this problem, a dummy socket is added to FD_SET and it is
  3095. given to select().
  3096. * src/SelectEventPoll.cc
  3097. * src/SelectEventPoll.h
  3098. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3099. Disabled --use-head option by default because --use-head=true
  3100. causes problems on some web sites.
  3101. * src/OptionHandlerFactory.cc
  3102. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Print URL List in -S option for torrent.
  3104. * src/bittorrent_helper.cc
  3105. * src/bittorrent_helper.h
  3106. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Allocate buffer in ctor of DownloadCommand.
  3108. * src/DownloadCommand.cc
  3109. * src/DownloadCommand.h
  3110. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Removed DiskAdaptor::onDownloadComplete()
  3112. * src/DirectDiskAdaptor.cc
  3113. * src/DirectDiskAdaptor.h
  3114. * src/DiskAdaptor.h
  3115. * src/MultiDiskAdaptor.cc
  3116. * src/MultiDiskAdaptor.h
  3117. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3118. Committed missing BtStopDownloadCommand.{cc,h}
  3119. * src/BtStopDownloadCommand.cc
  3120. * src/BtStopDownloadCommand.h
  3121. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3123. download if the download speed is 0 and the number of seeder is 0
  3124. in consecutive SEC seconds. By default, this function is disabled.
  3125. * src/BtSetup.cc
  3126. * src/Makefile.am
  3127. * src/OptionHandlerFactory.cc
  3128. * src/prefs.cc
  3129. * src/prefs.h
  3130. * src/usage_text.h
  3131. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Removed the call to DiskAdaptor::onDownloadComplete() from
  3133. BtCheckIntegrityEntry and DefaultPieceStorage.
  3134. * src/BtCheckIntegrityEntry.cc
  3135. * src/DefaultPieceStorage.cc
  3136. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Commented out throw statements when number of piece is 0 to
  3138. download 0 length torrent.
  3139. * src/bittorrent_helper.cc
  3140. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Call RequestGroup::createNextCommandWithAdj() from
  3142. BtFileAllocationEntry if at least one FileEntry has URI. The
  3143. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3144. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3145. * src/BtFileAllocationEntry.cc
  3146. * src/FileEntry.h
  3147. * src/RequestGroup.cc
  3148. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Generate peer ID after SimpleRandomizer is initialized.
  3150. * src/main.cc
  3151. * src/option_processing.cc
  3152. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Removed unused method argument.
  3154. * src/CreateRequestCommand.cc
  3155. * src/RequestGroup.cc
  3156. * src/RequestGroup.h
  3157. * src/RequestGroupMan.cc
  3158. * src/TrackerWatcherCommand.cc
  3159. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Made URI reusing function work.
  3161. * src/CreateRequestCommand.cc
  3162. * src/FileEntry.cc
  3163. * src/FileEntry.h
  3164. * test/FileEntryTest.cc
  3165. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Add formerly fastest PeerStat's sessionDownloadLength to new
  3167. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3168. bytes in a session.
  3169. * src/PeerStat.cc
  3170. * src/SegmentMan.cc
  3171. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3172. If pipelining is enabled, we can always pool socket.
  3173. * src/HttpDownloadCommand.cc
  3174. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. In a single file download, file size becomes known just after
  3176. downloading, set total length to FileEntry object when download
  3177. completed.
  3178. * src/DownloadCommand.cc
  3179. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3180. Use std::vector::reserve() for fileEntries and pieceHashes in
  3181. bittorrent_helper
  3182. * src/bittorrent_helper.cc
  3183. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3184. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3185. Removed hidden option PREF_RESET_URI.
  3186. * src/AbstractCommand.cc
  3187. * src/OptionHandlerFactory.cc
  3188. * src/prefs.cc
  3189. * src/prefs.h
  3190. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3191. Removed unused variable/function.
  3192. * src/PeerStat.h
  3193. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Show first URL in Download Results if file path is not available.
  3195. * src/FileEntry.h
  3196. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Throw exception if file path doesn't exist in FTP URL.
  3198. * src/InitiateConnectionCommandFactory.cc
  3199. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3201. * src/BitfieldMan.cc
  3202. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3204. of PeerStat in SegmentMan. peerStats is used for calculating
  3205. download speed. Therefore all active PeerStats should be in
  3206. there. Another one is _fastestPeerStats and it only contains
  3207. fastest PeerStat for each hostname/protocol pair. They are used
  3208. for updating ServerStat.
  3209. * src/DownloadCommand.cc
  3210. * src/Request.h
  3211. * src/RequestGroupMan.cc
  3212. * src/SegmentMan.cc
  3213. * src/SegmentMan.h
  3214. * test/SegmentManTest.cc
  3215. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3216. Try all available addresses returned by DNS until it gets
  3217. connected in HTTP(S)/FTP download
  3218. * src/AbstractCommand.cc
  3219. * src/AbstractCommand.h
  3220. * src/AbstractProxyRequestCommand.cc
  3221. * src/AbstractProxyRequestCommand.h
  3222. * src/DNSCache.h
  3223. * src/DownloadEngine.cc
  3224. * src/DownloadEngine.h
  3225. * src/FtpInitiateConnectionCommand.cc
  3226. * src/FtpInitiateConnectionCommand.h
  3227. * src/FtpNegotiationCommand.cc
  3228. * src/FtpNegotiationCommand.h
  3229. * src/HttpInitiateConnectionCommand.cc
  3230. * src/HttpInitiateConnectionCommand.h
  3231. * src/HttpRequestCommand.cc
  3232. * src/HttpRequestCommand.h
  3233. * src/InitiateConnectionCommand.cc
  3234. * src/InitiateConnectionCommand.h
  3235. * test/DNSCacheTest.cc
  3236. * test/Makefile.am
  3237. * test/SimpleDNSCacheTest.cc
  3238. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Updated doc
  3240. * src/download_helper.cc
  3241. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3242. Refactored fieldMan ctor.
  3243. * src/BitfieldMan.cc
  3244. * src/BitfieldMan.h
  3245. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3246. Don't print "No files to download." message if -S is given.
  3247. * src/main.cc
  3248. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3249. Set referer and method to newly created Request object.
  3250. * src/CreateRequestCommand.cc
  3251. * src/FileEntry.cc
  3252. * src/FileEntry.h
  3253. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3255. * src/AbstractCommand.cc
  3256. * src/AbstractCommand.h
  3257. * src/CreateRequestCommand.cc
  3258. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Get proxy download working
  3260. * src/AbstractProxyRequestCommand.cc
  3261. * src/AbstractProxyRequestCommand.h
  3262. * src/AbstractProxyResponseCommand.cc
  3263. * src/AbstractProxyResponseCommand.h
  3264. * src/FtpInitiateConnectionCommand.cc
  3265. * src/FtpTunnelRequestCommand.cc
  3266. * src/FtpTunnelRequestCommand.h
  3267. * src/FtpTunnelResponseCommand.cc
  3268. * src/FtpTunnelResponseCommand.h
  3269. * src/HttpInitiateConnectionCommand.cc
  3270. * src/HttpProxyRequestCommand.cc
  3271. * src/HttpProxyRequestCommand.h
  3272. * src/HttpProxyResponseCommand.cc
  3273. * src/HttpProxyResponseCommand.h
  3274. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Use SegmentMan::getSegment(cuid) for single file download.
  3276. * src/AbstractCommand.cc
  3277. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Fixed bufSize calculation
  3279. * src/DownloadCommand.cc
  3280. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Don't append "/" if base URI ends with "/".
  3282. * src/bittorrent_helper.cc
  3283. * test/url-list-multiFile.torrent
  3284. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. HTTP pipelining is now working. Fixed Segmention fault in
  3286. BitfieldMan's copy ctor.
  3287. * src/AbstractCommand.cc
  3288. * src/BitfieldMan.cc
  3289. * src/BitfieldMan.h
  3290. * src/DownloadCommand.cc
  3291. * src/HttpDownloadCommand.cc
  3292. * src/HttpRequest.cc
  3293. * src/SegmentMan.cc
  3294. * src/SegmentMan.h
  3295. * test/BitfieldManTest.cc
  3296. * test/SegmentManTest.cc
  3297. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Removed ServerHost. Same functionality is implemented using
  3299. FileEntry's in-flight Request objects.
  3300. * src/AbstractCommand.cc
  3301. * src/BtDependency.cc
  3302. * src/CreateRequestCommand.cc
  3303. * src/FileEntry.cc
  3304. * src/FileEntry.h
  3305. * src/FtpNegotiationCommand.cc
  3306. * src/HttpResponseCommand.cc
  3307. * src/Makefile.am
  3308. * src/Metalink2RequestGroup.cc
  3309. * src/RequestGroup.cc
  3310. * src/RequestGroup.h
  3311. * src/ServerHost.cc: Removed
  3312. * src/ServerHost.h: Removed
  3313. * test/BtDependencyTest.cc
  3314. * test/FileEntryTest.cc
  3315. * test/RequestGroupTest.cc
  3316. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Rewritten PeerStat handling. In the previous implementation,
  3318. faster command tries to find slower command. In this new
  3319. implementation, slower command tries to find faster command.
  3320. PeerStat is now created in each HTTP/FTP request to get download
  3321. rate correctly. If the download range is small, the download rate
  3322. tends to small and this will occur at the later stage of download.
  3323. * src/AbstractCommand.cc
  3324. * src/DownloadCommand.cc
  3325. * src/FileEntry.cc
  3326. * src/FileEntry.h
  3327. * src/Request.cc
  3328. * src/Request.h
  3329. * src/RequestGroup.h
  3330. * src/RequestGroupMan.cc
  3331. * src/SegmentMan.cc
  3332. * src/SegmentMan.h
  3333. * test/SegmentManTest.cc
  3334. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3335. Removed _uris from RequestGroup. All functions that refer to _uris
  3336. were moved to FileEntry. Exit status code are now defined in
  3337. DownloadResultCode.h.
  3338. * src/AbstractCommand.cc
  3339. * src/AdaptiveURISelector.cc
  3340. * src/AdaptiveURISelector.h
  3341. * src/AutoSaveCommand.cc
  3342. * src/BtPostDownloadHandler.cc
  3343. * src/CheckIntegrityDispatcherCommand.cc
  3344. * src/CookieStorage.cc
  3345. * src/DHTAutoSaveCommand.cc
  3346. * src/DHTBucketRefreshCommand.cc
  3347. * src/DHTEntryPointNameResolveCommand.cc
  3348. * src/DHTInteractionCommand.cc
  3349. * src/DHTPeerAnnounceCommand.cc
  3350. * src/DHTTokenUpdateCommand.cc
  3351. * src/DlAbortEx.h
  3352. * src/DlRetryEx.h
  3353. * src/DownloadCommand.cc
  3354. * src/DownloadContext.h
  3355. * src/DownloadFailureException.h
  3356. * src/DownloadResult.h
  3357. * src/DownloadResultCode.h
  3358. * src/FeedbackURISelector.cc
  3359. * src/FeedbackURISelector.h
  3360. * src/FileEntry.cc
  3361. * src/FileEntry.h
  3362. * src/FtpNegotiationCommand.cc
  3363. * src/HttpListenCommand.cc
  3364. * src/HttpResponseCommand.cc
  3365. * src/HttpServerResponseCommand.cc
  3366. * src/HttpSkipResponseCommand.cc
  3367. * src/InOrderURISelector.cc
  3368. * src/InOrderURISelector.h
  3369. * src/Makefile.am
  3370. * src/Makefile.in
  3371. * src/Metalink2RequestGroup.cc
  3372. * src/MultiUrlRequestInfo.cc
  3373. * src/MultiUrlRequestInfo.h
  3374. * src/OptionHandlerFactory.cc
  3375. * src/PeerListenCommand.cc
  3376. * src/RecoverableException.h
  3377. * src/RequestGroup.cc
  3378. * src/RequestGroup.h
  3379. * src/RequestGroupMan.cc
  3380. * src/RequestGroupMan.h
  3381. * src/TimedHaltCommand.cc
  3382. * src/TrackerWatcherCommand.cc
  3383. * src/URIResult.cc
  3384. * src/URIResult.h
  3385. * src/URISelector.h
  3386. * src/XmlRpcMethodImpl.cc
  3387. * src/bittorrent_helper.cc
  3388. * src/bittorrent_helper.h
  3389. * src/download_helper.cc
  3390. * src/main.cc
  3391. * src/option_processing.cc
  3392. * test/BtDependencyTest.cc
  3393. * test/BtPostDownloadHandlerTest.cc
  3394. * test/CookieStorageTest.cc
  3395. * test/DefaultBtMessageDispatcherTest.cc
  3396. * test/DownloadHandlerFactoryTest.cc
  3397. * test/DownloadHelperTest.cc
  3398. * test/FeedbackURISelectorTest.cc
  3399. * test/FileEntryTest.cc
  3400. * test/InOrderURISelectorTest.cc
  3401. * test/Metalink2RequestGroupTest.cc
  3402. * test/MetalinkPostDownloadHandlerTest.cc
  3403. * test/RequestGroupManTest.cc
  3404. * test/RequestGroupTest.cc
  3405. * test/XmlRpcMethodTest.cc
  3406. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Removed MockBtContext.h
  3408. * test/Makefile.am
  3409. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Removed _currentRequest from StreamCheckIntegrityEntry and
  3411. StreamFileAllocationEntry.
  3412. * src/AbstractCommand.cc
  3413. * src/HttpResponseCommand.cc
  3414. * src/RequestGroup.cc
  3415. * src/StreamCheckIntegrityEntry.cc
  3416. * src/StreamCheckIntegrityEntry.h
  3417. * src/StreamFileAllocationEntry.cc
  3418. * src/StreamFileAllocationEntry.h
  3419. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3420. Rewritten DownloadContext and removed SingleFileDownloadContext
  3421. and BtContext and its derived classes. BitTorrent specific
  3422. attributes are now set by DownloadContext::setAttribute() with key
  3423. bittorrent::BITTORRENT.
  3424. * src/AbstractBtMessage.cc
  3425. * src/AbstractBtMessage.h
  3426. * src/AbstractCommand.cc
  3427. * src/AbstractCommand.h
  3428. * src/AbstractProxyRequestCommand.cc
  3429. * src/AbstractProxyResponseCommand.cc
  3430. * src/ActivePeerConnectionCommand.cc
  3431. * src/ActivePeerConnectionCommand.h
  3432. * src/AnnounceList.cc
  3433. * src/BtCheckIntegrityEntry.cc
  3434. * src/BtConstants.h
  3435. * src/BtContext.h: Removed
  3436. * src/BtDependency.cc
  3437. * src/BtExtendedMessage.cc
  3438. * src/BtPieceMessage.cc
  3439. * src/BtPieceMessage.h
  3440. * src/BtPostDownloadHandler.cc
  3441. * src/BtRegistry.cc
  3442. * src/BtRegistry.h
  3443. * src/BtSetup.cc
  3444. * src/CheckIntegrityCommand.cc
  3445. * src/CheckIntegrityEntry.cc
  3446. * src/ChecksumCheckIntegrityEntry.cc
  3447. * src/ConsoleStatCalc.cc
  3448. * src/ContentTypeRequestGroupCriteria.cc
  3449. * src/DHTGetPeersCommand.cc
  3450. * src/DHTGetPeersCommand.h
  3451. * src/DHTPeerLookupTask.cc
  3452. * src/DHTPeerLookupTask.h
  3453. * src/DHTTaskFactory.h
  3454. * src/DHTTaskFactoryImpl.cc
  3455. * src/DHTTaskFactoryImpl.h
  3456. * src/DefaultBtAnnounce.cc
  3457. * src/DefaultBtAnnounce.h
  3458. * src/DefaultBtContext.cc: Removed
  3459. * src/DefaultBtContext.h: Removed
  3460. * src/DefaultBtInteractive.cc
  3461. * src/DefaultBtInteractive.h
  3462. * src/DefaultBtMessageDispatcher.cc
  3463. * src/DefaultBtMessageDispatcher.h
  3464. * src/DefaultBtMessageFactory.cc
  3465. * src/DefaultBtMessageFactory.h
  3466. * src/DefaultBtMessageReceiver.cc
  3467. * src/DefaultBtMessageReceiver.h
  3468. * src/DefaultBtProgressInfoFile.cc
  3469. * src/DefaultBtRequestFactory.cc
  3470. * src/DefaultBtRequestFactory.h
  3471. * src/DefaultExtensionMessageFactory.cc
  3472. * src/DefaultExtensionMessageFactory.h
  3473. * src/DefaultPeerStorage.cc
  3474. * src/DefaultPeerStorage.h
  3475. * src/DefaultPieceStorage.cc
  3476. * src/DefaultSegmentManFactory.cc
  3477. * src/DiskAdaptor.cc
  3478. * src/DiskAdaptor.h
  3479. * src/DownloadContext.cc
  3480. * src/DownloadContext.h
  3481. * src/DownloadEngine.cc
  3482. * src/DownloadEngineFactory.cc
  3483. * src/DownloadHandler.cc
  3484. * src/DownloadResult.h
  3485. * src/FileAllocationCommand.cc
  3486. * src/FileAllocationDispatcherCommand.cc
  3487. * src/FileAllocationEntry.cc
  3488. * src/FileEntry.h
  3489. * src/FillRequestGroupCommand.cc
  3490. * src/FtpDownloadCommand.cc
  3491. * src/FtpFinishDownloadCommand.cc
  3492. * src/FtpInitiateConnectionCommand.cc
  3493. * src/FtpNegotiationCommand.cc
  3494. * src/FtpTunnelRequestCommand.cc
  3495. * src/FtpTunnelResponseCommand.cc
  3496. * src/HandshakeExtensionMessage.cc
  3497. * src/HandshakeExtensionMessage.h
  3498. * src/HaveEraseCommand.cc
  3499. * src/HttpDownloadCommand.cc
  3500. * src/HttpInitiateConnectionCommand.cc
  3501. * src/HttpProxyRequestCommand.cc
  3502. * src/HttpProxyResponseCommand.cc
  3503. * src/HttpRequest.cc
  3504. * src/HttpRequest.h
  3505. * src/HttpRequestCommand.cc
  3506. * src/HttpResponseCommand.cc
  3507. * src/HttpServerBodyCommand.cc
  3508. * src/HttpServerCommand.cc
  3509. * src/HttpSkipResponseCommand.cc
  3510. * src/InitiateConnectionCommandFactory.cc
  3511. * src/InitiatorMSEHandshakeCommand.cc
  3512. * src/InitiatorMSEHandshakeCommand.h
  3513. * src/IteratableChecksumValidator.cc
  3514. * src/IteratableChecksumValidator.h
  3515. * src/IteratableChunkChecksumValidator.cc
  3516. * src/MSEHandshake.cc
  3517. * src/MSEHandshake.h
  3518. * src/Makefile.am
  3519. * src/Makefile.in
  3520. * src/Metalink2RequestGroup.cc
  3521. * src/MetalinkPostDownloadHandler.cc
  3522. * src/MultiDiskAdaptor.cc
  3523. * src/MultiDiskAdaptor.h
  3524. * src/MultiFileAllocationIterator.cc
  3525. * src/MultiUrlRequestInfo.cc
  3526. * src/PeerChokeCommand.cc
  3527. * src/PeerChokeCommand.h
  3528. * src/PeerInitiateConnectionCommand.cc
  3529. * src/PeerInitiateConnectionCommand.h
  3530. * src/PeerInteractionCommand.cc
  3531. * src/PeerInteractionCommand.h
  3532. * src/PeerReceiveHandshakeCommand.cc
  3533. * src/PieceHashCheckIntegrityEntry.cc
  3534. * src/RealtimeCommand.cc
  3535. * src/ReceiverMSEHandshakeCommand.cc
  3536. * src/RequestGroup.cc
  3537. * src/RequestGroup.h
  3538. * src/RequestGroupEntry.cc
  3539. * src/RequestGroupMan.cc
  3540. * src/SeedCheckCommand.cc
  3541. * src/SeedCheckCommand.h
  3542. * src/SegmentMan.cc
  3543. * src/ShareRatioSeedCriteria.h
  3544. * src/SingleFileDownloadContext.cc: Removed
  3545. * src/SingleFileDownloadContext.h: Removed
  3546. * src/SleepCommand.cc
  3547. * src/StreamCheckIntegrityEntry.cc
  3548. * src/TrackerWatcherCommand.cc
  3549. * src/TrackerWatcherCommand.h
  3550. * src/UnknownLengthPieceStorage.cc
  3551. * src/Util.cc
  3552. * src/Util.h
  3553. * src/XmlRpcMethodImpl.cc
  3554. * src/bittorrent_helper.cc
  3555. * src/bittorrent_helper.h
  3556. * src/download_helper.cc
  3557. * src/main.cc
  3558. * src/option_processing.cc
  3559. * test/BitfieldManTest.cc
  3560. * test/BittorrentHelperTest.cc
  3561. * test/BtCancelMessageTest.cc
  3562. * test/BtChokeMessageTest.cc
  3563. * test/BtDependencyTest.cc
  3564. * test/BtPieceMessageTest.cc
  3565. * test/BtPostDownloadHandlerTest.cc
  3566. * test/BtRegistryTest.cc
  3567. * test/BtRejectMessageTest.cc
  3568. * test/BtRequestMessageTest.cc
  3569. * test/DHTPeerAnnounceStorageTest.cc
  3570. * test/DefaultBtAnnounceTest.cc
  3571. * test/DefaultBtContextTest.cc: Removed
  3572. * test/DefaultBtMessageDispatcherTest.cc
  3573. * test/DefaultBtMessageFactoryTest.cc
  3574. * test/DefaultBtProgressInfoFileTest.cc
  3575. * test/DefaultBtRequestFactoryTest.cc
  3576. * test/DefaultExtensionMessageFactoryTest.cc
  3577. * test/DefaultPeerStorageTest.cc
  3578. * test/DefaultPieceStorageTest.cc
  3579. * test/DirectDiskAdaptorTest.cc
  3580. * test/DownloadContextTest.cc
  3581. * test/DownloadHandlerFactoryTest.cc
  3582. * test/DownloadHelperTest.cc
  3583. * test/HandshakeExtensionMessageTest.cc
  3584. * test/HttpRequestTest.cc
  3585. * test/HttpResponseTest.cc
  3586. * test/IteratableChecksumValidatorTest.cc
  3587. * test/IteratableChunkChecksumValidatorTest.cc
  3588. * test/MSEHandshakeTest.cc
  3589. * test/Makefile.am
  3590. * test/Makefile.in
  3591. * test/Metalink2RequestGroupTest.cc
  3592. * test/MetalinkPostDownloadHandlerTest.cc
  3593. * test/MockBtContext.h: Removed
  3594. * test/MockDHTTaskFactory.h
  3595. * test/MockDownloadContext.h: Removed
  3596. * test/MockPieceStorage.h
  3597. * test/MultiDiskAdaptorTest.cc
  3598. * test/MultiFileAllocationIteratorTest.cc
  3599. * test/RequestGroupManTest.cc
  3600. * test/RequestGroupTest.cc
  3601. * test/SegmentManTest.cc
  3602. * test/ShareRatioSeedCriteriaTest.cc
  3603. * test/SingleFileDownloadContextTest.cc: Removed
  3604. * test/UtilTest.cc
  3605. * test/XmlRpcMethodTest.cc
  3606. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3607. Added experimental support of WEB-Seeding for multi-file torrent.
  3608. Due to fundamental changes in file handling in HTTP/FTP code, many
  3609. functions are not working: PeerStat, ServerHost, proxy..etc
  3610. * src/AbstractCommand.cc
  3611. * src/AbstractCommand.h
  3612. * src/BitfieldMan.cc
  3613. * src/BitfieldMan.h
  3614. * src/CreateRequestCommand.cc
  3615. * src/CreateRequestCommand.h
  3616. * src/DefaultPieceStorage.cc
  3617. * src/DefaultPieceStorage.h
  3618. * src/DownloadCommand.cc
  3619. * src/DownloadCommand.h
  3620. * src/DownloadContext.cc
  3621. * src/DownloadContext.h
  3622. * src/FileEntry.cc
  3623. * src/FileEntry.h
  3624. * src/FtpDownloadCommand.cc
  3625. * src/FtpDownloadCommand.h
  3626. * src/FtpFinishDownloadCommand.cc
  3627. * src/FtpFinishDownloadCommand.h
  3628. * src/FtpInitiateConnectionCommand.cc
  3629. * src/FtpInitiateConnectionCommand.h
  3630. * src/FtpNegotiationCommand.cc
  3631. * src/FtpNegotiationCommand.h
  3632. * src/FtpTunnelResponseCommand.cc
  3633. * src/HttpDownloadCommand.cc
  3634. * src/HttpDownloadCommand.h
  3635. * src/HttpInitiateConnectionCommand.cc
  3636. * src/HttpInitiateConnectionCommand.h
  3637. * src/HttpProxyResponseCommand.cc
  3638. * src/HttpRequest.cc
  3639. * src/HttpRequest.h
  3640. * src/HttpRequestCommand.cc
  3641. * src/HttpRequestCommand.h
  3642. * src/HttpResponseCommand.cc
  3643. * src/HttpResponseCommand.h
  3644. * src/HttpSkipResponseCommand.cc
  3645. * src/HttpSkipResponseCommand.h
  3646. * src/InitiateConnectionCommand.cc
  3647. * src/InitiateConnectionCommand.h
  3648. * src/InitiateConnectionCommandFactory.cc
  3649. * src/InitiateConnectionCommandFactory.h
  3650. * src/Makefile.am
  3651. * src/PieceStorage.h
  3652. * src/RequestGroup.cc
  3653. * src/RequestGroup.h
  3654. * src/RequestGroupMan.cc
  3655. * src/SegmentMan.cc
  3656. * src/SegmentMan.h
  3657. * src/SingleFileDownloadContext.h
  3658. * src/StreamFileAllocationEntry.cc
  3659. * src/TrackerWatcherCommand.cc
  3660. * src/UnknownLengthPieceStorage.cc
  3661. * src/UnknownLengthPieceStorage.h
  3662. * src/array_fun.h
  3663. * src/bitfield.h
  3664. * src/download_helper.cc
  3665. * test/DownloadContextTest.cc
  3666. * test/Makefile.am
  3667. * test/MockDownloadContext.h
  3668. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3669. Added tellWaiting XML-RPC method.
  3670. * src/SingleFileDownloadContext.cc
  3671. * src/XmlRpcMethodFactory.cc
  3672. * src/XmlRpcMethodImpl.cc
  3673. * src/XmlRpcMethodImpl.h
  3674. * test/XmlRpcMethodTest.cc
  3675. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Updated CookieStorageTest
  3677. * test/CookieStorageTest.cc
  3678. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3680. handle excepion inside these functions.
  3681. * src/LibgnutlsTLSContext.cc
  3682. * src/LibgnutlsTLSContext.h
  3683. * src/LibsslTLSContext.cc
  3684. * src/LibsslTLSContext.h
  3685. * src/MultiUrlRequestInfo.cc
  3686. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Added comment
  3688. * src/RequestGroup.cc
  3689. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. In CookieStorage::load() and saveNsFormat(), handle exception
  3691. inside the functions. When saving Cookies, first write temporary
  3692. file and after successful writes, then renames it to final
  3693. destination.
  3694. * src/CookieStorage.cc
  3695. * src/CookieStorage.h
  3696. * src/MultiUrlRequestInfo.cc
  3697. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. The default value of --dir option is the absolute path to the
  3699. current directory. If getcwd() is failed, then it is ".", which is
  3700. the same value with old implementation. This change is necessary
  3701. because after daemon() call, the current working directory is
  3702. changed to /.
  3703. * src/File.cc
  3704. * src/File.h
  3705. * src/OptionHandlerFactory.cc
  3706. * src/option_processing.cc
  3707. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3708. Call daemon() with arguments(0,0), which means daemon() changes
  3709. current working directory to / and redirects stdin, stdout and
  3710. stderr to /dev/null.
  3711. * src/option_processing.cc
  3712. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Small performance optimizations.
  3714. * src/RequestGroupMan.cc
  3715. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3716. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3717. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3718. * src/RequestGroupMan.cc
  3719. * src/RequestGroupMan.h
  3720. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3721. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3722. setNoWiat(true) if newly created command calls
  3723. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3724. * src/HttpListenCommand.cc
  3725. * src/HttpServerBodyCommand.cc
  3726. * src/HttpServerCommand.cc
  3727. * src/HttpServerResponseCommand.cc
  3728. * src/InitiateConnectionCommand.cc
  3729. * src/RequestGroup.cc
  3730. * src/StreamFileAllocationEntry.cc
  3731. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Removed include vector
  3733. * src/BtRegistry.h
  3734. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Rewritten BtRegistry
  3736. * src/BtRegistry.cc
  3737. * src/BtRegistry.h
  3738. * src/BtSetup.cc
  3739. * src/ConsoleStatCalc.cc
  3740. * src/PeerInteractionCommand.cc
  3741. * src/PeerReceiveHandshakeCommand.cc
  3742. * src/ReceiverMSEHandshakeCommand.cc
  3743. * src/RequestGroup.cc
  3744. * src/XmlRpcMethodImpl.cc
  3745. * test/BtRegistryTest.cc
  3746. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3748. * src/DefaultBtProgressInfoFile.cc
  3749. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3750. Throw an exception if position is less than 0.
  3751. * src/XmlRpcMethodImpl.cc
  3752. * test/XmlRpcMethodTest.cc
  3753. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Use writeFilePath() in ConsoleStatCalc.cc
  3755. * src/ConsoleStatCalc.cc
  3756. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3757. Receive the return value as const reference from
  3758. DownloadContext::getFileEntries().
  3759. * src/DefaultPieceStorage.cc
  3760. * src/RequestGroupMan.cc
  3761. * src/XmlRpcMethodImpl.cc
  3762. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. DownloadContext now has _fileEntries so that
  3764. DownloadContext::getFileEntries() can returns its const reference.
  3765. * src/DefaultBtContext.cc
  3766. * src/DefaultBtContext.h
  3767. * src/DownloadContext.cc
  3768. * src/DownloadContext.h
  3769. * src/SingleFileDownloadContext.cc
  3770. * src/SingleFileDownloadContext.h
  3771. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3773. writeFilePath() function template from RequestGroupMan.cc to
  3774. FileEntry.h
  3775. * src/FileEntry.h
  3776. * src/RequestGroupMan.cc
  3777. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3778. Documented 'position' parameter is starting from 0 in man page.
  3779. * doc/aria2c.1.txt
  3780. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Updated doc.
  3782. * src/MSEHandshake.cc
  3783. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3784. Removed _acceptFeatures and its accessor functions from
  3785. RequestGroup since they are not used practically.
  3786. * src/HttpRequestCommand.cc
  3787. * src/RequestGroup.cc
  3788. * src/RequestGroup.h
  3789. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Removed member _maxTries from RequestGroup class to avoid
  3791. duplicate option value. Those classes who refer this variable
  3792. should use option value of PREF_MAX_TRIES directly.
  3793. * src/AbstractCommand.cc
  3794. * src/RequestGroup.cc
  3795. * src/RequestGroup.h
  3796. * src/TrackerWatcherCommand.cc
  3797. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3798. * Release 1.4.1
  3799. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Fixed compiler warnings on netbsd
  3801. * src/DHTConnectionImpl.cc
  3802. * src/PeerListenCommand.cc
  3803. * src/PeerSessionResource.cc
  3804. * src/SegmentMan.cc
  3805. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Updated Ukrainian translation. Thanks to all translators.
  3807. * po/uk.po
  3808. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3809. Bump up version number to 1.4.1.
  3810. * configure.ac
  3811. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3812. Added unit tests for strjoin, strconcat and strappend.
  3813. * test/a2functionalTest.cc
  3814. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Rewritten strconcat and strappend using operator+ instead of
  3816. append().
  3817. * src/a2functional.h
  3818. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3820. is enabled.
  3821. * src/Makefile.am
  3822. * test/Makefile.am
  3823. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Added countSeeder() function which counts seeder in the given
  3825. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3826. * src/ConsoleStatCalc.cc
  3827. * src/Peer.h
  3828. * src/XmlRpcMethodImpl.cc
  3829. * test/PeerTest.cc
  3830. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Documented missing seeder in getPeers xml-rpc method.
  3832. Documented uploadLength and numSeeders.
  3833. * doc/aria2c.1.txt
  3834. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3835. Added uploadLength and numSeeders to the response of tellStatus
  3836. xml-rpc method. Assert that PeerStorage instance is not null
  3837. instead of checking if statement. It should be non-null in this
  3838. context.
  3839. * src/XmlRpcMethodImpl.cc
  3840. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3842. * src/XmlRpcResponse.cc
  3843. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3844. Avoid intermediate object during string concatenation.
  3845. * src/HttpRequest.cc
  3846. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Added strjoin function template. Use it in pathJoin()
  3848. * src/Util.h
  3849. * src/a2functional.h
  3850. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Avoid intermediate object during string concatenation. Replaced
  3852. post-increment unary operator with pre-increment one in for loop.
  3853. * src/AdaptiveURISelector.cc
  3854. * src/AnnounceList.cc
  3855. * src/AuthConfig.h
  3856. * src/BtBitfieldMessage.cc
  3857. * src/BtExtendedMessage.cc
  3858. * src/BtHandshakeMessage.cc
  3859. * src/BtPieceMessage.cc
  3860. * src/BtPortMessage.cc
  3861. * src/Cookie.cc
  3862. * src/DHTAnnouncePeerMessage.cc
  3863. * src/DHTAutoSaveCommand.cc
  3864. * src/DHTGetPeersReplyMessage.cc
  3865. * src/DHTNode.cc
  3866. * src/DHTQueryMessage.cc
  3867. * src/DHTResponseMessage.cc
  3868. * src/DHTUnknownMessage.cc
  3869. * src/DefaultBtAnnounce.cc
  3870. * src/DefaultBtContext.cc
  3871. * src/DefaultBtInteractive.cc
  3872. * src/DefaultBtProgressInfoFile.cc
  3873. * src/DefaultPeerStorage.cc
  3874. * src/DownloadEngine.cc
  3875. * src/FeatureConfig.cc
  3876. * src/File.cc
  3877. * src/FtpConnection.cc
  3878. * src/FtpNegotiationCommand.cc
  3879. * src/HandshakeExtensionMessage.cc
  3880. * src/HttpConnection.cc
  3881. * src/HttpRequest.cc
  3882. * src/HttpResponseCommand.cc
  3883. * src/HttpServer.cc
  3884. * src/IndexBtMessage.cc
  3885. * src/Metalink2RequestGroup.cc
  3886. * src/OptionHandlerImpl.h
  3887. * src/PStringBuildVisitor.cc
  3888. * src/Peer.cc
  3889. * src/PeerListenCommand.cc
  3890. * src/Piece.cc
  3891. * src/RangeBtMessage.cc
  3892. * src/Request.cc
  3893. * src/Request.h
  3894. * src/RequestGroup.cc
  3895. * src/RequestGroupMan.cc
  3896. * src/ServerStat.cc
  3897. * src/ServerStatMan.cc
  3898. * src/UTPexExtensionMessage.cc
  3899. * src/Util.cc
  3900. * src/a2functional.h
  3901. * src/download_helper.cc
  3902. * src/messageDigest.cc
  3903. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Unchoke a peer randomly at first and second choke round in seed
  3905. state.
  3906. * src/BtSeederStateChoke.cc
  3907. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3908. Added (sock_t) to quiet compiler warnings in MinGW
  3909. * src/SocketCore.cc
  3910. * src/SocketCore.h
  3911. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3913. * src/EpollEventPoll.h
  3914. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3915. Added fork() emulation using CreateProcess() in MinGW
  3916. * src/RequestGroupMan.cc
  3917. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. * Release 1.4.0
  3919. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Added utf8.torrent to EXTRA_DIST
  3921. * test/Makefile.am
  3922. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Fixed docs of aria2.addMetalink xml-rpc method.
  3924. * doc/aria2c.1.txt
  3925. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Added Slovak translation. Updated Ukrainian and Brazilian
  3927. Portuguese translation. Thanks to all translators.
  3928. * po/sk.po
  3929. * po/uk.po
  3930. * po/pt_BR.po
  3931. * po/LINGUAS
  3932. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Added test case for XmlRpcProcessor to fail to parse malformed
  3934. document.
  3935. * test/XmlRpcRequestProcessorTest.cc
  3936. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3937. Removed *.gmo files in po because they are generated on 'make
  3938. dist'
  3939. * po/*.gmo
  3940. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Documented max-concurrent-downloads of changeGlobalOption method
  3942. in man page.
  3943. * doc/aria2c.1.txt
  3944. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3945. Added max-concurrent-downloads option to changeGlobalOption
  3946. xml-rpc method. Rewritten loop conditional in
  3947. RequestGroupMan::fillRequestGroupFromReserver().
  3948. * src/RequestGroupMan.cc
  3949. * src/RequestGroupMan.h
  3950. * src/XmlRpcMethod.cc
  3951. * src/XmlRpcMethodImpl.cc
  3952. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Documented position parameter in man page.
  3954. * doc/aria2c.1.txt
  3955. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Added 'position' parameter to addUri, addTorrent and addMetalink
  3957. xml-rpc method.
  3958. * src/RequestGroupMan.cc
  3959. * src/RequestGroupMan.h
  3960. * src/XmlRpcMethodImpl.cc
  3961. * test/XmlRpcMethodTest.cc
  3962. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3963. Removed Peer.cc from compile source list when --disable-bittorrent
  3964. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3965. takes Peer.
  3966. * src/DefaultPieceStorage.cc
  3967. * src/DefaultPieceStorage.h
  3968. * src/Makefile.am
  3969. * src/PieceStorage.h
  3970. * src/UnknownLengthPieceStorage.cc
  3971. * src/UnknownLengthPieceStorage.h
  3972. * test/MockPieceStorage.h
  3973. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3974. Implemented getter methods in header files to give them more
  3975. chance of optimization.
  3976. Return const reference for SharadHandle if possible.
  3977. * src/AbstractAuthResolver.cc
  3978. * src/AbstractAuthResolver.h
  3979. * src/AbstractBtMessage.cc
  3980. * src/AbstractBtMessage.h
  3981. * src/AbstractSingleDiskAdaptor.cc
  3982. * src/AbstractSingleDiskAdaptor.h
  3983. * src/AsyncNameResolver.cc
  3984. * src/AsyncNameResolver.h
  3985. * src/BNode.cc
  3986. * src/BNode.h
  3987. * src/BitfieldMan.cc
  3988. * src/BitfieldMan.h
  3989. * src/BtAbortOutstandingRequestEvent.h
  3990. * src/BtExtendedMessage.cc
  3991. * src/BtExtendedMessage.h
  3992. * src/BtSeederStateChoke.cc
  3993. * src/BtSeederStateChoke.h
  3994. * src/Cookie.cc
  3995. * src/Cookie.h
  3996. * src/DHTBucket.cc
  3997. * src/DHTBucket.h
  3998. * src/DHTConnectionImpl.cc
  3999. * src/DHTConnectionImpl.h
  4000. * src/DHTFindNodeReplyMessage.cc
  4001. * src/DHTFindNodeReplyMessage.h
  4002. * src/DHTGetPeersReplyMessage.cc
  4003. * src/DHTGetPeersReplyMessage.h
  4004. * src/DHTInteractionCommand.cc
  4005. * src/DHTMessage.cc
  4006. * src/DHTMessage.h
  4007. * src/DHTMessageDispatcherImpl.cc
  4008. * src/DHTMessageEntry.cc
  4009. * src/DHTMessageReceiver.cc
  4010. * src/DHTMessageReceiver.h
  4011. * src/DHTMessageTrackerEntry.cc
  4012. * src/DHTMessageTrackerEntry.h
  4013. * src/DHTPeerAnnounceEntry.cc
  4014. * src/DHTPeerAnnounceEntry.h
  4015. * src/DHTPeerLookupTask.cc
  4016. * src/DHTPeerLookupTask.h
  4017. * src/DHTRoutingTableDeserializer.cc
  4018. * src/DHTRoutingTableDeserializer.h
  4019. * src/DefaultBtAnnounce.cc
  4020. * src/DefaultBtAnnounce.h
  4021. * src/DefaultBtMessageDispatcher.cc
  4022. * src/DefaultBtMessageDispatcher.h
  4023. * src/DefaultBtRequestFactory.cc
  4024. * src/DefaultBtRequestFactory.h
  4025. * src/DiskAdaptor.cc
  4026. * src/DiskAdaptor.h
  4027. * src/DownloadContext.cc
  4028. * src/DownloadContext.h
  4029. * src/DownloadEngine.cc
  4030. * src/DownloadEngine.h
  4031. * src/EpollEventPoll.cc
  4032. * src/EpollEventPoll.h
  4033. * src/FtpConnection.cc
  4034. * src/FtpConnection.h
  4035. * src/HttpConnection.cc
  4036. * src/HttpConnection.h
  4037. * src/HttpHeader.cc
  4038. * src/HttpHeader.h
  4039. * src/HttpRequest.cc
  4040. * src/HttpRequest.h
  4041. * src/HttpResponse.cc
  4042. * src/HttpResponse.h
  4043. * src/LibsslTLSContext.cc
  4044. * src/LibsslTLSContext.h
  4045. * src/MSEHandshake.cc
  4046. * src/MSEHandshake.h
  4047. * src/MetalinkEntry.cc
  4048. * src/MetalinkEntry.h
  4049. * src/MetalinkParserController.cc
  4050. * src/MetalinkParserController.h
  4051. * src/MetalinkParserStateMachine.cc
  4052. * src/MetalinkParserStateMachine.h
  4053. * src/MultiDiskAdaptor.cc
  4054. * src/MultiDiskAdaptor.h
  4055. * src/NetrcAuthResolver.cc
  4056. * src/NetrcAuthResolver.h
  4057. * src/Peer.cc
  4058. * src/Peer.h
  4059. * src/PeerSessionResource.cc
  4060. * src/PeerSessionResource.h
  4061. * src/Piece.cc
  4062. * src/Piece.h
  4063. * src/PieceStatMan.cc
  4064. * src/PieceStatMan.h
  4065. * src/Request.cc
  4066. * src/Request.h
  4067. * src/RequestGroup.cc
  4068. * src/RequestGroup.h
  4069. * src/RequestGroupMan.cc
  4070. * src/RequestGroupMan.h
  4071. * src/RequestSlot.cc
  4072. * src/RequestSlot.h
  4073. * src/SegmentMan.cc
  4074. * src/SegmentMan.h
  4075. * src/SelectEventPoll.cc
  4076. * src/SelectEventPoll.h
  4077. * src/ServerStat.cc
  4078. * src/ServerStat.h
  4079. * src/Signature.cc
  4080. * src/Signature.h
  4081. * src/URIResult.cc
  4082. * src/URIResult.h
  4083. * src/UTPexExtensionMessage.cc
  4084. * src/UTPexExtensionMessage.h
  4085. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4086. Fixed compile error without BitTorrent and Metalink support.
  4087. * src/XmlRpcMethod.cc
  4088. * src/XmlRpcMethodFactory.cc
  4089. * src/XmlRpcMethodImpl.cc
  4090. * src/XmlRpcMethodImpl.h
  4091. * test/XmlRpcMethodTest.cc
  4092. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Rewritten the help message for --allow-overwrite option.
  4094. * doc/aria2c.1.txt
  4095. * src/usage_text.h
  4096. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4097. Fixed typo
  4098. * doc/aria2c.1.txt
  4099. * src/usage_text.h
  4100. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4101. Updated README for 1.4.0 release. Use new table syntax of
  4102. asciidoc.
  4103. * README
  4104. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Documented --xml-rpc-max-request-size option in man page.
  4106. * doc/aria2c.1.txt
  4107. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Moved C_* constants from BtContext to DefaultBtContext.
  4109. * src/BtContext.cc: Removed.
  4110. * src/BtContext.h
  4111. * src/DefaultBtContext.cc
  4112. * src/DefaultBtContext.h
  4113. * src/Makefile.am
  4114. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4115. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4116. path key respectively when persing .torrent file.
  4117. * src/BtContext.cc
  4118. * src/BtContext.h
  4119. * src/DefaultBtContext.cc
  4120. * test/DefaultBtContextTest.cc
  4121. * test/utf8.torrent
  4122. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. Added --xml-rpc-max-request-size option to limit the size of
  4124. XML-RPC request.
  4125. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4126. Documented XML-RPC API in man page.
  4127. * doc/aria2c.1.txt
  4128. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4129. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4130. will break strict-aliasing rules
  4131. * src/PeerConnection.cc
  4132. * test/DHTRoutingTableSerializerTest.cc
  4133. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4134. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4135. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4136. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4137. PKG_CHECK_MODULES macro uses latter name.
  4138. * m4/sqlite3.m4
  4139. * src/Makefile.am
  4140. * test/Makefile.am
  4141. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Fixed typo
  4143. * configure.ac
  4144. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4146. presence of libgnutls using pkg-config first. If it fails, fall
  4147. back to old macro libgnutls.m4.
  4148. * configure.ac
  4149. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4150. Use s itself instead of !s.bad()
  4151. * src/CookieStorage.cc
  4152. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Documented --on-download-* option and --save-cookies option in man
  4154. page.
  4155. * doc/aria2c.1.txt
  4156. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4157. Set possible values for --load-cookie option to "/path/to/file".
  4158. * src/OptionHandlerFactory.cc
  4159. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. Added --save-cookies option.
  4161. * src/Cookie.cc
  4162. * src/Cookie.h
  4163. * src/CookieStorage.cc
  4164. * src/CookieStorage.h
  4165. * src/MultiUrlRequestInfo.cc
  4166. * src/OptionHandlerFactory.cc
  4167. * src/prefs.cc
  4168. * src/prefs.h
  4169. * src/usage_text.h
  4170. * test/CookieStorageTest.cc
  4171. * test/CookieTest.cc
  4172. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4173. Removed tellAll XML-RPC command because its reponse tends to be
  4174. big if stopped/waiting downloads pile up.
  4175. * src/XmlRpcMethodFactory.cc
  4176. * src/XmlRpcMethodImpl.cc
  4177. * src/XmlRpcMethodImpl.h
  4178. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4179. Added the ability to execute command when download starts and
  4180. stops. You can also specify command for particular cases such as
  4181. complete/error download. Added --on-download-start,
  4182. --on-download-stop, --on-download-complete and --on-download-error
  4183. option.
  4184. * src/OptionHandlerFactory.cc
  4185. * src/RequestGroupMan.cc
  4186. * src/prefs.cc
  4187. * src/prefs.h
  4188. * src/usage_text.h
  4189. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4190. Fixed test error
  4191. * test/BencodeTest.cc
  4192. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4193. Added unit tests.
  4194. * test/XmlRpcMethodTest.cc
  4195. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Made exception message more verbose.
  4197. * src/bencode.cc
  4198. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4200. space in console readout. Also they are now shown in MiB/s if
  4201. speed > 1024KiB/s.
  4202. * src/ConsoleStatCalc.cc
  4203. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4204. Added SEED to console output, which represents the number of
  4205. seeders currently the client is connecting to.
  4206. * src/ConsoleStatCalc.cc
  4207. * src/ConsoleStatCalc.h
  4208. * src/DownloadEngine.cc
  4209. * src/NullStatCalc.h
  4210. * src/StatCalc.h
  4211. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4212. Added source filename(__FILE__) and line number(__LINE__) to
  4213. exception message.
  4214. * src/AbstractCommand.cc
  4215. * src/AbstractDiskWriter.cc
  4216. * src/AbstractProxyResponseCommand.cc
  4217. * src/BDE.h
  4218. * src/BtAllowedFastMessage.cc
  4219. * src/BtHandshakeMessageValidator.h
  4220. * src/BtHaveAllMessage.cc
  4221. * src/BtHaveNoneMessage.cc
  4222. * src/BtPieceMessage.cc
  4223. * src/BtRejectMessage.cc
  4224. * src/ChunkedDecoder.cc
  4225. * src/CookieStorage.cc
  4226. * src/DHTAnnouncePeerMessage.cc
  4227. * src/DHTEntryPointNameResolveCommand.cc
  4228. * src/DHTMessageFactoryImpl.cc
  4229. * src/DHTMessageTracker.cc
  4230. * src/DHTRoutingTableDeserializer.cc
  4231. * src/DHTRoutingTableSerializer.cc
  4232. * src/DHTSetup.cc
  4233. * src/DHTTokenTracker.cc
  4234. * src/DefaultBtAnnounce.cc
  4235. * src/DefaultBtContext.cc
  4236. * src/DefaultBtInteractive.cc
  4237. * src/DefaultBtMessageFactory.cc
  4238. * src/DefaultBtProgressInfoFile.cc
  4239. * src/DefaultExtensionMessageFactory.cc
  4240. * src/DlAbortEx.h
  4241. * src/DlRetryEx.h
  4242. * src/DownloadCommand.cc
  4243. * src/DownloadEngineFactory.cc
  4244. * src/DownloadFailureException.h
  4245. * src/Exception.cc
  4246. * src/Exception.h
  4247. * src/ExpatMetalinkProcessor.cc
  4248. * src/ExpatXmlRpcRequestProcessor.cc
  4249. * src/FallocFileAllocationIterator.cc
  4250. * src/FatalException.h
  4251. * src/FtpConnection.cc
  4252. * src/FtpFinishDownloadCommand.cc
  4253. * src/FtpInitiateConnectionCommand.cc
  4254. * src/FtpNegotiationCommand.cc
  4255. * src/GZipDecoder.cc
  4256. * src/HandshakeExtensionMessage.cc
  4257. * src/HttpConnection.cc
  4258. * src/HttpHeaderProcessor.cc
  4259. * src/HttpInitiateConnectionCommand.cc
  4260. * src/HttpResponse.cc
  4261. * src/HttpResponseCommand.cc
  4262. * src/HttpServer.cc
  4263. * src/HttpSkipResponseCommand.cc
  4264. * src/InitiateConnectionCommandFactory.cc
  4265. * src/IteratableChunkChecksumValidator.cc
  4266. * src/LibgcryptARC4Context.h
  4267. * src/LibgcryptARC4Decryptor.h
  4268. * src/LibgcryptARC4Encryptor.h
  4269. * src/LibgcryptDHKeyExchange.h
  4270. * src/LibgnutlsTLSContext.cc
  4271. * src/LibsslARC4Context.h
  4272. * src/LibsslARC4Decryptor.h
  4273. * src/LibsslARC4Encryptor.h
  4274. * src/LibsslDHKeyExchange.h
  4275. * src/LibsslTLSContext.cc
  4276. * src/MSEHandshake.cc
  4277. * src/MessageDigestHelper.cc
  4278. * src/MetalinkHelper.cc
  4279. * src/MultiDiskAdaptor.cc
  4280. * src/NameMatchOptionHandler.h
  4281. * src/NameResolver.cc
  4282. * src/Netrc.cc
  4283. * src/NsCookieParser.cc
  4284. * src/OptionHandlerException.cc
  4285. * src/OptionHandlerException.h
  4286. * src/OptionHandlerImpl.h
  4287. * src/OptionParser.cc
  4288. * src/ParameterizedStringParser.cc
  4289. * src/PeerAbstractCommand.cc
  4290. * src/PeerConnection.cc
  4291. * src/PeerMessageUtil.cc
  4292. * src/PeerReceiveHandshakeCommand.cc
  4293. * src/Platform.cc
  4294. * src/ReceiverMSEHandshakeCommand.cc
  4295. * src/RecoverableException.h
  4296. * src/RequestGroup.cc
  4297. * src/SimpleLogger.cc
  4298. * src/SocketCore.cc
  4299. * src/Sqlite3MozCookieParser.cc
  4300. * src/UTPexExtensionMessage.cc
  4301. * src/Util.cc
  4302. * src/XML2SAXMetalinkProcessor.cc
  4303. * src/Xml2XmlRpcRequestProcessor.cc
  4304. * src/XmlRpcMethodImpl.cc
  4305. * src/bencode.cc
  4306. * src/download_helper.cc
  4307. * src/messageDigest.h
  4308. * test/ExceptionTest.cc
  4309. * test/TestUtil.cc
  4310. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4311. Bump up version number to 1.4.0
  4312. * configure.ac
  4313. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4314. Added 2files.metalink to EXTRA_DIST
  4315. * test/Makefile.am
  4316. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4317. Added missing 2files.metalink
  4318. * test/2files.metalink
  4319. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4320. Show "[MEMORY]" prefix before filename in download summary if it
  4321. is downloaded into memory.
  4322. * src/DownloadResult.h
  4323. * src/RequestGroup.cc
  4324. * src/RequestGroupMan.cc
  4325. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4326. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4327. * src/ExpatXmlRpcRequestProcessor.cc
  4328. * src/Xml2XmlRpcRequestProcessor.cc
  4329. * src/message.h
  4330. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4331. Defined const BDEs to avoid duplicate instantiation.
  4332. Defined MSG_GID_NOT_PROVIDED.
  4333. * src/XmlRpcMethodImpl.cc
  4334. * src/message.h
  4335. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4336. Code cleanup
  4337. * src/Xml2XmlRpcRequestProcessor.cc
  4338. * src/Xml2XmlRpcRequestProcessor.h
  4339. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4340. Defined ENABLE_XML_RPC
  4341. * configure.ac
  4342. * configure
  4343. * config.h.in
  4344. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Added ExpatXmlRpcRequestProcessor
  4346. * src/ExpatXmlRpcRequestProcessor.cc
  4347. * src/ExpatXmlRpcRequestProcessor.h
  4348. * src/Makefile.am
  4349. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4350. Added tests for addTorrent and addMetalink command.
  4351. * test/TestUtil.cc
  4352. * test/TestUtil.h
  4353. * test/XmlRpcMethodTest.cc
  4354. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4355. Corrected the description of --file-allocation option.
  4356. * doc/aria2c.1.txt
  4357. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Added tellAll command.
  4359. * src/XmlRpcMethodFactory.cc
  4360. * src/XmlRpcMethodImpl.cc
  4361. * src/XmlRpcMethodImpl.h
  4362. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4363. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4364. * src/XmlRpcMethodImpl.cc
  4365. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. Added changeGlobalOption command. Currently,
  4367. max-overall-download-limit and max-overall-upload-limit option are
  4368. available.
  4369. * src/RequestGroupMan.h
  4370. * src/XmlRpcMethod.cc
  4371. * src/XmlRpcMethod.h
  4372. * src/XmlRpcMethodFactory.cc
  4373. * src/XmlRpcMethodImpl.cc
  4374. * src/XmlRpcMethodImpl.h
  4375. * test/XmlRpcMethodTest.cc
  4376. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Added changeOption command. Currently, max-download-limit,
  4378. max-upload-limit option are available in this command.
  4379. * src/RequestGroup.h
  4380. * src/XmlRpcMethod.cc
  4381. * src/XmlRpcMethod.h
  4382. * src/XmlRpcMethodFactory.cc
  4383. * src/XmlRpcMethodImpl.cc
  4384. * src/XmlRpcMethodImpl.h
  4385. * test/XmlRpcMethodTest.cc
  4386. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4387. Added purgeDownloadResult command.
  4388. * src/RequestGroupMan.cc
  4389. * src/RequestGroupMan.h
  4390. * src/XmlRpcMethodFactory.cc
  4391. * src/XmlRpcMethodImpl.cc
  4392. * src/XmlRpcMethodImpl.h
  4393. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Refactored.
  4395. * src/XmlRpcMethod.cc
  4396. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4398. XmlRpcResponse.
  4399. * src/HttpServerBodyCommand.cc
  4400. * src/Makefile.am
  4401. * src/XmlRpcMethod.cc
  4402. * src/XmlRpcMethod.h
  4403. * src/XmlRpcMethodImpl.cc
  4404. * src/XmlRpcResponse.cc
  4405. * src/XmlRpcResponse.h
  4406. * test/XmlRpcMethodTest.cc
  4407. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4408. In XML-RPC option struct, header and index-out option can take
  4409. array as value.
  4410. * src/XmlRpcMethod.cc
  4411. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4412. Removed unused option member from PeerConnection.
  4413. * src/InitiatorMSEHandshakeCommand.cc
  4414. * src/PeerConnection.cc
  4415. * src/PeerConnection.h
  4416. * src/PeerInteractionCommand.cc
  4417. * src/PeerReceiveHandshakeCommand.cc
  4418. * src/ReceiverMSEHandshakeCommand.cc
  4419. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Added "seeder" key to getPeers response.
  4421. * src/XmlRpcMethodImpl.cc
  4422. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4423. Added addMetalink XML-RPC command.
  4424. * src/XmlRpcMethodFactory.cc
  4425. * src/XmlRpcMethodImpl.cc
  4426. * src/XmlRpcMethodImpl.h
  4427. * src/download_helper.cc
  4428. * src/download_helper.h
  4429. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Fixed the bug that POU peers are never choked in seeding.
  4431. * src/BtSeederStateChoke.cc
  4432. * src/BtSeederStateChoke.h
  4433. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Added web-seeding URI handling in addTorrent command.
  4435. * src/XmlRpcMethodImpl.cc
  4436. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4437. Added "length" key to getFiles response.
  4438. * src/XmlRpcMethodImpl.cc
  4439. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4440. Moved --no-netrc option from ftp option section to http/ftp option
  4441. section.
  4442. * doc/aria2c.1.txt
  4443. * src/OptionHandlerFactory.cc
  4444. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Removed garbage "\" character before '
  4446. * doc/aria2c.1.txt
  4447. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4448. Removed garbage "\" character before http.
  4449. * doc/aria2c.1.txt
  4450. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Documented additional options that can be specified in -i list.
  4452. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4453. and --xml-rpc-passwd. Removed --enable-http-server and
  4454. --http-server-listen-port.
  4455. * doc/aria2c.1.txt
  4456. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4458. * src/DefaultPeerStorage.cc
  4459. * src/DefaultPeerStorage.h
  4460. * src/PeerStorage.h
  4461. * src/XmlRpcMethodImpl.cc
  4462. * test/MockPeerStorage.h
  4463. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4464. Put a call to Socket::isReadable() in try block.
  4465. * src/HttpServerBodyCommand.cc
  4466. * src/HttpServerCommand.cc
  4467. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4468. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4469. exception , so it is now in try block.
  4470. * src/HttpServerResponseCommand.cc
  4471. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4472. Added "amChoking" and "peerChoking" key in getPeers response.
  4473. * src/XmlRpcMethodImpl.cc
  4474. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Added test case for zero-length filter.
  4476. * test/BitfieldManTest.cc
  4477. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4478. getFiles command now returns file data for finished/stopped
  4479. downloads.
  4480. * src/XmlRpcMethodImpl.cc
  4481. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. DownloadResult now has the list of FileEntry. The download
  4483. summary displays the path of first selected file and the number of
  4484. remaining files for multi-file torrent.
  4485. * src/DownloadResult.h
  4486. * src/RequestGroup.cc
  4487. * src/RequestGroupMan.cc
  4488. * test/RequestGroupTest.cc
  4489. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4490. Fixed segmentation fault error when no file is selected in
  4491. multi-file torrent.
  4492. * src/BitfieldMan.cc
  4493. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4494. Escaped <,>,& character in XML-RPC response.
  4495. * src/XmlRpcMethod.cc
  4496. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4497. Throw DlAbortEx instead of FatalException during parsing options
  4498. because we don't want for aria2 to quit when bad option is passed
  4499. via XML-RPC.
  4500. * src/OptionHandlerException.cc
  4501. * src/OptionHandlerException.h
  4502. * src/OptionHandlerImpl.h
  4503. * src/OptionParser.cc
  4504. * src/OptionParser.h
  4505. * src/PStringSegment.cc
  4506. * src/ParameterizedStringParser.cc
  4507. * src/download_helper.cc
  4508. * test/ParameterizedStringParserTest.cc
  4509. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Selecting files are now done in
  4511. DefaultBtContext::setFileFileter().
  4512. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4513. functions are removed because they are no longer used. Creating
  4514. filter in BitfieldMan is done in new funtion
  4515. PieceStorage::setupFileFilter()
  4516. * src/BtContext.cc
  4517. * src/BtContext.h
  4518. * src/DefaultBtContext.cc
  4519. * src/DefaultBtContext.h
  4520. * src/DefaultPieceStorage.cc
  4521. * src/DefaultPieceStorage.h
  4522. * src/DiskAdaptor.cc
  4523. * src/DiskAdaptor.h
  4524. * src/PieceStorage.h
  4525. * src/RequestGroup.cc
  4526. * src/UnknownLengthPieceStorage.h
  4527. * src/XmlRpcMethodImpl.cc
  4528. * test/DefaultBtContextTest.cc
  4529. * test/MockBtContext.h
  4530. * test/MockPieceStorage.h
  4531. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4532. Fixed compile error on Mac OS X
  4533. * src/HttpServer.cc
  4534. * src/XmlRpcMethod.h
  4535. * src/XmlRpcMethodImpl.cc
  4536. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4537. Use std::binary_search instead of std::find
  4538. * src/DefaultPieceStorage.cc
  4539. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4540. Removed unnecessary BDE() call; leave them to implicit conversion.
  4541. * src/XmlRpcMethodImpl.cc
  4542. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Return connections and gid in string
  4544. * src/XmlRpcMethodImpl.cc
  4545. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Renamed addURI as addUri
  4547. * src/XmlRpcMethodFactory.cc
  4548. * src/XmlRpcMethodImpl.cc
  4549. * src/XmlRpcMethodImpl.h
  4550. * test/XmlRpcMethodTest.cc
  4551. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4552. Renamed addTorrentFile as addTorrent
  4553. * src/XmlRpcMethodFactory.cc
  4554. * src/XmlRpcMethodImpl.cc
  4555. * src/XmlRpcMethodImpl.h
  4556. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. The information for files, URIs, peers are removed from the
  4558. reponse of TellaActive, TellStatus command because they tend to be
  4559. large. Instead they can be retrieved by the dedicated commands:
  4560. getFiles, getUris and getPeers respectively.
  4561. * src/XmlRpcMethodFactory.cc
  4562. * src/XmlRpcMethodImpl.cc
  4563. * src/XmlRpcMethodImpl.h
  4564. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Removed --max-overall-upload-limit and
  4566. --max-overall-download-limit option from listRequestOptions.
  4567. * src/download_helper.cc
  4568. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4569. Log incoming host in HttpListenCommand.
  4570. * src/HttpListenCommand.cc
  4571. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4572. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4573. --xml-rpc-passwd option.
  4574. * src/HttpServer.cc
  4575. * src/HttpServer.h
  4576. * src/HttpServerCommand.cc
  4577. * src/OptionHandlerFactory.cc
  4578. * src/prefs.cc
  4579. * src/prefs.h
  4580. * src/usage_text.h
  4581. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4583. processing 0 length request.
  4584. * src/HttpServerBodyCommand.cc
  4585. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4586. Removed --enable-http-server and --http-server-listen-port
  4587. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4588. instead. The original feature for --enable-http-server that
  4589. reports download progress in HTML was officially removed. Persist
  4590. XML-RPC connection if client supports keep-alive.
  4591. * src/DownloadEngineFactory.cc
  4592. * src/HttpServerCommand.cc
  4593. * src/HttpServerResponseCommand.cc
  4594. * src/Makefile.am
  4595. * src/Makefile.in
  4596. * src/OptionHandlerFactory.cc
  4597. * src/RequestGroupMan.cc
  4598. * src/main.cc
  4599. * src/option_processing.cc
  4600. * src/prefs.cc
  4601. * src/prefs.h
  4602. * src/usage_text.h
  4603. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4604. Added "uris" key to the response of tellStatus command. Added
  4605. "connections" key to the response of tellStatus and tellActive
  4606. command.
  4607. * src/XmlRpcMethodImpl.cc
  4608. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4609. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4610. Added TellStatusXmlRpcMethod. Remove command can now remove
  4611. waiting RequestGroup.
  4612. * src/RequestGroupMan.cc
  4613. * src/RequestGroupMan.h
  4614. * src/XmlRpcMethodFactory.cc
  4615. * src/XmlRpcMethodImpl.cc
  4616. * src/XmlRpcMethodImpl.h
  4617. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4618. Initialized _peerId
  4619. * src/Peer.cc
  4620. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Return fault structure for error. FailXmlRpcMethod is renamed as
  4622. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4623. in non-torrent download. Return single param value.
  4624. * src/XmlRpcMethod.cc
  4625. * src/XmlRpcMethodFactory.cc
  4626. * src/XmlRpcMethodImpl.cc
  4627. * src/XmlRpcMethodImpl.h
  4628. * test/XmlRpcMethodTest.cc
  4629. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4631. command.
  4632. * src/RequestGroup.cc
  4633. * src/RequestGroup.h
  4634. * src/RequestGroupMan.cc
  4635. * src/XmlRpcMethodImpl.cc
  4636. * test/RequestGroupTest.cc
  4637. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4638. Added more options that can be specified in -i list and xml-rpc
  4639. add* command.
  4640. * src/download_helper.h
  4641. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4642. The available options in -i list should be listed in
  4643. listRequestOptions().
  4644. * src/download_helper.cc
  4645. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4646. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4647. command.
  4648. * src/XmlRpcMethodImpl.cc
  4649. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. Now RequestGroup has its own copy of Option object. This will help
  4651. to give custom option for each RequestGroup.
  4652. addTorrentFile command now takes options.
  4653. * src/AbstractCommand.cc
  4654. * src/AbstractCommand.h
  4655. * src/AbstractProxyRequestCommand.cc
  4656. * src/ActivePeerConnectionCommand.cc
  4657. * src/ActivePeerConnectionCommand.h
  4658. * src/AdaptiveURISelector.cc
  4659. * src/BtCheckIntegrityEntry.cc
  4660. * src/BtDependency.cc
  4661. * src/BtDependency.h
  4662. * src/BtFileAllocationEntry.cc
  4663. * src/BtPostDownloadHandler.cc
  4664. * src/CheckIntegrityEntry.cc
  4665. * src/DownloadCommand.cc
  4666. * src/FtpDownloadCommand.cc
  4667. * src/FtpFinishDownloadCommand.cc
  4668. * src/FtpInitiateConnectionCommand.cc
  4669. * src/FtpNegotiationCommand.cc
  4670. * src/HttpInitiateConnectionCommand.cc
  4671. * src/HttpRequestCommand.cc
  4672. * src/HttpResponseCommand.cc
  4673. * src/HttpSkipResponseCommand.cc
  4674. * src/InitiateConnectionCommand.cc
  4675. * src/InitiateConnectionCommandFactory.cc
  4676. * src/InitiatorMSEHandshakeCommand.cc
  4677. * src/InitiatorMSEHandshakeCommand.h
  4678. * src/Metalink2RequestGroup.cc
  4679. * src/Metalink2RequestGroup.h
  4680. * src/MetalinkPostDownloadHandler.cc
  4681. * src/MultiUrlRequestInfo.cc
  4682. * src/MultiUrlRequestInfo.h
  4683. * src/PeerAbstractCommand.cc
  4684. * src/PeerInteractionCommand.cc
  4685. * src/PeerInteractionCommand.h
  4686. * src/PeerReceiveHandshakeCommand.cc
  4687. * src/PeerReceiveHandshakeCommand.h
  4688. * src/RequestGroup.cc
  4689. * src/RequestGroup.h
  4690. * src/TrackerWatcherCommand.cc
  4691. * src/TrackerWatcherCommand.h
  4692. * src/XmlRpcMethod.cc
  4693. * src/XmlRpcMethod.h
  4694. * src/XmlRpcMethodImpl.cc
  4695. * src/download_helper.cc
  4696. * src/download_helper.h
  4697. * src/main.cc
  4698. * test/BtDependencyTest.cc
  4699. * test/BtPostDownloadHandlerTest.cc
  4700. * test/DefaultBtMessageDispatcherTest.cc
  4701. * test/DownloadHandlerFactoryTest.cc
  4702. * test/DownloadHelperTest.cc
  4703. * test/Metalink2RequestGroupTest.cc
  4704. * test/MetalinkPostDownloadHandlerTest.cc
  4705. * test/RequestGroupManTest.cc
  4706. * test/RequestGroupTest.cc
  4707. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. Added tellActiveStatus xml-rpc command which reports download
  4709. status of active downloads.
  4710. * src/XmlRpcMethodFactory.cc
  4711. * src/XmlRpcMethodImpl.cc
  4712. * src/XmlRpcMethodImpl.h
  4713. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4714. Added addTorrentFile xml-rpc command which receives uploaded
  4715. torrent file and add download for it.
  4716. * src/RequestGroupMan.cc
  4717. * src/XmlRpcMethodFactory.cc
  4718. * src/XmlRpcMethodImpl.cc
  4719. * src/XmlRpcMethodImpl.h
  4720. * src/download_helper.cc
  4721. * src/download_helper.h
  4722. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4723. Added remove xml-rpc command which removes specified download.
  4724. There is a known issue: the removed unfinished downloads are
  4725. reported ERR when aria2 exits. They should be reported as INPR.
  4726. * src/RequestGroupMan.cc
  4727. * src/RequestGroupMan.h
  4728. * src/XmlRpcMethodFactory.cc
  4729. * src/XmlRpcMethodImpl.cc
  4730. * src/XmlRpcMethodImpl.h
  4731. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4732. If --enable-http-server is enabled, don't stop aria2 when all
  4733. download finished and don't quit when no files to download at
  4734. start up.
  4735. * src/RequestGroupMan.cc
  4736. * src/main.cc
  4737. * src/option_processing.cc
  4738. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Added missing AM_CONDITIONAL
  4740. * configure.ac
  4741. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4742. Added xml-rpc functionality. Currently only addURI commad is
  4743. supported. To enable xml-rpc, run aria2 with
  4744. --enable-http-server. This option name is temporal and will be
  4745. changed. The feature that reports download progress in html format
  4746. is temporarily disabled.
  4747. * src/HttpServer.cc
  4748. * src/HttpServer.h
  4749. * src/HttpServerBodyCommand.cc
  4750. * src/HttpServerBodyCommand.h
  4751. * src/HttpServerCommand.cc
  4752. * src/HttpServerResponseCommand.cc
  4753. * src/Makefile.am
  4754. * src/OptionParser.cc
  4755. * src/OptionParser.h
  4756. * src/RequestGroupMan.cc
  4757. * src/RequestGroupMan.h
  4758. * src/XmlRpcMethod.cc
  4759. * src/XmlRpcMethod.h
  4760. * src/XmlRpcMethodFactory.cc
  4761. * src/XmlRpcMethodFactory.h
  4762. * src/XmlRpcMethodImpl.cc
  4763. * src/XmlRpcMethodImpl.h
  4764. * src/download_helper.cc
  4765. * src/download_helper.h
  4766. * test/Makefile.am
  4767. * test/XmlRpcMethodTest.cc
  4768. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4769. Added xml-rpc request parser. The supported value types are:
  4770. i4/int, string, double, struct, array, base64. Currently only
  4771. libxml2 version is provided.
  4772. * src/Xml2XmlRpcRequestProcessor.cc
  4773. * src/Xml2XmlRpcRequestProcessor.h
  4774. * src/XmlRpcElements.cc
  4775. * src/XmlRpcElements.h
  4776. * src/XmlRpcRequest.h
  4777. * src/XmlRpcRequestParserController.cc
  4778. * src/XmlRpcRequestParserController.h
  4779. * src/XmlRpcRequestParserState.h
  4780. * src/XmlRpcRequestParserStateImpl.cc
  4781. * src/XmlRpcRequestParserStateImpl.h
  4782. * src/XmlRpcRequestParserStateMachine.cc
  4783. * src/XmlRpcRequestParserStateMachine.h
  4784. * src/XmlRpcRequestProcessor.h
  4785. * test/XmlRpcRequestParserControllerTest.cc
  4786. * test/XmlRpcRequestProcessorTest.cc
  4787. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4788. * Release 1.3.3
  4789. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4790. Fixed compile error since r1202.
  4791. * src/ExpatMetalinkProcessor.cc
  4792. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4793. Updated Ukrainian, Russian and Simplified Chinese
  4794. translations. Thanks to all translators.
  4795. * po/ru.po
  4796. * po/uk.po
  4797. * po/zh_CN.po
  4798. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4799. Pass reference of Option object instead of pointer.
  4800. * src/download_helper.cc
  4801. * src/download_helper.h
  4802. * src/main.cc
  4803. * test/DownloadHelperTest.cc
  4804. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4805. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4806. from option directly. Instead, get them from RequestGroup.
  4807. * src/ActivePeerConnectionCommand.cc
  4808. * src/ActivePeerConnectionCommand.h
  4809. * src/PeerReceiveHandshakeCommand.cc
  4810. * src/RequestGroup.h
  4811. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Removed unused uploadLimitCheck and uploadLimit from
  4813. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4814. PeerInteractionCommand.
  4815. * src/PeerAbstractCommand.cc
  4816. * src/PeerAbstractCommand.h
  4817. * src/PeerInteractionCommand.cc
  4818. * src/PeerInteractionCommand.h
  4819. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Fixed broken file renaming feature since r1202.
  4821. * src/FtpNegotiationCommand.cc
  4822. * src/FtpNegotiationCommand.h
  4823. * src/HttpResponseCommand.cc
  4824. * src/RequestGroup.cc
  4825. * src/RequestGroup.h
  4826. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4827. Removed unused debug log
  4828. * src/SocketCore.cc
  4829. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4830. Generated configure and Makefile.in using autoconf 2.63 and
  4831. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4832. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4833. * configure.ac
  4834. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4835. Moved piece statistics stuff to new PieceStatMan class.
  4836. Refactored PieceSelector interface.
  4837. * src/DefaultPieceStorage.cc
  4838. * src/DefaultPieceStorage.h
  4839. * src/LongestSequencePieceSelector.cc
  4840. * src/LongestSequencePieceSelector.h
  4841. * src/Makefile.am
  4842. * src/PieceSelector.h
  4843. * src/PieceStatMan.cc
  4844. * src/PieceStatMan.h
  4845. * src/RarestPieceSelector.cc
  4846. * src/RarestPieceSelector.h
  4847. * src/RequestGroup.cc
  4848. * test/DefaultPieceStorageTest.cc
  4849. * test/InOrderPieceSelector.h
  4850. * test/Makefile.am
  4851. * test/PieceStatManTest.cc
  4852. * test/RarestPieceSelectorTest.cc
  4853. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4854. Added static member _protocolFamily to SocketCore. By default,
  4855. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4856. address. Sometime SocketCore::bind() and
  4857. SocketCore::establishConnection() use difference protocl family
  4858. and latter cannot connect to former. To avoid this situation, we
  4859. limit protocol family to AF_INET for unit tests.
  4860. * src/SocketCore.cc
  4861. * src/SocketCore.h
  4862. * test/AllTest.cc
  4863. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Avoid std::bad_alloc for negative bencode string length.
  4865. * src/bencode.cc
  4866. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4867. Supported segmented downloading with chunked transfer encoding and
  4868. content-length.
  4869. * src/DownloadCommand.cc
  4870. * src/HttpResponseCommand.cc
  4871. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4872. Bump up version number to 1.3.3
  4873. * configure.ac
  4874. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4875. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4876. from 4096 to 65536 (for insanely large ftp login banners)
  4877. * src/FtpConnection.h
  4878. * test/FtpConnectionTest.cc
  4879. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. In DefaultBtContext::getActualBasePath(), return first
  4881. FileEntry::getPath() for single file torrent.
  4882. * src/DefaultBtContext.cc
  4883. * test/DefaultBtContextTest.cc
  4884. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4885. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4886. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4887. Removed _directIOAllowed member from DiskWriter.
  4888. * src/AbstractDiskWriter.cc
  4889. * src/AbstractDiskWriter.h
  4890. * src/AbstractSingleDiskAdaptor.cc
  4891. * src/AbstractSingleDiskAdaptor.h
  4892. * src/BinaryStream.h
  4893. * src/ByteArrayDiskWriter.h
  4894. * src/DefaultPieceStorage.cc
  4895. * src/DiskWriter.h
  4896. * src/MultiDiskAdaptor.cc
  4897. * src/MultiDiskAdaptor.h
  4898. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Now the constructor of AbstractDiskWriter takes filename as an
  4900. argument and filename argument is removed from openFile(),
  4901. initAndOpenFile(), openExistingFile() interface. storeDir member
  4902. and its accessor functions are removed from DiskAdaptor because it
  4903. is not used anymore. size() member function of DefaultDiskWriter,
  4904. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4905. opening file.
  4906. * src/AbstractDiskWriter.cc
  4907. * src/AbstractDiskWriter.h
  4908. * src/AbstractSingleDiskAdaptor.cc
  4909. * src/AbstractSingleDiskAdaptor.h
  4910. * src/ByteArrayDiskWriter.cc
  4911. * src/ByteArrayDiskWriter.h
  4912. * src/ByteArrayDiskWriterFactory.cc
  4913. * src/ByteArrayDiskWriterFactory.h
  4914. * src/DefaultDiskWriter.cc
  4915. * src/DefaultDiskWriter.h
  4916. * src/DefaultDiskWriterFactory.cc
  4917. * src/DefaultDiskWriterFactory.h
  4918. * src/DefaultPieceStorage.cc
  4919. * src/DirectDiskAdaptor.cc
  4920. * src/DirectDiskAdaptor.h
  4921. * src/DiskAdaptor.h
  4922. * src/DiskWriter.h
  4923. * src/DiskWriterFactory.h
  4924. * src/MessageDigestHelper.cc
  4925. * src/MultiDiskAdaptor.cc
  4926. * src/RequestGroup.cc
  4927. * src/UnknownLengthPieceStorage.cc
  4928. * src/Util.cc
  4929. * test/DefaultDiskWriterTest.cc
  4930. * test/DirectDiskAdaptorTest.cc
  4931. * test/FallocFileAllocationIteratorTest.cc
  4932. * test/MessageDigestHelperTest.cc
  4933. * test/MetalinkProcessorTest.cc
  4934. * test/MultiDiskAdaptorTest.cc
  4935. * test/MultiFileAllocationIteratorTest.cc
  4936. * test/SingleFileAllocationIteratorTest.cc
  4937. * test/UtilTest.cc
  4938. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4939. Fixed the bug that aria2 aborts when --select-file is used. This
  4940. bug was introduced in r1199.
  4941. * src/MultiDiskAdaptor.cc
  4942. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4943. Code cleanup
  4944. * test/MockPieceStorage.cc
  4945. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4946. Fixed the bug that read-only file with wrong file size will cause
  4947. error because it cannot be truncated to the correct size. Now if
  4948. file size is different than the expected one, re-open file in
  4949. writable mode.
  4950. * src/AbstractSingleDiskAdaptor.cc
  4951. * src/AbstractSingleDiskAdaptor.h
  4952. * src/BtCheckIntegrityEntry.cc
  4953. * src/DiskAdaptor.h
  4954. * src/MultiDiskAdaptor.h
  4955. * src/RequestGroup.cc
  4956. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4957. Fixed the bug that with --check-integrity option aria2 reports
  4958. downloaded file size is 0 even if some parts of file is correctly
  4959. downloaded. This bug is reproducible for the download that a file
  4960. includes last piece is missing. This bug doesn't reveal for
  4961. single-torrent with file allocation on.
  4962. * src/IteratableChecksumValidator.cc
  4963. * test/IteratableChecksumValidatorTest.cc
  4964. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4965. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4966. * src/RequestGroupMan.cc
  4967. * src/AdaptiveURISelector.cc
  4968. * src/AdaptiveURISelector.h
  4969. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4970. * Release 1.3.2
  4971. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4972. Updated README
  4973. * README
  4974. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4975. Updated Ukrainian translations. Thanks to Alexander10.
  4976. * po/uk.po
  4977. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4978. Code cleanup
  4979. * src/MetalinkParserStateMachine.cc
  4980. * src/MetalinkParserStateMachine.h
  4981. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4982. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4983. and expat simultaneously, MetalinkProcessor is now not base class
  4984. and it is directly implemented in XML2SAXMetalinkProcessor and
  4985. ExpatMetalinkProcessor.
  4986. * src/ExpatMetalinkProcessor.cc
  4987. * src/ExpatMetalinkProcessor.h
  4988. * src/Makefile.am
  4989. * src/MetalinkHelper.cc
  4990. * src/MetalinkProcessor.h
  4991. * src/MetalinkProcessorFactory.cc: Removed.
  4992. * src/MetalinkProcessorFactory.h: Removed
  4993. * src/XML2SAXMetalinkProcessor.cc
  4994. * src/XML2SAXMetalinkProcessor.h
  4995. * test/MetalinkProcessorTest.cc
  4996. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4997. Bump up version number to 1.3.2
  4998. * configure.ac
  4999. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5000. Added missing file.
  5001. * test/Makefile.am
  5002. * test/url-list-singleFileEndsWithSlash.torrent
  5003. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5004. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5005. request.
  5006. * src/AnnounceList.cc
  5007. * src/AnnounceList.h
  5008. * src/BDE.cc: Added
  5009. * src/BDE.h: Added
  5010. * src/DHTAbstractMessage.cc
  5011. * src/DHTAbstractMessage.h
  5012. * src/DHTAnnouncePeerMessage.cc
  5013. * src/DHTAnnouncePeerMessage.h
  5014. * src/DHTAnnouncePeerReplyMessage.cc
  5015. * src/DHTAnnouncePeerReplyMessage.h
  5016. * src/DHTFindNodeMessage.cc
  5017. * src/DHTFindNodeMessage.h
  5018. * src/DHTFindNodeReplyMessage.cc
  5019. * src/DHTFindNodeReplyMessage.h
  5020. * src/DHTGetPeersMessage.cc
  5021. * src/DHTGetPeersMessage.h
  5022. * src/DHTGetPeersReplyMessage.cc
  5023. * src/DHTGetPeersReplyMessage.h
  5024. * src/DHTMessageFactory.h
  5025. * src/DHTMessageFactoryImpl.cc
  5026. * src/DHTMessageFactoryImpl.h
  5027. * src/DHTMessageReceiver.cc
  5028. * src/DHTMessageTracker.cc
  5029. * src/DHTMessageTracker.h
  5030. * src/DHTPingMessage.cc
  5031. * src/DHTPingMessage.h
  5032. * src/DHTPingReplyMessage.cc
  5033. * src/DHTPingReplyMessage.h
  5034. * src/DHTQueryMessage.cc
  5035. * src/DHTQueryMessage.h
  5036. * src/DHTResponseMessage.cc
  5037. * src/DHTResponseMessage.h
  5038. * src/DefaultBtAnnounce.cc
  5039. * src/DefaultBtContext.cc
  5040. * src/DefaultBtContext.h
  5041. * src/HandshakeExtensionMessage.cc
  5042. * src/Makefile.am
  5043. * src/PeerListProcessor.h
  5044. * src/UTPexExtensionMessage.cc
  5045. * src/bencode.cc
  5046. * src/bencode.h
  5047. * test/AnnounceListTest.cc
  5048. * test/BDETest.cc: Added
  5049. * test/BencodeTest.cc
  5050. * test/DHTAnnouncePeerMessageTest.cc
  5051. * test/DHTAnnouncePeerReplyMessageTest.cc
  5052. * test/DHTFindNodeMessageTest.cc
  5053. * test/DHTFindNodeReplyMessageTest.cc
  5054. * test/DHTGetPeersMessageTest.cc
  5055. * test/DHTGetPeersReplyMessageTest.cc
  5056. * test/DHTMessageFactoryImplTest.cc
  5057. * test/DHTMessageTrackerTest.cc
  5058. * test/DHTPingMessageTest.cc
  5059. * test/DHTPingReplyMessageTest.cc
  5060. * test/Makefile.am
  5061. * test/MockDHTMessageFactory.h
  5062. * test/PeerListProcessorTest.cc
  5063. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Use url-list (web-seeding) only for single-file torrent. This is
  5065. basically the same behavior with Metalink file with torrent and
  5066. URIs.
  5067. * src/RequestGroup.cc
  5068. * src/DefaultBtContext.cc
  5069. * test/DefaultBtContextTest.cc
  5070. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Rewritten expr
  5072. * src/array_fun.h
  5073. * test/array_funTest.cc
  5074. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5076. * src/DefaultBtMessageDispatcher.cc
  5077. * src/a2algo.h
  5078. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5079. Removed ExtendedMessagingAware. Instead of using inheritance,
  5080. added ExtensionMessageRegistry and it is passed to
  5081. DefaultExtensionMessageFactory.
  5082. * src/DefaultBtInteractive.cc
  5083. * src/DefaultBtInteractive.h
  5084. * src/DefaultExtensionMessageFactory.cc
  5085. * src/DefaultExtensionMessageFactory.h
  5086. * src/ExtendedMessagingAware.h: Removed.
  5087. * src/ExtensionMessageFactory.h
  5088. * src/ExtensionMessageRegistry.h: Added.
  5089. * src/Makefile.am
  5090. * src/PeerInteractionCommand.cc
  5091. * test/DefaultExtensionMessageFactoryTest.cc
  5092. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5093. Fixed typo in log messages
  5094. * src/MSEHandshake.cc
  5095. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5096. Fixed the bug that prevents torrent download from finishing. The
  5097. bug doesn't reveal for all torrents. The torrents affected this
  5098. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5099. of pieces.
  5100. * src/bitfield.h
  5101. * test/bitfieldTest.cc
  5102. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5103. Code cleanup
  5104. * src/PeerListProcessor.h
  5105. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. Removed RequestGroupAware
  5107. * src/AbstractCommand.cc
  5108. * src/AbstractCommand.h
  5109. * src/ActivePeerConnectionCommand.cc
  5110. * src/ActivePeerConnectionCommand.h
  5111. * src/DHTGetPeersCommand.cc
  5112. * src/DHTGetPeersCommand.h
  5113. * src/InitiatorMSEHandshakeCommand.cc
  5114. * src/InitiatorMSEHandshakeCommand.h
  5115. * src/Makefile.am
  5116. * src/PeerInitiateConnectionCommand.cc
  5117. * src/PeerInitiateConnectionCommand.h
  5118. * src/PeerInteractionCommand.cc
  5119. * src/PeerInteractionCommand.h
  5120. * src/RealtimeCommand.cc
  5121. * src/RealtimeCommand.h
  5122. * src/RequestGroupAware.cc: Removed
  5123. * src/RequestGroupAware.h: Removed
  5124. * src/SeedCheckCommand.cc
  5125. * src/SeedCheckCommand.h
  5126. * src/SleepCommand.cc
  5127. * src/TrackerWatcherCommand.cc
  5128. * src/TrackerWatcherCommand.h
  5129. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Rewritten PeerListProcessor
  5131. * src/PeerListProcessor.h
  5132. * src/CompactPeerListProcessor.h: Removed
  5133. * src/CompactPeerListProcessor.cc: Removed
  5134. * src/DelegatingPeerListProcessor.cc: Removed.
  5135. * src/DefaultBtAnnounce.cc
  5136. * src/Makefile.am
  5137. * src/UTPexExtensionMessage.cc
  5138. * src/DefaultPeerListProcessor.h: Removed.
  5139. * src/DefaultPeerListProcessor.cc: Removed.
  5140. * src/DelegatingPeerListProcessor.h: Removed.
  5141. * test/Makefile.am
  5142. * test/PeerListProcessorTest.cc
  5143. * test/DefaultPeerListProcessorTest.cc: Removed.
  5144. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5145. Rewritten RequestGroupMan::calculateStat()
  5146. * src/RequestGroupMan.cc
  5147. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Removed unnecessary virtual destructor for Request class.
  5149. * src/Request.cc
  5150. * src/Request.h
  5151. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. Avoid dynamic_pointer_cast.
  5153. * src/DHTGetPeersCommand.cc
  5154. * src/DHTGetPeersCommand.h
  5155. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5157. BtEvent.
  5158. * src/AbstractBtEventListener.h: Removed.
  5159. * src/AbstractBtMessage.cc
  5160. * src/AbstractBtMessage.h
  5161. * src/BtAbortOutstandingRequestEvent.h
  5162. * src/BtCancelSendingPieceEvent.h
  5163. * src/BtChokedEvent.h: Removed.
  5164. * src/BtChokingEvent.h
  5165. * src/BtEvent.h: Removed
  5166. * src/BtEventListener.h: Removed.
  5167. * src/BtMessage.h
  5168. * src/BtPieceMessage.cc
  5169. * src/BtPieceMessage.h
  5170. * src/BtRequestMessage.cc
  5171. * src/BtRequestMessage.h
  5172. * src/DefaultBtMessageDispatcher.cc
  5173. * src/Makefile.am
  5174. * src/a2functional.h
  5175. * test/BtPieceMessageTest.cc
  5176. * test/BtRequestMessageTest.cc
  5177. * test/DefaultBtMessageDispatcherTest.cc
  5178. * test/MockBtMessage.h
  5179. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5180. Code cleanup
  5181. * src/RequestGroupMan.cc
  5182. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5183. Code cleanup
  5184. * src/DownloadCommand.cc
  5185. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5186. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5187. byte.
  5188. * src/DownloadCommand.cc
  5189. * src/bitfield.h
  5190. * test/bitfieldTest.cc
  5191. Fixed the bug that causes infinite loop if broken web server
  5192. returns chunked response without last "0" chunk-size marker and
  5193. closes connection.
  5194. * src/DownloadCommand.cc
  5195. Instantiate properly configured HttpDownloadCommand for
  5196. non-resumable downlaods.
  5197. * src/HttpResponseCommand.cc
  5198. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. Rewritten array operation functions.
  5200. * src/BitfieldMan.cc
  5201. * src/array_fun.h
  5202. * test/array_funTest.cc
  5203. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5204. Removed unused variable 'query'
  5205. * src/Request.cc
  5206. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5207. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5208. accidentally set to false in r1162.
  5209. * configure.ac
  5210. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5211. Code cleanup
  5212. * src/BNode.cc
  5213. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. Increase prefixLength for the bucket which doesn't own local node
  5215. ID when splitting bucket.
  5216. * src/DHTBucket.cc
  5217. * test/DHTBucketTest.cc
  5218. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. * Release 1.3.1
  5220. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5221. Bump up version number to 1.3.1
  5222. * configure.ac
  5223. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Removed unused variable checkPoint. Also removed include directive
  5225. for TimeA2.h.
  5226. * src/SeedCheckCommand.h
  5227. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Fixed the bug that upload limit exceeds the value specified in
  5229. --seed-ratio option depending on the timing of the execution of
  5230. SeedCheckCommand.
  5231. * src/SeedCheckCommand.cc
  5232. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Fixed the bug that removed peer's session upload/download length
  5234. are counted twice in _cachedTransferStat before it is
  5235. re-calculated. This affected the calculation of shara ratio,
  5236. resulting aria2 wrongly determines that specified share ratio is
  5237. reached. Also fixed the typo in calculateStatFor function name.
  5238. * src/BtSetup.cc
  5239. * src/DefaultPeerStorage.cc
  5240. * src/ShareRatioSeedCriteria.h
  5241. * test/ShareRatioSeedCriteriaTest.cc
  5242. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5243. * Release 1.3.0
  5244. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5246. Nynorsk translations. Thanks to all translators.
  5247. * po/es.po
  5248. * po/ja.po
  5249. * po/nn.po
  5250. * po/ru.po
  5251. * po/uk.po
  5252. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Rewritten isInRange()
  5254. * src/DHTBucket.cc
  5255. * test/DHTBucketTest.cc
  5256. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5257. Fixed typo
  5258. * doc/aria2c.1.txt
  5259. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5260. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5261. malloc/realloc is not used.
  5262. * src/configure.ac
  5263. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5264. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5265. char* bitfield instead of stl container for efficiency.
  5266. PieceSelector::select now takes this
  5267. bitfield. RarestPieceSelector::select now also performs
  5268. efficiently for this change. bitfield namespace is introduced and
  5269. it has several helper functions to handle basic bitfield
  5270. operations such as test, count set bits, etc.
  5271. * src/BitfieldMan.cc
  5272. * src/BitfieldMan.h
  5273. * src/DefaultBtRequestFactory.cc
  5274. * src/DefaultPieceStorage.cc
  5275. * src/DefaultPieceStorage.h
  5276. * src/LongestSequencePieceSelector.cc
  5277. * src/LongestSequencePieceSelector.h
  5278. * src/Makefile.am
  5279. * src/Piece.cc
  5280. * src/Piece.h
  5281. * src/PieceSelector.h
  5282. * src/RarestPieceSelector.cc
  5283. * src/RarestPieceSelector.h
  5284. * src/Util.cc
  5285. * src/Util.h
  5286. * src/bitfield.h
  5287. * test/BitfieldManTest.cc
  5288. * test/LongestSequencePieceSelectorTest.cc
  5289. * test/Makefile.am
  5290. * test/RarestPieceSelectorTest.cc
  5291. * test/UtilTest.cc
  5292. * test/bitfieldTest.cc
  5293. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5294. Made accepted socket non-block.
  5295. * src/FtpNegotiationCommand.cc
  5296. * src/HttpListenCommand.cc
  5297. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5298. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5299. * src/AbstractSingleDiskAdaptor.cc
  5300. * src/DefaultPieceStorage.cc
  5301. * src/DiskAdaptor.h
  5302. * src/DiskAdaptor.h
  5303. * src/MultiFileAllocationIterator.cc
  5304. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5305. Run
  5306. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5307. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5308. it doesn't need to be called every time when
  5309. DefaultBtInteractive::doInteractionProcessing() is called.
  5310. * src/DefaultBtInteractive.cc
  5311. * src/DefaultBtInteractive.h
  5312. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5313. Documented 'falloc' in man page.
  5314. * doc/aria2c.1.txt
  5315. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5316. Updated doc
  5317. * src/usage_text.h
  5318. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5320. allocation mode uses posix_fallocate() system call to allocate
  5321. file on disk. If you are using newer file systems such as ext4
  5322. (with extents support), btrfs or xfs, 'falloc' is your best
  5323. choice. It allocates large(few GiB) files almost instantly. Don't
  5324. use 'falloc' with legacy file systems such as ext3 because it
  5325. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5326. until allocation finishes. 'falloc' may not be available if your
  5327. system doesn't have posix_fallocate() system call.
  5328. * configure.ac
  5329. * src/AbstractDiskWriter.cc
  5330. * src/AbstractDiskWriter.h
  5331. * src/AbstractSingleDiskAdaptor.cc
  5332. * src/BinaryStream.h
  5333. * src/BtCheckIntegrityEntry.cc
  5334. * src/ByteArrayDiskWriter.h
  5335. * src/CheckIntegrityEntry.cc
  5336. * src/CheckIntegrityEntry.h
  5337. * src/DefaultPieceStorage.cc
  5338. * src/DiskAdaptor.cc
  5339. * src/DiskAdaptor.h
  5340. * src/DiskWriter.h
  5341. * src/FallocFileAllocationIterator.cc
  5342. * src/FallocFileAllocationIterator.h
  5343. * src/FileAllocationEntry.cc
  5344. * src/FileAllocationEntry.h
  5345. * src/Makefile.am
  5346. * src/MultiFileAllocationIterator.cc
  5347. * src/MultiFileAllocationIterator.h
  5348. * src/OptionHandlerFactory.cc
  5349. * src/RequestGroup.cc
  5350. * src/StreamCheckIntegrityEntry.cc
  5351. * src/prefs.cc
  5352. * src/prefs.h
  5353. * src/usage_text.h
  5354. * test/FallocFileAllocationIteratorTest.cc
  5355. * test/Makefile.am
  5356. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5357. Removed duplicate enableDirectIO() call.
  5358. * src/MultiFileAllocationIterator.cc
  5359. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5361. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5362. cost of std::rotate().
  5363. * src/RarestPieceSelector.cc
  5364. * src/RarestPieceSelector.h
  5365. * test/RarestPieceSelectorTest.cc
  5366. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5367. Updated usage doc for --bt-tracker-interval option.
  5368. * src/usage_text.h
  5369. * doc/aria2c.1.txt
  5370. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5371. Documented --bt-tracker-interval option in man page.
  5372. * doc/aria2c.1.txt
  5373. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5374. Added an option to specify the interval between tracker requests.
  5375. If non-zero value is specified, aria2 uses it and ignores the
  5376. interval value in the response of tracker. If zero is specified,
  5377. aria2 determines the inteval value based on the tarcker response
  5378. and download progress.
  5379. * src/DefaultBtAnnounce.cc
  5380. * src/DefaultBtAnnounce.h
  5381. * src/OptionHandlerFactory.cc
  5382. * src/RequestGroup.cc
  5383. * src/prefs.cc
  5384. * src/prefs.h
  5385. * src/usage_text.h
  5386. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5387. Added operator+=, operator-=, operator-
  5388. * src/TransferStat.cc
  5389. * src/TransferStat.h
  5390. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5391. Refactored RarestPieceSelector to reduce CPU load, especially for
  5392. addPieceStats.
  5393. * src/RarestPieceSelector.cc
  5394. * src/RarestPieceSelector.h
  5395. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5397. getAllMissingBlockIndexes to reduce a call to
  5398. array_function_base::operator[].
  5399. * src/BitfieldMan.cc
  5400. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5401. Cached TransferStat/download speed to avoid to sum them up in each
  5402. call.
  5403. * src/DefaultPeerStorage.cc
  5404. * src/DefaultPeerStorage.h
  5405. * src/SegmentMan.cc
  5406. * src/SegmentMan.h
  5407. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5408. Typedefed cuid_t as int32_t in Command.h
  5409. * src/CUIDCounter.h
  5410. * src/Command.cc
  5411. * src/Command.h
  5412. * src/DownloadEngine.cc
  5413. * src/DownloadEngine.h
  5414. * src/PeerStat.h
  5415. * src/SegmentMan.cc
  5416. * src/SegmentMan.h
  5417. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5418. Reduced the number of calls to PeerStorage::calculateStat() and
  5419. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5420. transfer rate.
  5421. * src/DefaultBtInteractive.cc
  5422. * src/DefaultBtMessageDispatcher.cc
  5423. * src/DefaultPeerStorage.cc
  5424. * src/DefaultPeerStorage.h
  5425. * src/DownloadCommand.cc
  5426. * src/DownloadEngine.cc
  5427. * src/PeerStorage.h
  5428. * src/SegmentMan.cc
  5429. * src/SegmentMan.h
  5430. * test/MockPeerStorage.h
  5431. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Prepended _dir+"/" after joining path elements in torrent file.
  5433. * src/DefaultBtContext.cc
  5434. * test/DefaultBtContextTest.cc
  5435. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5436. Added missing IndexBtMessageValidator.h
  5437. * src/Makefile.am
  5438. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5439. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5440. Chinese translations. Thank you for contributing our project.
  5441. * po/id.po
  5442. * po/it.po
  5443. * po/ru.po
  5444. * po/uk.po
  5445. * po/zh_CN.po
  5446. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Updated README
  5448. * README
  5449. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Bump up version number to 1.3.0
  5451. * configure.ac
  5452. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5453. Updated doc
  5454. * src/DefaultBtContext.h
  5455. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5456. Slice/joinPath for name of single torrent.
  5457. * src/DefaultBtContext.cc
  5458. * test/DefaultBtContextTest.cc
  5459. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5460. Updated man page: Documented --dry-run and --index-out
  5461. options. Changed the default value of --uri-selector and
  5462. --http-auth-challenge options. Removed --direct-file-mapping
  5463. option. Added example for --index-out
  5464. * doc/aria2c.1.txt
  5465. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5466. Updated TEXT_DRY_RUN
  5467. * src/usage_text.h
  5468. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5469. Changed the default value of --uri-selector option from 'inorder'
  5470. to 'feedback'
  5471. * src/OptionHandlerFactory.cc
  5472. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5473. Included current URI in exception message.
  5474. * src/AbstractCommand.cc
  5475. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Renamed ServerStatURISelector as FeedbackURISelector.
  5477. * src/FeedbackURISelector.cc
  5478. * src/FeedbackURISelector.h
  5479. * src/Makefile.am
  5480. * src/RequestGroupMan.cc
  5481. * src/ServerStatURISelector.cc
  5482. * src/ServerStatURISelector.h
  5483. * test/FeedbackURISelectorTest.cc
  5484. * test/Makefile.am
  5485. * test/ServerStatURISelectorTest.cc
  5486. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5487. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5488. all URIs are tested and their timeout is not reached.
  5489. * src/AdaptiveURISelector.cc
  5490. * src/AdaptiveURISelector.h
  5491. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5492. Changed the default value of --http-auth-challenge option to false.
  5493. * src/OptionHandlerFactory.cc
  5494. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5495. Reuse URIs when all unused URIs run out.
  5496. * src/OptionHandlerFactory.cc
  5497. * src/RequestGroup.cc
  5498. * src/prefs.cc
  5499. * src/prefs.h
  5500. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5501. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5502. and BtRejectMessage are derived from RangeBtMessage class.
  5503. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5504. derived from IndexBtMessage class. BtChokeMessage,
  5505. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5506. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5507. ZeroBtMessage class.
  5508. * src/AbstractBtMessage.cc
  5509. * src/AbstractBtMessage.h
  5510. * src/BtAllowedFastMessage.cc
  5511. * src/BtAllowedFastMessage.h
  5512. * src/BtAllowedFastMessageValidator.h: Removed
  5513. * src/BtBitfieldMessage.cc
  5514. * src/BtBitfieldMessage.h
  5515. * src/BtCancelMessage.cc
  5516. * src/BtCancelMessage.h
  5517. * src/BtCancelMessageValidator.h: Removed
  5518. * src/BtChokeMessage.cc
  5519. * src/BtChokeMessage.h
  5520. * src/BtExtendedMessage.cc
  5521. * src/BtExtendedMessage.h
  5522. * src/BtHandshakeMessage.cc
  5523. * src/BtHandshakeMessage.h
  5524. * src/BtHaveAllMessage.cc
  5525. * src/BtHaveAllMessage.h
  5526. * src/BtHaveMessage.cc
  5527. * src/BtHaveMessage.h
  5528. * src/BtHaveMessageValidator.h: Removed
  5529. * src/BtHaveNoneMessage.cc
  5530. * src/BtHaveNoneMessage.h
  5531. * src/BtInterestedMessage.cc
  5532. * src/BtInterestedMessage.h
  5533. * src/BtKeepAliveMessage.cc
  5534. * src/BtKeepAliveMessage.h
  5535. * src/BtNotInterestedMessage.cc
  5536. * src/BtNotInterestedMessage.h
  5537. * src/BtPieceMessage.cc
  5538. * src/BtPieceMessage.h
  5539. * src/BtPortMessage.cc
  5540. * src/BtPortMessage.h
  5541. * src/BtRejectMessage.cc
  5542. * src/BtRejectMessage.h
  5543. * src/BtRejectMessageValidator.h: Removed
  5544. * src/BtRequestMessage.cc
  5545. * src/BtRequestMessage.h
  5546. * src/BtRequestMessageValidator.h: Removed
  5547. * src/BtSuggestPieceMessage.cc
  5548. * src/BtSuggestPieceMessage.h
  5549. * src/BtSuggestPieceMessageValidator.h: Removed
  5550. * src/BtUnchokeMessage.cc
  5551. * src/BtUnchokeMessage.h
  5552. * src/DefaultBtMessageFactory.cc
  5553. * src/IndexBtMessage.cc
  5554. * src/IndexBtMessage.h
  5555. * src/IndexBtMessageValidator.h
  5556. * src/Makefile.am
  5557. * src/PeerMessageUtil.cc
  5558. * src/PeerMessageUtil.h
  5559. * src/RangeBtMessage.cc
  5560. * src/RangeBtMessage.h
  5561. * src/RangeBtMessageValidator.h
  5562. * src/SimpleBtMessage.cc
  5563. * src/SimpleBtMessage.h
  5564. * src/ZeroBtMessage.cc
  5565. * src/ZeroBtMessage.h
  5566. * test/BtRequestMessageTest.cc
  5567. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5568. Reverted usage_text.h to r1093 to avoid to lose translated
  5569. messages.
  5570. * src/usage_text.h
  5571. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5573. declared as non-const previously is now const and defined in class
  5574. definition.
  5575. * src/AbstractBtMessage.cc
  5576. * src/AbstractBtMessage.h
  5577. * src/BtAllowedFastMessage.cc
  5578. * src/BtAllowedFastMessage.h
  5579. * src/BtBitfieldMessage.h
  5580. * src/BtCancelMessage.cc
  5581. * src/BtCancelMessage.h
  5582. * src/BtChokeMessage.cc
  5583. * src/BtChokeMessage.h
  5584. * src/BtExtendedMessage.cc
  5585. * src/BtExtendedMessage.h
  5586. * src/BtHandshakeMessage.cc
  5587. * src/BtHandshakeMessage.h
  5588. * src/BtHaveAllMessage.cc
  5589. * src/BtHaveAllMessage.h
  5590. * src/BtHaveMessage.cc
  5591. * src/BtHaveMessage.h
  5592. * src/BtHaveNoneMessage.cc
  5593. * src/BtHaveNoneMessage.h
  5594. * src/BtInterestedMessage.cc
  5595. * src/BtInterestedMessage.h
  5596. * src/BtKeepAliveMessage.cc
  5597. * src/BtKeepAliveMessage.h
  5598. * src/BtMessage.h
  5599. * src/BtNotInterestedMessage.cc
  5600. * src/BtNotInterestedMessage.h
  5601. * src/BtPieceMessage.h
  5602. * src/BtPortMessage.cc
  5603. * src/BtPortMessage.h
  5604. * src/BtRejectMessage.cc
  5605. * src/BtRejectMessage.h
  5606. * src/BtRequestMessage.cc
  5607. * src/BtRequestMessage.h
  5608. * src/BtSuggestPieceMessage.cc
  5609. * src/BtSuggestPieceMessage.h
  5610. * src/BtUnchokeMessage.cc
  5611. * src/BtUnchokeMessage.h
  5612. * src/SimpleBtMessage.cc
  5613. * src/SimpleBtMessage.h
  5614. * test/MockBtMessage.h
  5615. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5616. Use FileEntry::exists()
  5617. * src/MultiDiskAdaptor.cc
  5618. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5619. Added exists()
  5620. * src/FileEntry.cc
  5621. * src/FileEntry.h
  5622. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Added missing prefix dir.
  5624. * src/download_helper.cc
  5625. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5627. * src/CopyDiskAdaptor.cc: Removed
  5628. * src/CopyDiskAdaptor.h: Removed
  5629. * src/DefaultPieceStorage.cc
  5630. * src/Makefile.am
  5631. * src/OptionHandlerFactory.cc
  5632. * src/prefs.cc
  5633. * src/prefs.h
  5634. * src/usage_text.h
  5635. * test/CopyDiskAdaptorTest.cc: Removed
  5636. * test/Makefile.am
  5637. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5638. Rewritten isSameFileBeingDownloaded()
  5639. * src/RequestGroupMan.cc
  5640. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Removed getName() from DownloadContext. getName() is declared in
  5642. BtContext.
  5643. * src/BtContext.h
  5644. * src/DownloadContext.h
  5645. * src/SingleFileDownloadContext.cc
  5646. * src/SingleFileDownloadContext.h
  5647. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5648. in AbstractSingleDiskAdaptor.
  5649. * src/AbstractSingleDiskAdaptor.h
  5650. * src/DiskAdaptor.h
  5651. * src/MultiDiskAdaptor.h
  5652. * src/RequestGroup.cc
  5653. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5654. MultiDiskAdaptor.
  5655. * src/DefaultPieceStorage.cc
  5656. * src/MultiDiskAdaptor.cc
  5657. * src/MultiDiskAdaptor.h
  5658. * test/MultiDiskAdaptorTest.cc
  5659. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. FileEntry::getPath() contains store(top level) directory to
  5661. simplify path handling operation. In the previous implementation,
  5662. store directory is concatenated to FileEntry::getPath() in
  5663. DownloadContext.
  5664. * src/BtDependency.cc
  5665. * src/BtPostDownloadHandler.cc
  5666. * src/CopyDiskAdaptor.cc
  5667. * src/DefaultBtContext.cc
  5668. * src/DirectDiskAdaptor.cc
  5669. * src/FileEntry.cc
  5670. * src/FileEntry.h
  5671. * src/FtpNegotiationCommand.cc
  5672. * src/HttpResponse.cc
  5673. * src/HttpResponseCommand.cc
  5674. * src/Metalink2RequestGroup.cc
  5675. * src/MultiDiskAdaptor.cc
  5676. * src/MultiDiskAdaptor.h
  5677. * src/MultiFileAllocationIterator.cc
  5678. * src/RequestGroup.cc
  5679. * src/SingleFileDownloadContext.cc
  5680. * src/SingleFileDownloadContext.h
  5681. * src/download_helper.cc
  5682. * test/BtDependencyTest.cc
  5683. * test/CopyDiskAdaptorTest.cc
  5684. * test/DefaultBtContextTest.cc
  5685. * test/DefaultBtProgressInfoFileTest.cc
  5686. * test/DirectDiskAdaptorTest.cc
  5687. * test/DownloadHelperTest.cc
  5688. * test/FileEntryTest.cc
  5689. * test/MultiDiskAdaptorTest.cc
  5690. * test/MultiFileAllocationIteratorTest.cc
  5691. * test/RequestGroupTest.cc
  5692. * test/SingleFileDownloadContextTest.cc
  5693. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5694. Fixed compiler warning
  5695. * src/download_helper.cc
  5696. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Throw exception if same infohash torrent is now downloading.
  5698. * src/RequestGroup.cc
  5699. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5700. Added --dry-run option. In this mode, aria2 just checks whether
  5701. the remote file is available and doesn't download data. This
  5702. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5703. are canceled in this mode.
  5704. * src/FtpNegotiationCommand.cc
  5705. * src/HttpResponseCommand.cc
  5706. * src/HttpResponseCommand.h
  5707. * src/OptionHandlerFactory.cc
  5708. * src/RequestGroup.cc
  5709. * src/RequestGroupMan.cc
  5710. * src/prefs.cc
  5711. * src/prefs.h
  5712. * src/usage_text.h
  5713. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5714. Fixed compiler waring
  5715. * test/UriListParserTest.cc
  5716. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5717. Parse options in -i list using OptionParser.
  5718. * src/UriListParser.cc
  5719. * src/UriListParser.h
  5720. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5721. Don't reset URI in retry to avoid additional round trips because
  5722. of redirects.
  5723. * src/AbstractCommand.cc
  5724. * src/OptionHandlerFactory.cc
  5725. * src/prefs.cc
  5726. * src/prefs.h
  5727. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5728. Declared hide() in OptionHandler.
  5729. * src/NameMatchOptionHandler.h
  5730. * src/OptionHandler.h
  5731. * src/OptionHandlerImpl.h
  5732. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5733. Updated doc
  5734. * src/Peer.h
  5735. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5736. Added log message in setStatusInternal()
  5737. * src/ServerStat.cc
  5738. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5740. effectively exclude failed server.
  5741. * src/AbstractCommand.cc
  5742. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5743. Added --index-out option to specify each file path for torrent.
  5744. Here index shown in --show-files option is used to specify which
  5745. file path should be altered. For example, to change the file path
  5746. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5747. option multiple times: --index-out=1=aria2.tar.bz2
  5748. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5749. available. This option can be specified in -i list.
  5750. * src/DefaultBtContext.cc
  5751. * src/DefaultBtContext.h
  5752. * src/MultiDiskAdaptor.cc
  5753. * src/MultiDiskAdaptor.h
  5754. * src/MultiFileAllocationIterator.cc
  5755. * src/OptionHandlerFactory.cc
  5756. * src/OptionHandlerImpl.h
  5757. * src/Util.cc
  5758. * src/Util.h
  5759. * src/download_helper.cc
  5760. * src/prefs.cc
  5761. * src/prefs.h
  5762. * src/usage_text.h
  5763. * test/DefaultBtContextTest.cc
  5764. * test/MultiDiskAdaptorTest.cc
  5765. * test/MultiFileAllocationIteratorTest.cc
  5766. * test/UtilTest.cc
  5767. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5768. Use Util::pathJoin()
  5769. * src/MetalinkParserController.cc
  5770. * test/test.xml
  5771. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5772. Use Util::pathJoin()
  5773. * src/DefaultBtContext.cc
  5774. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5775. Added Util::pathJoin()
  5776. * src/Util.h
  5777. * test/UtilTest.cc
  5778. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5779. Applied basename function to remove directory element in
  5780. content-disposition value.
  5781. Return empty string if content-disposition value is ".." or ".".
  5782. * src/Util.cc
  5783. * test/UtilTest.cc
  5784. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5785. Added --max-overall-download-limit in man page.
  5786. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5787. * doc/aria2c.1.txt
  5788. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5789. Added --max-overall-download-limit option. Now --max-upload-limit
  5790. option is not ignored when --max-overall-upload-limit option has
  5791. non-zero value. aria2 checks download(upload) speed in the order:
  5792. first checks overall speed limit and if it is not exceeded, then
  5793. checks speed limit per download. Thus you can specify both
  5794. value. For example, set --max-overall-download-limit=1M and
  5795. --max-download-limit=500K to prevent from one download from eating
  5796. all overall speed limit.
  5797. * src/DefaultBtInteractive.cc
  5798. * src/DefaultBtInteractive.h
  5799. * src/DefaultBtMessageDispatcher.cc
  5800. * src/DefaultBtMessageDispatcher.h
  5801. * src/DownloadCommand.cc
  5802. * src/DownloadCommand.h
  5803. * src/FtpNegotiationCommand.cc
  5804. * src/HttpResponseCommand.cc
  5805. * src/OptionHandlerFactory.cc
  5806. * src/PeerInteractionCommand.cc
  5807. * src/RequestGroup.cc
  5808. * src/RequestGroup.h
  5809. * src/RequestGroupMan.cc
  5810. * src/RequestGroupMan.h
  5811. * src/prefs.cc
  5812. * src/prefs.h
  5813. * src/usage_text.h
  5814. * test/DefaultBtMessageDispatcherTest.cc
  5815. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5816. Documented select-file option in Input File section.
  5817. Documented --http-auth-challenge option.
  5818. * doc/aria2c.1.txt
  5819. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5820. Now select-file can be specified in the uri list(-i list).
  5821. * src/BtContext.cc
  5822. * src/BtContext.h
  5823. * src/RequestGroup.cc
  5824. * src/Sequence.h
  5825. * src/download_helper.cc
  5826. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5827. Made the upper value of --max-concurrent-downloads options unlimited.
  5828. * src/OptionHandlerFactory.cc
  5829. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5830. Fixed the bug that disk writer is not created even if it shares
  5831. same piece with the preceding file if the length of previous file
  5832. is 0.
  5833. * src/MultiDiskAdaptor.cc
  5834. * test/MultiDiskAdaptorTest.cc
  5835. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5836. In BitTorrent, Open files in read-only mode for hash check. After
  5837. that, re-open file in read/write mode only when the download is
  5838. not finished.
  5839. * src/AbstractDiskWriter.cc
  5840. * src/AbstractDiskWriter.h
  5841. * src/AbstractSingleDiskAdaptor.cc
  5842. * src/AbstractSingleDiskAdaptor.h
  5843. * src/BtCheckIntegrityEntry.cc
  5844. * src/DiskAdaptor.h
  5845. * src/DiskWriter.h
  5846. * src/MultiDiskAdaptor.cc
  5847. * src/MultiDiskAdaptor.h
  5848. * src/RequestGroup.cc
  5849. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5850. Added --http-auth-challenge option. If it is set to true(by
  5851. default), aria2 sends HTTP authorization header only when it is
  5852. requested by the server. If false is set, then authorization
  5853. header is always sent to the server. This is useful for servers
  5854. that don't respond 401 code when authentication is required.
  5855. There is an exception: if username and password are embedded in
  5856. URI, authorization header is always sent to the server regardless
  5857. of this option.
  5858. * src/AuthConfigFactory.cc
  5859. * src/HttpSkipResponseCommand.cc
  5860. * src/OptionHandlerFactory.cc
  5861. * src/prefs.cc
  5862. * src/prefs.h
  5863. * src/usage_text.h
  5864. * test/AuthConfigFactoryTest.cc
  5865. * test/HttpRequestTest.cc
  5866. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. * Release 1.2.0
  5868. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5869. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5870. Thanks to all translators.
  5871. * po/es.po
  5872. * po/ja.po
  5873. * po/ru.po
  5874. * po/uk.po
  5875. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5876. Call deleteSocketForReadCheck() before socket is closed.
  5877. * src/HttpListenCommand.cc
  5878. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5879. Defined virtual destructor for BObject.
  5880. * src/bencode.h
  5881. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5882. Rewritten BDE to make it efficient.
  5883. * src/bencode.cc
  5884. * src/bencode.h
  5885. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Removed function throw list.
  5887. * src/bencode.cc
  5888. * src/bencode.h
  5889. * test/BencodeTest.cc
  5890. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5891. Enclosed all URLs in double quotes in command-line examples.
  5892. * doc/aria2c.1.txt
  5893. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5894. Updated reference/see also section.
  5895. * README
  5896. * doc/aria2c.1.txt
  5897. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5898. Reorganized man page based on man man-pages.
  5899. * doc/aria2c.1.txt
  5900. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5901. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5902. because same documents are available in man page. Added
  5903. References section.
  5904. * README
  5905. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5906. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5907. PERFORMANCE PROFILE section.
  5908. * doc/aria2c.1.txt
  5909. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5910. Rewritten the section for configuration file.
  5911. * README
  5912. * doc/aria2c.1.txt
  5913. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Fixed the segmentation fault during execution of choking algorithm
  5915. in leecher state because of broken compare operator
  5916. implementation.
  5917. * src/BtLeecherStateChoke.cc
  5918. * src/BtLeecherStateChoke.h
  5919. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5920. Open file in binary mode.
  5921. * src/CookieStorage.cc
  5922. * src/DHTSetup.cc
  5923. * src/DHTUtil.cc
  5924. * src/Netrc.cc
  5925. * src/NsCookieParser.cc
  5926. * src/ProtocolDetector.cc
  5927. * src/RequestGroupMan.cc
  5928. * src/Signature.cc
  5929. * src/bencode.cc
  5930. * src/download_helper.cc
  5931. * src/option_processing.cc
  5932. * test/CookieParserTest.cc
  5933. * test/DefaultBtProgressInfoFileTest.cc
  5934. * test/FileTest.cc
  5935. * test/GZipDecoderTest.cc
  5936. * test/RequestGroupManTest.cc
  5937. * test/SignatureTest.cc
  5938. * test/SingleFileAllocationIteratorTest.cc
  5939. * test/UriListParserTest.cc
  5940. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5941. Removed operator[] because it is ambiguous with built-in []
  5942. operator.
  5943. * src/array_fun.h
  5944. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Fixed compile error
  5946. * src/OptionParser.cc
  5947. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5948. Added missing call to arrayWrapperConst
  5949. * test/array_funTest.cc
  5950. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5951. Use array_wrapper instead of array_ptr.
  5952. * src/DHTRoutingTableDeserializer.cc
  5953. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5954. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5955. * src/array_fun.h
  5956. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5957. Added array_wrapper template.
  5958. * src/array_fun.h
  5959. * test/array_funTest.cc
  5960. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5961. Use operator T* of array_ptr.
  5962. * src/OptionParser.cc
  5963. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5964. Use localhost instead of 127.0.0.1
  5965. * test/FtpConnectionTest.cc
  5966. * test/MSEHandshakeTest.cc
  5967. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5968. Added operator T*
  5969. * src/array_fun.h
  5970. * test/array_funTest.cc
  5971. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5972. Use dynamically allocated char array to detect memory access
  5973. violation.
  5974. * src/DHTRoutingTableDeserializer.cc
  5975. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5976. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5977. defined.
  5978. * src/PeerMessageUtil.cc
  5979. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5981. * configure.ac
  5982. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Added a check to see struct sockaddr_in has sin_len member.
  5984. * configure.ac
  5985. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5986. Fixed buffer overrun.
  5987. * src/DHTRoutingTableDeserializer.cc
  5988. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5989. Added LL for long long int constant.
  5990. * test/FtpConnectionTest.cc
  5991. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5992. Casted to unsigned int to suppress compiler warning on netbsd.
  5993. * src/BtRuntime.h
  5994. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5996. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5997. type time_t.
  5998. * src/SimpleLogger.cc
  5999. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6000. Added test for FtpConnection::receiveSizeResponse().
  6001. * test/FtpConnectionTest.cc
  6002. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6003. Fix epoll error on the old kernel 2.6.8 or ealier.
  6004. * src/EpollEventPoll.cc
  6005. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6006. Use Util::parseLLInt instead of sscanf for portability. The
  6007. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6008. * src/FtpConnection.cc
  6009. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6011. block. It should not filter anything.
  6012. * src/BitfieldMan.cc
  6013. * src/ConsoleStatCalc.cc
  6014. * test/BitfieldManTest.cc
  6015. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6016. Fixed the bug that the boolean options that don't take arguments
  6017. don't work.
  6018. * src/OptionHandlerImpl.h
  6019. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Fixed broken selected file BitTorrent download.
  6021. * src/MultiDiskAdaptor.cc
  6022. * test/MultiDiskAdaptorTest.cc
  6023. * test/MultiFileAllocationIteratorTest.cc
  6024. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6025. Fixed #define guard for EpollEventPoll
  6026. * src/EpollEventPoll.h
  6027. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6028. Wait 2 seconds. 1 second is sometimes not enough.
  6029. * test/TimeSeedCriteriaTest.cc
  6030. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6031. Use localhost instead of 127.0.0.1.
  6032. * test/DHTConnectionImplTest.cc
  6033. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Suppressed compiler warning.
  6035. * src/AdaptiveURISelector.cc
  6036. * src/DefaultPieceStorage.cc
  6037. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6038. Defined virtual destructor.
  6039. * src/MetalinkParserState.h
  6040. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6041. Give NULL for second argument of getaddrinfo instead of "0".
  6042. * src/NameResolver.cc
  6043. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6044. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6045. included strptime doesn't parse data for this format.
  6046. * src/FtpConnection.cc
  6047. * test/FtpConnectionTest.cc
  6048. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6049. Removed tests giving -1 for unsigned argument.
  6050. * test/SingleFileDownloadContextTest.cc
  6051. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6052. Don't use sha256 in tests because it might not be supported by the
  6053. SSL library.
  6054. * test/MetalinkProcessorTest.cc
  6055. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. Removed tests giving -1 for unsigned argument.
  6057. * test/AlphaNumberDecoratorTest
  6058. * test/BitfieldManTest.cc
  6059. * test/DefaultBtContextTest.cc
  6060. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6061. Fixed compile error without libcares when epoll is available.
  6062. * src/EpollEventPoll.cc
  6063. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6064. Included fstream instead of iostream.
  6065. * test/SignatureTest.cc
  6066. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6067. Removed #include <algorithm>
  6068. * test/RequestGroupTest.cc
  6069. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6070. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6071. using RequestGroup::extractURIResult().
  6072. * src/AdaptiveURISelector.cc
  6073. * src/RequestGroup.cc
  6074. * src/RequestGroup.h
  6075. * test/RequestGroupTest.cc
  6076. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6077. Added tests for array_ptr.
  6078. * test/array_funTest.cc
  6079. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6080. Don't send ip parameter to a tracker if ip parameter is empty
  6081. string.
  6082. * src/DefaultBtAnnounce.cc
  6083. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6084. Adjusted line feed.
  6085. * src/version_usage.cc
  6086. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6087. Print tags, possible values when OptionHandlerException is caught.
  6088. * src/option_processing.cc
  6089. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6090. Changed the message for FatalException.
  6091. * src/OptionParser.cc
  6092. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6093. Documented --bt-external-ip option in man page. Updated man pages
  6094. for --proxy-method option.
  6095. * doc/aria2c.1.txt
  6096. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6097. Use GET method for FTP via HTTP proxy.
  6098. * src/FtpInitiateConnectionCommand.cc
  6099. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6100. Changed the default value of --proxy-method option from 'tunnel'
  6101. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6102. option.
  6103. * src/AbstractCommand.cc
  6104. * src/AbstractCommand.h
  6105. * src/FtpInitiateConnectionCommand.cc
  6106. * src/HttpDownloadCommand.cc
  6107. * src/HttpInitiateConnectionCommand.cc
  6108. * src/HttpInitiateConnectionCommand.h
  6109. * src/OptionHandlerFactory.cc
  6110. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6111. Initialized _logger
  6112. * src/SelectEventPoll.cc
  6113. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6114. Defined a copy constructor for the same type.
  6115. * src/SharedHandle.h
  6116. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6117. Added OptionParser::parseArg() which internally uses getopt_long
  6118. to parse command-line options. All command-line options are now
  6119. configured by OptionHandler. No manual editing of struct option*
  6120. is required any more.
  6121. * src/NameMatchOptionHandler.h
  6122. * src/OptionHandler.h
  6123. * src/OptionHandlerFactory.cc
  6124. * src/OptionHandlerImpl.h
  6125. * src/OptionParser.cc
  6126. * src/OptionParser.h
  6127. * src/array_fun.h
  6128. * src/main.cc
  6129. * src/option_processing.cc
  6130. * test/OptionHandlerTest.cc
  6131. * test/OptionParserTest.cc
  6132. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6133. Fixed configure error with --disable-epoll
  6134. * configure.ac
  6135. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6136. Fixed compile error when HAVE_EPOLL is not defined.
  6137. Fixed linker error on bigendian systems.
  6138. * src/SocketCore.cc
  6139. * src/SocketCore.h
  6140. * test/DefaultBtProgressInfoFileTest.cc
  6141. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6142. Added --bt-external-ip option. You can specify the external IP
  6143. address to report to a BitTorrent tracker. Although this function
  6144. is named 'external', it can accept any kind of IP addresses.
  6145. * src/DefaultBtAnnounce.cc
  6146. * src/OptionHandlerFactory.cc
  6147. * src/option_processing.cc
  6148. * src/prefs.cc
  6149. * src/prefs.h
  6150. * src/usage_text.h
  6151. * test/DefaultBtAnnounceTest.cc
  6152. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6153. Extracted the algorithm to find the longest incremental sequence
  6154. as max_sequence template.
  6155. * src/LongestSequencePieceSelector.cc
  6156. * src/a2algo.h
  6157. * test/Makefile.am
  6158. * test/a2algoTest.cc
  6159. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6160. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6161. * src/usage_text.h
  6162. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. Updated doc for --uri-selector, --http-server-listen-port and
  6164. --enable-http-server option. Documented --event-poll option.
  6165. * doc/aria2c.1.txt
  6166. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6167. Updated doc for --enable-http-server.
  6168. * src/usage_text.h
  6169. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. Documented --http-server-listen-port and --enable-http-server in
  6171. man page.
  6172. * doc/aria2c.1.txt
  6173. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6174. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6175. translations. Thanks to all translators.
  6176. * po/es.po
  6177. * po/id.po
  6178. * po/it.po
  6179. * po/ru.po
  6180. * po/uk.po
  6181. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6182. Bump up version number to 1.2.0
  6183. * configure.ac
  6184. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6185. BtContext::getAnnounceTiers() now returns const reference.
  6186. * src/BtContext.h
  6187. * src/DefaultBtContext.cc
  6188. * src/DefaultBtContext.h
  6189. * test/MockBtContext.h
  6190. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6191. Change the number of retries for tracker request based on the
  6192. number of available tracker in a torrent file.
  6193. * src/TrackerWatcherCommand.cc
  6194. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Added _maxTries property to RequestGroup and assign the option
  6196. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6197. RequestGroup::getMaxTries() instead of
  6198. Option::getAsInt(PREF_MAX_TRIES).
  6199. * src/AbstractCommand.cc
  6200. * src/RequestGroup.cc
  6201. * src/RequestGroup.h
  6202. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6203. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6204. Mandriva. I modified the patch: make RequestGroup have the
  6205. timeout value and AdaptiveURISelector directly modifies that
  6206. value.
  6207. * src/AbstractCommand.cc
  6208. * src/AdaptiveURISelector.cc
  6209. * src/AdaptiveURISelector.h
  6210. * src/FtpNegotiationCommand.cc
  6211. * src/RequestGroup.cc
  6212. * src/RequestGroup.h
  6213. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6214. Fixed compiler warning
  6215. * test/IteratableChecksumValidatorTest.cc
  6216. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6217. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6218. integrated downloads. This PieceSelector subclass finds the
  6219. longest continuous sequence in the available missing pieces and
  6220. selects the last index of such sequence. This makes HTTP/FTP
  6221. connections less interrupted by the pieces obtained by BitTorrent
  6222. peers.
  6223. * src/DefaultPieceStorage.cc
  6224. * src/DefaultPieceStorage.h
  6225. * src/LongestSequencePieceSelector.cc
  6226. * src/LongestSequencePieceSelector.h
  6227. * src/Makefile.am
  6228. * src/PieceSelector.h
  6229. * src/RarestPieceSelector.h
  6230. * src/RequestGroup.cc
  6231. * test/BtDependencyTest.cc
  6232. * test/DefaultPieceStorageTest.cc
  6233. * test/IteratableChecksumValidatorTest.cc
  6234. * test/LongestSequencePieceSelectorTest.cc
  6235. * test/Makefile.am
  6236. * test/SegmentManTest.cc
  6237. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Fixed the bug that the average speed is wrong in
  6239. http/ftp/BitTorrent integrated download. Only the download bytes
  6240. in BitTorrent were considered.
  6241. * src/RequestGroup.cc
  6242. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6243. Choose port for BitTorrent/DHT randomly from the specified range.
  6244. * src/DHTConnectionImpl.cc
  6245. * src/PeerListenCommand.cc
  6246. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Send HTTP Authorization header only if it is requested by the
  6248. server(response 401). There are some exceptions. The authorization
  6249. header for proxy is always sent if it is available without request
  6250. by the server. If username/password is specified in the URI, it
  6251. is immediately sent to the server without request by the server.
  6252. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6253. SharedHandle<AuthConfig>().
  6254. NetrcAuthResolver::resolveAuthConfig() returns
  6255. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6256. * src/AbstractAuthResolver.cc
  6257. * src/AbstractProxyRequestCommand.cc
  6258. * src/AuthConfigFactory.cc
  6259. * src/AuthConfigFactory.h
  6260. * src/HttpConnection.cc
  6261. * src/HttpRequest.cc
  6262. * src/HttpRequest.h
  6263. * src/HttpResponse.cc
  6264. * src/HttpResponseCommand.cc
  6265. * src/HttpSkipResponseCommand.cc
  6266. * test/AuthConfigFactoryTest.cc
  6267. * test/HttpRequestTest.cc
  6268. * test/HttpResponseTest.cc
  6269. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6270. Remove leading "--" from help keyword and a substring after "="
  6271. from help keyword, so that one can query options by '-h--max-' or
  6272. '-hmax-peers=10'.
  6273. * src/option_processing.cc
  6274. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6275. Rewritten PStringVisitor and its implementation.
  6276. * src/PStringBuildVisitor.cc
  6277. * src/PStringBuildVisitor.h
  6278. * src/PStringDatum.h
  6279. * src/PStringNumLoop.h
  6280. * src/PStringSegment.cc
  6281. * src/PStringSegment.h
  6282. * src/PStringSelect.h
  6283. * src/PStringVisitor.h
  6284. * src/download_helper.cc
  6285. * test/PStringBuildVisitorTest.cc
  6286. * test/ParameterizedStringParserTest.cc
  6287. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6288. Persist connection between the built-in HTTP server and a client
  6289. if a client supports keep-alive. Fixed the bug that aria2 exits
  6290. when the HTTP server receives EOF from a client.
  6291. * src/HttpServer.cc
  6292. * src/HttpServer.h
  6293. * src/HttpServerCommand.cc
  6294. * src/HttpServerCommand.h
  6295. * src/HttpServerResponseCommand.cc
  6296. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6297. Added experimental built-in HTTP server. Currently, when a client
  6298. accesses to the server, it responds with the current download
  6299. progress. By default, it is disabled. To enable the server, give
  6300. --enable-http-server option. To change the default port number
  6301. for the server to listen to, use --http-server-listen-port option.
  6302. The response HTML is very simple and refreshes it self each 1
  6303. second. Because of this refresh, you see flicker in normal web
  6304. browser such as Firefox. I recommend to use console-based browser
  6305. such as elinks, w3m. To connect to the server, run 'elinks
  6306. http://localhost:6800/' while running aria2. Please replace port
  6307. number '6800'(which is default) with your preference.
  6308. * src/DownloadEngineFactory.cc
  6309. * src/HttpHeader.cc
  6310. * src/HttpHeader.h
  6311. * src/HttpHeaderProcessor.cc
  6312. * src/HttpHeaderProcessor.h
  6313. * src/HttpListenCommand.cc
  6314. * src/HttpListenCommand.h
  6315. * src/HttpServer.cc
  6316. * src/HttpServer.h
  6317. * src/HttpServerCommand.cc
  6318. * src/HttpServerCommand.h
  6319. * src/HttpServerResponseCommand.cc
  6320. * src/HttpServerResponseCommand.h
  6321. * src/Makefile.am
  6322. * src/OptionHandlerFactory.cc
  6323. * src/Util.cc
  6324. * src/Util.h
  6325. * src/help_tags.h
  6326. * src/option_processing.cc
  6327. * src/prefs.cc
  6328. * src/prefs.h
  6329. * src/usage_text.h
  6330. * test/HttpHeaderProcessorTest.cc
  6331. * test/UtilTest.cc
  6332. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6333. Removed.
  6334. * src/CheckIntegrityMan.cc
  6335. * src/FileAllocationMan.cc
  6336. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6337. Made (piece) hash check sequential for each RequestGroup because
  6338. simultaneous hash check is slower than sequential execution.
  6339. * src/CheckIntegrityCommand.cc
  6340. * src/CheckIntegrityDispatcherCommand.cc
  6341. * src/CheckIntegrityDispatcherCommand.h
  6342. * src/CheckIntegrityMan.h
  6343. * src/ConsoleStatCalc.cc
  6344. * src/DownloadCommand.cc
  6345. * src/DownloadEngine.cc
  6346. * src/DownloadEngine.h
  6347. * src/DownloadEngineFactory.cc
  6348. * src/Makefile.am
  6349. * src/Makefile.in
  6350. * src/RequestGroup.cc
  6351. * src/StatCalc.h
  6352. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6353. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6354. SequentialDispatcherCommand.
  6355. * src/FileAllocationDispatcherCommand.cc
  6356. * src/SequentialDispatcherCommand.h
  6357. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6358. Rewritten FileAllocationDispatcherCommand using brand new
  6359. SequentialDispatcherCommand.
  6360. * src/DownloadEngineFactory.cc
  6361. * src/FileAllocationCommand.cc
  6362. * src/FileAllocationDispatcherCommand.cc
  6363. * src/FileAllocationDispatcherCommand.h
  6364. * src/Makefile.am
  6365. * src/SequentialDispatcherCommand.h
  6366. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6367. Replaced FileAllocationMan with
  6368. SequentialPicker<FileAllocationEntry>.
  6369. * src/BtCheckIntegrityEntry.cc
  6370. * src/ConsoleStatCalc.cc
  6371. * src/DownloadEngine.cc
  6372. * src/DownloadEngine.h
  6373. * src/DownloadEngineFactory.cc
  6374. * src/FileAllocationCommand.cc
  6375. * src/FileAllocationDispatcherCommand.cc
  6376. * src/FileAllocationMan.h
  6377. * src/Makefile.am
  6378. * src/SequentialPicker.h
  6379. * src/StatCalc.h
  6380. * src/StreamCheckIntegrityEntry.cc
  6381. * test/Makefile.am
  6382. * test/SequentialPickerTest.cc
  6383. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6384. Added doc for adaptive URI selector.
  6385. * doc/aria2c.1.txt
  6386. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6387. Added doc for adaptive URI selector.
  6388. * src/usage_text.h
  6389. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6390. Added doc for --bt-max-peers option.
  6391. * doc/aria2c.1.txt
  6392. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6393. Added doc for --bt-hash-check-seed option.
  6394. * doc/aria2c.1.txt
  6395. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6396. Documented exit codes.
  6397. * doc/aria2c.1.txt
  6398. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6399. Added --bt-max-peers option to specify the maximum number of peers
  6400. per torrent. 0 means unlimited number of peers.
  6401. * src/ActivePeerConnectionCommand.cc
  6402. * src/BtRuntime.h
  6403. * src/DefaultPeerStorage.cc
  6404. * src/DefaultPeerStorage.h
  6405. * src/OptionHandlerFactory.cc
  6406. * src/RequestGroup.cc
  6407. * src/option_processing.cc
  6408. * src/prefs.cc
  6409. * src/prefs.h
  6410. * src/usage_text.h
  6411. * test/DefaultPeerStorageTest.cc
  6412. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6413. Added --bt-hash-check-seed option. If true is given to this
  6414. option, after hash check using --check-integrity option and file
  6415. is complete, continue to seed file. If you want to check file and
  6416. download it only when it is damaged or incomplete, set this option
  6417. to false. This option has effect only on BitTorrent download.
  6418. The default value is true(This is the same behavior with the
  6419. previous release).
  6420. * src/BtCheckIntegrityEntry.cc
  6421. * src/OptionHandlerFactory.cc
  6422. * src/option_processing.cc
  6423. * src/prefs.cc
  6424. * src/prefs.h
  6425. * src/usage_text.h
  6426. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6427. Updated copyright year.
  6428. * src/version_usage.cc
  6429. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6430. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6431. * doc/aria2c.1.txt
  6432. * src/usage_text.h
  6433. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6434. Made the max value of split option unlimited.
  6435. * doc/aria2c.1.txt
  6436. * src/OptionHandlerFactory.cc
  6437. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6438. Fixed compile warning/error.
  6439. * src/DownloadResult.h
  6440. * src/HttpDownloadCommand.cc
  6441. * src/ServerStat.cc
  6442. * test/RequestGroupTest.cc
  6443. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6444. Added --event-poll option to select the method for polling events.
  6445. The available methods are "select" and "epoll". "epoll" is
  6446. available on Linux only. The earlier release has the compile
  6447. option to choose from these methods.
  6448. * configure.ac
  6449. * src/RequestGroupMan.cc
  6450. * src/OptionHandlerFactory.cc
  6451. * src/EpollEventPoll.h
  6452. * src/StreamFileAllocationEntry.cc
  6453. * src/a2io.h
  6454. * src/SelectEventPoll.h
  6455. * src/option_processing.cc
  6456. * src/prefs.h
  6457. * src/EpollEventPoll.cc
  6458. * src/EventPoll.h
  6459. * src/SocketCore.h
  6460. * src/Makefile.am
  6461. * src/main.cc
  6462. * src/DownloadEngine.h
  6463. * src/SelectEventPoll.cc
  6464. * src/DownloadEngine.cc
  6465. * src/SocketCore.cc
  6466. * src/DownloadEngineFactory.cc
  6467. * src/Makefile.in
  6468. * src/prefs.cc
  6469. * src/usage_text.h
  6470. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6471. Included RecoverableException.h from main.cc
  6472. * src/main.cc
  6473. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6474. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6475. now returns last error encountered in the HTTP/FTP downloads as a
  6476. exit status value. If all downloads finished successfully, aria2
  6477. returns 0. The error code is defined in src/DownloadResult.h.
  6478. The error occurred in the download currently in progress is not
  6479. reported as a last error. If no error has encountered but there
  6480. are in progress or waiting downloads, aria2 returns 7.
  6481. * src/AbstractCommand.cc
  6482. * src/DlAbortEx.h
  6483. * src/DlRetryEx.h
  6484. * src/DownloadCommand.cc
  6485. * src/DownloadFailureException.h
  6486. * src/DownloadResult.h
  6487. * src/FtpNegotiationCommand.cc
  6488. * src/HttpSkipResponseCommand.cc
  6489. * src/Makefile.am
  6490. * src/MultiUrlRequestInfo.cc
  6491. * src/MultiUrlRequestInfo.h
  6492. * src/RecoverableException.h
  6493. * src/RequestGroup.cc
  6494. * src/RequestGroup.h
  6495. * src/RequestGroupMan.cc
  6496. * src/RequestGroupMan.h
  6497. * src/URIResult.cc
  6498. * src/URIResult.h
  6499. * src/main.cc
  6500. * src/option_processing.cc
  6501. * test/RequestGroupTest.cc
  6502. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6503. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6504. patch adds AdaptiveURISelector, which selects one of the bests
  6505. mirrors for first and reserved connections. For supplementary
  6506. ones, it returns mirrors which has not been tested yet, and if
  6507. each of them already tested, returns mirrors which has to be
  6508. tested again. Otherwise, it doesn't return anymore mirrors.
  6509. * src/AdaptiveURISelector.cc
  6510. * src/AdaptiveURISelector.h
  6511. * src/FtpNegotiationCommand.cc
  6512. * src/HttpResponseCommand.cc
  6513. * src/Makefile.am
  6514. * src/Makefile.in
  6515. * src/OptionHandlerFactory.cc
  6516. * src/RequestGroup.cc
  6517. * src/RequestGroup.h
  6518. * src/RequestGroupMan.cc
  6519. * src/ServerStat.cc
  6520. * src/ServerStat.h
  6521. * src/ServerStatMan.cc
  6522. * src/SpeedCalc.cc
  6523. * src/URISelector.h
  6524. * src/prefs.cc
  6525. * src/prefs.h
  6526. * test/RequestGroupManTest.cc
  6527. * test/ServerStatManTest.cc
  6528. * test/ServerStatTest.cc
  6529. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6530. Fixed unit test error.
  6531. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6532. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6533. * Release 1.1.2
  6534. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6535. Updated Russian translation. Thanks to the translators.
  6536. * po/ru.po
  6537. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6538. Added the description of --use-head option to man page.
  6539. * doc/aria2c.1.txt
  6540. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6541. Bump up version number to 1.1.2
  6542. * configure.ac
  6543. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6544. Added --use-head option to toggle whether HEAD method should be
  6545. used in the first HTTP request. By default aria2 uses HEAD method
  6546. as the first request. When the server doesn't recognize HEAD, then
  6547. give aria2 --use-head=false to force aria2 to use GET method
  6548. instead.
  6549. * src/OptionHandlerFactory.cc
  6550. * src/RequestGroupMan.cc
  6551. * src/option_processing.cc
  6552. * src/prefs.cc
  6553. * src/prefs.h
  6554. * src/usage_text.h
  6555. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6556. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6557. message is received before CHOKE message. The old implementation
  6558. doen't clear the use-bit of the piece when recieved REJECT
  6559. message.
  6560. * src/DefaultBtMessageDispatcher.cc
  6561. * test/DefaultBtMessageDispatcherTest.cc
  6562. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6563. * Release 1.1.1
  6564. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6565. Bump up version number to 1.1.1.
  6566. * configure.ac
  6567. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6568. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6569. is printed repeatedly.
  6570. * src/ConsoleStatCalc.cc
  6571. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6572. * Release 1.1.0
  6573. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6574. Added ifdef clause for conditional compilation.
  6575. * src/main.cc
  6576. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6577. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6578. translations. Thanks to all translators.
  6579. * po/ja.po
  6580. * po/ru.po
  6581. * po/uk.po
  6582. * po/zh_CN.po
  6583. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6584. Added the preceding ">>> " before the message "Printing the
  6585. contents of file..." to make the output more readable.
  6586. * src/main.cc
  6587. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6588. Added try-catch block in the loop in showFiles() to continue the
  6589. operation even if the exception occurred in one file.
  6590. * src/main.cc (showFiles)
  6591. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6592. Made messages in showFiles() translatable.
  6593. * po/aria2.pot
  6594. * src/main.cc
  6595. * src/message.h
  6596. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6597. Print the contents of Torrent/Metalink files are printed without
  6598. -T/-M options.
  6599. * src/main.cc
  6600. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6601. Escaped '--' with '\--'
  6602. * README
  6603. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6604. Updated "How to build" section in README. Mentioned about
  6605. --with-ca-bundle compile option.
  6606. * README
  6607. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6608. Bump up version number to 1.1.0.
  6609. * configure.ac
  6610. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6611. Added a note for --dht-listen-port option.
  6612. * doc/aria2c.1.txt
  6613. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6614. Update doc for --realtime-chunk-checksum option.
  6615. * doc/aria2c.1.txt
  6616. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6617. Update doc for --realtime-chunk-checksum option.
  6618. * src/usage_text.h
  6619. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6620. Updated French, Japanese, Russian and Ukrainian translations.
  6621. Thanks to all translators.
  6622. * po/fr.po
  6623. * po/ja.po
  6624. * po/ru.po
  6625. * po/uk.po
  6626. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6627. Renamed aria2c.pot to aria2.pot
  6628. * po/aria2.pot
  6629. * po/aria2c.pot: Removed.
  6630. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6631. Removed MetaEntry.h
  6632. * src/Makefile.am
  6633. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6634. Rename file by appending digits if a local file exists and its
  6635. file size is larger than that of remote file with --continue
  6636. option. The old implementation just throws exception in such case.
  6637. * src/RequestGroup.cc
  6638. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6639. Fixed the bug that download progress summary is not printed in the
  6640. interval specified by the option.
  6641. * src/ConsoleStatCalc.cc
  6642. * src/ConsoleStatCalc.h
  6643. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6644. Fixed compiler warning
  6645. * src/Cookie.cc
  6646. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6647. Fixed the cookie implementation based on RFC2965.
  6648. Now if a value in domain field is not started with dot, then
  6649. prepend dot. That means a cookie with domain=sf.net is sent to
  6650. wiki.sf.net.
  6651. * src/Cookie.cc
  6652. * test/CookieParserTest.cc
  6653. * test/CookieStorageTest.cc
  6654. * test/CookieTest.cc
  6655. * test/NsCookieParserTest.cc
  6656. * test/Sqlite3MozCookieParserTest.cc
  6657. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6659. is enabled and the server doesn't support keep-alive.
  6660. * src/AbstractCommand.cc
  6661. * src/DownloadCommand.cc
  6662. * src/HttpDownloadCommand.cc
  6663. * src/HttpDownloadCommand.h
  6664. * src/HttpResponseCommand.cc
  6665. * src/Request.cc
  6666. * src/Request.h
  6667. * test/RequestTest.cc
  6668. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. Removed Dictionary/List/Data and its related classes.
  6670. * src/BencodeVisitor.cc: Removed.
  6671. * src/BencodeVisitor.h: Removed.
  6672. * src/Data.cc: Removed.
  6673. * src/Data.h: Removed.
  6674. * src/Dictionary.cc: Removed.
  6675. * src/Dictionary.h: Removed.
  6676. * src/List.cc: Removed.
  6677. * src/List.h: Removed.
  6678. * src/Makefile.am
  6679. * src/MetaEntry.h: Removed.
  6680. * src/MetaEntryVisitor.h: Removed.
  6681. * src/MetaFileUtil.cc: Removed.
  6682. * src/MetaFileUtil.h: Removed.
  6683. * test/BencodeVisitorTest.cc: Removed.
  6684. * test/DataTest.cc: Removed.
  6685. * test/DictionaryTest.cc: Removed.
  6686. * test/ListTest.cc: Removed.
  6687. * test/Makefile.am
  6688. * test/MetaFileUtilTest.cc: Removed.
  6689. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6690. Removed include of MetaEntry.h
  6691. * test/DHTMessageTrackerEntryTest.cc
  6692. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6693. Use BDE instead of Dictionary/List/Data.
  6694. * src/AnnounceList.cc
  6695. * src/AnnounceList.h
  6696. * test/AnnounceListTest.cc
  6697. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6698. Use BDE instead of Dictionary/List/Data.
  6699. * src/DHTAbstractMessage.cc
  6700. * src/DHTAbstractMessage.h
  6701. * src/DHTAnnouncePeerMessage.cc
  6702. * src/DHTAnnouncePeerMessage.h
  6703. * src/DHTAnnouncePeerReplyMessage.cc
  6704. * src/DHTAnnouncePeerReplyMessage.h
  6705. * src/DHTFindNodeMessage.cc
  6706. * src/DHTFindNodeMessage.h
  6707. * src/DHTFindNodeReplyMessage.cc
  6708. * src/DHTFindNodeReplyMessage.h
  6709. * src/DHTGetPeersMessage.cc
  6710. * src/DHTGetPeersMessage.h
  6711. * src/DHTGetPeersReplyMessage.cc
  6712. * src/DHTGetPeersReplyMessage.h
  6713. * src/DHTMessageFactory.h
  6714. * src/DHTMessageFactoryImpl.cc
  6715. * src/DHTMessageFactoryImpl.h
  6716. * src/DHTMessageReceiver.cc
  6717. * src/DHTMessageTracker.cc
  6718. * src/DHTMessageTracker.h
  6719. * src/DHTPingMessage.cc
  6720. * src/DHTPingMessage.h
  6721. * src/DHTPingReplyMessage.cc
  6722. * src/DHTPingReplyMessage.h
  6723. * src/DHTQueryMessage.cc
  6724. * src/DHTQueryMessage.h
  6725. * src/DHTResponseMessage.cc
  6726. * src/DHTResponseMessage.h
  6727. * test/DHTAnnouncePeerMessageTest.cc
  6728. * test/DHTAnnouncePeerReplyMessageTest.cc
  6729. * test/DHTFindNodeMessageTest.cc
  6730. * test/DHTFindNodeReplyMessageTest.cc
  6731. * test/DHTGetPeersMessageTest.cc
  6732. * test/DHTGetPeersReplyMessageTest.cc
  6733. * test/DHTMessageFactoryImplTest.cc
  6734. * test/DHTMessageTrackerTest.cc
  6735. * test/DHTPingMessageTest.cc
  6736. * test/DHTPingReplyMessageTest.cc
  6737. * test/MockDHTMessageFactory.h
  6738. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6739. Added tests the case where length < 0 is specified.
  6740. * test/BencodeTest.cc
  6741. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6742. Fixed memory leak in decoderawstring()
  6743. * src/bencode.cc
  6744. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6745. Added missing #ifdef guard. Added uc() function for String and
  6746. removeKey() for Dict.
  6747. * src/bencode.cc
  6748. * src/bencode.h
  6749. * test/BencodeTest.cc
  6750. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6751. Use BDE instead of Dictionary/List/Data.
  6752. * src/HandshakeExtensionMessage.cc
  6753. * src/HandshakeExtensionMessage.h
  6754. * test/HandshakeExtensionMessageTest.cc
  6755. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6756. Added --max-overall-upload-limit option. This option limits the
  6757. overall upload speed. Stated in help message that the existing
  6758. --max-upload-limit option limits the upload speed per each
  6759. torrent. Man page is also updated.
  6760. * doc/aria2c.1.txt
  6761. * src/DefaultBtMessageDispatcher.cc
  6762. * src/DefaultBtMessageDispatcher.h
  6763. * src/OptionHandlerFactory.cc
  6764. * src/PeerInteractionCommand.cc
  6765. * src/option_processing.cc
  6766. * src/prefs.cc
  6767. * src/prefs.h
  6768. * src/usage_text.h
  6769. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6770. Use BDE instead of Dictionary/List/Data classes.
  6771. * src/CompactPeerListProcessor.cc
  6772. * src/CompactPeerListProcessor.h
  6773. * src/DefaultBtAnnounce.cc
  6774. * src/DefaultBtContext.cc
  6775. * src/DefaultBtContext.h
  6776. * src/DefaultPeerListProcessor.cc
  6777. * src/DefaultPeerListProcessor.h
  6778. * src/DelegatingPeerListProcessor.cc
  6779. * src/DelegatingPeerListProcessor.h
  6780. * src/PeerListProcessor.h
  6781. * src/UTPexExtensionMessage.cc
  6782. * src/Util.h
  6783. * src/message.h
  6784. * test/DefaultBtContextTest.cc
  6785. * test/DefaultPeerListProcessorTest.cc
  6786. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6787. Added bencode helper functions and BDE class.
  6788. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6789. * src/Makefile.am
  6790. * src/bencode.cc
  6791. * src/bencode.h
  6792. * test/BencodeTest.cc
  6793. * test/Makefile.am
  6794. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6795. Fixed the bug that bad URI is sent to the tracker when the announe
  6796. URI in torrent file includes query.
  6797. * src/DefaultBtAnnounce.cc
  6798. * test/DefaultBtAnnounceTest.cc
  6799. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6800. Added Option::blank().
  6801. Use !Option::blank(name) instead of Option::defined(name) for
  6802. the options that take filename.
  6803. * src/MultiUrlRequestInfo.cc
  6804. * src/Option.cc
  6805. * src/Option.h
  6806. * src/main.cc
  6807. * src/option_processing.cc
  6808. * test/OptionTest.cc
  6809. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6810. Documented the default value of --check-certificate option in man
  6811. page.
  6812. * doc/aria2c.1.txt
  6813. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6814. Enabled --check-certificate by default. Added compile
  6815. time(configure) option --with-ca-bundle to specify CA bundle.
  6816. Warn if --check-certificate=true and --ca-certificate is not
  6817. specified or loading CA certificate is failed.
  6818. * configure.ac
  6819. * src/MultiUrlRequestInfo.cc
  6820. * src/OptionHandlerFactory.cc
  6821. * src/message.h
  6822. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6823. Mentioned https tag in help option.
  6824. * doc/aria2c.1.txt
  6825. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6826. Added `https' tag to help option category. Added https tag to
  6827. --ca-certificate, --certificate, --check-certificate and
  6828. --private-key option.
  6829. * src/OptionHandlerFactory.cc
  6830. * src/help_tags.h
  6831. * src/option_processing.cc
  6832. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6833. Changed the package name from `aria2c' to `aria2' in order to fix
  6834. the packaging issue in Debian and Fedora. The name of the
  6835. executable is not changed.
  6836. * configure.ac
  6837. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6838. Fixed typos
  6839. * src/usage_text.h
  6840. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6841. Fixed typos and updated doc.
  6842. * README
  6843. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6844. Fixed typos
  6845. * doc/aria2c.1.txt
  6846. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6847. Fixed typos
  6848. * src/usage_text.h
  6849. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6850. Print a message when no files to download.
  6851. * src/download_helper.cc
  6852. * src/main.cc
  6853. * src/message.h
  6854. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6855. RFC3986 complied Percent-Encoding(urlencode).
  6856. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6857. ones.
  6858. * src/Request.cc
  6859. * src/Util.cc
  6860. * src/Util.h
  6861. * test/BtHandshakeMessageTest.cc
  6862. * test/DefaultBtAnnounceTest.cc
  6863. * test/DefaultBtContextTest.cc
  6864. * test/RequestTest.cc
  6865. * test/UtilTest.cc
  6866. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6867. Fixed the bug that prevents aria2 from downloading 0-length files
  6868. via HTTP/FTP.
  6869. * src/DefaultBtContext.cc
  6870. * src/DefaultBtContext.h
  6871. * src/DownloadContext.h
  6872. * src/FtpNegotiationCommand.cc
  6873. * src/HttpResponseCommand.cc
  6874. * src/HttpResponseCommand.h
  6875. * src/RequestGroup.cc
  6876. * src/SingleFileDownloadContext.cc
  6877. * src/SingleFileDownloadContext.h
  6878. * test/BtPostDownloadHandlerTest.cc
  6879. * test/MetalinkPostDownloadHandlerTest.cc
  6880. * test/MockBtContext.h
  6881. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6882. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6883. * src/option_processing.cc
  6884. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6885. Applied aria2-1.0.1-mingw.patch.
  6886. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6887. mingw.
  6888. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6889. * src/SocketCore.cc
  6890. * src/a2netcompat.h
  6891. * test/SocketCoreTest.cc
  6892. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6893. * Release 1.0.1
  6894. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6895. Updated Ukrainian and Norwegian Nynorsk translations.
  6896. Thanks to all translators.
  6897. * po/nn.po
  6898. * po/uk.po
  6899. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6900. Don't show download result when -S option is used.
  6901. * src/main.cc
  6902. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6903. Bump up version number to 1.0.1
  6904. * configure.ac
  6905. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6906. Closed files after the test cases in MultiDiskWriterTest::
  6907. testResetDiskWriterEntries(). This will fix the unit test error
  6908. in mingw32 build.
  6909. * test/MultiDiskWriterTest.cc
  6910. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6911. Use HEAD method to get file size from HTTP server for segmented
  6912. downloading.
  6913. The request to the BitTorrent Tracker always uses GET method because
  6914. the response of the tracker is small and it doesn't need segmented
  6915. download.
  6916. * src/FtpNegotiationCommand.cc
  6917. * src/HttpRequest.cc
  6918. * src/HttpResponseCommand.cc
  6919. * src/HttpSkipResponseCommand.cc
  6920. * src/RequestGroup.cc
  6921. * src/RequestGroup.h
  6922. * src/TrackerWatcherCommand.cc
  6923. * test/HttpRequestTest.cc
  6924. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6925. Fixed the bug that causes floating exception when -T option is used and
  6926. no URIs are given.
  6927. * src/download_helper.cc
  6928. * test/DownloadHelperTest.cc
  6929. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6930. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6931. errors in MinGW:
  6932. Closed file after saving server stats (RequestGroupMan.cc)
  6933. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6934. Ignored case & handled 2-digit years (strptime.c)
  6935. Added missing suseconds_t definition (a2time.h)
  6936. Fixed socket CLOSE() define (SocketCore.cc)
  6937. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6938. Changed utime() test values from x000 to x00000 as MinGW failed on
  6939. values less than timezone offset from Unix epoch
  6940. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6941. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6942. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6943. handle negative dates (CookieParserTest.cc)
  6944. * src/a2time.h
  6945. * src/FtpConnection.cc
  6946. * src/RequestGroupMan.cc
  6947. * src/SocketCore.cc
  6948. * src/strptime.c
  6949. * test/CookieParserTest.cc
  6950. * test/CopyDiskAdaptorTest.cc
  6951. * test/FileTest.cc
  6952. * test/FtpConnectionTest.cc
  6953. * test/MultiDiskAdaptorTest.cc
  6954. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6955. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6956. * doc/aria2c.1.txt
  6957. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. * Release 1.0.0
  6959. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6960. Added '~' to reserved characters.
  6961. * src/Util.cc
  6962. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6963. Do not urlencode Request::url in setUrl() because we want unmodified
  6964. URL using Request::getUrl()
  6965. * src/Request.cc
  6966. * src/Request.h
  6967. * test/RequestTest.cc
  6968. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6969. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6970. Thanks to all translators.
  6971. * po/bg.po
  6972. * po/fr.po
  6973. * po/ja.po
  6974. * po/ru.po
  6975. * po/uk.po
  6976. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6977. Bump up version number to 1.0.0
  6978. * configure.ac
  6979. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6980. Added nosqlite3 build to build_test.sh.
  6981. Renamed noxml as expat.
  6982. * build_test.sh
  6983. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6984. Updated INPUT FILE section.
  6985. * doc/aria2c.1.txt
  6986. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6987. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6988. on big endian systems because test .aria2 files are made for little
  6989. endian systems.
  6990. * test/DefaultBtProgressInfoFileTest.cc
  6991. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6992. Dropped ares support.
  6993. * README
  6994. * configure.ac
  6995. * m4/libares.m4: Removed.
  6996. * src/AsyncNameResolver.cc
  6997. * src/Makefile.am
  6998. * test/Makefile.am
  6999. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7000. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7001. Removed const qualifier from DiskWriter::size().
  7002. * src/AbstractDiskWriter.cc
  7003. * src/AbstractDiskWriter.h
  7004. * src/ByteArrayDiskWriter.cc
  7005. * src/ByteArrayDiskWriter.h
  7006. * src/DiskWriter.h
  7007. * test/ByteArrayDiskWriterTest.cc
  7008. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7009. Fixed the bug that causes segmentation fault/bus error during executing
  7010. choking algorithm while seeding. This is caused by improper
  7011. implementation of compare function which returns inconsistent results
  7012. depending on the timing of last unchoke.
  7013. * src/BtSeederStateChoke.cc
  7014. * src/BtSeederStateChoke.h
  7015. * src/DefaultPeerStorage.cc
  7016. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. Removed TODO
  7018. * TODO
  7019. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7020. Added a section that explains how to pass argument to options that
  7021. takes optional arguments with its short form.
  7022. * doc/aria2c.1.txt
  7023. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7024. Added -u for the short form of --max-upload-limit option.
  7025. * doc/aria2c.1.txt
  7026. * src/option_processing.cc
  7027. * src/usage_text.h
  7028. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7029. Added -V for the short form of --check-integrity option.
  7030. Now the argument of --check-integrity option is optional:
  7031. if it is omitted, it is evaluated as true.
  7032. * doc/aria2c.1.txt
  7033. * src/option_processing.cc
  7034. * src/usage_text.h
  7035. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7036. Made the default value of --ftp-pasv option set to true and it can take
  7037. true/false values.
  7038. * src/OptionHandlerFactory.cc
  7039. * src/option_processing.cc
  7040. * src/usage_text.h
  7041. * doc/aria2c.1.txt
  7042. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7043. Given custom random number generator to std::random_shuffle.
  7044. * src/AnnounceList.cc
  7045. * src/BtLeecherStateChoke.cc
  7046. * src/BtSeederStateChoke.cc
  7047. * src/DefaultBtRequestFactory.cc
  7048. * src/MetalinkEntry.cc
  7049. * src/RarestPieceSelector.cc
  7050. * src/SimpleRandomizer.cc
  7051. * src/SimpleRandomizer.h
  7052. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7053. Now the default value of --enable-direct-io is true.
  7054. * src/OptionHandlerFactory.cc
  7055. * doc/aria2c.1.txt
  7056. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7057. Erase peer before executing onReturningPeer and onErasingPeer
  7058. because choking algorithm called from onReturningPeer doesn't
  7059. like erasing peer in the active peer list.
  7060. * src/DefaultPeerStorage.cc
  7061. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7062. Instead of creating special filename in createDownloadResult() if
  7063. inMemoryDownload() is true, now it is done in getFilePath().
  7064. * src/RequestGroup.cc
  7065. * test/RequestGroupTest.cc
  7066. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7067. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7068. processed in memory. This is the fix for previous comment out.
  7069. * src/MemoryBufferPreDownloadHandler.cc
  7070. * src/RequestGroup.cc
  7071. * src/RequestGroup.h
  7072. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7073. Commented out the code which sets virtual directory path "[MEMORY]"
  7074. propagate directory to store to following RequestGroup.
  7075. * src/MemoryBufferPreDownloadHandler.cc
  7076. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7077. Bump up version number to 1.0.0b
  7078. * configure.ac
  7079. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7080. Added input_uris.txt to EXTRA_DIST
  7081. * test/Makefile.am
  7082. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7083. Removed PeerObject.h from Makefile.am
  7084. * src/Makefile.am
  7085. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7086. Avoid slow seeding
  7087. * src/PeerInteractionCommand.cc
  7088. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7089. Updated usage for -i option.
  7090. * src/usage_text.h (TEXT_INPUT_FILE)
  7091. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7092. Added INPUT FILE section to man page.
  7093. Escaped fake URLs.
  7094. * doc/aria2c.1.txt
  7095. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7096. Fixed wrong note position for -o option.
  7097. * doc/aria2c.1.txt
  7098. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7099. Fixed compile error without SSL/XML library.
  7100. * src/DefaultBtProgressInfoFile.cc
  7101. * src/DefaultBtProgressInfoFile.h
  7102. * src/FileMetalinkParserState.cc
  7103. * src/RequestGroup.h
  7104. * src/SocketCore.cc
  7105. * src/SocketCore.h
  7106. * src/VerificationMetalinkParserState.cc
  7107. * src/download_helper.h
  7108. * src/main.cc
  7109. * test/DefaultBtProgressInfoFileTest.cc
  7110. * test/DownloadHelperTest.cc
  7111. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7112. Rewritten URI handling functions. They are now provided as a testable
  7113. functions.
  7114. * src/Makefile.am
  7115. * src/RequestGroup.cc
  7116. * src/RequestGroup.h
  7117. * src/download_helper.cc
  7118. * src/download_helper.h
  7119. * src/main.cc
  7120. * test/DownloadHelperTest.cc
  7121. * test/Makefile.am
  7122. * test/input_uris.txt
  7123. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7124. Quickly terminate commands when ctrl-c is pressed.
  7125. * src/DownloadEngine.cc
  7126. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7127. Quickly terminate idle commands when download finished.
  7128. * src/AbstractCommand.cc
  7129. * src/DownloadCommand.cc
  7130. * src/DownloadEngine.cc
  7131. * src/DownloadEngine.h
  7132. * src/SleepCommand.cc
  7133. * src/SleepCommand.h
  7134. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7135. Added the ability to specify output filename and directory in input
  7136. file.
  7137. Additional parameters are added in the following line of URIs
  7138. with proceeding white space(s), 1 parameter in 1 line.
  7139. The parameter names are the same with the command-line option name
  7140. without proceeding "--". Not all the options are available here:
  7141. at the moment, 'dir' and 'out' options are avialable.
  7142. Please note that out option has no effect against Metalink or BitTorrent
  7143. downloads.
  7144. Example input file:
  7145. http://host/foo-1.1.tar.bz2
  7146. out=foo.tar.bz2
  7147. dir=/tmp/downloads
  7148. http://host/thundermonkey-2.0.tar.bz2
  7149. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7150. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7151. thundermonkey-2.0.tar.bz2 is saved as
  7152. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7153. * src/BtPostDownloadHandler.cc
  7154. * src/Metalink2RequestGroup.cc
  7155. * src/Metalink2RequestGroup.h
  7156. * src/MetalinkPostDownloadHandler.cc
  7157. * src/UriListParser.cc
  7158. * src/UriListParser.h
  7159. * src/main.cc
  7160. * test/Metalink2RequestGroupTest.cc
  7161. * test/UriListParserTest.cc
  7162. * test/filelist1.txt
  7163. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7164. Fixed error when SSL library is not found.
  7165. * configure.ac
  7166. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7167. Cross referenced among -s, -C and -j options.
  7168. Updated usage of -C and -s options.
  7169. * src/usage_text.h
  7170. * doc/aria2c.1.txt
  7171. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7172. Fixed bad cast in 32bit platforms.
  7173. * test/DefaultPieceStorageTest.cc
  7174. (DefaultPieceStorageTest::testGetCompletedLength)
  7175. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7176. Fixed unit test fails on 32bit platforms.
  7177. * test/CookieParserTest.cc
  7178. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7179. Show an average download speed in Download results.
  7180. * src/BtFileAllocationEntry.cc
  7181. * src/DefaultPieceStorage.cc
  7182. * src/DownloadContext.cc
  7183. * src/DownloadContext.h
  7184. * src/DownloadResult.h
  7185. * src/RequestGroup.cc
  7186. * src/RequestGroupMan.cc
  7187. * src/StreamFileAllocationEntry.cc
  7188. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7189. Fixed the bug that metalink file is not processed if Content-Type
  7190. field has a paramter.
  7191. * src/HttpResponse.cc
  7192. * src/HttpResponse.h
  7193. * test/HttpResponseTest.cc
  7194. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7195. Removed unused code.
  7196. * src/DefaultBtAnnounce.cc
  7197. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7198. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7199. the value larger than DefaultPieceStorage::getTotalLength() when
  7200. in flight pieces are involved.
  7201. * src/DefaultPieceStorage.cc
  7202. * test/DefaultPieceStorageTest.cc
  7203. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7204. Bump up version number to 1.0.0a.
  7205. * configure.ac
  7206. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7207. Updated configure.ac
  7208. * configure.ac
  7209. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7210. Added usege for proxy.
  7211. * doc/aria2c.1.txt
  7212. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7213. Added usage for --ca-certificate, --certificate, --private-key and
  7214. --check-certificate options.
  7215. * doc/aria2c.1.txt
  7216. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7217. Updated man page
  7218. * doc/aria2c.1.txt
  7219. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7220. Added --no-proxy option. It receives comman separated hostname or
  7221. domains to which proxy should not be used.
  7222. aria2 honors the environment variable no_proxy to override no-proxy
  7223. value in configuration file. The user can override the environment
  7224. variable no_proxy with --no-proxy command-line option.
  7225. * src/AbstractCommand.cc
  7226. * src/OptionHandlerFactory.cc
  7227. * src/option_processing.cc
  7228. * src/prefs.cc
  7229. * src/prefs.h
  7230. * src/usage_text.h
  7231. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7232. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7233. The CA certificates are specified in --ca-certificate option.
  7234. By default, the verification is disabled. Use --check-certificate
  7235. option to enable it.
  7236. * src/HttpRequestCommand.cc
  7237. * src/LibgnutlsTLSContext.cc
  7238. * src/LibgnutlsTLSContext.h
  7239. * src/LibsslTLSContext.cc
  7240. * src/LibsslTLSContext.h
  7241. * src/MultiUrlRequestInfo.cc
  7242. * src/OptionHandlerFactory.cc
  7243. * src/SocketCore.cc
  7244. * src/SocketCore.h
  7245. * src/a2functional.h
  7246. * src/message.h
  7247. * src/option_processing.cc
  7248. * src/prefs.cc
  7249. * src/prefs.h
  7250. * src/usage_text.h
  7251. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7252. Added client certificate authentication for SSL/TLS.
  7253. Currently a private key must be decrypted for use with aria2.
  7254. If a user accidentally gives encrypted file to aria2 then following
  7255. thing happens:
  7256. If encrypted private key is given to aria2, it behaves differently
  7257. depending on the ssl library it uses. If aria2 built with openssl then
  7258. openssl prompts the user for password. If aria2 build with gnutls then
  7259. aria2 exists with error at start up.
  7260. * src/DownloadEngineFactory.cc
  7261. * src/MultiUrlRequestInfo.cc
  7262. * src/OptionHandlerFactory.cc
  7263. * src/option_processing.cc
  7264. * src/prefs.cc
  7265. * src/prefs.h
  7266. * src/usage_text.h
  7267. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7268. Introduced TLSContext that holds TLS related data that can be shared
  7269. with multiple SSL connections.
  7270. * src/DownloadEngineFactory.cc
  7271. * src/LibgnutlsTLSContext.cc
  7272. * src/LibgnutlsTLSContext.h
  7273. * src/LibsslTLSContext.cc
  7274. * src/LibsslTLSContext.h
  7275. * src/Makefile.am
  7276. * src/SocketCore.cc
  7277. * src/SocketCore.h
  7278. * src/TLSContext.h
  7279. * src/message.h
  7280. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7281. Fixed the bug that the DiskWriter of the first FileEntry whose
  7282. `needsFileAllocation' property is false is not created
  7283. even if it shares a piece with next FileEntry which `requested' property
  7284. is true.
  7285. Fixed the bug that zero-length file is not created if pre file
  7286. allocation is not done.
  7287. * src/MultiDiskAdaptor.cc
  7288. * src/MultiDiskAdaptor.h
  7289. * test/MultiDiskAdaptorTest.cc
  7290. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Added the ability to pool proxy connection.
  7292. The conneciton in FTP with proxy-method=GET is not pooled.
  7293. Proxy-Connection header will not be sent when sending CONNECT method.
  7294. * src/DownloadEngine.cc
  7295. * src/DownloadEngine.h
  7296. * src/FtpFinishDownloadCommand.cc
  7297. * src/FtpInitiateConnectionCommand.cc
  7298. * src/FtpNegotiationCommand.cc
  7299. * src/HttpDownloadCommand.cc
  7300. * src/HttpInitiateConnectionCommand.cc
  7301. * src/HttpRequest.cc
  7302. * src/HttpRequest.h
  7303. * src/HttpResponse.cc
  7304. * src/HttpSkipResponseCommand.cc
  7305. * test/HttpRequestTest.cc
  7306. * test/HttpResponseTest.cc
  7307. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Handle date before epoch.
  7309. To create *bad* Time object, call Time::null().
  7310. * src/CookieParser.cc
  7311. * src/FtpConnection.cc
  7312. * src/FtpConnection.h
  7313. * src/FtpNegotiationCommand.cc
  7314. * src/RequestGroup.cc
  7315. * src/TimeA2.cc
  7316. * src/TimeA2.h
  7317. * test/CookieParserTest.cc
  7318. * test/FtpConnectionTest.cc
  7319. * test/TimeTest.cc
  7320. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Added support for following envrionment variables: http_proxy,
  7322. https_proxy, ftp_proxy and all_proxy.
  7323. Each variable is equivalent to the aria2 option whose name is the
  7324. variable name with '_' replaced with '-'.
  7325. They overrides options specified in aria2.conf file.
  7326. The envrionment variables can be overrode using command-line option.
  7327. * src/option_processing.cc
  7328. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Renamed --http-proxy-method as --proxy-method.
  7330. * src/AbstractCommand.cc
  7331. * src/FtpInitiateConnectionCommand.cc
  7332. * src/HttpInitiateConnectionCommand.cc
  7333. * src/OptionHandlerFactory.cc
  7334. * src/option_processing.cc
  7335. * src/prefs.cc
  7336. * src/prefs.h
  7337. * src/usage_text.h
  7338. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7340. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7341. Above 3 options and --http-proxy option can handle proxy in URL format
  7342. like: http://user:passwd@host:port.
  7343. If a proxy requires user/password, they must be specified in a URL.
  7344. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7345. instead.
  7346. * src/AbstractCommand.cc
  7347. * src/AbstractCommand.h
  7348. * src/AbstractProxyRequestCommand.cc
  7349. * src/AbstractProxyRequestCommand.h
  7350. * src/AuthConfigFactory.cc
  7351. * src/AuthConfigFactory.h
  7352. * src/FtpFinishDownloadCommand.cc
  7353. * src/FtpInitiateConnectionCommand.cc
  7354. * src/FtpInitiateConnectionCommand.h
  7355. * src/FtpNegotiationCommand.cc
  7356. * src/FtpTunnelRequestCommand.cc
  7357. * src/FtpTunnelRequestCommand.h
  7358. * src/HttpDownloadCommand.cc
  7359. * src/HttpInitiateConnectionCommand.cc
  7360. * src/HttpInitiateConnectionCommand.h
  7361. * src/HttpProxyRequestCommand.cc
  7362. * src/HttpProxyRequestCommand.h
  7363. * src/HttpRequest.cc
  7364. * src/HttpRequest.h
  7365. * src/HttpRequestCommand.cc
  7366. * src/HttpRequestCommand.h
  7367. * src/HttpSkipResponseCommand.cc
  7368. * src/InitiateConnectionCommand.cc
  7369. * src/InitiateConnectionCommand.h
  7370. * src/OptionHandlerFactory.cc
  7371. * src/OptionHandlerImpl.h
  7372. * src/Request.cc
  7373. * src/option_processing.cc
  7374. * src/prefs.cc
  7375. * src/prefs.h
  7376. * src/usage_text.h
  7377. * test/AuthConfigFactoryTest.cc
  7378. * test/HttpRequestTest.cc
  7379. * test/OptionHandlerTest.cc
  7380. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Execute choking algorithm when unchoked and interested peer is
  7382. disconected.
  7383. * src/DefaultPeerStorage.cc
  7384. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Added testcase for BtNotInterestedMessage from unchoked peer.
  7386. * test/BtNotInterestedMessageTest.cc
  7387. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Execute choking algorithm when BtInterestedMessage arrives from
  7389. unchoked peer.
  7390. * src/BtInterestedMessage.cc
  7391. * src/BtInterestedMessage.h
  7392. * src/DefaultBtMessageFactory.cc
  7393. * test/BtInterestedMessageTest.cc
  7394. * test/MockPeerStorage.h
  7395. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. AuthConfigFactory is now part of DownloadEngine.
  7397. * src/AbstractProxyRequestCommand.cc
  7398. * src/AuthConfigFactory.h
  7399. * src/DownloadEngine.cc
  7400. * src/DownloadEngine.h
  7401. * src/FtpConnection.cc
  7402. * src/FtpConnection.h
  7403. * src/FtpNegotiationCommand.cc
  7404. * src/HttpConnection.cc
  7405. * src/HttpRequest.cc
  7406. * src/HttpRequest.h
  7407. * src/HttpRequestCommand.cc
  7408. * src/HttpResponse.cc
  7409. * src/HttpResponseCommand.cc
  7410. * src/HttpSkipResponseCommand.cc
  7411. * src/MultiUrlRequestInfo.cc
  7412. * src/main.cc
  7413. * test/FtpConnectionTest.cc
  7414. * test/HttpRequestTest.cc
  7415. * test/HttpResponseTest.cc
  7416. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Corrected catched exception type.
  7418. * src/ServerStatMan.cc
  7419. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. DNSCache is now part of DownloadEngine.
  7421. * src/DNSCache.h
  7422. * src/DownloadEngine.cc
  7423. * src/DownloadEngine.h
  7424. * src/InitiateConnectionCommand.cc
  7425. * src/MultiUrlRequestInfo.cc
  7426. * test/Makefile.am
  7427. * test/Makefile.in
  7428. * test/SimpleDNSCacheTest.cc
  7429. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7431. DownloadEngine.
  7432. * src/ActivePeerConnectionCommand.cc
  7433. * src/BtSetup.cc
  7434. * src/CUIDCounter.h
  7435. * src/DHTSetup.cc
  7436. * src/DownloadCommand.cc
  7437. * src/DownloadEngine.cc
  7438. * src/DownloadEngine.h
  7439. * src/DownloadEngineFactory.cc
  7440. * src/FileAllocationDispatcherCommand.cc
  7441. * src/InitiatorMSEHandshakeCommand.cc
  7442. * src/PeerInitiateConnectionCommand.cc
  7443. * src/PeerInteractionCommand.cc
  7444. * src/PeerListenCommand.cc
  7445. * src/RequestGroup.cc
  7446. * src/StreamFileAllocationEntry.cc
  7447. * src/TrackerWatcherCommand.cc
  7448. * src/main.cc
  7449. * test/RequestGroupManTest.cc
  7450. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Implemented commented code in BtSeederStateChoke
  7452. * src/BtSeederStateChoke.cc
  7453. * src/Peer.cc
  7454. * src/Peer.h
  7455. * src/PeerInteractionCommand.cc
  7456. * src/PeerSessionResource.cc
  7457. * src/PeerSessionResource.h
  7458. * test/MockBtMessageDispatcher.h
  7459. * test/PeerSessionResourceTest.cc
  7460. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7461. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7462. its object.
  7463. * src/AbstractBtMessage.cc
  7464. * src/ActivePeerConnectionCommand.cc
  7465. * src/ActivePeerConnectionCommand.h
  7466. * src/BtContextAwareCommand.cc
  7467. * src/BtContextAwareCommand.h
  7468. * src/BtExtendedMessage.cc
  7469. * src/BtExtendedMessage.h
  7470. * src/BtInterestedMessage.cc
  7471. * src/BtInterestedMessage.h
  7472. * src/BtNotInterestedMessage.cc
  7473. * src/BtNotInterestedMessage.h
  7474. * src/BtRegistry.cc
  7475. * src/BtRegistry.h
  7476. * src/BtSeederStateChoke.cc
  7477. * src/BtSetup.cc
  7478. * src/DHTGetPeersCommand.cc
  7479. * src/DHTGetPeersCommand.h
  7480. * src/DHTPeerAnnounceEntry.cc
  7481. * src/DHTPeerAnnounceEntry.h
  7482. * src/DHTPeerAnnounceStorage.cc
  7483. * src/DHTPeerAnnounceStorage.h
  7484. * src/DHTPeerLookupTask.cc
  7485. * src/DHTPeerLookupTask.h
  7486. * src/DHTSetup.cc
  7487. * src/DHTSetup.h
  7488. * src/DHTTaskFactory.h
  7489. * src/DHTTaskFactoryImpl.cc
  7490. * src/DHTTaskFactoryImpl.h
  7491. * src/DefaultBtAnnounce.cc
  7492. * src/DefaultBtInteractive.cc
  7493. * src/DefaultBtInteractive.h
  7494. * src/DefaultBtMessageDispatcher.cc
  7495. * src/DefaultBtMessageDispatcher.h
  7496. * src/DefaultBtMessageFactory.cc
  7497. * src/DefaultBtMessageFactory.h
  7498. * src/DefaultBtMessageReceiver.cc
  7499. * src/DefaultBtProgressInfoFile.cc
  7500. * src/DefaultBtProgressInfoFile.h
  7501. * src/DefaultBtRequestFactory.cc
  7502. * src/DefaultBtRequestFactory.h
  7503. * src/DefaultExtensionMessageFactory.cc
  7504. * src/DefaultExtensionMessageFactory.h
  7505. * src/DefaultPeerStorage.cc
  7506. * src/DefaultPeerStorage.h
  7507. * src/DownloadEngine.cc
  7508. * src/DownloadEngine.h
  7509. * src/InitiatorMSEHandshakeCommand.cc
  7510. * src/InitiatorMSEHandshakeCommand.h
  7511. * src/MSEHandshake.cc
  7512. * src/MSEHandshake.h
  7513. * src/Makefile.am
  7514. * src/Makefile.in
  7515. * src/PeerChokeCommand.cc
  7516. * src/PeerChokeCommand.h
  7517. * src/PeerInitiateConnectionCommand.cc
  7518. * src/PeerInitiateConnectionCommand.h
  7519. * src/PeerInteractionCommand.cc
  7520. * src/PeerInteractionCommand.h
  7521. * src/PeerObject.h
  7522. * src/PeerReceiveHandshakeCommand.cc
  7523. * src/PeerReceiveHandshakeCommand.h
  7524. * src/ReceiverMSEHandshakeCommand.cc
  7525. * src/RequestGroup.cc
  7526. * src/RequestGroup.h
  7527. * src/RequestGroupMan.cc
  7528. * src/RequestGroupMan.h
  7529. * src/SeedCheckCommand.cc
  7530. * src/SeedCheckCommand.h
  7531. * src/ShareRatioSeedCriteria.h
  7532. * src/SimpleBtMessage.cc
  7533. * src/TrackerWatcherCommand.cc
  7534. * src/TrackerWatcherCommand.h
  7535. * src/UTPexExtensionMessage.cc
  7536. * src/UTPexExtensionMessage.h
  7537. * test/BtCancelMessageTest.cc
  7538. * test/BtChokeMessageTest.cc
  7539. * test/BtExtendedMessageTest.cc
  7540. * test/BtInterestedMessageTest.cc
  7541. * test/BtNotInterestedMessageTest.cc
  7542. * test/BtPieceMessageTest.cc
  7543. * test/BtPortMessageTest.cc
  7544. * test/BtRegistryTest.cc
  7545. * test/BtRejectMessageTest.cc
  7546. * test/BtRequestMessageTest.cc
  7547. * test/DHTPeerAnnounceEntryTest.cc
  7548. * test/DHTPeerAnnounceStorageTest.cc
  7549. * test/DefaultBtMessageDispatcherTest.cc
  7550. * test/DefaultBtMessageFactoryTest.cc
  7551. * test/DefaultBtProgressInfoFileTest.cc
  7552. * test/DefaultBtRequestFactoryTest.cc
  7553. * test/DefaultExtensionMessageFactoryTest.cc
  7554. * test/MSEHandshakeTest.cc
  7555. * test/MockDHTTaskFactory.h
  7556. * test/ShareRatioSeedCriteriaTest.cc
  7557. * test/UTPexExtensionMessageTest.cc
  7558. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Fixed compiler warning.
  7560. * test/UtilTest.cc
  7561. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Treat Cookie object as session cookie if expiry = 0 is given.
  7563. With this change, you can specify session scoped cookies in an external
  7564. file setting expiry value to 0.
  7565. * src/Cookie.cc
  7566. * src/Cookie.h
  7567. * test/CookieParserTest.cc
  7568. * test/CookieStorageTest.cc
  7569. * test/CookieTest.cc
  7570. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Changed signature of DHTMessageFactory::createResponseMessage().
  7572. Removed unused validateIDMatch.
  7573. * src/DHTMessageFactory.h
  7574. * src/DHTMessageFactoryImpl.cc
  7575. * src/DHTMessageFactoryImpl.h
  7576. * src/DHTMessageTracker.cc
  7577. * test/DHTMessageFactoryImplTest.cc
  7578. * test/MockDHTMessageFactory.h
  7579. Dropped DHT message coming from same ID of localhost.
  7580. * src/DHTMessageReceiver.cc
  7581. Rejected adding node whose ID is the same as localhost's.
  7582. * src/DHTRoutingTable.cc
  7583. * test/BtPortMessageTest.cc
  7584. * test/DHTRoutingTableTest.cc
  7585. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. Pool connection when redirection occurs with Content-Length = 0.
  7587. * src/HttpSkipResponseCommand.cc
  7588. * src/HttpSkipResponseCommand.h
  7589. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Fixed the bug that causes time out when redirection occurs with
  7591. content-length 0.
  7592. * src/HttpResponseCommand.cc
  7593. * src/HttpSkipResponseCommand.cc
  7594. * src/HttpSkipResponseCommand.h
  7595. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Now each status legends is shown only when it appears in Download
  7597. Result. If Download Result has no item, then status legend will not
  7598. be printed.
  7599. * src/RequestGroupMan.cc
  7600. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. Removed duplicate creation of OptionHandlers.
  7602. * src/option_processing.cc
  7603. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Fixed the bug that causes segmentation fault when accessing files which
  7605. don't exist or are not included in --select-file option while
  7606. validating chunk checksum.
  7607. * src/MultiDiskAdaptor.cc
  7608. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Fixed compiler warning.
  7610. * test/UtilTest.cc
  7611. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7613. * src/IteratableChecksumValidator.cc
  7614. * src/IteratableChunkChecksumValidator.cc
  7615. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. * Release 0.16.2
  7617. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Added Serbian translation. Updated Ukrainian translation.
  7619. Thanks to all translators.
  7620. * po/sr.po
  7621. * po/uk.po
  7622. * po/LINGUAS
  7623. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Bump up version number to 0.16.2
  7625. * configure.ac
  7626. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Added length equality test to operator== to drop a piece message
  7628. whose length does not match to the requested one.
  7629. * src/RequestSlot.cc
  7630. * test/DefaultBtMessageDispatcherTest.cc
  7631. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7633. recieved.
  7634. In this fix, if a request larger than 16KiB length is received, aria2
  7635. disconnects the peer.
  7636. * src/BtConstants.h
  7637. * src/PeerMessageUtil.cc
  7638. * src/PeerMessageUtil.h
  7639. * test/BtRequestMessageTest.cc
  7640. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. * Release 0.16.1
  7642. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7644. * doc/aria2c.1.txt
  7645. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7647. Updated French, Simplified Chinese and Japanese translations.
  7648. Thanks to all translators.
  7649. en@quot and en@boldquot are also added.
  7650. * po/LINGUAS
  7651. * po/fr.po
  7652. * po/ja.po
  7653. * po/uk.po
  7654. * po/vi.po
  7655. * po/zh_CN.po
  7656. * po/zh_TW.po
  7657. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Bump up version number to 0.16.1.
  7659. * configure.ac
  7660. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Updated README.
  7662. * README
  7663. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7665. not to replace '--' with em dash character.
  7666. * doc/aria2c.1.txt
  7667. * doc/makeman
  7668. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7670. every SEC seconds.
  7671. * src/DownloadEngineFactory.cc
  7672. * src/OptionHandlerFactory.cc
  7673. * src/option_processing.cc
  7674. * src/usage_text.h
  7675. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Fixed compile warning on linux-amd64
  7677. * src/FtpConnection.cc
  7678. * src/IteratableChunkChecksumValidator.cc
  7679. * src/MultiDiskAdaptor.cc
  7680. Fixed the bug that unit test fails on linux-amd64
  7681. * test/UtilTest.cc
  7682. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Added --dht-file-path option to change the path to dht.dat, which is a
  7684. serialized DHT routing table.
  7685. * src/OptionHandlerFactory.cc
  7686. * src/option_processing.cc
  7687. * src/usage_text.h
  7688. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Fixed possible underflow.
  7690. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7691. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7692. Fixed the bug that last character in URI is not encoded.
  7693. * src/Request.cc
  7694. * test/RequestTest.cc
  7695. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Fixed the bug that referer header field contains fragment.
  7697. Now Request class removes fragment part of URI and encodes it
  7698. in Request::setUri() and setReferer().
  7699. * src/Request.h
  7700. * src/Request.cc
  7701. * test/RequestTest.cc
  7702. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. Added missing m4 macros.
  7704. * m4/cppunit.m4
  7705. * m4/libgcrypt.m4
  7706. * m4/libgnutls-extra.m4
  7707. * m4/libgnutls.m4
  7708. * m4/libxml2.m4
  7709. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Fixed compile error with gcc-4.4(snapshot)
  7711. * src/File.cc
  7712. * src/FtpConnection.cc
  7713. * src/OptionHandlerImpl.h
  7714. * src/Util.cc
  7715. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Removed assert()
  7717. * src/SocketBuffer.cc (SocketBuffer::send)
  7718. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Changed the type of _numNewConnection to unsigned int.
  7720. * src/ActivePeerConnectionCommand.cc
  7721. * src/ActivePeerConnectionCommand.h
  7722. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. * Release 0.16.0
  7724. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Updated doc
  7726. * README
  7727. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7729. translations. Thanks to all translators.
  7730. * po/bg.po
  7731. * po/de.po
  7732. * po/fr.po
  7733. * po/ja.po
  7734. * po/zh_CN.po
  7735. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Bump up version number to 0.16.0.
  7737. * configure.ac
  7738. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7740. int32_t.
  7741. Changed the type of count to int32_t.
  7742. * src/Metalink2RequestGroup.cc
  7743. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. Added test for Time::elapsed(time_t).
  7745. * test/TimeTest.cc
  7746. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7748. Util::difftv() should be used instead.
  7749. * src/TimeA2.cc
  7750. * src/TimeA2.h
  7751. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Made socket for dht connections non-blocking
  7753. * src/DHTAbstractMessage.cc
  7754. * src/DHTAbstractMessage.h
  7755. * src/DHTConnection.h
  7756. * src/DHTConnectionImpl.cc
  7757. * src/DHTConnectionImpl.h
  7758. * src/DHTMessage.h
  7759. * src/DHTMessageDispatcherImpl.cc
  7760. * src/DHTMessageDispatcherImpl.h
  7761. * src/DHTUnknownMessage.cc
  7762. * src/DHTUnknownMessage.h
  7763. * src/SocketCore.cc
  7764. * src/SocketCore.h
  7765. * test/MockDHTMessage.h
  7766. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Changed the type of offset to int.
  7768. * src/ParameterizedStringParser.cc
  7769. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Made getAsInt() return int32_t
  7771. * src/Option.h
  7772. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7774. build.
  7775. * configure.ac
  7776. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Use sqlite3_open if sqlite3_open_v2 is not available.
  7778. * src/Sqlite3MozCookieParser.cc
  7779. * src/Sqlite3MozCookieParser.h
  7780. * m4/sqlite3.m4
  7781. * test/Sqlite3MozCookieParserTest.cc
  7782. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7784. * src/BtPieceMessage.cc
  7785. * src/DHTPeerAnnounceStorage.cc
  7786. * src/DefaultPieceStorage.cc
  7787. * src/DownloadCommand.cc
  7788. * src/DownloadEngine.cc
  7789. * src/FtpConnection.cc
  7790. * src/PeerConnection.cc
  7791. * src/PeerMessageUtil.cc
  7792. * src/RequestGroup.cc
  7793. * src/RequestGroupMan.cc
  7794. * src/SimpleBtMessage.cc
  7795. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7797. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7798. * src/AbstractDiskWriter.cc
  7799. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Don't set Request::supportsPersistentConnection() in HttpConnection
  7801. since this code is also used in AbstractProxyResponseCommand.
  7802. Moved those code to HttpResponse.
  7803. * src/HttpResponse.cc
  7804. * src/HttpResponse.h
  7805. * src/HttpConnection.cc
  7806. * src/HttpConnection.h
  7807. * src/HttpResponseCommand.cc
  7808. * test/HttpResponseTest.cc
  7809. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7811. The configuration is minimum: no torrent, no metalink, so there may be
  7812. other compile error on their code.
  7813. * src/a2netcompat.h
  7814. * src/File.cc
  7815. * src/File.h
  7816. * src/SocketCore.cc
  7817. * src/SocketCore.h
  7818. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Made a socket of incoming peer non-blocking.
  7820. * src/PeerListenCommand.cc
  7821. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7823. whole message data is not sent in one send() call.
  7824. * src/BtPieceMessage.cc
  7825. * src/BtPieceMessage.h
  7826. * src/PeerConnection.cc
  7827. * src/PeerConnection.h
  7828. * src/SimpleBtMessage.cc
  7829. * src/SimpleBtMessage.h
  7830. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Fixed the bug that aria2 downloads faster than max-download-limit when
  7832. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7833. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7834. , instead of sum of them.
  7835. * src/ActivePeerConnectionCommand.cc
  7836. * src/DefaultBtInteractive.cc
  7837. * src/DownloadCommand.cc
  7838. * src/PeerInteractionCommand.cc
  7839. * src/PeerReceiveHandshakeCommand.cc
  7840. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Fixed the bug that HTTPS download fails.
  7842. * src/AbstractCommand.cc
  7843. * src/AbstractCommand.h
  7844. * src/DownloadCommand.cc
  7845. * src/FtpConnection.cc
  7846. * src/HttpConnection.cc
  7847. * src/HttpRequestCommand.cc
  7848. * src/HttpResponseCommand.cc
  7849. * src/HttpSkipResponseCommand.cc
  7850. * src/MSEHandshake.cc
  7851. * src/PeerConnection.cc
  7852. * src/SocketCore.cc
  7853. * src/SocketCore.h
  7854. Fixed the bug that aria2 doesn't download whole content body and cannot
  7855. reuse connection if chunked transfer encoding and gzip content encoding
  7856. are set.
  7857. * src/DownloadCommand.cc
  7858. * src/HttpSkipResponseCommand.cc
  7859. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Updated man page.
  7861. * doc/aria2c.1.txt
  7862. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. When error occurred while aria2 was parsing an .aria2.conf file, print
  7864. the usage of the option that caused error.
  7865. * src/option_processing.cc
  7866. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Fixed compile error on OptionHandlerException
  7868. * src/Makefile.am
  7869. * src/OptionHandlerException.cc
  7870. * src/OptionHandlerException.h
  7871. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Moved message of the error to OptionHandlerException.h
  7873. * src/NameMatchOptionHandler.h
  7874. * src/OptionHandlerException.h
  7875. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. When error occurs while aria2 is parsing an command-line option, print
  7877. the usage of the option.
  7878. * src/Makefile.am
  7879. * src/NameMatchOptionHandler.h
  7880. * src/OptionHandlerException.h
  7881. * src/option_processing.cc
  7882. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7883. Reverted previous change.
  7884. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7885. username is not in URI.
  7886. * src/HttpRequest.cc
  7887. * src/Request.cc
  7888. * test/HttpRequestTest.cc
  7889. * test/RequestTest.cc
  7890. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Now colon is required for username and password in FTP URL, like:
  7892. ftp://username:password@host.
  7893. If colon is not there, aria2 don't parse it as a username. For example,
  7894. aria2 don't retrieve username from ftp://username@host.
  7895. This fix was made in order to login FTP server via non-transparent ftp
  7896. proxy.
  7897. * src/Request.cc
  7898. * test/RequestTest.cc
  7899. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Use netrc for HTTP.
  7901. Now FTP user/password is sent in Authorization header when
  7902. --ftp-via-http-proxy=get is given.
  7903. * src/AuthConfigFactory.cc
  7904. * src/HttpRequest.cc
  7905. * src/HttpRequest.h
  7906. * src/NetrcAuthResolver.cc
  7907. * src/NetrcAuthResolver.h
  7908. * src/OptionHandlerFactory.cc
  7909. * src/option_processing.cc
  7910. * src/prefs.cc
  7911. * src/prefs.h
  7912. * test/AuthConfigFactoryTest.cc
  7913. * test/HttpRequestTest.cc
  7914. * test/NetrcAuthResolverTest.cc
  7915. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Issue PWD command first and get working directory and use it as a prefix
  7917. for CWD command.
  7918. * src/DownloadEngine.cc
  7919. * src/DownloadEngine.h
  7920. * src/FtpConnection.cc
  7921. * src/FtpConnection.h
  7922. * src/FtpFinishDownloadCommand.cc
  7923. * src/FtpInitiateConnectionCommand.cc
  7924. * src/FtpNegotiationCommand.cc
  7925. * src/FtpNegotiationCommand.h
  7926. * test/FtpConnectionTest.cc
  7927. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Removed default user/pass for FTP user/pass, since it should not have
  7929. precedence over netrc configuration by default.
  7930. * src/OptionHandlerFactory.cc
  7931. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Added debug log for socket event.
  7933. * src/AbstractCommand.cc
  7934. * src/PeerAbstractCommand.cc
  7935. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. Log microseconds.
  7937. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7938. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7939. Replaced HelpItem.cc with OptionHandler.cc.
  7940. * po/POTFILES.in
  7941. Updated po files with 'make update-po'
  7942. * po/aria2c.pot
  7943. * po/*.po
  7944. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Removed possible values from the text.
  7946. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7947. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Removed unused preferences:
  7949. PREF_NO_PREALLOCATION
  7950. PREF_STDOUT_LOG
  7951. PREF_TRACKER_MAX_TRIES
  7952. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7953. PREF_MIN_SEGMENT_SIZE
  7954. * src/option_processing.cc
  7955. * src/prefs.cc
  7956. * src/prefs.h
  7957. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7958. Integrated HelpItem into OptionParser to ease the workload for adding
  7959. new options. Removed default value from usage text.
  7960. * src/HelpItem.cc: Removed.
  7961. * src/HelpItem.h: Removed.
  7962. * src/HelpItemFactory.cc: Removed.
  7963. * src/HelpItemFactory.h: Removed.
  7964. * src/Makefile.am
  7965. * src/Makefile.in
  7966. * src/NameMatchOptionHandler.h
  7967. * src/OptionHandler.cc
  7968. * src/OptionHandler.h
  7969. * src/OptionHandlerFactory.cc
  7970. * src/OptionHandlerImpl.h
  7971. * src/OptionParser.cc
  7972. * src/OptionParser.h
  7973. * src/TagContainer.cc: Removed.
  7974. * src/TagContainer.h: Removed.
  7975. * src/TaggedItem.cc: Removed.
  7976. * src/TaggedItem.h: Removed.
  7977. * src/main.cc
  7978. * src/option_processing.cc
  7979. * src/usage_text.h
  7980. * src/version_usage.cc
  7981. * test/HelpItemTest.cc: Removed.
  7982. * test/Makefile.am
  7983. * test/Makefile.in
  7984. * test/OptionHandlerTest.cc
  7985. * test/OptionParserTest.cc
  7986. * test/TagContainerTest.cc: Removed.
  7987. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. Moved `TransferStat stat = ...' to inside the `if' clause.
  7989. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7990. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7991. Fixed the bug that a block in a piece is requested when same block is
  7992. already requested to the same peer in end game mode.
  7993. * src/BtRequestFactory.h
  7994. * src/DefaultBtInteractive.cc
  7995. * src/DefaultBtRequestFactory.cc
  7996. * src/DefaultBtRequestFactory.h
  7997. * src/DefaultPieceStorage.cc
  7998. * src/DefaultPieceStorage.h
  7999. * src/PieceStorage.h
  8000. * src/UnknownLengthPieceStorage.cc
  8001. * src/UnknownLengthPieceStorage.h
  8002. * test/DefaultBtRequestFactoryTest.cc
  8003. * test/DefaultPieceStorageTest.cc
  8004. * test/MockBtRequestFactory.h
  8005. * test/MockPieceStorage.h
  8006. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Removed _uploadLength and _downloadLength from PeerSessionResource
  8008. and use PeerStat::_sessionUploadLength and
  8009. PeerStat::_sessionDownloadLength.
  8010. * src/PeerSessionResource.cc
  8011. * src/PeerSessionResource.h
  8012. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. Fixed the bug that prefixLength of split bucket which doesn't include
  8014. local node ID is incremented.
  8015. * src/DHTBucket.cc
  8016. * src/DHTBucket.h
  8017. * test/DHTBucketTest.cc
  8018. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8019. Added cookies.sqlite to EXTRA_DIST
  8020. * test/Makefile.am
  8021. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Added Turkish translation. Updated French, German, Russian and
  8023. Simplified Chinese translations. Thanks to all translators.
  8024. * po/LINGUAS
  8025. * po/de.po
  8026. * po/fr.po
  8027. * po/ru.po
  8028. * po/tr.po
  8029. * po/zh_CN.po
  8030. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8031. Added deliminating text to the beginning of the log so that one can find
  8032. where the log starts easily.
  8033. * src/main.cc
  8034. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8036. to fix compile error when async DNS is not enabled by configuration.
  8037. * src/AbstractCommand.cc
  8038. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. If establishing conneciton to a server is failed, then mark error on
  8040. its ServerStat.
  8041. Added the cause of error to log when error event occurred.
  8042. Moved message string to message.h for translation.
  8043. * src/AbstractCommand.cc
  8044. * src/AbstractCommand.h
  8045. * src/FtpNegotiationCommand.cc
  8046. * src/HttpRequestCommand.cc
  8047. * src/PeerAbstractCommand.cc
  8048. * src/message.h
  8049. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Added the function to get error message from socket.
  8051. * src/SocketCore.cc
  8052. * src/SocketCore.h
  8053. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8055. * src/RequestGroupMan.cc
  8056. * src/RequestGroupMan.h
  8057. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. If error event is received in epoll, then abort download immediately.
  8059. * src/AbstractCommand.cc
  8060. * src/Command.cc
  8061. * src/Command.h
  8062. * src/DownloadEngine.cc
  8063. * src/PeerAbstractCommand.cc
  8064. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Added usage message for --uri-selector, --server-stat-of,
  8066. --server-stat-in, --server-stat-timeout options.
  8067. * src/HelpItemFactory.cc
  8068. * src/usage_text.h
  8069. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Added upper limit of FTP response buffer. The current implementation
  8071. uses 4096bytes as a limit.
  8072. * src/FtpConnection.cc
  8073. * src/FtpConnection.h
  8074. * test/FtpConnectionTest.cc
  8075. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Use non-blocking socket for TCP communication to avoid possible
  8077. blocking due to buffer full.
  8078. * src/AbstractProxyRequestCommand.cc
  8079. * src/FtpConnection.cc
  8080. * src/FtpConnection.h
  8081. * src/FtpNegotiationCommand.cc
  8082. * src/FtpNegotiationCommand.h
  8083. * src/HttpConnection.cc
  8084. * src/HttpConnection.h
  8085. * src/HttpRequestCommand.cc
  8086. * src/InitiatorMSEHandshakeCommand.cc
  8087. * src/InitiatorMSEHandshakeCommand.h
  8088. * src/MSEHandshake.cc
  8089. * src/MSEHandshake.h
  8090. * src/Makefile.am
  8091. * src/PeerConnection.cc
  8092. * src/PeerConnection.h
  8093. * src/PeerInteractionCommand.cc
  8094. * src/PeerListenCommand.cc
  8095. * src/ReceiverMSEHandshakeCommand.cc
  8096. * src/ReceiverMSEHandshakeCommand.h
  8097. * src/SocketBuffer.cc
  8098. * src/SocketBuffer.h
  8099. * src/SocketCore.cc
  8100. * src/SocketCore.h
  8101. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Call setStatusRealtime() in constructor.
  8103. * src/RealtimeCommand.cc
  8104. * src/RealtimeCommand.h
  8105. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Call Download::setNoWait(true) to execute newly created command without
  8107. a pause.
  8108. * src/AbstractCommand.cc
  8109. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8111. found' error from HTTP/FTP server NUM times without getting single
  8112. bytes of data, then force the download to fail.
  8113. Basically aria2 tris all URIs available. So if long list of URIs are
  8114. specified in Metalink, then aria2 will take a long time to fail
  8115. eventually if all URIs are outdated. This option eases this situation
  8116. to limit the number of servers to try.
  8117. * src/FtpNegotiationCommand.cc
  8118. * src/HelpItemFactory.cc
  8119. * src/HttpResponseCommand.cc
  8120. * src/OptionHandlerFactory.cc
  8121. * src/PeerStat.h
  8122. * src/RequestGroup.cc
  8123. * src/RequestGroup.h
  8124. * src/SegmentMan.cc
  8125. * src/SegmentMan.h
  8126. * src/option_processing.cc
  8127. * src/prefs.cc
  8128. * src/prefs.h
  8129. * src/usage_text.h
  8130. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8131. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8132. response even if more than one response is in it.
  8133. * src/FtpConnection.cc
  8134. * src/FtpConnection.h
  8135. * test/FtpConnectionTest.cc
  8136. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Merged from stable-0.15
  8138. * m4/libcares.m4
  8139. Use pkg-config
  8140. * m4/sqlite3.m4
  8141. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Removed unnecessary if statement.
  8143. * src/DefaultPieceStorage.cc (initPieceStorage)
  8144. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Added --connect-timeout option to specify connect timeout in seconds.
  8146. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8147. connecting to BitTorrent peer is not controlled by this option.
  8148. * src/AbstractProxyRequestCommand.cc
  8149. * src/FtpNegotiationCommand.cc
  8150. * src/HelpItemFactory.cc
  8151. * src/HttpRequestCommand.cc
  8152. * src/OptionHandlerFactory.cc
  8153. * src/option_processing.cc
  8154. * src/prefs.cc
  8155. * src/prefs.h
  8156. * src/usage_text.h
  8157. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Added help message for -R option.
  8159. * src/HelpItemFactory.cc
  8160. * src/usage_text.h
  8161. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Added the message that the time is in local time zone.
  8163. * src/RequestGroup.cc
  8164. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Implemented the ability to get timestamp from remote FTP server using
  8166. MDTM command described in RFC3659.
  8167. * src/FtpConnection.cc
  8168. * src/FtpConnection.h
  8169. * src/FtpNegotiationCommand.cc
  8170. * src/FtpNegotiationCommand.h
  8171. * test/FtpConnectionTest.cc
  8172. * test/Makefile.am
  8173. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Implemented the ability to get timestamp from remote HTTP server and
  8175. apply it to local file. To enable this feature, --remote-time option
  8176. is added. No usage text has been written yet.
  8177. If several servers returns difference timestamp, then aria2 uses latest
  8178. one.
  8179. * src/CopyDiskAdaptor.cc
  8180. * src/CopyDiskAdaptor.h
  8181. * src/DirectDiskAdaptor.cc
  8182. * src/DirectDiskAdaptor.h
  8183. * src/DiskAdaptor.h
  8184. * src/File.cc
  8185. * src/File.h
  8186. * src/HttpHeader.cc
  8187. * src/HttpHeader.h
  8188. * src/HttpResponse.cc
  8189. * src/HttpResponse.h
  8190. * src/HttpResponseCommand.cc
  8191. * src/HttpResponseCommand.h
  8192. * src/MultiDiskAdaptor.cc
  8193. * src/MultiDiskAdaptor.h
  8194. * src/OptionHandlerFactory.cc
  8195. * src/RequestGroup.cc
  8196. * src/RequestGroup.h
  8197. * src/RequestGroupMan.cc
  8198. * src/option_processing.cc
  8199. * src/prefs.cc
  8200. * src/prefs.h
  8201. * test/CopyDiskAdaptorTest.cc
  8202. * test/FileTest.cc
  8203. * test/Makefile.am
  8204. * test/Makefile.in
  8205. * test/MultiDiskAdaptorTest.cc
  8206. * test/TestUtil.cc
  8207. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Fixed the bug that DiskWriterEntry is not created when its
  8209. FileEntry.isRequested() is false and it doesn't share a piece with
  8210. other FileEntries that are requested. This bug causes segmentation fault
  8211. in the end.
  8212. * src/MultiDiskAdaptor.cc
  8213. * src/MultiDiskAdaptor.h
  8214. * src/MultiFileAllocationIterator.cc
  8215. * test/MultiDiskAdaptorTest.cc
  8216. * test/MultiFileAllocationIteratorTest.cc
  8217. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8219. called if the number of file entries are greater than max open files.
  8220. * src/AbstractSingleDiskAdaptor.cc
  8221. * src/AbstractSingleDiskAdaptor.h
  8222. * src/DiskAdaptor.h
  8223. * src/MultiDiskAdaptor.cc
  8224. * src/MultiDiskAdaptor.h
  8225. * test/MultiDiskAdaptorTest.cc
  8226. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Added a constuctor that receives struct timeval.
  8228. Added operator<.
  8229. * src/TimeA2.cc
  8230. * src/TimeA2.h
  8231. * test/TimeTest.cc
  8232. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8234. * src/CookieParser.cc
  8235. * test/CookieParserTest.cc
  8236. * test/HttpResponseTest.cc
  8237. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Implmented the functions to parse date.
  8239. * src/TimeA2.cc
  8240. * src/TimeA2.h
  8241. * test/TimeTest.cc
  8242. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. Added "Firefox3 Cookie" feature to FeatureConfig
  8244. * src/FeatureConfig.cc
  8245. * src/FeatureConfig.h
  8246. * test/FeatureConfigTest.cc
  8247. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Bump up version number to 0.16.0b
  8249. * configure.ac
  8250. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Use pkg-config if is is available.
  8252. * m4/openssl.m4
  8253. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8255. * src/BtAnnounce.h
  8256. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. If an error occurred with a URI, remove identical URI from remaining
  8258. URI list because it is likely that same error occurred in the end and it
  8259. is waste of time.
  8260. * src/AbstractCommand.cc
  8261. * src/RequestGroup.cc
  8262. * src/RequestGroup.h
  8263. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Removed wrong comment.
  8265. * src/DefaultPeerStorage.cc
  8266. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8268. Added return value of getpid() to argument of srand() to achieve more
  8269. randomized value.
  8270. * src/SimpleRandomizer.cc
  8271. * src/SimpleRandomizer.h
  8272. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Contact tracker frequently when the number of connections are 0 and
  8274. download is not finished yet.
  8275. * src/ActivePeerConnectionCommand.cc
  8276. * src/BtAnnounce.h
  8277. * src/DefaultBtAnnounce.cc
  8278. * src/DefaultBtAnnounce.h
  8279. * test/MockBtAnnounce.h
  8280. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Moved threshold values to UTPexExtensionMessage.
  8282. * src/DefaultBtInteractive.cc
  8283. * src/Peer.cc
  8284. * src/Peer.h
  8285. * src/UTPexExtensionMessage.cc
  8286. * src/UTPexExtensionMessage.h
  8287. * test/UTPexExtensionMessageTest.cc
  8288. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Added _incoming member to Peer class and made it true if the peer
  8290. initiated connection. Don't add those peer to UTPex message.
  8291. If extended handshake is received, assign _incoming to false.
  8292. * src/DefaultBtInteractive.cc
  8293. * src/HandshakeExtensionMessage.cc
  8294. * src/Peer.cc
  8295. * src/Peer.h
  8296. * src/PeerListenCommand.cc
  8297. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8299. Encoding Decoder. Removed size threshold for turning off on the fly
  8300. inflation because resulting file may or may not be inflated depending
  8301. on the file size and I think it is not expected by users.
  8302. This change fixes segmentation fault when Metalink file contains gzipped
  8303. file and its filesize is provided.
  8304. * src/HttpResponseCommand.cc
  8305. * src/HttpResponseCommand.h
  8306. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Made Cookie immutable.
  8308. * src/Cookie.cc
  8309. * src/Cookie.h
  8310. * src/CookieParser.cc
  8311. * src/CookieParser.h
  8312. * src/CookieStorage.cc
  8313. * test/CookieParserTest.cc
  8314. * test/CookieStorageTest.cc
  8315. * test/NsCookieParserTest.cc
  8316. * test/Sqlite3MozCookieParserTest.cc
  8317. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8318. Removed CookieBox, CookieBoxFactory.
  8319. * src/CookieBox.cc
  8320. * src/CookieBox.h
  8321. * src/CookieBoxFactory.cc
  8322. * src/CookieBoxFactory.h
  8323. * src/Makefile.am
  8324. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Use CookieStorage class instead of CookieBox class.
  8326. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8327. * src/AbstractProxyRequestCommand.cc
  8328. * src/CookieStorage.cc
  8329. * src/DownloadEngine.cc
  8330. * src/DownloadEngine.h
  8331. * src/HttpConnection.cc
  8332. * src/HttpConnection.h
  8333. * src/HttpRequest.cc
  8334. * src/HttpRequest.h
  8335. * src/HttpRequestCommand.cc
  8336. * src/HttpResponse.cc
  8337. * src/HttpResponseCommand.cc
  8338. * src/HttpSkipResponseCommand.cc
  8339. * src/Makefile.am
  8340. * src/MultiUrlRequestInfo.cc
  8341. * src/Request.cc
  8342. * src/Request.h
  8343. * src/main.cc
  8344. * test/AllTest.cc
  8345. * test/CookieStorageTest.cc
  8346. * test/CookieTest.cc
  8347. * test/HttpRequestTest.cc
  8348. * test/HttpResponseTest.cc
  8349. * test/Makefile.am
  8350. * test/NsCookieParserTest.cc
  8351. * test/Sqlite3MozCookieParserTest.cc
  8352. * test/nscookietest.txt
  8353. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8354. Updated
  8355. * test/Cookies.sqlite
  8356. * test/nscookietest.txt
  8357. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. Added tests for CookieStorage::load()
  8359. * test/CookieStorageTest.cc
  8360. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Added CookieStorage class which is based on RFC2109 and manages cookies
  8362. more strictly than CookieBox and CookieBoxFactory class.
  8363. * src/CookieStorage.cc
  8364. * src/CookieStorage.h
  8365. * src/Cookie.cc
  8366. * src/Cookie.h
  8367. * test/CookieStorageTest.cc
  8368. * test/CookieTest.cc
  8369. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Fixed the bug that commands are created more than the number of pieces.
  8371. * src/RequestGroup.cc
  8372. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Fixed infinite loop bug in FTP when SIZE command failed.
  8374. * src/FtpNegotiationCommand.cc
  8375. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Removed DirectDiskAdaptorTest.h
  8377. * test/Makefile.am
  8378. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Fixed chunk checksum validation cannot detect trailing garbage data.
  8380. BUG#2074141
  8381. * src/AbstractSingleDiskAdaptor.cc
  8382. * src/AbstractSingleDiskAdaptor.h
  8383. * src/CheckIntegrityEntry.cc
  8384. * src/CheckIntegrityEntry.h
  8385. * src/DiskAdaptor.h
  8386. * src/MultiDiskAdaptor.cc
  8387. * src/MultiDiskAdaptor.h
  8388. * src/RequestGroup.cc
  8389. * test/DirectDiskAdaptorTest.cc
  8390. * test/MultiDiskAdaptorTest.cc
  8391. * test/TestUtil.cc
  8392. * test/TestUtil.h
  8393. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8394. Bump up version number of dht.dat file to 3. In version 3 format, time
  8395. is stored in 64bit, network byte order.
  8396. New build can load old format(version 2) but it saves the file in new
  8397. format. It means once you used new build, your dht.dat becomes
  8398. incompatible with older build.
  8399. * src/DHTRoutingTableDeserializer.cc
  8400. * src/DHTRoutingTableSerializer.cc
  8401. * test/DHTRoutingTableSerializerTest.cc
  8402. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8404. * test/Makefile.am
  8405. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Bump up version number of .aria2 control file to 0001.
  8407. New aria2 can still load version 0000 file but it saves the file in
  8408. version 0001 format. It means that new aria2 can resume download
  8409. started by old aria2 but the opposite is not true.
  8410. * src/DefaultBtProgressInfoFile.cc
  8411. * src/DefaultBtProgressInfoFile.h
  8412. * test/DefaultBtProgressInfoFileTest.cc
  8413. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Added ntoh64 and hton64 as inline functions.
  8415. * src/Util.cc
  8416. * test/UtilTest.cc
  8417. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Added sqlite3 depenency and Firefox3 cookie support.
  8419. * README
  8420. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. State that firefox3 cookie is supported explicitly in the usage.
  8422. * src/usage_text.h
  8423. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Externalized message.
  8425. * src/RequestGroupMan.cc
  8426. * src/message.h
  8427. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8428. Save temporary file first and rename to the destination on success.
  8429. Added test cases.
  8430. * src/RequestGroupMan.cc
  8431. * test/RequestGroupManTest.cc
  8432. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Fixed the bug that the number of connected peer is exceeding the limit
  8434. (55 by default) in seeding mode.
  8435. Multiplied 0.8 to _maxUploadSpeedLimit.
  8436. * src/ActivePeerConnectionCommand.cc
  8437. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Clear table item.
  8439. * src/Dictionary.cc
  8440. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Fixed error handling of lseek.
  8442. * src/AbstractDiskWriter.cc
  8443. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8445. style cookie file.
  8446. * src/usage_text.h
  8447. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8449. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8450. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8451. * src/Util.cc
  8452. * src/Util.h
  8453. * src/CookieParser.cc
  8454. * test/UtilTest.cc
  8455. * test/CookieParserTest.cc
  8456. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. Separate the implementation to load old mozilla format of cookie to
  8458. NsCookieParser class.
  8459. * src/CookieBoxFactory.cc
  8460. * src/CookieBoxFactory.h
  8461. * src/NsCookieParser.cc
  8462. * src/NsCookieParser.h
  8463. * test/NsCookieParserTest.cc
  8464. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Made parse() const
  8466. * src/Sqlite3MozCookieParser.cc
  8467. * src/Sqlite3MozCookieParser.h
  8468. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Added firefox3 cookie support based on the patch submitted by
  8470. tizianomueller.
  8471. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8472. this functionality.
  8473. * configure.ac
  8474. * m4/sqlite3.m4
  8475. * src/CookieBoxFactory.cc
  8476. * src/CookieBoxFactory.h
  8477. * src/Makefile.am
  8478. * src/Makefile.in
  8479. * src/Sqlite3MozCookieParser.cc
  8480. * src/Sqlite3MozCookieParser.h
  8481. * src/main.cc
  8482. * test/CookieBoxFactoryTest.cc
  8483. * test/Makefile.am
  8484. * test/Makefile.in
  8485. * test/Sqlite3MozCookieParserTest.cc
  8486. * test/badcookies.sqlite
  8487. * test/cookies.sqlite
  8488. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Added Danish and Greek translations.
  8490. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8491. Great thanks to all translators.
  8492. * po/LINGUAS
  8493. * po/el.po
  8494. * po/da.po
  8495. * po/es.po
  8496. * po/ca.po
  8497. * po/nn.po
  8498. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. Fixed man page: --follow-bittorrent should be --follow-torrent
  8500. * doc/aria2c.1.txt
  8501. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Fixed: numCommand is less than the value specified in -C option.
  8503. * src/RequestGroup.cc
  8504. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Fixed occasional assertion failure in PieceSegment.
  8506. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8507. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8508. creation of duplicate segments and one of the segment was finished then
  8509. assertion failure was caused.
  8510. * src/SegmentMan.cc
  8511. * test/SegmentManTest.cc
  8512. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Added options to load/save the server's performance/status to a file
  8514. and the timeout to drop their data.
  8515. --server-stat-of=FILE specifies the file to which performance data
  8516. is saved.
  8517. --server-stat-if=FILE specifies the file to read previously saved
  8518. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8519. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8520. TIMEOUT is specified in seconds and the default value is 24hours.
  8521. * src/MultiUrlRequestInfo.cc
  8522. * src/OptionHandlerFactory.cc
  8523. * src/RequestGroupMan.cc
  8524. * src/RequestGroupMan.h
  8525. * src/ServerStatMan.cc
  8526. * src/ServerStatMan.h
  8527. * src/option_processing.cc
  8528. * src/prefs.cc
  8529. * src/prefs.h
  8530. * test/ServerStatManTest.cc
  8531. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8533. * src/ServerStatMan.cc
  8534. * src/ServerStatMan.h
  8535. * test/ServerStatManTest.cc
  8536. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Implemented ServerStatMan::load(...) function and its test case.
  8538. * src/ServerStat.cc
  8539. * src/ServerStat.h
  8540. * src/ServerStatMan.cc
  8541. * test/ServerStatManTest.cc
  8542. * test/ServerStatTest.cc
  8543. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Use time_t instead of int32_t. Use int64_t where milli second is
  8545. expected.
  8546. * src/TimeA2.cc
  8547. * src/TimeA2.h
  8548. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Implemented ServerStatMan::save(...) function and its test case.
  8550. * src/ServerStat.cc
  8551. * src/ServerStat.h
  8552. * src/ServerStatMan.cc
  8553. * src/ServerStatMan.h
  8554. * test/ServerStatManTest.cc
  8555. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8556. Now aria2 uses name attribute in Metalink as local filename in
  8557. BitTorrent downloads. BUG#2033999
  8558. * src/BtContext.h
  8559. * src/BtDependency.cc
  8560. * src/DefaultBtContext.cc
  8561. * src/DefaultBtContext.h
  8562. * src/SingleFileDownloadContext.cc
  8563. * src/SingleFileDownloadContext.h
  8564. * test/BtDependencyTest.cc
  8565. * test/DefaultBtContextTest.cc
  8566. * test/MockBtContext.h
  8567. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Added AC_C_BIGENDIAN
  8569. * src/configure.ac
  8570. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. Limited numCommand less than or equal to the number of piece.
  8572. * src/RequestGroup.cc
  8573. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8575. directive.
  8576. * test/DefaultPieceStorageTest.cc
  8577. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Fixed memory leak in test code
  8579. * test/AnnounceListTest.cc
  8580. * test/DefaultPeerListProcessorTest.cc
  8581. * test/DefaultPeerStorageTest.cc
  8582. * test/MetaFileUtilTest.cc
  8583. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8585. * src/DefaultPieceStorage.cc
  8586. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Initialized _directIOAllowed
  8588. * src/MultiDiskAdaptor.cc
  8589. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Fixed memory leak
  8591. * src/GZipDecoder.cc
  8592. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8593. Fixed memory leak
  8594. * src/MetalinkParserStateMachine.cc
  8595. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Fixed memory leak
  8597. * src/Dictionary.cc
  8598. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Fixed memory leak
  8600. * src/IteratableChunkChecksumValidator.h
  8601. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Fixed unmatched malloc/free.
  8603. * src/IteratableChunkChecksumValidator.cc
  8604. * src/IteratableChecksumValidator.cc
  8605. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Removed max chunk size check. This change fixes BUG#2040169
  8607. * src/ChunkedDecoder.cc
  8608. * src/ChunkedDecoder.h
  8609. * test/ChunkedDecoderTest.cc
  8610. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Implemented download speed based URI selection algorithm.
  8612. Introduced new option --uri-selector.
  8613. If --uri-selector=feedback is given, aria2 uses download speed observed
  8614. in the previous downloads and chooses fastest server in the URI list.
  8615. Currently at most 10 URIs are considered to introduce randomeness for
  8616. finding better servers. The speed is average download speed in the
  8617. downloads.
  8618. On the other hand, if --uri-selector=inorder is given, which is default,
  8619. URI is tried in order in URI list.
  8620. The usage text for the new option has not been written yet.
  8621. * src/AbstractCommand.cc
  8622. * src/DownloadCommand.cc
  8623. * src/DownloadEngine.cc
  8624. * src/DownloadEngineFactory.cc
  8625. * src/InOrderURISelector.cc
  8626. * src/InOrderURISelector.h
  8627. * src/OptionHandlerFactory.cc
  8628. * src/PeerStat.h
  8629. * src/RequestGroup.cc
  8630. * src/RequestGroup.h
  8631. * src/RequestGroupMan.cc
  8632. * src/RequestGroupMan.h
  8633. * src/SegmentMan.cc
  8634. * src/SegmentMan.h
  8635. * src/ServerStat.cc
  8636. * src/ServerStat.h
  8637. * src/ServerStatMan.cc
  8638. * src/ServerStatMan.h
  8639. * src/ServerStatURISelector.cc
  8640. * src/ServerStatURISelector.h
  8641. * src/URISelector.h
  8642. * src/option_processing.cc
  8643. * src/prefs.cc
  8644. * src/prefs.h
  8645. * test/InOrderURISelectorTest.cc
  8646. * test/RequestGroupManTest.cc
  8647. * test/ServerStatManTest.cc
  8648. * test/ServerStatURISelectorTest.cc
  8649. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. * Release 0.15.1+2
  8651. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Bump up version number to 0.15.1+2
  8653. * configure.ac
  8654. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8656. * m4/aria2_arg.m4
  8657. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. * Release 0.15.1+1
  8659. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. Bump up version number to 0.15.1+1
  8661. * configure.ac
  8662. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Fixed the bug that causes segmentaion fault when resuming download
  8664. using metalink without size tag. Reproducible only using HTTP URI.
  8665. * src/HttpResponseCommand.cc
  8666. * src/FtpNegotiationCommand.cc
  8667. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. * Release 0.15.1
  8669. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Updated Bulgarian and French translations, thanks to all translators.
  8671. * po/bg.po
  8672. * po/fr.po
  8673. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Bump up version number to 0.15.1
  8675. * configure.ac
  8676. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. Avoid repeated call of gettimeofday() when calculating speed.
  8678. * src/SpeedCalc.cc
  8679. * src/SpeedCalc.h
  8680. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Removed writable check when socket's send buffer is full in BitTorrent
  8682. downloads to lower CPU usage.
  8683. * src/PeerInteractionCommand.cc
  8684. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Fixed broken gzip inflation.
  8686. Turn off segmented downloading if gzip content is smaller than or equal
  8687. to 1MiB and inflate the data on the fly, because HTTP response header
  8688. doesn't contain the length of inflated file we can't determin where
  8689. the chunk of data should be written.
  8690. On the other hand, if gzip content is larger than 1MB, then turn off
  8691. on the fly inflation, because some servers returns "content-type: gzip"
  8692. for *.tgz, *.gz files.
  8693. * src/DownloadCommand.cc
  8694. * src/HttpResponseCommand.cc
  8695. * src/HttpResponseCommand.h
  8696. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Applied tizianomueller's patch to fix compile error.
  8698. * test/BitfieldManTest.cc
  8699. * test/BtRequestMessageTest.cc
  8700. * test/DefaultBtContextTest.cc
  8701. * test/DefaultDiskWriterTest.cc
  8702. * test/DefaultPieceStorageTest.cc
  8703. * test/HttpHeaderProcessorTest.cc
  8704. * test/HttpResponseTest.cc
  8705. * test/Metalink2RequestGroupTest.cc
  8706. * test/MetalinkParserControllerTest.cc
  8707. * test/MetalinkProcessorTest.cc
  8708. * test/PeerSessionResourceTest.cc
  8709. * test/UtilTest.cc
  8710. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. * Release 0.15.0
  8712. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8713. Reordered src files in POTFILES.in so that usage text appears first.
  8714. * po/POTFILES.in
  8715. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Bump up version number to 0.15.0
  8717. * configure.ac
  8718. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Added Bulgarian translation.
  8720. Updated Catalan, Spanish, French and Japanese translations.
  8721. Thanks to all translators.
  8722. * po/LINGUAS
  8723. * po/bg.po
  8724. * po/ca.po
  8725. * po/es.po
  8726. * po/fr.po
  8727. * po/ja.po
  8728. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Updated feature list. Added libz for dependency section.
  8730. Added a description about unit testing using CppUnit.
  8731. * README
  8732. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Added a test for libz. Quoted where it is necessary.
  8734. * build_test.sh
  8735. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Added GZip to `Enabled Features' list.
  8737. * src/FeatureConfig.cc
  8738. * src/FeatureConfig.h
  8739. * test/FeatureConfigTest.cc
  8740. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8742. the transfer has not yet started.
  8743. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8744. * src/SegmentMan.cc
  8745. * src/SegmentMan.h
  8746. * test/SegmentManTest.cc
  8747. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Cache last calculated average download/upload speed.
  8749. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8750. cached value.
  8751. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8752. * src/PeerStat.h
  8753. * src/SpeedCalc.cc
  8754. * src/SpeedCalc.h
  8755. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Call parseUrl directly.
  8757. * src/Request.cc (resetUrl)
  8758. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Supported absolute/relative path in Location header field.
  8760. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8761. * src/HttpHeader.cc
  8762. * src/HttpHeader.h
  8763. * src/HttpResponse.cc
  8764. * src/HttpSkipResponseCommand.cc
  8765. * src/Request.cc
  8766. * test/HttpHeaderTest.cc
  8767. * test/HttpResponseTest.cc
  8768. * test/RequestTest.cc
  8769. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. Changed help text for --load-cookie option.
  8771. * doc/aria2c.1.txt
  8772. * src/usage_text.h
  8773. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Regenerated test/Makefile.in to remove stale ChangeLog.
  8775. * test/Makefile.in
  8776. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Updated po files.
  8778. * po/aria2c.pot
  8779. * po/*.po
  8780. * po/*.gmo
  8781. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Bump up version number to 0.15.0b
  8783. * configure.ac
  8784. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Externalize messages.
  8786. * src/RequestGroupMan.cc
  8787. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8788. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. Use File::exists() instead of File::isFile() to allow non-regular file
  8790. such as block special files.
  8791. * src/AbstractDiskWriter.cc
  8792. * src/MultiDiskWriter.cc
  8793. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8795. * src/gai_strerror.h
  8796. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Fixed compile error. Thanks gknauf for the patch.
  8798. * src/asctime_r.c
  8799. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. Included asctime_r.h from a2time.h.
  8801. * src/a2time.h
  8802. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Added a message "aria2 doesn't verify signature" to log message when
  8804. signature file is saved.
  8805. * src/RequestGroupMan.cc
  8806. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Added the ability to save signature when download is completed if
  8808. signature is available. The filename of signature file is the path to
  8809. download file followed by ".sig". If it already exists, then signature
  8810. will not be saved.
  8811. * src/RequestGroupMan.cc
  8812. * src/Signature.cc
  8813. * test/SignatureTest.cc
  8814. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Updated the descriptions for --bt-seed-unverified.
  8816. * doc/aria2c.1
  8817. * doc/aria2c.1.html
  8818. * doc/aria2c.1.txt
  8819. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8821. that this is not going to verify files using piece hashes.
  8822. * src/HelpItemFactory.cc
  8823. * src/OptionHandlerFactory.cc
  8824. * src/RequestGroup.cc
  8825. * src/option_processing.cc
  8826. * src/prefs.cc
  8827. * src/prefs.h
  8828. * src/usage_text.h
  8829. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Added the ability to retrieve signature from Metalink file.
  8831. A retrieved signature is stored in Signature class and it is held by
  8832. DownloadContext class. Note that aria2 doesn't verify signature.
  8833. * src/DownloadContext.cc
  8834. * src/DownloadContext.h
  8835. * src/Makefile.am
  8836. * src/Makefile.in
  8837. * src/Metalink2RequestGroup.cc
  8838. * src/MetalinkEntry.cc
  8839. * src/MetalinkEntry.h
  8840. * src/MetalinkParserController.cc
  8841. * src/MetalinkParserController.h
  8842. * src/MetalinkParserStateMachine.cc
  8843. * src/MetalinkParserStateMachine.h
  8844. * src/Signature.cc
  8845. * src/Signature.h
  8846. * src/SignatureMetalinkParserState.cc
  8847. * src/SignatureMetalinkParserState.h
  8848. * src/VerificationMetalinkParserState.cc
  8849. * src/VerificationMetalinkParserState.h
  8850. * test/Metalink2RequestGroupTest.cc
  8851. * test/MetalinkParserControllerTest.cc
  8852. * test/MetalinkProcessorTest.cc
  8853. * test/test.xml
  8854. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. Close DiskAdaptor after renaming file.
  8856. * src/RequestGroup.cc
  8857. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Corrected indentation
  8859. * src/DefaultBtProgressInfoFile.cc
  8860. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Moved the calls of std::ios::exceptions() inside of try-catch block
  8862. because if an error occurred in constructor of std::fstream, then
  8863. exception is thrown immediately when std::ios::exceptions() is called
  8864. which results unhandled exception and aria2c aborts.
  8865. * src/DefaultBtProgressInfoFile.cc
  8866. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Added the test for the previous change in DefaultBtContext.cc
  8868. * test/DefaultBtContextTest.cc
  8869. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Fixed the bug that causes infinite loop when the number of pieces are
  8871. fewer than allowed fast set size which is 10 by default.
  8872. * src/DefaultBtContext.cc
  8873. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Updated the descriptions for -j, -s. Added --bt-seed.
  8875. * doc/aria2c.1
  8876. * doc/aria2c.1.html
  8877. * doc/aria2c.1.txt
  8878. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8880. aria2 seeds previously downloaded files without validating piece hashs.
  8881. * src/HelpItemFactory.cc
  8882. * src/OptionHandlerFactory.cc
  8883. * src/RequestGroup.cc
  8884. * src/option_processing.cc
  8885. * src/prefs.cc
  8886. * src/prefs.h
  8887. * src/usage_text.h
  8888. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Updated DESCRIPTION of man page.
  8890. * doc/aria2c.1
  8891. * doc/aria2c.1.html
  8892. * doc/aria2c.1.txt
  8893. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8895. Don't define `struct addrinfo' when __sun is defined.
  8896. * src/getaddrinfo.h
  8897. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8899. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8900. second argument is of type `struct _stati64'. Otherwise it is defined as
  8901. `struct stat'.
  8902. * src/AbstractDiskWriter.cc
  8903. * src/File.cc
  8904. * src/File.h
  8905. * src/a2io.h
  8906. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Fixed the compile error in hurd-i386
  8908. See the original bug report:
  8909. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8910. * src/a2io.h
  8911. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Code cleanup.
  8913. * src/PeerAbstractCommand.cc
  8914. * src/PeerAbstractCommand.h
  8915. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Removed TransferEncoding.
  8917. * src/DownloadCommand.cc
  8918. * src/DownloadCommand.h
  8919. * src/HttpResponseCommand.cc
  8920. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Updated po files.
  8922. * po/aria2c.pot
  8923. * po/*.po
  8924. * po/*.gmo
  8925. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8926. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8927. * src/A2STR.cc
  8928. * src/A2STR.h
  8929. * src/ChunkedDecoder.cc
  8930. * src/ChunkedDecoder.h
  8931. * src/ChunkedEncoding.cc: Removed
  8932. * src/ChunkedEncoding.h: Removed
  8933. * src/DownloadCommand.cc
  8934. * src/DownloadCommand.h
  8935. * src/HttpDownloadCommand.cc
  8936. * src/HttpResponse.cc
  8937. * src/HttpResponse.h
  8938. * src/HttpResponseCommand.cc
  8939. * src/HttpSkipResponseCommand.cc
  8940. * src/HttpSkipResponseCommand.h
  8941. * src/Makefile.am
  8942. * src/TransferEncoding.h: Removed
  8943. * test/ChunkedDecoderTest.cc
  8944. * test/ChunkedEncodingTest.cc: Removed
  8945. * test/HttpResponseTest.cc
  8946. * test/Makefile.am
  8947. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Use append instead of insert.
  8949. * src/GZipDecoder.cc
  8950. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Updated doc
  8952. * src/Decoder.h
  8953. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Updated usage text for -s option.
  8955. * src/usage_text.h
  8956. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8958. * src/Request.cc
  8959. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Cleaned up configure.ac.
  8961. * configure.ac
  8962. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8964. AC_ARG_ENABLE.
  8965. * configure.ac
  8966. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8968. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8969. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8970. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8971. fly and writes decoded data to a local disk.
  8972. * README
  8973. * README.html
  8974. * configure.ac
  8975. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8976. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8977. * m4/libz.m4
  8978. * src/Decoder.h
  8979. * src/DownloadCommand.cc
  8980. * src/DownloadCommand.h
  8981. * src/Exception.h
  8982. * src/GZipDecoder.cc
  8983. * src/GZipDecoder.h
  8984. * src/HttpHeader.cc
  8985. * src/HttpHeader.h
  8986. * src/HttpRequest.cc
  8987. * src/HttpRequest.h
  8988. * src/HttpResponse.cc
  8989. * src/HttpResponse.h
  8990. * src/HttpResponseCommand.cc
  8991. * src/Makefile.am
  8992. * test/GZipDecoderTest.cc
  8993. * test/HttpRequestTest.cc
  8994. * test/HttpResponseTest.cc
  8995. * test/Makefile.am
  8996. * test/Makefile.in
  8997. * test/gzip_decode_test.gz
  8998. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. Clarified usage of -j option.
  9000. * src/usage_text.h
  9001. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9002. Disabled getting size from the response of RETR.
  9003. If SIZE command failed, then disable resuming and segmented downloading.
  9004. * src/FtpConnection.cc
  9005. * src/FtpConnection.h
  9006. * src/FtpNegotiationCommand.cc
  9007. * src/FtpNegotiationCommand.h
  9008. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9009. Use digits to find first byte of file size, which makes the intention
  9010. of the code clearer.
  9011. * src/FtpConnection.cc
  9012. Don't call validateTotalLength() when size is 0.
  9013. * src/FtpNegotiationCommand.cc
  9014. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Updated po files.
  9016. * po/aria2c.pot
  9017. * po/*.gmo
  9018. * po/*.po
  9019. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Clarified usage text for --split option.
  9021. * src/usage_text.h
  9022. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Bump up version number to 0.15.0dev. "dev" means "development"
  9024. version, which means I started the development of the next release!
  9025. * src/configure.ac
  9026. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. If FTP server returns negative response with REST raw command and
  9028. requested range is not 0, throw exception. If requested range is 0,
  9029. continue download a file from 0 byte.
  9030. * src/FtpNegotiationCommand.cc
  9031. * src/FtpNegotiationCommand.h
  9032. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Supported FTP server which don't recognize SIZE raw command.
  9034. If SIZE raw command is failed, aria2 will try to get file size
  9035. from the response of RETR raw command. If both attempts are failed,
  9036. then resuming and segmented downloading are disabled.
  9037. * src/FtpConnection.cc
  9038. * src/FtpConnection.h
  9039. * src/FtpNegotiationCommand.cc
  9040. * src/FtpNegotiationCommand.h
  9041. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. * Release 0.14.0+1
  9043. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Bump up version number to 0.14.0+1
  9045. * src/configure.ac
  9046. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Fixed the code that refers static member variable from non-static
  9048. context.
  9049. * src/DefaultPeerStorage.cc
  9050. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. * Release 0.14.0
  9052. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9053. Added build test script
  9054. * build_test.sh
  9055. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Updated ja.po
  9057. * src/ja.po
  9058. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. Bump up version number to 0.14.0
  9060. * src/configure.ac
  9061. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Updated ja.po and fr.po. Great thanks for french translators and
  9063. Sebastien WILLEMIJNS.
  9064. * po/fr.po
  9065. * po/ja.po
  9066. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Added configure option to enable/disable epoll support.
  9068. * configure.ac
  9069. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Updated man page.
  9071. * doc/aria2c.1.txt
  9072. * doc/aria2c.1
  9073. * doc/aria2c.1.html
  9074. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Added missing default value '5' to the usage of --split option.
  9076. * src/HelpItemFactory.cc
  9077. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Filled up pieces based on the number of missing blocks, rather than
  9079. simplay the number of piece * block length.
  9080. * src/BtRequestFactory.h
  9081. * src/DefaultBtInteractive.cc
  9082. * src/DefaultBtInteractive.h
  9083. * src/DefaultBtRequestFactory.cc
  9084. * src/DefaultBtRequestFactory.h
  9085. * src/Piece.cc
  9086. * src/Piece.h
  9087. * test/BitfieldManTest.cc
  9088. * test/DefaultBtRequestFactoryTest.cc
  9089. * test/MockBtRequestFactory.h
  9090. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9091. Made _epEvents a member variable.
  9092. * src/DownloadEngine.cc
  9093. * src/DownloadEngine.h
  9094. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Cancel download if http redirect is bounded more than 20 times.
  9096. * src/AbstractCommand.cc
  9097. * src/HttpSkipResponseCommand.cc
  9098. * src/Request.cc
  9099. * src/Request.h
  9100. * test/RequestTest.cc
  9101. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. Fixed unhandled exception(removed keyword `new').
  9103. * src/SocketCore.cc (initEPOLL)
  9104. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9105. Removed visit(const MetaEntry*)
  9106. * src/MetaEntryVisitor.h:
  9107. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9108. and made them virtual.
  9109. * src/BencodeVisitor.h
  9110. * src/BencodeVisitor.cc
  9111. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. Updated po files.
  9113. * po/aria2c.pot
  9114. * po/*.po
  9115. * po/*.gmo
  9116. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9118. the number of socket to watch out.
  9119. * src/PeerInteractionCommand.cc
  9120. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. When there is not enough space in disk when writing a chunk of data,
  9122. aria2 now prints the message to the console to warn user and aborts
  9123. its download. Not all downloads are canceled because some downloads
  9124. may use another disk or partition. BUG#1640332
  9125. * src/AbstractDiskWriter.cc
  9126. * src/PeerAbstractCommand.cc
  9127. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9128. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9129. setHaltRequested(true) to cancel download.
  9130. * src/PeerInteractionCommand.h
  9131. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9133. socket from int to sock_t as sockets are unsigned in Windows.
  9134. For AsyncNameResolver, DownloadEngine, I did additional modification
  9135. for the portion of the code changed according to epoll support.
  9136. I defined sock_t in a2netcompat.h to use sock_t without including
  9137. SocketCore.h.
  9138. * src/AsyncNameResolver.cc
  9139. * src/AsyncNameResolver.h
  9140. * src/DownloadEngine.cc
  9141. * src/DownloadEngine.h
  9142. * src/SocketCore.cc
  9143. * src/SocketCore.h
  9144. * src/a2netcompat.h
  9145. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9147. changes in the patch were applied.
  9148. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9149. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9150. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9151. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9153. a2io.h and common.h were modified.
  9154. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9155. MinGW.
  9156. * src/common.h: Changed off_t to 64 bit in MinGW.
  9157. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9159. only a2netcompat.h is modified.
  9160. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9161. directives.
  9162. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9164. only gai_strerror.h is modified.
  9165. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9166. winsock errors in MinGW.
  9167. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9168. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9169. follow sources are applied.
  9170. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9171. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9172. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9173. I included locale.h from Platform.cc.
  9174. * src/main.cc: Moved common setup/teardown code to Platform class.
  9175. * test/AllTest.cc: Use Platform class.
  9176. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9177. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9179. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9180. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9181. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9183. aria2-0.13.2+1-mingw-2.patch.
  9184. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9185. systems which don't have termious.h. I moved the directive inside of
  9186. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9187. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9188. anyway.
  9189. * src/asctime_r.h
  9190. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9191. I added 2nd argument to the prototype declaration.
  9192. * src/StringFormat.cc: Get rid of vasprintf.
  9193. * src/getaddrinfo.h: Fixed constants.
  9194. * configure.ac: Added the check for asctime_r function.
  9195. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9196. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Added writable test for Socket when the sending message is in progress.
  9198. Usually the sending message is piece message. Without wriable check,
  9199. upload latency is dropped to more than 1sec.
  9200. * src/PeerInteractionCommand.cc
  9201. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Create only requested files and files which shares a piece with
  9203. requested file in multi-torrent downloads. Directory structures are
  9204. also created in the same rule.
  9205. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9206. DiskWriterEntry as in the previous implementation.
  9207. * src/MultiDiskWriter.cc
  9208. * src/MultiFileAllocationIterator.cc
  9209. * src/MultiFileAllocationIterator.h
  9210. * test/MultiFileAllocationIteratorTest.cc
  9211. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Commented out -lprofiler
  9213. * src/Makefile.am
  9214. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Bump up version number to 0.14.0b.
  9216. * src/configure.ac
  9217. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. Actively establish connection to peers in seeding, when peer cache
  9219. is not full and max upload speed limit is not reached.
  9220. * src/ActivePeerConnectionCommand.cc
  9221. * src/ActivePeerConnectionCommand.h
  9222. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9223. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9224. to make room more fleshy, recently found peers.
  9225. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9226. it.
  9227. * src/DefaultPeerStorage.cc
  9228. * test/DefaultPeerStorageTest.cc
  9229. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9230. Returns cached data only when the previous receiveHandshake() is called
  9231. with peek = true.
  9232. * src/PeerConnection.cc (receiveHandshake)
  9233. * src/PeerConnection.h (receiveHandshake)
  9234. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Changed default value of -s option from 1 to 5.
  9236. Also max value of -s option is changed from 5 to 16.
  9237. * src/HelpItemFactory.cc
  9238. * src/OptionHandlerFactory.cc
  9239. * src/option_processing.cc
  9240. * src/usage_text.h
  9241. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Changed -s options behavior. Now it means the number of connections
  9243. made simultaneously in each http/ftp download.
  9244. If 1 URL is specified, the behavior is the same with old implementation.
  9245. If -s N is given and more than N URLs are specified, first N URLs are
  9246. used and remaining URLs are used for backup. If less than N URLs are
  9247. specified, some of URLs are used more than once so that totally N
  9248. connections are made simultaneously.
  9249. * src/main.cc
  9250. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Included missing iosfwd or ostream header.
  9252. * src/RequestGroupMan.cc
  9253. * src/TaggedItem.cc
  9254. * src/TaggedItem.h
  9255. * src/Util.cc
  9256. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9258. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9259. * src/HttpConnection.cc: Included missing sstream.
  9260. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Added --bt-max-open-files option.
  9262. * src/DefaultPieceStorage.cc
  9263. * src/HelpItemFactory.cc
  9264. * src/MultiDiskAdaptor.cc
  9265. * src/MultiDiskAdaptor.h
  9266. * src/OptionHandlerFactory.cc
  9267. * src/option_processing.cc
  9268. * src/prefs.cc
  9269. * src/prefs.h
  9270. * src/usage_text.h
  9271. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Fixed the bug that aria2 aborts when a path to a directory is given
  9273. in command-line.
  9274. * src/ProtocolDetector.cc
  9275. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9276. Limited the number files opened in each BitTorrent download. The default
  9277. value is 100. The option to change this value will be added.
  9278. * src/MultiDiskAdaptor.cc
  9279. * src/MultiDiskAdaptor.h
  9280. * src/MultiFileAllocationIterator.cc
  9281. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. Fixed the bug that HTTP downloads don't start with old libraries.
  9283. * src/HttpHeaderProcessor.cc
  9284. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. Use empty() instead of size() > 0.
  9286. * src/HttpConnection.cc
  9287. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Drop connection if the incoming peer ID is the same with localhost's
  9289. one. The previous implementation drops connection when incoming peer's
  9290. IP address is the same with localhost's one.
  9291. * src/PeerListenCommand.cc
  9292. * src/DefaultBtInteractive.cc
  9293. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. Returns cached data without checking whether socket is readable
  9295. if the cache is available.
  9296. * src/PeerConnection.cc (receiveHandshake)
  9297. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9298. Included stdint.h
  9299. * src/common.h
  9300. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Removed duplicate HAVE_GETTIMEOFDAY
  9302. * src/Makefile.am
  9303. * src/Makefile.in
  9304. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9305. Use interval as a minInterval when minInterval is not supplied.
  9306. * src/DefaultBtAnnounce.cc
  9307. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9309. attempt is failed, then 2nd attempt get kicked out more quickly.
  9310. And it is now static const member of DefaultBtAnnounce.
  9311. * src/DefaultBtAnnounce.h
  9312. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9313. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9314. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9315. * src/ActivePeerConnectionCommand.cc
  9316. * src/BtConstants.h
  9317. * src/BtRuntime.h
  9318. * src/DHTGetPeersCommand.cc
  9319. * src/DefaultBtAnnounce.cc
  9320. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9321. BtRuntime::MAX_PEERS.
  9322. * src/DefaultPeerStorage.h
  9323. * src/InitiatorMSEHandshakeCommand.cc
  9324. * src/PeerInitiateConnectionCommand.cc
  9325. * src/PeerInteractionCommand.cc
  9326. * src/PeerReceiveHandshakeCommand.cc
  9327. * src/TrackerWatcherCommand.cc
  9328. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9329. Always Connect to _numNewConnection
  9330. * src/ActivePeerConnectionCommand.cc
  9331. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Made `begin' unsigned int.
  9333. * src/GrowSegment.h
  9334. * src/Piece.cc
  9335. * src/Piece.h
  9336. * src/PiecedSegment.cc
  9337. * src/PiecedSegment.h
  9338. * src/Segment.h
  9339. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Calculate piece hash when data is arrived if the data is arrived in
  9341. order. This removes additional read operation for hash calculation.
  9342. If the data is arrived in out of order, the hash is calucated when the
  9343. piece is completed. This is the same behavior as the old implementation.
  9344. * src/BtPieceMessage.cc
  9345. * src/DefaultBtProgressInfoFile.cc
  9346. * src/DefaultPieceStorage.cc
  9347. * src/DownloadCommand.cc
  9348. * src/DownloadCommand.h
  9349. * src/DownloadEngine.cc
  9350. * src/GrowSegment.cc
  9351. * src/GrowSegment.h
  9352. * src/Piece.cc
  9353. * src/Piece.h
  9354. * src/PiecedSegment.cc
  9355. * src/PiecedSegment.h
  9356. * src/Segment.h
  9357. * test/PieceTest.cc
  9358. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Try to keep the ordering of outgoing piece message.
  9360. * src/DefaultBtMessageDispatcher.cc
  9361. (DefaultBtMessageDispatcher::sendMessages)
  9362. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9363. Fixed busy loop when error/hup epoll events occur.
  9364. * src/AbstractCommand.cc
  9365. * src/PeerAbstractCommand.cc
  9366. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Added --bt-request-peer-speed-limit option, which was a constant
  9368. SLOW_SPEED_THRESHOLD.
  9369. * src/ActivePeerConnectionCommand.cc
  9370. * src/ActivePeerConnectionCommand.h
  9371. * src/BtConstants.h
  9372. * src/HelpItemFactory.cc
  9373. * src/OptionHandlerFactory.cc
  9374. * src/PeerReceiveHandshakeCommand.cc
  9375. * src/option_processing.cc
  9376. * src/prefs.cc
  9377. * src/prefs.h
  9378. * src/usage_text.h
  9379. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9380. Removed repeated call of getTopDirPath(). Instead, call it once and
  9381. cache the result.
  9382. * src/MultiDiskAdaptor.cc
  9383. * src/MultiDiskAdaptor.h
  9384. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9385. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Fixed compile error on debian etch.
  9387. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9388. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9389. it is undefined.
  9390. * src/Util.cc (ULLONG_MAX)
  9391. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Added epoll support. Use epoll if it is available. If not, use select.
  9393. When async dns is enabled in compile time, epoll support is enabled
  9394. only when aria2 is built with c-ares. This condition statement is
  9395. defined in a2io.h.
  9396. Currently aria2 supports both c-ares and ares, but ares is maintained
  9397. for quite a while and debian already has c-ares package, ares support
  9398. will be dropped in the future version.
  9399. * configure.ac
  9400. * src/AbstractCommand.cc
  9401. * src/AsyncNameResolver.cc
  9402. * src/AsyncNameResolver.h
  9403. * src/Command.cc
  9404. * src/Command.h
  9405. * src/DownloadEngine.cc
  9406. * src/DownloadEngine.h
  9407. * src/PeerAbstractCommand.cc
  9408. * src/SocketCore.cc
  9409. * src/SocketCore.h
  9410. * src/a2io.h
  9411. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9413. directive.
  9414. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. Do not do write operation to /dev/null file.
  9416. * src/LogFactory.cc
  9417. * src/SimpleLogger.cc
  9418. Replaced vasprintf with vsnprintf
  9419. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9420. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. * src/BtRequestMessage.cc
  9422. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9423. for segmentation fault caused by previous commit.
  9424. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9425. Reduced the usage of gettimeofday().
  9426. * src/DefaultBtMessageDispatcher.cc
  9427. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9428. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9429. * src/RequestSlot.cc
  9430. * src/RequestSlot.h
  9431. (RequestSlot::isTimeout)
  9432. Made RequestSlot have a reference to Piece object to avoid find
  9433. Piece repeatedly.
  9434. * src/DefaultBtMessageDispatcher.cc
  9435. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9436. * src/RequestSlot.cc
  9437. * src/RequestSlot.h
  9438. (RequestSlot::getPiece)
  9439. * test/DefaultBtMessageDispatcherTest.cc
  9440. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. * src/TimeA2.cc
  9442. * src/TimeA2.h
  9443. (Time::difference): New function.
  9444. (Time::elapsed): Done optimization.
  9445. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9447. directive.
  9448. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. * src/option_processing.cc: Added missing `defined' keyword to #if
  9450. directive.
  9451. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Bump up version number to 0.13.2+1
  9453. * src/configure.ac
  9454. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9455. Refactored broken outstanding piece handling.
  9456. * src/DefaultPieceStorage.cc
  9457. * src/DefaultPieceStorage.h
  9458. * src/Piece.cc
  9459. * src/Piece.h
  9460. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9462. name collision of static variable and predefined macro.
  9463. * src/BtContext.cc
  9464. * src/BtContext.h
  9465. * src/CookieBoxFactory.cc
  9466. * src/CookieBoxFactory.h
  9467. * src/CookieParser.cc
  9468. * src/CookieParser.h
  9469. * src/DefaultBtContext.cc
  9470. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. * src/RequestGroup.cc
  9472. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9473. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. * Release 0.13.2
  9475. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9477. * po/fr.po
  9478. * po/ja.po
  9479. * po/aria2c.pot
  9480. * po/*.po
  9481. * po/*.gmo
  9482. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Bump up version number to 0.13.2
  9484. * src/configure.ac
  9485. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Refactord.
  9487. * src/RequestGroupMan.cc
  9488. (removeStoppedGroup)
  9489. (fillRequestGroupFromReserver)
  9490. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9491. Fixed compile error on Ubuntu.
  9492. * src/BtPieceMessage.cc
  9493. * src/MessageDigestHelper.cc
  9494. * src/Util.cc
  9495. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Fixed compile error when configured with --disable-bittorrent
  9497. * test/DownloadHandlerFactoryTest.cc
  9498. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. Done make update-po
  9500. * po/aria2c.pot
  9501. * po/*.po
  9502. * po/*.gmo
  9503. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Bump up version number to 0.13.2rc.
  9505. * src/configure.ac
  9506. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. Made option name bold. Updated SYNOPSIS to make it more readable.
  9508. * doc/aria2c.1.txt
  9509. * doc/aria2c.1
  9510. * doc/aria2c.1.html
  9511. * src/version_usage.cc
  9512. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. Refactored. Use std::string instead of size and char*.
  9514. * Data.cc
  9515. * Data.h
  9516. * test/Data.cc
  9517. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Added trimSelf(). Rewritten trim() to use trimSelf().
  9519. * Util.cc
  9520. * Util.h
  9521. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9523. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Fixed compile error when configured with --disable-metalink.
  9525. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9526. * test/FeatureConfigTest.cc
  9527. * test/DownloadHandlerFactoryTest.cc
  9528. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9529. Fixed compile error when configured with --without-gnutls
  9530. --without-openssl
  9531. * src/main.cc
  9532. * test/DefaultBtProgressInfoFileTest.cc
  9533. * test/SegmentManTest.cc
  9534. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Fixed compile error with OpenSSL.
  9536. * src/IteratableChunkChecksumValidator.cc
  9537. * src/LibsslDHKeyExchange.h
  9538. * src/MessageDigestHelper.cc
  9539. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9540. Revert the default value of --max-concurrent-downloads to 5.
  9541. Revert the default value of --metalink-servers to 5.
  9542. Man pages was also updated.
  9543. * src/option_processing.cc
  9544. * doc/aria2c.1.txt
  9545. * doc/aria2c.1.html
  9546. * doc/aria2c.1
  9547. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Returns const reference:
  9549. DownloadContext::getPieceHash, DownloadContext::getName,
  9550. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9551. BtContext::getInfoHashAsString,
  9552. * src/BtContext.h
  9553. * src/DefaultBtContext.cc
  9554. * src/DefaultBtContext.h
  9555. * src/DownloadContext.h
  9556. * src/SingleFileDownloadContext.h
  9557. * test/MockBtContext.h
  9558. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. * src/RequestGroup.h (getDir): Removed.
  9560. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Returns const reference. The internal urlencode function was optimized
  9562. a little bit.
  9563. * src/Request.cc
  9564. * src/Request.h
  9565. * src/HttpRequest.cc
  9566. * src/HttpRequest.h
  9567. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Defined option name and possible values as std::string to reduce
  9569. temporary string object creation in runtime.
  9570. * src/HelpItemFactory.cc
  9571. * src/LogFactory.cc
  9572. * src/Option.cc
  9573. * src/OptionHandlerFactory.cc
  9574. * src/option_processing.cc
  9575. * src/prefs.cc
  9576. * src/prefs.h
  9577. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Return const reference.
  9579. * src/DownloadHandlerConstants.cc
  9580. * src/DownloadHandlerConstants.h
  9581. (getMetalinkExtensions)
  9582. (getMetalinkContentTypes)
  9583. (getBtExtensions)
  9584. (getBtContentTypes)
  9585. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. * src/HttpHeader.cc (get): Rewritten.
  9587. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Make HttpHeader::getFirst(...) return const reference.
  9589. * src/HttpHeader.cc
  9590. * src/HttpHeader.h
  9591. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9592. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9593. it with V_TRUE.
  9594. * src/DefaultPieceStorage.cc
  9595. * src/DownloadCommand.cc
  9596. * src/FtpNegotiationCommand.cc
  9597. * src/HttpRequest.cc
  9598. * src/InitiateConnectionCommand.cc
  9599. * src/RequestGroup.cc
  9600. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9601. Made Option::get(...) return const reference of std::string.
  9602. * src/Option.cc
  9603. * src/Option.h
  9604. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. Replaced std:copy with insert.
  9606. * src/DefaultBtMessageDispatcher.cc
  9607. * src/DefaultPieceStorage.cc
  9608. * src/DownloadEngineFactory.cc
  9609. * src/RequestGroup.cc
  9610. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Included SocketCore.h to fix compiler warning.
  9612. * src/InitiateConnectionCommand.cc
  9613. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. Put piece selection strategy algorithm to RarestPieceSelector class,
  9615. Added a switch to choose whether randomized selection so that unit
  9616. tests emit same results in, possibly, win32.
  9617. * src/DefaultPieceStorage.cc
  9618. * src/DefaultPieceStorage.h
  9619. * src/RarestPieceSelector.cc
  9620. * src/RarestPieceSelector.h
  9621. * test/DefaultPieceStorageTest.cc
  9622. * test/RarestPieceSelectorTest.cc
  9623. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Don't pool connection if HTTP proxy is enabled.
  9625. * src/FtpFinishDownloadCommand.cc
  9626. * src/FtpNegotiationCommand.cc
  9627. * src/HttpSkipResponseCommand.cc
  9628. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9630. * src/AbstractCommand.cc
  9631. * src/AbstractCommand.h
  9632. * src/ActivePeerConnectionCommand.cc
  9633. * src/FtpInitiateConnectionCommand.cc
  9634. * src/HttpInitiateConnectionCommand.cc
  9635. * src/InitiateConnectionCommandFactory.cc
  9636. * src/PeerAbstractCommand.cc
  9637. * src/PeerAbstractCommand.h
  9638. * src/PeerInitiateConnectionCommand.cc
  9639. * src/TrackerWatcherCommand.cc
  9640. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Sort RequestSlot in ascending order and manipulate them using
  9642. lower_bound.
  9643. * src/DefaultBtMessageDispatcher.cc
  9644. * src/DefaultBtMessageDispatcher.h
  9645. (getMessageQueue): Added const qualifier.
  9646. (getRequestSlots): Added const qualifier.
  9647. (sendMessages): Use empty() instead of size().
  9648. (doCancelSendingPieceAction): Use HandleEvent object.
  9649. (doAbortOutstandingRequestAction): Rewritten.
  9650. (doChokedAction): Rewritten.
  9651. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9652. (isOutstandingRequest): Rewritten.
  9653. (getOutstandingRequest): Rewritten.
  9654. (removeOutstandingRequest): Rewritten.
  9655. (addOutstandingRequest): Rewritten.
  9656. * src/RequestSlot.cc
  9657. * src/RequestSlot.h
  9658. (operator=): Rewritten.
  9659. (operator!=): New function.
  9660. (operator<): New function.
  9661. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. * src/DefaultBtRequestFactory.cc
  9663. (doChokedAction): Rewritten.
  9664. (removeCompletedPiece): Rewritten.
  9665. (removeTargetPiece): Rewritten.
  9666. (createRequestMessages): Added the debug log.
  9667. (createRequestMessagesOnEndGame: Added the debug log.
  9668. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Added the debug log message.
  9670. * src/BtPieceMessage.cc (doReceivedAction)
  9671. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9672. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9673. used lower_bound to process them rather than linear search.
  9674. * src/DHTPeerAnnounceStorage.cc
  9675. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9677. peer has at least one completed piece.
  9678. * src/Peer.cc
  9679. * src/Peer.h
  9680. * src/PeerInteractionCommand.cc
  9681. * src/PeerSessionResource.cc
  9682. * src/PeerSessionResource.h
  9683. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Removed unnecessary sorting
  9685. * src/DefaultPieceStorage (DefaultPieceStorage)
  9686. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9687. Rewritten the portion of the code that mangaes allowed fast indexes.
  9688. * src/PeerSessionResource.cc
  9689. * src/PeerSessionResource.h
  9690. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9691. Removed the invalid string including '\r' from ru.po and
  9692. did make update-po.
  9693. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Added --log-level and --summary-interval to man page.
  9695. * doc/aria2c.1.txt
  9696. * doc/aria2c.1.html
  9697. * doc/aria2c.1
  9698. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Added --log-level option to specify log level. Log messages under
  9700. the specified level are not output. Default value is `debug'.
  9701. * src/HelpItemFactory.cc
  9702. * src/LogFactory.cc
  9703. * src/LogFactory.h
  9704. * src/Logger.h
  9705. * src/OptionHandlerFactory.cc
  9706. * src/SimpleLogger.cc
  9707. * src/SimpleLogger.h
  9708. * src/main.cc
  9709. * src/option_processing.cc
  9710. * src/prefs.h
  9711. * src/usage_text.h
  9712. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Print download progress summary of all parallel downloads in specified
  9714. interval, default 60 secs. While aria2 could download several files
  9715. in parallel (see -j option), it displayed just first download progress,
  9716. and the other downloads are hidden from the users. This new feature
  9717. prints all downloads currently in-progress to the console so that you
  9718. can check the status of all downloads. The interval can be adjusted
  9719. by --summary-interval option.
  9720. The progress readout is now cut so that all fits in the one line of
  9721. console.
  9722. * src/ConsoleStatCalc.cc
  9723. * src/ConsoleStatCalc.h
  9724. * src/HelpItemFactory.cc
  9725. * src/OptionHandlerFactory.cc
  9726. * src/RequestGroupMan.cc
  9727. * src/RequestGroupMan.h
  9728. * src/main.cc
  9729. * src/option_processing.cc
  9730. * src/prefs.h
  9731. * src/usage_text.h
  9732. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9734. * src/DownloadEngine.cc (DownloadEngine)
  9735. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9737. defined.
  9738. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9739. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Use erase+lower_bound+insert instead of sort.
  9741. * src/DefaultPieceStorage.cc (addPieceStats)
  9742. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9744. * src/A2STR.cc
  9745. * src/A2STR.h
  9746. * src/OptionParser.cc (parse)
  9747. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. Defined fake filename `[tracker.announce]' as static const std::string.
  9749. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9750. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Defined default filename `index.html' as static const std::string
  9752. * src/SingleFileDownloadContext.cc
  9753. * src/SingleFileDownloadContext.h
  9754. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Defined "[MEMORY]" as static const std::string.
  9756. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9757. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Defined control file's version number as static const std::string.
  9759. * src/DefaultBtProgressInfoFile.cc
  9760. * src/DefaultBtProgressInfoFile.h
  9761. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. Use Request::METHOD_GET
  9763. * src/RequestGroup.cc (createNextCommandWithAdj)
  9764. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Defined "OK", "ERR", "INPR" as static const std::string
  9766. * src/RequestGroupMan.cc (showDownloadResults)
  9767. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Defined default client used in extended handshake as static const
  9769. std::string
  9770. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9771. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9773. * src/HttpConnection.cc (eraseConfidentialInfo)
  9774. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9775. Defined default ftp user and password as static const std::string
  9776. * src/AuthConfigFactory.cc
  9777. * src/AuthConfigFactory.h
  9778. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9779. Defined strings used in netrc as static const std::string
  9780. * src/Netrc.cc
  9781. * src/Netrc.h
  9782. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. Defined HTTP status as static const std::string
  9784. * src/AbstractProxyResponseCommand.cc
  9785. * src/HttpHeader.cc
  9786. * src/HttpHeader.h
  9787. * src/HttpResponse.cc
  9788. * src/HttpResponseCommand.cc
  9789. * src/HttpSkipResponseCommand.cc
  9790. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. Defined "\r\n", "A", "I" as static const std::string
  9792. * src/A2STR.cc
  9793. * src/A2STR.h
  9794. * src/FtpConnection.cc
  9795. * src/FtpConnection.h
  9796. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Added COLON_C(".") and used it in Request::parseUrl()
  9798. * src/A2STR.cc
  9799. * src/A2STR.h
  9800. * src/Request.cc (parseUrl)
  9801. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Changed the type of padName from `const std::string&' to `const char*'.
  9803. * src/MSEHandshake.cc (verifyPadLength)
  9804. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Defined "sha1" as static const std::string.
  9806. * src/MetalinkParserController.cc
  9807. * src/MetalinkParserController.h
  9808. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Defined message digest algorithm name as static const std::string
  9810. * src/DHTTokenTracker.cc
  9811. * src/DHTUtil.cc
  9812. * src/DefaultBtContext.cc
  9813. * src/MSEHandshake.cc
  9814. * src/MessageDigestHelper.cc
  9815. * src/Peer.cc
  9816. * src/messageDigest.cc
  9817. * src/messageDigest.h
  9818. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9819. Made string literals used in SAX parser static const std::string.
  9820. * src/FileMetalinkParserState.cc
  9821. * src/FileMetalinkParserState.h
  9822. * src/FilesMetalinkParserState.cc
  9823. * src/FilesMetalinkParserState.h
  9824. * src/InitialMetalinkParserState.cc
  9825. * src/InitialMetalinkParserState.h
  9826. * src/MetalinkMetalinkParserState.cc
  9827. * src/MetalinkMetalinkParserState.h
  9828. * src/PiecesMetalinkParserState.cc
  9829. * src/PiecesMetalinkParserState.h
  9830. * src/ResourcesMetalinkParserState.cc
  9831. * src/ResourcesMetalinkParserState.h
  9832. * src/VerificationMetalinkParserState.cc
  9833. * src/VerificationMetalinkParserState.h
  9834. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9836. * src/A2STR.cc
  9837. * src/A2STR.h
  9838. * src/File.cc
  9839. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9840. Defined static const std::string IP("ip"), PORT("port") and use them
  9841. instead of string literals.
  9842. * src/DefaultPeerListProcessor.cc
  9843. * src/DefaultPeerListProcessor.h
  9844. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Made string literals for torrent file processing static const
  9846. std::string.
  9847. * src/BtContext.cc
  9848. * src/BtContext.h
  9849. * src/DefaultBtContext.cc
  9850. * src/DefaultBtContext.h
  9851. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9852. Made string literal for tracker response static const std::string
  9853. * src/BtAnnounce.cc
  9854. * src/BtAnnounce.h
  9855. * src/DefaultBtAnnounce.cc
  9856. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9857. Use DHTMessage::T instead of "t".
  9858. * src/DHTMessageTracker.cc (messageArrived)
  9859. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Made keyName static const. Made trimmed charset static const
  9861. std::string.
  9862. * src/Util.cc (getContentDispositionFilename)
  9863. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Made USER_AGENT const. Made "/" static const std::string.
  9865. * src/A2STR.cc
  9866. * src/A2STR.h
  9867. * src/HttpRequest.cc
  9868. * src/HttpRequest.h
  9869. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Made string listeral to static const std::string:
  9871. "Content-Range", "Content-Length"
  9872. * src/HttpHeader.cc
  9873. * src/HttpHeader.h
  9874. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Made string listeral to static const std::string.
  9876. * src/HttpConnection.cc
  9877. * src/HttpHeader.cc
  9878. * src/HttpHeader.h
  9879. * src/HttpResponse.cc
  9880. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Made string listeral to static const std::string.
  9882. * src/A2STR.cc
  9883. * src/A2STR.h
  9884. * src/SimpleLogger.cc
  9885. * src/SimpleLogger.h
  9886. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Made string literal to static const std::string.
  9888. Rewritten CookieParser::setField.
  9889. * src/A2STR.cc
  9890. * src/A2STR.h
  9891. * src/CookieBoxFactory.cc
  9892. * src/CookieBoxFactory.h
  9893. * src/CookieParser.cc
  9894. * src/CookieParser.h
  9895. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Made string literal to static const std::string
  9897. * src/DHTAbstractMessage.cc
  9898. * src/DHTAnnouncePeerMessage.cc
  9899. * src/DHTAnnouncePeerMessage.h
  9900. * src/DHTAnnouncePeerReplyMessage.cc
  9901. * src/DHTAnnouncePeerReplyMessage.h
  9902. * src/DHTFindNodeMessage.cc
  9903. * src/DHTFindNodeMessage.h
  9904. * src/DHTFindNodeReplyMessage.cc
  9905. * src/DHTFindNodeReplyMessage.h
  9906. * src/DHTGetPeersMessage.cc
  9907. * src/DHTGetPeersMessage.h
  9908. * src/DHTGetPeersReplyMessage.cc
  9909. * src/DHTGetPeersReplyMessage.h
  9910. * src/DHTMessage.cc
  9911. * src/DHTMessage.h
  9912. * src/DHTMessageFactoryImpl.cc
  9913. * src/DHTMessageReceiver.cc
  9914. * src/DHTPingMessage.cc
  9915. * src/DHTPingMessage.h
  9916. * src/DHTPingReplyMessage.cc
  9917. * src/DHTPingReplyMessage.h
  9918. * src/DHTQueryMessage.cc
  9919. * src/DHTQueryMessage.h
  9920. * src/DHTResponseMessage.cc
  9921. * src/DHTResponseMessage.h
  9922. * src/DHTUnknownMessage.cc
  9923. * src/DHTUnknownMessage.h
  9924. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9925. Made string literal to static const std::string
  9926. * src/BtChokeMessage.cc (toString)
  9927. * src/BtHaveAllMessage.cc (toString)
  9928. * src/BtHaveNoneMessage.cc (toString)
  9929. * src/BtInterestedMessage.cc (toString)
  9930. * src/BtNotInterestedMessage.cc (toString)
  9931. * src/BtUnchokeMessage.cc (toString)
  9932. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Replaced "" with static const variable A2STR::NIL.
  9934. Replaced string comparison against "" with std::string::empty().
  9935. Added PROTO_* to Request class and use them as a protocol string
  9936. constant.
  9937. Made "started", "stopped", "completed" static const variable in
  9938. AnnounceList class.
  9939. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. Updated translations. Great thanks to translators.
  9941. * po/ca.po
  9942. * po/de.po
  9943. * po/fr.po
  9944. * po/it.po
  9945. * po/ja.po
  9946. * po/ru.po
  9947. * po/zh_CN.po
  9948. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9949. Updated man page; categorized options and fixed typo.
  9950. * doc/aria2c.1.txt
  9951. * doc/aria2c.1.html
  9952. * doc/aria2c.1
  9953. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Removed const ref
  9955. * src/MetalinkEntry.cc (AddProtocolPreference)
  9956. * src/RequestGroup.cc (FindServerHostByHostname)
  9957. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9958. Rewritten Accept-Features handling.
  9959. * src/HttpRequestCommand.cc (createHttpRequest)
  9960. * src/a2functional.h
  9961. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9962. Changed method signature:
  9963. DHTAbstractNodeLookupTask::toEntries
  9964. * src/DHTAbstractNodeLookupTask.cc
  9965. * src/DHTAbstractNodeLookupTask.h
  9966. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9967. Changed method signature:
  9968. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9969. * src/BtContext.h
  9970. * src/DefaultBtContext.cc
  9971. * src/DefaultBtContext.h
  9972. * src/DefaultBtInteractive.cc
  9973. * test/DefaultBtContextTest.cc
  9974. * test/MockBtContext.h
  9975. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9976. Changed method signature:
  9977. MultiFileAllocationIterator::makeDiskWriterEntries
  9978. * src/MultiFileAllocationIterator.cc
  9979. * src/MultiFileAllocationIterator.h
  9980. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. Changed method sinature:
  9982. MetalinkEntry::toFileEntry,
  9983. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9984. Metalinker::queryEntry
  9985. * src/Metalink2RequestGroup.cc
  9986. * src/MetalinkEntry.cc
  9987. * src/MetalinkEntry.h
  9988. * src/MetalinkHelper.cc
  9989. * src/MetalinkHelper.h
  9990. * src/Metalinker.cc
  9991. * src/Metalinker.h
  9992. * src/main.cc
  9993. * test/MetalinkHelperTest.cc
  9994. * test/MetalinkerTest.cc
  9995. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9996. Changed method sinature:
  9997. RequestGroup::getURIs
  9998. * src/RequestGroup.cc
  9999. * src/RequestGroup.h
  10000. * test/Metalink2RequestGroupTest.cc
  10001. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Changed method signature:
  10003. PeerListProcessor::extractPeer
  10004. * src/CompactPeerListProcessor.cc
  10005. * src/CompactPeerListProcessor.h
  10006. * src/DefaultBtAnnounce.cc
  10007. * src/DefaultPeerListProcessor.cc
  10008. * src/DefaultPeerListProcessor.h
  10009. * src/DelegatingPeerListProcessor.cc
  10010. * src/DelegatingPeerListProcessor.h
  10011. * src/PeerListProcessor.h
  10012. * src/UTPexExtensionMessage.cc
  10013. * test/DefaultPeerListProcessorTest.cc
  10014. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10015. Changed method signature:
  10016. BtRequestFactory::createRequestMessages,
  10017. BtRequestFactory::createRequestMessagesOnEndGame
  10018. * src/BtRequestFactory.h
  10019. * src/DefaultBtInteractive.cc
  10020. * src/DefaultBtRequestFactory.cc
  10021. * src/DefaultBtRequestFactory.h
  10022. * test/DefaultBtRequestFactoryTest.cc
  10023. * test/MockBtRequestFactory.h
  10024. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10025. Changed method signature:
  10026. PieceStorage::getInFlightPieces
  10027. * src/DefaultBtProgressInfoFile.cc
  10028. * src/DefaultPieceStorage.cc
  10029. * src/DefaultPieceStorage.h
  10030. * src/PieceStorage.h
  10031. * src/UnknownLengthPieceStorage.cc
  10032. * src/UnknownLengthPieceStorage.h
  10033. * test/DefaultBtProgressInfoFileTest.cc
  10034. * test/MockPieceStorage.h
  10035. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Changed method signature:
  10037. PostDownloadHandler::getNextRequestGroups
  10038. Metalink2RequestGroup::generate
  10039. RequestGroup::postDownloadProcessing
  10040. * src/BtPostDownloadHandler.cc
  10041. * src/BtPostDownloadHandler.h
  10042. * src/Metalink2RequestGroup.cc
  10043. * src/Metalink2RequestGroup.h
  10044. * src/MetalinkPostDownloadHandler.cc
  10045. * src/MetalinkPostDownloadHandler.h
  10046. * src/PostDownloadHandler.h
  10047. * src/RequestGroup.cc
  10048. * src/RequestGroup.h
  10049. * src/RequestGroupMan.cc
  10050. * src/main.cc
  10051. * test/BtPostDownloadHandlerTest.cc
  10052. * test/Metalink2RequestGroupTest.cc
  10053. * test/MetalinkPostDownloadHandlerTest.cc
  10054. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Rewritten AccRequestGroup
  10056. * src/main.cc
  10057. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Rewritten.
  10059. * src/TaggedItem.cc (toTagString)
  10060. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Rewritten Accept-Features handling.
  10062. * src/HttpRequestCommand.cc (createHttpRequest)
  10063. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Rewritten accept types handling.
  10065. * HttpRequest.cc (createRequest)
  10066. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Rewritten
  10068. * src/FeatureConfig.cc (featureSummary)
  10069. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Changed method signature:
  10071. PeerStorage::getActivePeers
  10072. * src/DHTPeerAnnounceEntry.cc
  10073. * src/DefaultPeerStorage.cc
  10074. * src/DefaultPeerStorage.h
  10075. * src/PeerStorage.h
  10076. * test/DefaultPeerStorageTest.cc
  10077. * test/MockPeerStorage.h
  10078. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Changed method signature:
  10080. DHTPeerAnnounceStorage::getPeers,
  10081. DHTPeerAnnounceEntry::getPeers
  10082. * src/DHTGetPeersMessage.cc
  10083. * src/DHTPeerAnnounceEntry.cc
  10084. * src/DHTPeerAnnounceEntry.h
  10085. * src/DHTPeerAnnounceStorage.cc
  10086. * src/DHTPeerAnnounceStorage.h
  10087. * test/DHTAnnouncePeerMessageTest.cc
  10088. * test/DHTPeerAnnounceEntryTest.cc
  10089. * test/DHTPeerAnnounceStorageTest.cc
  10090. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Changed method signature:
  10092. NameResolver::resolve
  10093. * src/DHTEntryPointNameResolveCommand.cc
  10094. * src/InitiateConnectionCommand.cc
  10095. * src/NameResolver.cc
  10096. * src/NameResolver.h
  10097. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10098. Changed method signature:
  10099. PieceStorage::getAdvertisedPieceIndexes
  10100. * src/DefaultBtInteractive.cc
  10101. * src/DefaultPieceStorage.cc
  10102. * src/DefaultPieceStorage.h
  10103. * src/PieceStorage.h
  10104. * src/UnknownLengthPieceStorage.h
  10105. * test/MockPieceStorage.h
  10106. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10107. Changed method signature:
  10108. SegmentMan::getInFlightSegment
  10109. * src/AbstractCommand.cc
  10110. * src/SegmentMan.cc
  10111. * src/SegmentMan.h
  10112. * test/SegmentManTest.cc
  10113. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Changed method signature:
  10115. DHTAbstractNodeLookupTask::getNodesFromMessage
  10116. * src/DHTAbstractNodeLookupTask.cc
  10117. * src/DHTAbstractNodeLookupTask.h
  10118. * src/DHTNodeLookupTask.cc
  10119. * src/DHTNodeLookupTask.h
  10120. * src/DHTPeerLookupTask.cc
  10121. * src/DHTPeerLookupTask.h
  10122. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10124. * src/AbstractCommand.cc
  10125. * src/BtCheckIntegrityEntry.cc
  10126. * src/BtCheckIntegrityEntry.h
  10127. * src/BtFileAllocationEntry.cc
  10128. * src/BtFileAllocationEntry.h
  10129. * src/BtSetup.cc
  10130. * src/BtSetup.h
  10131. * src/CheckIntegrityCommand.cc
  10132. * src/CheckIntegrityEntry.h
  10133. * src/ChecksumCheckIntegrityEntry.cc
  10134. * src/ChecksumCheckIntegrityEntry.h
  10135. * src/DHTSetup.cc
  10136. * src/DHTSetup.h
  10137. * src/DownloadEngine.cc
  10138. * src/FileAllocationCommand.cc
  10139. * src/FileAllocationEntry.h
  10140. * src/RequestGroup.cc
  10141. * src/RequestGroup.h
  10142. * src/RequestGroupMan.cc
  10143. * src/RequestGroupMan.h
  10144. * src/StreamCheckIntegrityEntry.cc
  10145. * src/StreamCheckIntegrityEntry.h
  10146. * src/StreamFileAllocationEntry.cc
  10147. * src/StreamFileAllocationEntry.h
  10148. * src/TrackerWatcherCommand.cc
  10149. * src/a2functional.h
  10150. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10151. Changed method signature:
  10152. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10153. DHTBucket::getGoodNodes,
  10154. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10155. * src/BNode.cc
  10156. * src/BNode.h
  10157. * src/DHTAbstractNodeLookupTask.cc
  10158. * src/DHTAutoSaveCommand.cc
  10159. * src/DHTBucket.cc
  10160. * src/DHTBucket.h
  10161. * src/DHTBucketRefreshTask.cc
  10162. * src/DHTFindNodeMessage.cc
  10163. * src/DHTGetPeersMessage.cc
  10164. * src/DHTRoutingTable.cc
  10165. * src/DHTRoutingTable.h
  10166. * test/BNodeTest.cc
  10167. * test/DHTBucketTest.cc
  10168. * test/DHTRoutingTableTest.cc
  10169. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10170. In piece selection functions, Pass std::deque<...> by reference rather
  10171. than returning it.
  10172. * src/BitfieldMan.cc
  10173. * src/BitfieldMan.h
  10174. * src/DefaultBtRequestFactory.cc
  10175. * src/DefaultPieceStorage.cc
  10176. * src/Piece.cc
  10177. * src/Piece.h
  10178. * test/BitfieldManTest.cc
  10179. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. Implemented rarest piece first piece selection strategy.
  10181. * src/AbstractBtMessage.cc
  10182. * src/AbstractBtMessage.h
  10183. * src/BitfieldMan.cc
  10184. * src/BitfieldMan.h
  10185. * src/BtBitfieldMessage.cc
  10186. * src/BtHaveAllMessage.cc
  10187. * src/BtHaveMessage.cc
  10188. * src/DefaultPieceStorage.cc
  10189. * src/DefaultPieceStorage.h
  10190. * src/PeerInteractionCommand.cc
  10191. * src/PieceStorage.h
  10192. * src/UnknownLengthPieceStorage.h
  10193. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10194. Rewritten readData and writeData.
  10195. * src/MultiDiskAdaptor.cc
  10196. * src/MultiDiskAdaptor.h
  10197. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Move \n out of the message "Usage: ...".
  10199. * src/version_usage.cc
  10200. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Bump up version number to 0.13.2b.
  10202. * configure.ac
  10203. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10204. Added const qualifier to argument Exception& e.
  10205. * src/Logger.h
  10206. * src/SimpleLogger.cc
  10207. * src/SimpleLogger.h
  10208. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Pool connection when CWD, SIZE command fails.
  10210. * src/FtpNegotiationCommand.cc
  10211. * src/FtpNegotiationCommand.h
  10212. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10213. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10214. * src/HttpResponseCommand.cc
  10215. * src/HttpSkipResponseCommand.cc
  10216. * src/HttpSkipResponseCommand.h
  10217. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Pool connection when a server returns 4xx, 5xx responses.
  10219. * src/HttpNullDownloadCommand.cc
  10220. * src/HttpNullDownloadCommand.h
  10221. * src/HttpResponse.cc
  10222. * src/HttpResponse.h
  10223. * src/HttpResponseCommand.cc
  10224. * src/HttpResponseCommand.h
  10225. * test/HttpResponseTest.cc
  10226. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. Print usage when no URL is specifed or bad command-line option is
  10228. specified.
  10229. * src/HelpItemFactory.cc
  10230. * src/help_tags.h
  10231. * src/option_processing.cc
  10232. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10233. Removed duplicate log message.
  10234. * src/AbstractCommand.cc (asyncResolveHostname)
  10235. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10236. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10237. Changed -j option's default value from 5 to 1.
  10238. Added new examples using protocol auto detection feature.
  10239. Removed -T, -M usage where it can be omitted.
  10240. * doc/aria2c.1.txt
  10241. * doc/aria2c.1.html
  10242. * doc/aria2c.1.txt
  10243. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10244. Updated command-line usage text, so that it tells users that they
  10245. can specify any number of torrent files and metalink files in
  10246. command-line.
  10247. * src/version_usage.cc
  10248. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. Changed the default value of -j option to 1.
  10250. * src/HelpItemFactory.cc
  10251. * src/option_processing.cc
  10252. * src/usage_text.h
  10253. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Added the ability to reuse connection in FTP and it is enabled by
  10255. default. It can be disabled by --ftp-reuse-connection=false option.
  10256. * src/Command.cc
  10257. * src/DownloadCommand.cc
  10258. * src/FtpDownloadCommand.cc
  10259. * src/FtpDownloadCommand.h
  10260. * src/FtpFinishDownloadCommand.cc
  10261. * src/FtpFinishDownloadCommand.h
  10262. * src/FtpInitiateConnectionCommand.cc
  10263. * src/FtpNegotiationCommand.cc
  10264. * src/FtpNegotiationCommand.h
  10265. * src/HelpItemFactory.cc
  10266. * src/Makefile.am
  10267. * src/Makefile.in
  10268. * src/OptionHandlerFactory.cc
  10269. * src/option_processing.cc
  10270. * src/prefs.h
  10271. * src/usage_text.h
  10272. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10273. Call Command::transitStatus() before calling Command::execute(),
  10274. so that the status change made in execute() is not cleared.
  10275. * src/DownloadEngine.cc
  10276. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Removed forward declaration of SocketCore class.
  10278. * src/HttpDownloadCommand.h
  10279. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10281. in InitiateConnectionCommandFactory. They should be set only when
  10282. the protocol is HTTP or HTTPS.
  10283. * src/InitiateConnectionCommandFactory.cc
  10284. * src/RequestGroup.cc
  10285. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Fixed infinite loop in checksum checking.
  10287. * src/IteratableChecksumValidator.cc
  10288. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Set _supportsPersistentConnection to true by default.
  10290. * src/Request.cc
  10291. * src/RequestGroup.cc
  10292. * test/HttpRequestTest.cc
  10293. * test/RequestTest.cc
  10294. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Added timeout to socket pool. The default timeout is 15 seconds,
  10296. which is the same value Apache uses.
  10297. * src/DownloadEngine.cc
  10298. * src/DownloadEngine.h
  10299. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Fixed misuse of multimap::find()
  10301. * src/HttpHeader.cc
  10302. * test/HttpHeaderTest.cc
  10303. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10304. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10305. option.
  10306. The asynchronous DNS is not capable of IPv6 yet.
  10307. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10308. least for HTTP download.
  10309. * src/AbstractCommand.cc
  10310. * src/AbstractCommand.h
  10311. * src/AsyncNameResolver.cc
  10312. * src/AsyncNameResolver.h
  10313. * src/DHTEntryPointNameResolveCommand.cc
  10314. * src/DHTEntryPointNameResolveCommand.h
  10315. * src/DownloadEngine.cc
  10316. * src/DownloadEngine.h
  10317. * src/FtpInitiateConnectionCommand.cc
  10318. * src/FtpInitiateConnectionCommand.h
  10319. * src/HelpItemFactory.cc
  10320. * src/HttpInitiateConnectionCommand.cc
  10321. * src/HttpInitiateConnectionCommand.h
  10322. * src/InitiateConnectionCommand.cc
  10323. * src/InitiateConnectionCommand.h
  10324. * src/Makefile.am
  10325. * src/Makefile.in
  10326. * src/NameResolver.cc
  10327. * src/NameResolver.h
  10328. * src/OptionHandlerFactory.cc
  10329. * src/SocketCore.cc
  10330. * src/SocketCore.h
  10331. * src/Util.cc
  10332. * src/Util.h
  10333. * src/option_processing.cc
  10334. * src/prefs.h
  10335. * src/usage_text.h
  10336. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10337. Updated man page: --quiet, --header were added.
  10338. --metalink-servers and --enable-http-keep-alive option were updated.
  10339. * doc/aria2c.1
  10340. * doc/aria2c.1.html
  10341. * doc/aria2c.1.txt
  10342. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Enable HTTP keep-alive by default.
  10344. * src/HelpItemFactory.cc
  10345. * src/option_processing.cc
  10346. * src/usage_text.h
  10347. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. Disable http keep-alive if the remote server is not HTTP/1.1.
  10349. * src/HttpConnection.cc
  10350. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. Receive content body of 302 response so that the connection can be
  10352. reused later when http keep-alive is enabled.
  10353. * src/HttpNullDownloadCommand.cc
  10354. * src/HttpNullDownloadCommand.h
  10355. * src/HttpResponseCommand.cc
  10356. * src/HttpResponseCommand.h
  10357. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10358. const SharedHandle<Request> -> const SharedHandle<Request>&
  10359. * src/FtpDowndloadCommand.cc
  10360. * src/FtpDowndloadCommand.h
  10361. * src/HttpDownloadCommand.cc
  10362. * src/HttpDownloadCommand.h
  10363. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Fixed the bug that the control file(.aria2 file) is not renamed
  10365. according to tryAutoFileRenaming().
  10366. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10367. its control file exist, use them and continue download.
  10368. The old implementation didn't take into account of control file's
  10369. existence, so basically you couldn't continue download of renamed file.
  10370. * src/BtProgressInfoFile.h
  10371. * src/DefaultBtProgressInfoFile.cc
  10372. * src/DefaultBtProgressInfoFile.h
  10373. * src/NullProgressInfoFile.h
  10374. * src/RequestGroup.cc
  10375. * test/DefaultBtProgressInfoFileTest.cc
  10376. * test/MockBtProgressInfoFile.h
  10377. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10378. Change the default value of --metalink-servers option from `5' to `1'.
  10379. * src/HelpItemFactory.cc
  10380. * src/option_processing.cc
  10381. * src/usage_text.h
  10382. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Reimplemented transparent metalink using Accept request header.
  10384. * src/HttpRequest.cc
  10385. * src/HttpRequest.h
  10386. * src/HttpRequestCommand.cc
  10387. * src/Metalink2RequestGroup.cc
  10388. * src/RequestGroup.cc
  10389. * src/RequestGroup.h
  10390. * test/HttpRequestTest.cc
  10391. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Bump up version number to 0.13.2a
  10393. * configure.ac
  10394. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10395. Updated configure.ac using the result of autoscan.
  10396. * configure.ac
  10397. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10398. Fixed compilation error without gcrypt/openssl.
  10399. * src/DownloadCommand.cc
  10400. * src/DownloadCommand.h
  10401. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Reorganized version information so that it can be displayed in a
  10403. standard terminal screen without scrolling.
  10404. Removed http, ftp from Configuration section, because they are always
  10405. enabled.
  10406. * src/FeatureConfig.cc
  10407. * src/FeatureConfig.h
  10408. * src/main.cc
  10409. * src/messageDigest.cc
  10410. * src/messageDigest.h
  10411. * src/version_usage.cc
  10412. * test/FeatureConfigTest.cc
  10413. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10414. Masked user ID in log.
  10415. * src/FtpConnection.cc (sendUser)
  10416. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Removed query part from filename in HTTP download. The query part means
  10418. the substring after "?" in URL. Firefox seems do the same thing.
  10419. A query part is sometimes very long and not suitable to filename,
  10420. so I think it is better to remove it from filename.
  10421. * src/HttpRequest.cc
  10422. * src/HttpRequest.h
  10423. * src/Request.cc
  10424. * src/Request.h
  10425. * test/HttpRequestTest.cc
  10426. * test/RequestTest.cc
  10427. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. Rewritten Exception class. Throw exception object, not its pointer and
  10429. catch by reference, so that remove problematic delete operator for
  10430. catched exception.
  10431. * src/Exception.cc
  10432. * src/Exception.h
  10433. * test/ExceptionTest.cc
  10434. * src/*: All files throwing/catching exception.
  10435. * test/*: All files throwing/catching exception.
  10436. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. Now auto protocol detection is enabled without -Z option.
  10438. But there is a important difference between with/without -Z optoin.
  10439. For example, if you type:
  10440. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10441. then, aria2 interprets there are 3 request groups:
  10442. (1) http://host/file, http://mirror/file <-- multi-source download
  10443. (2) file1.torrent
  10444. (3) file2.metalink
  10445. On the other hand, if you invoke above command with -Z option, it is
  10446. interpreted as 4 request groups:
  10447. (1) http://host/file
  10448. (2) file1.torrent
  10449. (3) file2.metalink
  10450. (4) http://mirror/file
  10451. I think usually user don't mix multi-source URLs and torrent files, so
  10452. there is no big problem here.
  10453. * src/main.cc
  10454. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10455. Fixed the bug that causes segmentaion fault when reading XML containing
  10456. unescapsed character like '&'.
  10457. Also a modification was made which avoids adding unnecessary
  10458. characters stack and appending unused string.
  10459. * src/ExpatMetalinkProcessor.cc
  10460. * src/FileMetalinkParserState.h
  10461. * src/FilesMetalinkParserState.h
  10462. * src/FinMetalinkParserState.h
  10463. * src/HashMetalinkParserState.h
  10464. * src/InitialMetalinkParserState.h
  10465. * src/LanguageMetalinkParserState.h
  10466. * src/MetalinkMetalinkParserState.h
  10467. * src/MetalinkParserState.h
  10468. * src/MetalinkParserStateMachine.cc
  10469. * src/MetalinkParserStateMachine.h
  10470. * src/OSMetalinkParserState.h
  10471. * src/PieceHashMetalinkParserState.h
  10472. * src/PiecesMetalinkParserState.h
  10473. * src/ResourcesMetalinkParserState.h
  10474. * src/SizeMetalinkParserState.h
  10475. * src/SkipTagMetalinkParserState.h
  10476. * src/URLMetalinkParserState.h
  10477. * src/VerificationMetalinkParserState.h
  10478. * src/VersionMetalinkParserState.h
  10479. * src/XML2SAXMetalinkProcessor.cc
  10480. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10481. Added StringFormat class, which internally calls vasprintf.
  10482. operator<< is defined for this class, so it can be used with iostream
  10483. classes nicely. SimpleLogger and following functions are rewritten
  10484. using StringFormat class.
  10485. Besides, now Logger class's methods are non-const, many classes
  10486. that has a const Logger* as a member variable are modified to remove
  10487. const qualifier from the variable declaration.
  10488. * src/HelpItemFactory.cc
  10489. * src/Request.cc
  10490. * src/SimpleLogger.cc
  10491. * src/StringFormat.cc
  10492. * src/StringFormat.h
  10493. * src/Util.cc
  10494. * src/option_processing.cc
  10495. * src/version_usage.cc
  10496. * test/StringFormatTest.cc
  10497. * src/*.h: The classes that has const Logger* as a member variable.
  10498. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10500. failed. Also fixed memory link when exception is thrown there.
  10501. * src/main.cc (AccRequestGroup)
  10502. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10503. Added build-in "Accept-Features" support. For now only "metalink" is
  10504. used in this header field.
  10505. This "metalink" value is removed from the list when connecting URLs
  10506. fed by metalink file to avoid loop in "transparent" metlaink.
  10507. * src/HttpRequest.cc
  10508. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10509. header is also held in this variable. Also renamed setUserHeaders as
  10510. addHeader and it was rewritten to add header not just to clear the old
  10511. value.
  10512. * src/HttpRequestCommand.cc
  10513. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10514. from "Accept-Features" list.
  10515. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10516. default.
  10517. * src/RequestGroup.h
  10518. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10519. * src/a2functional.h: Included <string> because Concat class depends on
  10520. it.
  10521. * test/HttpRequestTest.cc
  10522. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10523. Added comment
  10524. * src/RequestGroup.cc (createNextCommand)
  10525. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10526. Capitalized METHOD_GET and METHOD_HEAD
  10527. * src/Request.cc
  10528. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10529. Added getDownloadResults() method
  10530. * src/RequestGroupMan.cc
  10531. * src/RequestGroupMan.h
  10532. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. Fixed the bug that aria2 exits when commands is empty() but
  10534. _routineCommands are not.
  10535. * src/DownloadEngine.cc
  10536. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10537. Use the default value pulled from Option object in HelpItemFactory.
  10538. except options whose defualt value is embedded in a usage text.
  10539. * src/HelpItemFactory.cc
  10540. * src/HelpItemFactory.h
  10541. * src/option_processing.cc
  10542. * src/version_usage.cc
  10543. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Added --quiet option to make aria2 quiet (no console output).
  10545. --quiet option is tagged with ADVANCED.
  10546. * src/HelpItemFactory.cc
  10547. * src/LogFactory.cc
  10548. * src/LogFactory.h
  10549. * src/MultiUrlRequestInfo.cc
  10550. * src/MultiUrlRequestInfo.h
  10551. * src/NullStatCalc.h: New class. This class prints nothing.
  10552. * src/OptionHandlerFactory.cc
  10553. * src/main.cc
  10554. * src/option_processing.cc
  10555. * src/prefs.h
  10556. * src/usage_text.h
  10557. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10558. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10559. * src/HelpItemFactory.cc (createHelpItems):
  10560. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10561. Fixed compilation error in ExpatMetalinkProcessor.cc
  10562. * src/ExpatMetalinkProcessor.cc
  10563. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10564. Reuse socket if the origin server supports HTTP keep-alive and
  10565. --enable-http-keep-alive or --enable-http-pipelining is given.
  10566. The current implementation doesn't reuse the connections established
  10567. against proxy server.
  10568. * src/AbstractCommand.cc
  10569. * src/DownloadEngine.cc
  10570. * src/DownloadEngine.h
  10571. * src/HttpDownloadCommand.cc
  10572. * src/HttpInitiateConnectionCommand.cc
  10573. * src/HttpResponseCommand.cc
  10574. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10575. Rewritten HTTP keep-alive and pipelining routine.
  10576. * src/AbstractCommand.cc
  10577. * src/HttpConnection.cc
  10578. * src/HttpDownloadCommand.cc
  10579. * src/HttpRequest.cc
  10580. * src/HttpRequestCommand.cc
  10581. * src/HttpResponseCommand.cc
  10582. * src/Request.cc
  10583. * src/Request.h
  10584. * src/RequestGroup.cc
  10585. * test/HttpRequestTest.cc
  10586. * test/HttpResponseTest.cc
  10587. * test/RequestTest.cc
  10588. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Added missing setUserHeaders call
  10590. * src/HttpRequestCommand.cc
  10591. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10593. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10594. waste of time because it is more likey false.
  10595. * src/FileAllocationDispatcherCommand.cc (execute)
  10596. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10597. Now HTTP status and version are a member variable of HttpHeader.
  10598. HTTP status is processed as a string, not integer.
  10599. * src/AbstractProxyResponseCommand.cc
  10600. * src/HttpConnection.cc
  10601. * src/HttpHeader.cc
  10602. * src/HttpHeader.h
  10603. * src/HttpHeaderProcessor.cc
  10604. * src/HttpHeaderProcessor.h
  10605. * src/HttpResponse.cc
  10606. * src/HttpResponse.h
  10607. * test/HttpHeaderProcessorTest.cc
  10608. * test/HttpResponseTest.cc
  10609. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Added --header option. You can specify any number of additional HTTP headers
  10611. like:
  10612. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10613. Unlike other commad-line option, you can use --header option multiple times.
  10614. * src/HelpItemFactory.cc
  10615. * src/HttpRequest.{cc, h}
  10616. * src/HttpRequestCommand.cc
  10617. * src/OptionHandlerFactory.cc
  10618. * src/OptionHandlerImpl.h
  10619. * src/option_processing.cc
  10620. * src/prefs.h
  10621. * src/usage_text.h
  10622. * test/HttpRequestTest.cc (testUserHeaders)
  10623. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10624. Eliminates the time lag between sequential downloads and commands in
  10625. the same RequestGroup.
  10626. In old implementation, aria2 occasionally waits 1 seconds before
  10627. executing next command or RequestGroup.
  10628. This is really a waste of time, and new implementation eliminates
  10629. this unnecessary time lag.
  10630. * src/AbstractCommand.cc
  10631. * src/AutoSaveCommand.cc
  10632. * src/CheckIntegrityCommand.cc
  10633. * src/Command.{cc, h}
  10634. * src/DownloadEngine.{cc, h}
  10635. * src/DownloadEngineFactory.cc
  10636. * src/FileAllocationCommand.cc
  10637. * src/FileAllocationDispatcherCommand.cc
  10638. * src/FillRequestGroupCommand.cc
  10639. * src/FtpInitiateConnectionCommand.cc
  10640. * src/HaveEraseCommand.cc
  10641. * src/HttpInitiateConnectionCommand.cc
  10642. * src/HttpResponseCommand.cc
  10643. * src/RealtimeCommand.cc
  10644. * src/RequestGroup.cc
  10645. * src/RequestGroupMan.cc
  10646. * src/StreamFileAllocationEntry.cc
  10647. * src/TimeBasedCommand.{cc, h}
  10648. * src/TimedHaltCommand.cc
  10649. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10650. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10651. keyword explicit and SharedHandle's default constructor initializes
  10652. its internal obj to null, old implementation initializes it using
  10653. obj's default constructor.
  10654. To assign null, write SharedHandle<T> x(...); x.reset();
  10655. TODO: test/SharedHandleTest.cc needs more tests.
  10656. * src/SharedHandle.h
  10657. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Fixed type in man page.
  10659. * doc/aria2c.1.txt
  10660. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10662. * src/SimpleLogger.{cc, h}
  10663. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. Implemented auto protocol detection.
  10665. Now you can do:
  10666. aria2c -Z http://host/file file1.torrent file2.metalink
  10667. (Note: -Z option is required for auto protcol detection.)
  10668. Then aria2c downloads 3 files simultaneously:
  10669. 1. http://host/file
  10670. 2. file1.torrent <-- read local torrent file
  10671. 3. file2.metalink <-- read local Metalink file.
  10672. Same thing goes with -i option. Assume your uris.txt contans:
  10673. http://host/file
  10674. file1.torrent
  10675. file2.metalink
  10676. Then you can do: aria2c -i uris.txt
  10677. (Note: -Z option is not needed if -i option is given.)
  10678. * src/main.cc
  10679. * src/ProtocolDetector.{cc, h}
  10680. * test/ProtocolDetectorTest.cc
  10681. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10682. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10683. installed
  10684. * src/ARC4Encryptor.h
  10685. * src/ARC4Decryptor.h
  10686. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Renamed argument from 'errno' to 'err', since errno is confused with
  10688. errno defined in errno.h.
  10689. * src/LibgcryptARC4Decryptor.h
  10690. * src/LibgcryptARC4Context.h
  10691. * src/LibgcryptDHKeyExchange.h
  10692. * src/LibgcryptARC4Encryptor.h
  10693. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10694. Rewritten choking algorithm.
  10695. * src/PeerChokeCommand.{cc, h}
  10696. * src/BtInterestedMessage.cc
  10697. * src/PeerSessionResource.{cc, h}
  10698. * src/DefaultPeerStorage.{cc, h}
  10699. * src/BtNotInterestedMessage.cc
  10700. * src/DefaultBtMessageDispatcher.{cc, h}
  10701. * src/BtMessageDispatcher.h
  10702. * src/Peer.{cc, h}
  10703. * src/BtLeecherStateChoke.{cc, h}
  10704. * src/BtSetup.cc
  10705. * src/BtSeederStateChoke.{cc, h}
  10706. * src/PeerStorage.h
  10707. * test/MockPeerStorage.h
  10708. * test/MockBtMessageDispatcher.h
  10709. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10710. Fixed compilation error on x84-64 platform.
  10711. * src/AuthConfig.cc: Included ostream.
  10712. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. Rewritten getBasename() and getDirname(), without standard library
  10714. basename(), dirname().
  10715. * src/File.cc
  10716. * test/FileTest.cc
  10717. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Added Simplified Chinese translation. Also updated the following
  10719. translations: Polish, Dutch, German. Great thanks to all translators.
  10720. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Suppress content-range error when 'Content-Range' response header
  10722. doesn't contains bytes-unit specifier 'bytes'
  10723. * src/HttpHeader.cc (getRange)
  10724. * test/HttpHeaderTest.cc
  10725. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10726. Fixed compilation error with g++-4.3
  10727. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10728. Added missing include files for MinGW
  10729. * test/HttpHeaderProcessorTest.cc
  10730. * test/DHTRoutingTableSerializerTest.cc
  10731. * test/DHTRoutingTableDeserializerTest.cc
  10732. * test/UriListParserTest.cc
  10733. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10734. Now download line is printed nicely with no garbage at the end of
  10735. line. I use ioctl to get the columns of terminal.
  10736. If stdout is redirected to another device, instead of carriage return,
  10737. end of line '\n' character is used. This is feature request#1909659
  10738. * src/ConsoleStatCalc.cc (calculateStat)
  10739. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10740. Included a2time.h
  10741. * src/DHTMessageDispatcher.h
  10742. * src/DHTMessageEntry.h
  10743. * src/DHTReplaceNodeTask.h
  10744. * src/DHTMessageTracker.h
  10745. * src/Util.h
  10746. * src/CookieBox.h
  10747. * src/SocketCore.h
  10748. * src/DefaultBtMessageDispatcher.h
  10749. * src/SocketCore.cc
  10750. * src/Util.cc
  10751. * src/DHTPingTask.h
  10752. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. Fixed high memory footprint when DHT is enabled.
  10754. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10755. queued than it is processed and the queue is getting longer. As a
  10756. consequence, momory usage is increased.
  10757. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10758. replacement cache in DHTBucket which is described in Kademlia paper.
  10759. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10760. DHTReplaceNodeTask.
  10761. * src/DHTBucket.{h, cc}
  10762. (cacheNode): New function.
  10763. (getCachedNodes): New function.
  10764. (dropNode): Push back cached node to _nodes.
  10765. * test/DHTBucketTest.cc
  10766. (testCacheNode): New test
  10767. (testDropNode): New test
  10768. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10769. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10770. the unused 4KB memory when ssl is not used.
  10771. * src/SocketCore.cc
  10772. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Added summary log for peer announce storage.
  10774. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10775. Removed cast
  10776. * src/DefaultPeerStorage.cc (addPeer)
  10777. Log exception message
  10778. * src/DHTMessageTracker.cc (handleTimeout)
  10779. Fixed casting
  10780. * test/HttpRequestTest.cc
  10781. * test/MetalinkProcessorTest.cc
  10782. * test/PieceTest.cc
  10783. * test/MetalinkEntryTest.cc
  10784. * test/SequenceTest.cc
  10785. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10786. * src/ParameterizedStringParser.cc (createLoop):
  10787. Removed unused variable sstep.
  10788. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10789. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10790. * src/Util.{h, cc}
  10791. (parseUInt): New function.
  10792. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10793. The actual range is uint32_t.
  10794. * test/UtilTest.cc
  10795. * src/ParameterizedStringParser.cc:
  10796. Use Util::parseUInt() for loop variables.
  10797. * test/ParameterizedStringParserTest.cc
  10798. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10799. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10800. Rewritten the functions for binding port.
  10801. * src/DHTConnectionImpl.{h, cc}
  10802. * src/PeerListenCommand.{h, cc}
  10803. * src/DHTSetup.cc
  10804. * src/BtSetup.cc
  10805. * test/DHTConnectionImplTest.cc
  10806. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10807. type cleanup for allmost all remaining files.
  10808. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10809. Type clarification
  10810. * src/PeerSessionResource.{h, cc}
  10811. * src/DefaultPieceStorage.{h, cc}
  10812. * src/Peer.{h, cc}
  10813. * test/PeerSessionResourceTest.cc
  10814. Use div function
  10815. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10816. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10817. Type clarification
  10818. * src/DefaultPeerStorage.{h, cc}
  10819. * test/DefaultPeerStorageTest.cc
  10820. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10821. Type clarification: size_t for length or size, uint64_t for file
  10822. length, off_t for file offset.
  10823. * src/DefaultBtProgressInfoFile.cc
  10824. * src/DefaultBtContext.{h, cc}
  10825. * src/DefaultBtInteractive.cc
  10826. * src/DownloadCommand.{h, cc}
  10827. * src/IteratableChunkChecksumValidator.{h, cc}
  10828. * src/SegmentMan.{h, cc}
  10829. * src/SingleFileDownloadContext.{h, cc}
  10830. * src/IteratableChecksumValidator.{h, cc}
  10831. * src/BtContext.h
  10832. * src/IteratableValidator.h
  10833. * src/DownloadContext.h
  10834. * test/SingleFileDownloadContextTest.cc
  10835. * test/DefaultBtContextTest.cc
  10836. * test/MockBtContext.h
  10837. * test/Metalink2RequestGroupTest.cc
  10838. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10839. Type clarification: size_t for length or size, uint64_t for file
  10840. length, off_t for file offset.
  10841. * src/PiecedSegment.cc
  10842. * src/GrowSegment.h
  10843. * src/DefaultBtRequestFactory.h
  10844. * src/DefaultBtProgressInfoFile.cc
  10845. * src/UnknownLengthPieceStorage.h
  10846. * src/DefaultPieceStorage.cc
  10847. * src/UnknownLengthPieceStorage.cc
  10848. * src/DefaultBtInteractive.cc
  10849. * src/GrowSegment.cc
  10850. * src/BitfieldMan.h
  10851. * src/DownloadCommand.cc
  10852. * src/BtRequestFactory.h
  10853. * src/PiecedSegment.h
  10854. * src/DefaultPieceStorage.h
  10855. * src/Piece.cc
  10856. * src/DefaultBtRequestFactory.cc
  10857. * src/PieceStorage.h
  10858. * src/Segment.h
  10859. * src/Piece.h
  10860. * src/BitfieldMan.cc
  10861. * src/Util.cc
  10862. * test/DefaultBtProgressInfoFileTest.cc
  10863. * test/DefaultPieceStorageTest.cc
  10864. * test/MockPieceStorage.h
  10865. * test/BtRequestMessageTest.cc
  10866. * test/DefaultBtMessageDispatcherTest.cc
  10867. * test/BitfieldManTest.cc
  10868. * test/GrowSegmentTest.cc
  10869. * test/PieceTest.cc
  10870. * test/SegmentTest.cc
  10871. * test/SegmentManTest.cc
  10872. * test/DefaultBtRequestFactoryTest.cc
  10873. * test/MockBtRequestFactory.h
  10874. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. Fixed compilation error with --disable-nls
  10876. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10877. in gettext.h causes the problem.
  10878. * src/common.h
  10879. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10880. Removed subPiece related functions.
  10881. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10882. * src/DefaultPieceStorage.{h, cc}
  10883. * test/PieceTest.cc
  10884. * test/DefaultPieceStorageTest.cc
  10885. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10886. Use unsigned char for data store.
  10887. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10888. Bump up version number to 0.13.0+1
  10889. * configure.ac
  10890. * Release 0.13.0+1
  10891. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10892. Changed inactive connection timeout to 120.
  10893. To accept more mulually interested peers, disconnect peer when there
  10894. is no interest between us after certain time passed.
  10895. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10896. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10897. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10898. when compiled with async DNS support.
  10899. * src/DownloadEngine.cc
  10900. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10901. value '10' will be a little bit short when some DNS servers are
  10902. offline and several DNS servers are tried. It should be configured
  10903. by command-line option.
  10904. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Merged Ross's mingw patch.
  10906. * src/DHTRoutingTableDeserializer.cc
  10907. * src/DHTRoutingTableSerializer.cc
  10908. * src/Platform.{h, cc}
  10909. * src/timegm.h
  10910. * src/gettimeofday.h
  10911. * src/getaddrinfo.h
  10912. * src/SocketCore.h
  10913. * src/common.h
  10914. * src/inet_aton.h
  10915. * src/DownloadEngine.h
  10916. * src/gai_strerror.h
  10917. * src/a2netcompat.h
  10918. * configure.ac
  10919. * configure
  10920. * aclocal.m4
  10921. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10922. Included missing iostream.
  10923. * test/AllTest.cc
  10924. * test/BtDependencyTest.cc
  10925. * test/BtExtendedMessageTest.cc
  10926. * test/DHTConnectionImplTest.cc
  10927. * test/DHTMessageFactoryImplTest.cc
  10928. * test/DHTMessageTrackerEntryTest.cc
  10929. * test/DHTNodeTest.cc
  10930. * test/DHTRoutingTableSerializerTest.cc
  10931. * test/DefaultBtAnnounceTest.cc
  10932. * test/DefaultBtContextTest.cc
  10933. * test/DefaultBtMessageFactoryTest.cc
  10934. * test/DefaultExtensionMessageFactoryTest.cc
  10935. * test/HandshakeExtensionMessageTest.cc
  10936. * test/HttpResponseTest.cc
  10937. * test/MetalinkProcessorTest.cc
  10938. * test/MultiFileAllocationIteratorTest.cc
  10939. * test/SocketCoreTest.cc
  10940. * test/UTPexExtensionMessageTest.cc
  10941. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Reorganized includes.
  10943. * src/NameResolver.cc
  10944. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Fixed compilation error without ares/c-ares
  10946. * src/NameResolver.h:
  10947. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10948. Added a test for large file.
  10949. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10950. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. Fixed the bug that file size is ignored if size > INT32_MAX
  10952. * src/SizeMetalinkParserState.cc (endElement):
  10953. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10954. Bump up version number to 0.13.0
  10955. * configure.ac
  10956. * Release 0.13.0
  10957. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10958. Updated Makfefile.am to make 'make dist' work.
  10959. Now packaged filename is aria2c-VERSION.tar.bz2.
  10960. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10961. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10962. Large file support is now configured by configure script.
  10963. * configure.ac
  10964. Removed unsused source files
  10965. * src/
  10966. * test/
  10967. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10968. Peer.h and BtContext.h respectively.
  10969. * src/Peer.h
  10970. * src/BtContext.h
  10971. Updated translations.
  10972. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10973. translations. Great thanks to all translators!;)
  10974. * po/*.{po, gmo}
  10975. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10977. statically declared sha1 MessageDigestContext.
  10978. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10979. initialization of short-lived MessageDigestContext.
  10980. * src/MessageDigestHelper.{h, cc}
  10981. * src/main.cc
  10982. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10983. the initialization of MessageDigestContext every time in validating
  10984. chunk checksum.
  10985. * src/DownloadCommand.{h, cc}
  10986. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Add a file descriptor which connected to fast peer(latency<1500) to
  10988. select(). This change reduced CPU load.
  10989. * src/PeerInteractionCommand.cc
  10990. * src/DefaultBtInteractive.{h, cc}
  10991. * src/BtInteractive.h
  10992. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10993. Fixed the previous insufficient fix for possible busy loop.
  10994. * src/MSEHandshake.cc (identifyHandshakeType)
  10995. Removed unused functions.
  10996. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10997. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10998. Fixed possible busy loop if first 20 bytes are not received for a few
  10999. minutes.
  11000. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11001. * src/ReceiverMSEHandshakeCommand.cc
  11002. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. Fixed compilation error
  11004. * src/ExpatMetalinkProcessor.cc
  11005. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11006. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11007. * src/DHTBucket.cc
  11008. Removed unnecessary cast.
  11009. * src/HandshakeExtensionMessage.cc
  11010. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11011. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11012. is missing.
  11013. * src/OptionHandlerFactory.cc
  11014. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11015. Fixed the bug that HAVE message is not sent for a piece they are
  11016. downloaded fom http/ftp server before any BitTorrent handshake is done
  11017. with peers.
  11018. * src/DefaultBtInteractive.cc
  11019. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11021. * src/Makefile.am
  11022. * src/Makefile.in
  11023. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Updated README. Added html version of README and man page.
  11025. * README
  11026. * README.html
  11027. * readme2html: Shell script to generate README.html from README using
  11028. asciidoc.
  11029. * doc/aria2c.1.html
  11030. * doc/makeman: Added the line to generate aria2c.1.html
  11031. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. Fixed offset calculation.
  11033. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11034. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. Rewritten itos and uitos using template. llitos and ullitos are
  11036. replaced with itos and uitos respectively.
  11037. * src/Util.{h, cc}
  11038. * test/UtilTest.cc
  11039. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11040. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11041. of the number of bytes required for storing public key and shared
  11042. secret.
  11043. * src/LibgcryptDHKeyExchange.h
  11044. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11045. * src/MSEHandshake.cc
  11046. * test/DHKeyExchangeTest.cc
  11047. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. Removed since they are not used.
  11049. * src/Xml2MetalinkProcessor.{h, cc}
  11050. * src/Socket.cc
  11051. * src/SegmentSplitter.{h, cc}
  11052. * test/Xml2MetalinkProcessorTest.cc
  11053. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11054. Fixed the bug that prevents aria2 from stopping other than by pressing
  11055. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11056. option. aria2 doesn't stop even after --seed-time is satisfied and
  11057. continues to output blank lines in the console.
  11058. * src/ReceiverMSEHandshakeCommand.cc
  11059. * src/PeerReceiveHandshakeCommand.cc
  11060. * src/PeerListenCommand.cc
  11061. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11062. Bump up version number to 0.13.0rc
  11063. * configure.ac
  11064. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. Updated man page and some usage text.
  11066. * doc/aria2c.1.txt
  11067. * src/usage_text.h
  11068. * po/*.{po, gmo}
  11069. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. Updated translations. Added Finnish and Hebrew translations.
  11071. Great thanks to all translators!
  11072. * po/*.{po, gmo}
  11073. * po/LINGUAS
  11074. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. Log more detailed information about each message.
  11076. * src/DHTQueryMessage.{h, cc}
  11077. * src/DHTGetPeersMessage.{h, cc}
  11078. * src/DHTFindNodeReplyMessage.{h, cc}
  11079. * src/DHTGetPeersReplyMessage.{h, cc}
  11080. * src/DHTAnnouncePeerMessage.{h, cc}
  11081. * src/DHTResponseMessage.{h, cc}
  11082. * src/DHTFindNodeMessage.{h, cc}
  11083. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11084. Use constants defined in prefs.h
  11085. * src/option_processing.cc
  11086. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11088. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. Make room for future enchancements for IPv6 addresses.
  11090. Bump up version number of dht.dat file format to 2.
  11091. Not compatible with previous version.
  11092. * src/DHTRoutingTableSerializer.cc
  11093. * src/DHTRoutingTableDeserializer.cc
  11094. * test/DHTRoutingTableSerializerTest.cc
  11095. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11096. Added handling for the return values from
  11097. PeerMessageUtil::createcompact().
  11098. * src/DefaultBtContext.cc (computeFastSet):
  11099. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11100. Fixed abort when peer's ip address is IPv4-mapped address.
  11101. * src/DefaultBtContext.cc (computeFastSet)
  11102. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11103. cannot handle IPv4-mapped addresses.
  11104. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11105. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11106. Proper return value handling for OpenSSL functions.
  11107. * src/LibsslDHKeyExchange.h
  11108. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11109. Random bytes generation using libgcrypt and OpenSSL.
  11110. * src/DHTUtil.{h, cc}
  11111. * test/DHTUtilTest.cc
  11112. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11113. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11114. received.
  11115. * src/DHTMessageReceiver.cc (receiveMessage)
  11116. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11117. Fixed the bug that a return code is always 0. BUG#1897704
  11118. If error occurred during the download or there exist unfinished
  11119. downloads, aria2 returns with code 1.
  11120. * src/RequestGroupMan.{h, cc}
  11121. * src/MultiUrlRequestInfo.{h, cc}
  11122. * src/main.cc
  11123. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. IPv6 support for SocketCore class.
  11125. TODO: In SocketCore::establishConnection(), this is insufficient to
  11126. determin the failure of connect() here because the socket is
  11127. non-blocking state. The next addresses should be tried after select().
  11128. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11129. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11130. instead which address family independent.
  11131. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11132. information in a compact peer format which is for IPv4 only.
  11133. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11134. this is a spec of BitTorrent protocol.
  11135. * src/SocketCore.{h, cc}
  11136. * src/PeerMessageUtil.cc
  11137. * test/SocketCoreTest.cc
  11138. * test/PeerMessageUtilTest.cc
  11139. * test/DHTConnectionImplTest.cc
  11140. Handle IPv4-mapped addresses.
  11141. * src/DHTNode.cc: Now identity is determined by node id.
  11142. * src/DHTMessageTrackerEntry.cc
  11143. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11144. should handle it.
  11145. * src/DHTRoutingTableDeserializer.cc
  11146. * src/DHTMessageFactoryImpl.cc
  11147. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11148. Change the unit of --stop option from a minute to a second.
  11149. * src/usage_text.h
  11150. * src/DownloadEngineFactory.cc
  11151. * src/OptionHandlerFactory.cc
  11152. * src/message.h
  11153. * src/TimedHaltCommand.cc
  11154. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Make listening socket non-block mode.
  11156. * src/FtpConnection.cc
  11157. * src/FtpNegotiationCommand.{h, cc}
  11158. * src/PeerListenCommand.cc
  11159. Fixed the bug that cause slow ftp negotiation.
  11160. * src/FtpNegotiationCommand.{h, cc}
  11161. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11162. Added basic tag to --enable-dht, --dht-listen-port option.
  11163. * src/HelpItemFactory.cc (createHelpItems)
  11164. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. Updated text.
  11166. * src/usage_text.h
  11167. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11169. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Determin _threadtholdSpeed in each constructor for
  11171. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11172. * src/ActivePeerConnectionCommand.{h, cc}
  11173. * src/PeerReceiveHandshakeCommand.{h, cc}
  11174. * src/BtSetup.cc
  11175. * src/BtConstants.h
  11176. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11177. Added --bt-min-crypto-level and --bt-require-crypto options.
  11178. * src/OptionHandlerFactory.cc
  11179. * src/MSEHandshake.cc
  11180. * src/HelpItemFactory.cc
  11181. * src/option_processing.cc
  11182. * src/ReceiverMSEHandshakeCommand.cc
  11183. * src/prefs.h
  11184. * src/DefaultBtAnnounce.cc
  11185. * src/InitiatorMSEHandshakeCommand.cc
  11186. * src/usage_text.h
  11187. * test/MSEHandshakeTest.cc
  11188. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Bump version number to 0.13.0b
  11190. * configure.ac
  11191. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11192. Updated doc.
  11193. * src/MessageDigestHelper.h:
  11194. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11195. Use raw message digest as a token instead of its hexadecimal
  11196. representation.
  11197. * src/DHTTokenTracker.cc (generateToken)
  11198. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11199. Added Message Stream Encryption(MSE) support.
  11200. Currently, aria2 accepts incoming connections with Obfuscation Header
  11201. and legacy BitTorrent Header and establishes connections with
  11202. Obfuscation Header first and if failed then retry with legacy
  11203. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11204. choose ARC4. The new option to change the default behavior is planned.
  11205. For tracker extension, "supportcrypto=1" is added statically.
  11206. * src/PeerInitiateConnectionCommand.{h, cc}
  11207. * src/PeerConnection.{h, cc}
  11208. * src/HandleRegistry.h
  11209. * src/SocketCore.h
  11210. * src/PeerReceiveHandshakeCommand.{h, cc}
  11211. * src/BtRegistry.{h, cc}
  11212. * src/PeerListenCommand.cc
  11213. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11214. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11215. * src/MSEHandshake.{h, cc}
  11216. * src/ARC4Encryptor.h
  11217. * src/ARC4Decryptor.h
  11218. * src/LibgcryptARC4Encryptor.h
  11219. * src/LibgcryptARC4Decryptor.h
  11220. * src/LibgcryptARC4Context.h
  11221. * src/LibsslARC4Encryptor.h
  11222. * src/LibsslARC4Decryptor.h
  11223. * src/LibsslARC4Context.h
  11224. * src/DHKeyExchange.h
  11225. * src/LibgcryptDHKeyExchange.h
  11226. * src/LibsslDHKeyExchange.h
  11227. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11228. * test/DefaultBtAnnounceTest.cc
  11229. * test/ARC4Test.cc
  11230. * test/DHKeyExchangeTest.cc
  11231. Removed prepareForRetry() because it is not used.
  11232. * src/PeerAbstractCommand.{h, cc}
  11233. * src/PeerInteractionCommand.{h, cc}
  11234. * src/PeerInitiateConnectionCommand.{h, cc}
  11235. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11236. Added the ability to load nodes from torrent file. These nodes are
  11237. added to the routing table when downloading that torrent.
  11238. * src/BtContext.h
  11239. * src/DefaultBtContext.{h, cc}
  11240. * src/DHTSetup.cc
  11241. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11242. hostname and port pair, and resolves all of them.
  11243. * src/NameResolver.{h, cc}: Added reset().
  11244. * src/RequestGroup.cc
  11245. * test/DefaultBtContextTest.cc
  11246. * test/MockBtContext.h
  11247. Removed assert() from DefaultBtContext and throw exception instead.
  11248. * src/DefaultBtContext.cc
  11249. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11250. Fixed segmentation fault bug when exiting if dht is disabled.
  11251. * src/RequestGroup.cc
  11252. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11253. Fixed typo in log message and define the message in message.h
  11254. * src/TimedHaltCommand.cc
  11255. * src/message.h
  11256. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. Included RecoverableException.h to fix compilation error.
  11258. * test/DHTMessageFactoryImplTest.cc
  11259. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11260. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11261. * test/DHTPingMessageTest.cc
  11262. * test/DHTGetPeersMessageTest.cc
  11263. * test/DHTFindNodeMessageTest.cc
  11264. * test/DHTAnnouncePeerMessageTest.cc
  11265. * test/MockDHTMessage.h
  11266. * test/MockDHTMessageFactory.h
  11267. * test/MockDHTMessageDispatcher.h: New class.
  11268. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11269. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11270. virtual.
  11271. * src/DHTMessageDispatcher.h
  11272. * src/DHTMessageDispatcherImpl.{h, cc}
  11273. * src/DHTSetup.cc
  11274. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11275. Adding handling of DHT error message. Just log error message and
  11276. throw exception.
  11277. * src/DHTMessageFactoryImpl.cc
  11278. * test/DHTMessageFactoryImplTest.cc
  11279. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11280. Added handling of dynamic cast failure.
  11281. * src/DHTNodeLookupTask.cc
  11282. * src/DHTPeerLookupTask.cc
  11283. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11284. Added the ability to stop aria2 itself when given time has passed
  11285. from start. Use --stop option to specify time in minutes.
  11286. When 0 is given, this feature is disabled.
  11287. * src/OptionHandlerFactory.cc
  11288. * src/TimeBasedCommand.h: Make _interval protected scope.
  11289. * src/HelpItemFactory.cc
  11290. * src/option_processing.cc
  11291. * src/prefs.h
  11292. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11293. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11294. Without this modification, the result list shows "ERR" when aria2 is
  11295. stopped by --stop option. It should be "INPR".
  11296. * src/DownloadEngine.{h, cc}
  11297. * src/DownloadEngineFactory.cc
  11298. * src/usage_text.h
  11299. * src/TimedHaltCommand.{h, cc}: New class.
  11300. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11301. Bootstrap through node added by port message.
  11302. Currently bootstrap is executed if the number of buckets in routing
  11303. table is 1.
  11304. * src/BtPortMessage.{h, cc}
  11305. * src/DefaultBtMessageFactory.{h, cc}
  11306. * src/PeerInteractionCommand.cc
  11307. * test/BtPortMessageTest.cc
  11308. * test/MockDHTTask.h
  11309. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11310. Extract the Peer class's member variables, which are only needed after
  11311. PeerInteractionCommand, into PeerSessionResource class.
  11312. This class is instantiated in PeerInteractionCommand class's ctor and
  11313. released in its dtor.
  11314. This will make Peer class lightweight and uses less memory for peers
  11315. which are not connected and wait in the queue.
  11316. * src/PeerChokeCommand.cc
  11317. * src/PeerSessionResource.{h, cc}
  11318. * src/PeerInteractionCommand.cc
  11319. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11320. * src/DefaultBtInteractive.cc
  11321. * src/BtPieceMessage.cc
  11322. * src/BtInterestedMessage.cc
  11323. * src/BtUnchokeMessage.cc
  11324. * src/DefaultPeerStorage.{h, cc}
  11325. * src/PeerInitiateConnectionCommand.cc
  11326. * src/ActivePeerConnectionCommand.cc
  11327. * src/BtNotInterestedMessage.cc
  11328. * src/DefaultBtMessageDispatcher.cc
  11329. * src/BtChokeMessage.cc
  11330. * src/BtRequestMessage.cc
  11331. * src/Peer.{h, cc}
  11332. * src/BtRegistry.h
  11333. * src/TrackerWatcherCommand.cc
  11334. * src/PeerReceiveHandshakeCommand.cc
  11335. * test/BtExtendedMessageTest.cc
  11336. * test/BtAllowedFastMessageTest.cc
  11337. * test/BtCancelMessageTest.cc
  11338. * test/DefaultPieceStorageTest.cc
  11339. * test/BtBitfieldMessageTest.cc
  11340. * test/BtHaveMessageTest.cc
  11341. * test/BtNotInterestedMessageTest.cc
  11342. * test/BtRequestMessageTest.cc
  11343. * test/PeerSessionResourceTest.cc
  11344. * test/DefaultBtMessageDispatcherTest.cc
  11345. * test/PeerTest.cc
  11346. * test/BtInterestedMessageTest.cc
  11347. * test/BtRejectMessageTest.cc
  11348. * test/BtChokeMessageTest.cc
  11349. * test/DefaultPeerStorageTest.cc
  11350. * test/BtHaveNoneMessageTest.cc
  11351. * test/BtHaveAllMessageTest.cc
  11352. * test/DefaultExtensionMessageFactoryTest.cc
  11353. * test/BtUnchokeMessageTest.cc
  11354. * test/DefaultBtMessageFactoryTest.cc
  11355. * test/HandshakeExtensionMessageTest.cc
  11356. * test/UTPexExtensionMessageTest.cc
  11357. * test/DefaultBtRequestFactoryTest.cc
  11358. * test/BtPieceMessageTest.cc
  11359. Removed typedef PeerStats.
  11360. * src/PeerStat.h
  11361. * src/SegmentMan.cc
  11362. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11363. Added std namespace to copy, remove_copy, back_inserter,
  11364. front_inserter.
  11365. * src/RequestGroupMan.cc
  11366. * src/DefaultPieceStorage.cc
  11367. * src/StreamFileAllocationEntry.cc
  11368. * src/BtFileAllocationEntry.cc
  11369. * src/RequestGroup.cc
  11370. * src/MetalinkEntry.cc
  11371. * src/DelegatingPeerListProcessor.cc
  11372. * src/DefaultBtRequestFactory.cc
  11373. * src/DefaultBtMessageDispatcher.cc
  11374. * src/version_usage.cc: Included <algorithm>
  11375. * src/main.cc
  11376. * src/MetalinkParserController.cc
  11377. * src/DefaultBtContext.cc
  11378. * src/DownloadEngineFactory.cc
  11379. * src/a2algo.h
  11380. Removed.
  11381. * test/StreamUriListParserTest.cc
  11382. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11383. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11384. ActivePeerConnectionCommand when it is given and
  11385. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11386. * src/ActivePeerConnectionCommand.{h, cc}
  11387. * src/BtSetup.cc
  11388. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11389. Only add socket to DownloadEngine's select routine when peer or
  11390. localhost is unchoked and interested. This lowers CPU usage a
  11391. little bit.
  11392. * src/PeerInteractionCommand.cc
  11393. * src/PeerAbstractCommand.{h, cc}
  11394. * src/BtInteractive.h
  11395. * src/DefaultBtInteractive.{h, cc}
  11396. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11397. Revert previous change because get_peers message is needed for
  11398. announce_peer anyway.
  11399. * src/DHTGetPeersCommand.cc
  11400. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11401. Request peers thought DHT only when download hasn't finished.
  11402. * src/DHTGetPeersCommand.cc
  11403. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11404. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11405. * src/DHTBucketRefreshTask.{h, cc}
  11406. * src/DHTSetup.cc
  11407. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11408. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11409. standard classes.
  11410. Included string.h where mem* function are used.
  11411. Added namespace aria2.
  11412. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. Create directory before saving DHT routing table.
  11414. Now ios::failure is now handled properly.
  11415. * src/DHTAutoSaveCommand.cc
  11416. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11417. Removed unnecessary cerr.
  11418. * src/DownloadEngine.cc
  11419. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11420. Catch exception inside DHTMessageReceiver::receiveMessage().
  11421. Log unknown message.
  11422. * src/DHTMessageReceiver.{h, cc}
  11423. * src/DHTMessageFactory.h
  11424. * src/DHTMessageFactoryImpl.{h, cc}
  11425. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11426. * src/DHTInteractionCommand.cc
  11427. * src/DHTUnknownMessage.{h, cc}
  11428. * test/DHTUnknownMessageTest.cc
  11429. * test/MockDHTMessageFactory.h
  11430. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11431. Commented out ip address comparison because a host can have multiple
  11432. ip addresses and it is hard to predict the hostname is resolved into
  11433. which one.
  11434. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11435. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11436. * po/Makefile.in: Removed since this is generated by configure.
  11437. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11438. Fixed compiler warning about redefinition of SIZE_MAX.
  11439. Use common.h instead of config.h directly here.
  11440. * src/Platform.{h, cc}
  11441. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11442. here.
  11443. * common.h
  11444. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11445. Updated gettext related files.
  11446. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11447. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11448. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Added DHT functionality, compatible with mainline.
  11450. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11451. You may need to specify entry point to DHT network using
  11452. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11453. Use --dht-listen-port to specify port number. Make sure that your
  11454. firewall configuration can pass through UDP traffic to the port.
  11455. The routing table is saved in $HOME/.aria2/dht.dat.
  11456. * src/DHT*
  11457. * src/BNode.{h, cc}
  11458. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11459. particular torrent.
  11460. * src/Data.cc: Rewritten ctor.
  11461. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11462. --dht-entry-point.
  11463. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11464. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11465. ends, remove BtContext from DHTPeerAnnounceStorage.
  11466. * src/BtPortMessage.{h, cc}: Rewritten.
  11467. * src/message.h
  11468. * src/OptionHandlerImpl.cc
  11469. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11470. --dht-entry-point.
  11471. * src/Dictionary.{h, cc} (remove): New function.
  11472. * src/prefs.h
  11473. * src/DefaultBtMessageFactory.h
  11474. * src/BtHandshakeMessage.cc
  11475. * src/ActivePeerConnectionCommand.cc
  11476. * src/SocketCore.{h, cc}: Added datagram socket support.
  11477. * src/DefaultBtMessageFactory.cc
  11478. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11479. Create DHT commands.
  11480. * src/BtMessageFactory.h
  11481. * src/PeerMessageUtil.{h, cc}
  11482. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11483. Fixed the bug that log file is not written when configuration file doesn't exist.
  11484. This is caused by using Logger class before LogFactory is not configured.
  11485. BUG #1875079
  11486. * src/option_processing.cc
  11487. Warning message "configuration doesn't exist" is only printed when --conf is
  11488. given.
  11489. * src/option_processing.cc
  11490. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11491. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11492. ShaVisitor is now deprecated and slated to be removed.
  11493. * src/DefaultBtContext.cc
  11494. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. Externalize message to message.h
  11496. * src/Platform.cc
  11497. * src/message.h
  11498. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11499. Set default domain and default path to cookie.
  11500. * src/HttpResponse.cc
  11501. * src/CookieBox.{h, cc}
  11502. * src/CookieParser.{h, cc}
  11503. * test/CookieParserTest.cc
  11504. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11505. Added --no-conf and --conf-path command-line option.
  11506. --no-conf option disables loading aria2.conf file.
  11507. --conf-path option changes the configuration file path. The default
  11508. file path is $HOME/.aria2/aria2.conf
  11509. Added a warning message when the configuration file is not found.
  11510. * src/HelpItemFactory.cc
  11511. * src/option_processing.cc
  11512. * src/prefs.h
  11513. * src/usage_text.h
  11514. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11515. Added the message to inform users that other help categories are
  11516. available in -h option.
  11517. * src/version_usage.cc
  11518. * src/TagContainer.{h, cc}
  11519. * test/TagContainerTest.cc
  11520. * src/TaggedItem.{h, cc}
  11521. * test/TaggedItemTest.cc
  11522. * src/HelpItem.h
  11523. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11524. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11525. from PiecedSegment's ctor.
  11526. Previously Piece::getAllMissingBlockIndexes() is called from
  11527. PiecedSegment() but it is rather expensive since only first element is
  11528. used.
  11529. * src/PiecedSegment.cc
  11530. * src/Piece.{h, cc}
  11531. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11533. each time these functions are called.
  11534. * src/BitfieldMan.{h, cc}
  11535. * test/BitfieldManTest.cc
  11536. * src/array_fun.h
  11537. * test/array_funTest.cc
  11538. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11539. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11540. filtered. Removed unnecessary cast to int32_t.
  11541. * src/BitfieldMan.{h, cc}
  11542. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11543. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11544. payload length(4bytes) are received. This happens because lenbufLength
  11545. is not updated in this particular case and successive call of
  11546. receiveMessage() overwrites payload length with bytes recieved which
  11547. are payload body.
  11548. * src/PeerConnection.{h, cc}
  11549. * src/message.h
  11550. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11551. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11552. peer if there are peers that have same ipaddr and port.
  11553. I've experiened segmentation fault and "pure virtual function was
  11554. called" error.
  11555. * src/Peer.h
  11556. * test/PeerTest.cc
  11557. * src/DefaultPeerStorage.cc
  11558. * test/DefaultPeerStorageTest.cc
  11559. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11560. Removed a call to isPowerOf() because it is no longer necessary here
  11561. and a request block is not always power of 2.
  11562. BUG#1866924
  11563. * src/PeerMessageUtil.cc (checkLength)
  11564. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11565. Fixed the bug that always first found Segment is removed from
  11566. usedSegmentEntries. Removed unused functions.
  11567. * src/SegmentMan.{h, cc}
  11568. * test/SegmentManTest.cc
  11569. Fixed the bug that ServerHost is not removed.
  11570. * src/RequestGroup.cc
  11571. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11572. Fixed the bug that SegmentMan::completeSegment() is not called
  11573. even if Segment is complete when --lowest-speed-limit is enabled.
  11574. BUG#1864525
  11575. * src/DownloadCommand.{h, cc}
  11576. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11577. Fixed: hash algorithm 'sha1' is always used.
  11578. * src/DownloadCommand.cc (validatePieceHash)
  11579. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. Added --enable-peer-exchange command-line option.
  11581. * src/OptionHandlerFactory.cc
  11582. * src/HelpItemFactory.cc
  11583. * src/option_processing.cc
  11584. * src/usage_text.h
  11585. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11586. Move extension from BtRuntime to ExtensionMessageFactory, because
  11587. extension can be specified per peer, not per torrent.
  11588. * src/DefaultBtInteractive.cc
  11589. * src/BtRuntime.h
  11590. * src/ExtendedMessagingAware.h
  11591. * src/ExtensionMessageFactory.h
  11592. * src/DefaultExtensionMessageFactory.cc
  11593. * test/DefaultExtensionMessageFactoryTest.cc
  11594. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11595. Added categorized option help. Specify category using --help option.
  11596. Also added the ability to search options in forward match.
  11597. * src/HelpItem.{h, cc}
  11598. * test/HelpItemTest.cc
  11599. * src/HelpItemFactory.{h, cc}
  11600. * src/TagContainer.{h, cc}
  11601. * test/TagContainerTest.cc
  11602. * src/option_processing.cc
  11603. * src/prefs.h
  11604. * src/TaggedItem.{h, cc}
  11605. * test/TaggedItemTest.cc
  11606. * src/version_usage.cc
  11607. * src/help_tags.h
  11608. * src/usage_text.h
  11609. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11610. Fixed segmentation fault when bad torrent metainfo is parsed.
  11611. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11612. and then throw exception or skip it.
  11613. * src/DefaultBtContext.{h, cc}
  11614. * test/DefaultBtContextTest.cc
  11615. * src/AnnounceList.cc
  11616. * src/CompactPeerListProcessor.cc
  11617. * src/message.h
  11618. * src/DefaultBtAnnounce.{h, cc}
  11619. * test/DefaultBtAnnounceTest.cc
  11620. * src/BencodeVisitor.cc
  11621. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11622. Added missing "B"(=Byte). So now the message looks like this:
  11623. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11624. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11625. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11626. Show the seed ratio after torrent downloads.
  11627. For example, after torrent download completed and --seed-time and
  11628. --seed-ratio conditions are fulfilled, following message is printed
  11629. right after "Download complete: .....":
  11630. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11631. * src/RequestGroupMan.cc
  11632. * src/RequestGroup.{h, cc}
  11633. * src/message.h
  11634. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11635. Remove a defunct control file. A defunct control file means that while
  11636. it exists, but the corresponding download file is missing.
  11637. After its removal, a download restarts from the beginning.
  11638. * src/RequestGroup.cc
  11639. * src/message.h
  11640. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11641. Allocate bitfield in Peer when it is really used. More specifically,
  11642. bitfield in Peer is allocated after the connection is established and
  11643. deallocated when the connection is dropped.
  11644. Since 2 parameters(piece length and total length) was removed from the
  11645. constructor of Peer class, many test classes were modified accordingly.
  11646. See svn log for more detailed information.
  11647. * src/PeerInteractionCommand.cc
  11648. * src/CompactPeerListProcessor.cc
  11649. * src/Peer.cc
  11650. * src/DefaultPeerListProcessor.cc
  11651. * src/PeerListenCommand.cc
  11652. * src/PeerReceiveHandshakeCommand.cc
  11653. Fixed memory leak
  11654. * src/Piece.cc
  11655. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11657. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11658. command-line options.
  11659. * src/option_processing.cc
  11660. * src/ActivePeerConnectionCommand.cc
  11661. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. Send have message to peer if it already has the piece.
  11663. * src/BtHaveMessage.{h, cc}
  11664. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11665. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11666. port.
  11667. * src/DefaultPeerStorage.{h, cc}
  11668. * test/DefaultPeerStorageTest.cc
  11669. * src/HandshakeExtensionMessage.cc
  11670. * test/HandshakeExtensionMessageTest.cc
  11671. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11672. * src/PeerStorage.h
  11673. * test/MockPeerStorage.h
  11674. * src/PeerListenCommand.cc
  11675. * src/PeerReceiveHandshakeCommand.cc
  11676. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11677. Added --metalink-enable-unique-protocol option.
  11678. * src/Metalink2RequestGroup.cc
  11679. * src/option_processing.cc
  11680. * src/prefs.h
  11681. * src/version_usage.cc
  11682. * doc/aria2c.1.txt
  11683. * doc/aria2c.1
  11684. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. Allow a peer in incomingPeer to be added peers.
  11686. * src/DefaultPeerStorage.cc
  11687. * test/DefaultPeerStorageTest.cc
  11688. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11689. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11690. I could reproduce this bug in following procedure:
  11691. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11692. 2. Restart aria2.
  11693. 3. You see the download stopped around 99%.
  11694. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11695. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11696. If timeout is reached, then _nextCommand is unused and it may contains
  11697. segments and they won't be canceled. Actually, timeout is not needed
  11698. here because if the server dropped connection, then retry is made.
  11699. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11700. Added uTorrent compatible Peer Exchange.
  11701. * src/BencodeVisitor.{h, cc}
  11702. * test/BencodeVisitorTest.cc
  11703. * src/BtConstants.h
  11704. * src/BtContext.h: Added 'private' flag.
  11705. * src/BtExtendedMessage.{h, cc}
  11706. * test/BtExtendedMessageTest.cc
  11707. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11708. reserved field.
  11709. * test/BtHandshakeMessageTest.cc
  11710. * src/BtMessageFactory.h
  11711. * src/BtRegistry.h
  11712. * src/BtRuntime.h: This class holds default extension message IDs for
  11713. aria2. By default, aria2 uses ID 8 for ut_pex.
  11714. * src/DefaultBtContext.cc
  11715. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11716. When it is true, aria2 enables ut_pex. This value is set by
  11717. PeerInteractionCommand.
  11718. * src/DefaultBtMessageFactory.{h, cc}
  11719. * test/DefaultBtMessageFactoryTest.cc
  11720. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11721. handling to DefaultBtInteractive class.
  11722. * src/DefaultExtensionMessageFactory.{h, cc}
  11723. * test/DefaultExtensionMessageFactoryTest.cc
  11724. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11725. the container(peers and incomingPeers. The equality is determined by
  11726. Peer::id).
  11727. * test/DefaultPeerStorageTest.cc
  11728. * src/ExtensionMessage.h
  11729. * test/MockExtensionMessage.h
  11730. * src/ExtensionMessageFactory.h
  11731. * test/MockExtensionMessageFactory.h
  11732. * src/HandshakeExtensionMessage.{h, cc}
  11733. * test/HandshakeExtensionMessageTest.cc
  11734. * src/MetaEntry.h
  11735. * src/Peer.{h, cc}
  11736. * src/PeerInteractionCommand.cc
  11737. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11738. addIncomingPeer.
  11739. * src/PeerMessageUtil.{h, cc}
  11740. * src/PeerObject.h
  11741. * src/UTPexExtensionMessage.{h, cc}
  11742. * test/UTPexExtensionMessageTest.cc
  11743. * src/message.h
  11744. * src/prefs.h
  11745. Fixed the bug that returns incomplete data when it contains null
  11746. character. A convenient constructor was also added.
  11747. * src/Data.{h, cc}
  11748. Rewritten.
  11749. * src/CompactPeerListProcessor.cc
  11750. Fixed typos.
  11751. * src/message.h
  11752. * src/MetaFileUtil.cc
  11753. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11754. Added "Status Legend" label to the explanation text of 'stat' in
  11755. download result and moved it to the last. BUG#1848214
  11756. * src/RequestGroupMan.cc
  11757. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11758. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11759. * src/Makefie.am
  11760. * test/Makefile.am
  11761. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11762. Fixed the bug that prevents aria2 from loading cookie file when expire
  11763. value is greater than 2^31-1. BUG#1851066
  11764. * src/CookieBoxFactory.cc
  11765. * test/CookieBoxFactoryTest.cc
  11766. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11767. Fixed possible memory leak when an exception is thrown.
  11768. * src/XML2SAXMetalinkProcessor.cc
  11769. Added Expat support. If both libxml2 and Expat are installed, then
  11770. libxml2 is used by default.
  11771. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11772. ExpatMetalinkProcessor according to the configuration.
  11773. * src/ExpatMetalinkProcessor.{h, cc}
  11774. * src/main.cc: Removed libxml2 specific header and init/free function.
  11775. * src/MetalinkProcessorFactory.{h, cc}
  11776. * src/MetalinkHelper.cc
  11777. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11778. * src/MetalinkProcessor.h
  11779. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11780. MetalinkProcessorTest is used instead.
  11781. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11782. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11783. MetalinkProcessorFactory::newInstance().
  11784. * m4/libexpat.m4
  11785. * configure.ac: Added configuration options for libexpat.
  11786. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. Disabled -s option in metalink download.
  11788. * src/Metalink2RequestGroup.cc
  11789. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11790. If several protocols are available for a mirror in metalink file,
  11791. aria2 now use one of them. --metalink-preferred-protocol option was
  11792. added to specify the preference of protocol.
  11793. * src/AbstractCommand.cc
  11794. * src/OptionHandlerFactory.cc
  11795. * src/ServerHost.{h, cc}
  11796. * src/Metalink2RequestGroup.cc
  11797. * src/RequestGroup.{h, cc}
  11798. * test/RequestGroupTest.cc
  11799. * src/option_processing.cc
  11800. * src/prefs.h
  11801. * src/HttpResponseCommand.cc
  11802. * src/MetalinkResource.{h, cc}
  11803. * src/FtpNegotiationCommand.cc
  11804. * src/MetalinkEntry.{h, cc}
  11805. * src/MetalinkEntryTest.cc
  11806. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11807. Code cleanup and added debug log.
  11808. * src/PeerConnection.cc
  11809. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11810. Compiler error fix: applied the patch by Tiziano Mueller
  11811. * src/RequestGroup.cc
  11812. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11813. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11814. in stopped and completed event.
  11815. * src/AnnounceList.{h, cc}
  11816. * test/AnnounceListTest.cc
  11817. * src/DefaultBtAnnounce.cc
  11818. * test/DefaultBtAnnounceTest.cc
  11819. Sorted URLs.
  11820. * test/Metalink2RequestGroupTest.cc
  11821. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11822. Removed unnecessary string copy. Updated doc and corrected indentation.
  11823. * src/Base64.cc
  11824. Fixed compilation warnings
  11825. * test/DataTest.cc
  11826. * test/HttpRequestTest.cc
  11827. * test/MetaFileUtilTest.cc
  11828. * test/RequestTest.cc
  11829. * Release 0.12.0
  11830. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11831. Updated translations
  11832. * po/{de,fr,ja,nl,ru}.po
  11833. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11834. translations. Many thanks to translators.
  11835. * po/{ca,es,it,pt_BR,sv}.po
  11836. * po/LINGUAS
  11837. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11838. Added a notice about URL
  11839. * src/version_usage.cc
  11840. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11841. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11842. aria2 repeatedly sends stopped request when tracker returns error code.
  11843. * src/AnnounceList.cc
  11844. * test/AnnounceListTest.cc
  11845. * src/AnnounceTier.h
  11846. Added a message when ctrl-c is hit.
  11847. Now second ctrl-c is also handled in signal handler.
  11848. * src/RequestGroupMan.{h, cc}
  11849. * src/RequestGroup.{h, cc}
  11850. * src/MultiUrlRequestInfo.cc
  11851. * src/DownloadEngine.cc
  11852. * src/TrackerWatcherCommand.cc
  11853. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. Code cleanup
  11855. * src/Base64.cc (encode)
  11856. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11857. Changed Direct/IO enable/disable procesure in file allocation routine.
  11858. * src/SingleFileAllocationIterator.cc
  11859. (SingleFileAllocationIterator):
  11860. Disable directIO if offset is not multiple of 512.
  11861. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11862. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11863. Enable created SingleFileAllocationIterator's directIO.
  11864. * src/FileAllocationEntry.cc
  11865. (FileAllocationEntry): Enable directIO here.
  11866. (~FileAllocationEntry): Disable directIO here.
  11867. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11868. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11869. * src/Peer.{h, cc}
  11870. * src/DefaultPieceStorage.cc
  11871. * test/DefaultPieceStorageTest.cc
  11872. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11873. Rewritten direct I/O support routine
  11874. * src/SingleFileAllocationIterator.cc
  11875. * src/MultiDiskAdaptor.{h, cc}
  11876. * src/ByteArrayDiskWriter.h
  11877. * src/AbstractSingleDiskAdaptor.h
  11878. * src/AbstractDiskWriter.cc
  11879. * src/DefaultPieceStorage.cc
  11880. * src/DiskWriter.h
  11881. * src/BinaryStream.h
  11882. * src/IteratableChunkChecksumValidator.cc
  11883. * src/IteratableChecksumValidator.cc
  11884. * src/CheckIntegrityEntry.cc
  11885. * src/FileAllocationEntry.cc
  11886. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11887. Fixed typo
  11888. * src/version_usage.cc
  11889. Updated doc
  11890. * doc/aria2c.1.txt
  11891. * doc/aria2c.1
  11892. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. Fixed compile error without message digest support.
  11894. * src/FileMetalinkParserState.cc
  11895. * src/MetalinkParserController.{h, cc}
  11896. * test/XML2SAXMetalinkProcessorTest.cc
  11897. * test/MetalinkParserControllerTest.cc
  11898. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11899. Enable direct I/O support in checksum checking.
  11900. * src/IteratableChunkChecksumValidator.{h, cc}
  11901. * test/IteratableChunkChecksumValidatorTest.cc
  11902. * src/CheckIntegrityEntry.cc
  11903. * src/PieceHashCheckIntegrityEntry.cc
  11904. * src/IteratableChecksumValidator.{h, cc}
  11905. * src/BtCheckIntegrityEntry.cc: Added doc.
  11906. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11907. Added --allow-piece-length-change option.
  11908. * src/DefaultBtProgressInfoFile.cc
  11909. * test/DefaultBtProgressInfoFileTest.cc
  11910. * src/OptionHandlerFactory.cc
  11911. * src/option_processing.cc
  11912. * src/prefs.h
  11913. * src/version_usage.cc
  11914. * doc/aria2c.1.txt
  11915. * doc/aria2c.1
  11916. Fixed: duplicated result entry appears when exception is thrown in
  11917. RequestGroup::createInitiateConnectionCommand().
  11918. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11919. Add RequestGroup to _requestGroup after RequetGroup::
  11920. createInitiateConnectionCommand() succeeds.
  11921. Externalized message
  11922. * src/XML2SAXMetalinkProcessor.cc
  11923. * src/message.h
  11924. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11925. Forced download abort when received negative response from http/ftp
  11926. server.
  11927. * src/HttpResponseCommand.cc
  11928. * src/FtpNegotiationCommand.cc
  11929. * src/HttpResponse.cc
  11930. * src/FtpConnection.cc
  11931. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11932. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11933. the predecessor, Xml2MetalinkParser class.
  11934. I tested them against 94KB metalink file with 1234 chunk checksums.
  11935. The new one parsed it in 22msec, while it took 6000msec with old one.
  11936. * src/XML2SAXMetalinkProcessor.{h, cc}
  11937. * test/XML2SAXMetalinkProcessorTest.cc
  11938. * src/MetalinkParserController.{h, cc}
  11939. * test/MetalinkParserControllerTest.cc
  11940. * src/MetalinkParserState.h: Also added 16 subclasses.
  11941. * src/main.cc
  11942. * src/Metalink2RequestGroup.cc
  11943. * src/MetalinkHelper.cc
  11944. * src/MetalinkEntry.cc
  11945. * src/ChunkChecksum.h
  11946. Rewritten Base64 class for better performance.
  11947. * src/Base64.{h, cc}
  11948. * test/Base64Test.cc
  11949. * src/HttpRequest.cc
  11950. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11951. Fixed the bug#1841757: aria2 will connect to server to only get
  11952. file size.
  11953. * src/StreamFileAllocationEntry.cc
  11954. * src/option_processing.cc
  11955. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11956. downloads.
  11957. * src/FtpNegotiationCommand.cc
  11958. Suppressed wrong message when finding PreDownloadHandler
  11959. * src/RequestGroup.cc
  11960. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11961. Updated usage
  11962. * src/version_usage.cc
  11963. Updated man page
  11964. * doc/aria2c.1.txt
  11965. * doc/aria2c.1
  11966. Updated po files
  11967. * po/aria2c.pot
  11968. * po/*.po
  11969. * po/*.gmo
  11970. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Eliminated g++-4.2 warning
  11972. * src/DownloadHandlerConstants.{h, cc}
  11973. * src/Util.cc
  11974. * test/MetaFileUtilTest.cc
  11975. * test/PStringBuildVisitorTest.cc
  11976. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11977. * src/RequestGroup.cc
  11978. * src/BtCheckIntegrityEntry.cc
  11979. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11980. Fixed a2io.h
  11981. * src/a2io.h
  11982. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11983. Added direct I/O support. The current implementation uses O_DIRECT,
  11984. which is not posix standard and is tested on linux 2.6.21.
  11985. Currently only file allocation uses direct I/O.
  11986. * src/SingleFileAllocationIterator.{h, cc}
  11987. * test/SingleFileAllocationIteratorTest.cc
  11988. * src/MultiFileAllocationIterator.{h, cc}
  11989. * test/MultiFileAllocationIteratorTest.cc
  11990. * src/BinaryStream.h
  11991. * src/DiskWriter.h
  11992. * src/AbstractDiskWriter.{h, cc}
  11993. * src/ByteArrayDiskWriter.h
  11994. * src/DiskAdaptor.h
  11995. * src/AbstractSingleDiskAdaptor.{h, cc}
  11996. * src/MultiDiskAdaptor.{h, cc}
  11997. * src/FileAllocationEntry.cc
  11998. * src/Util.{h, cc}
  11999. * src/OptionHandlerFactory.cc
  12000. * src/prefs.h
  12001. * src/version_usage.cc
  12002. * src/option_processing.cc
  12003. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12004. handleException.
  12005. * src/MultiFileAllocationIterator.cc
  12006. Added EINTR handling
  12007. * src/SocketCore.cc
  12008. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12009. Updated usage
  12010. * src/version_usage.cc
  12011. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12012. Applied Ross's patch for MinGW port.
  12013. * src/DownloadEngine.h
  12014. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12015. Set Content-Type to SingleFileDownloadContext when http response is
  12016. received.
  12017. * src/HttpResponseCommand.cc
  12018. * src/HttpResponse.{h, cc}
  12019. * test/HttpResponseTest.cc
  12020. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12021. Rewritten to add content-type support.
  12022. * src/DownloadHandler.{h, cc}
  12023. * src/BtPostDownloadHandler.{h, cc}
  12024. * test/BtPostDownloadHandlerTest.cc
  12025. * src/MetalinkPostDownloadHandler.{h, cc}
  12026. * test/MetalinkPostDownloadHandlerTest.cc
  12027. * src/PostDownloadHandler.{h, cc}
  12028. * src/DownloadHandlerConstants.{h, cc}
  12029. * src/RequestGroup.cc
  12030. * src/HttpResponseCommand.cc
  12031. * src/FtpNegotiationCommand.cc
  12032. * src/SingleFileDownloadContext.{h, cc}
  12033. * src/RequestGroup.h
  12034. * src/RequestGroupCriteria.h
  12035. * src/ContentTypeRequestGroupCriteria.h
  12036. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12037. If it is give, metalink/torrent file is not written to the disk, but
  12038. just is kept in memory. Parsing is occurred on memory.
  12039. * src/MetalinkHelper.{h, cc}
  12040. * src/MetalinkProcessor.h
  12041. * src/Xml2MetalinkProcessor.{h, cc}
  12042. * test/Xml2MetalinkProcessorTest.cc
  12043. * src/DownloadHandlerFactory.{h, cc}
  12044. * test/DownloadHandlerFactoryTest.cc
  12045. * src/PreDownloadHandler.{h, cc}
  12046. * src/OptionHandlerFactory.cc
  12047. * src/DefaultBtContext.{h, cc}
  12048. * test/DefaultBtContextTest.cc
  12049. * src/version_usage.cc
  12050. * src/Metalink2RequestGroup.{h, cc}
  12051. * src/RequestGroup.{h, cc}
  12052. * src/a2functional.h
  12053. * test/a2functionalTest.cc
  12054. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12055. * src/OptionHandlerImpl.h
  12056. * src/prefs.h
  12057. * src/Util.{h, cc}
  12058. * test/UtilTest.cc
  12059. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12060. memory usage.
  12061. * src/RequestGroupMan.{h, cc}
  12062. * src/DownloadEngine.cc
  12063. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12064. WeakHandle to SharedHandle because WeakHandle could be null.
  12065. * src/RequestGroup.{h, cc}
  12066. * src/DownloadEngineFactory.cc
  12067. * src/DownloadResult.h
  12068. Set totalLength after download finished
  12069. * src/UnknownLengthPieceStorage.{h, cc}
  12070. Keep torrent file specified in metalink in memory.
  12071. * src/Metalink2RequestGroup.cc
  12072. * src/BtDependency.cc
  12073. * src/TrueRequestGroupCriteria.h
  12074. Fixed the bug: seekg is used where seekp should be used.
  12075. * src/ByteArrayDiskWriter.cc
  12076. * test/ByteArraydiskWriterTest.cc
  12077. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12078. Fixed syntax error
  12079. * test/SequenceTest.cc
  12080. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12081. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12082. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12083. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12084. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12085. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Added the check to see whether ares_host_callback accepts timeouts
  12087. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12088. * src/NameResolver.{h, cc}
  12089. * m4/libcares.m4
  12090. * configure.ac: Set C++ for language choice.
  12091. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12092. Fixed: compilation fails without c-ares/ares
  12093. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12094. Generate http/ftp commands only when download is incomplete.
  12095. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12096. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12097. Corrected typo. Examples are removed since they are available in man
  12098. page.
  12099. * src/version_usage.cc
  12100. Updated man page.
  12101. * doc/aria2c.1
  12102. * doc/aria2c.1.txt
  12103. * doc/makeman: Commented out sed command.
  12104. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12105. Throw DlAbortEx when a remote file is not found.
  12106. * src/HttpResponse.cc
  12107. * src/FtpNegotiationCommand.cc
  12108. * src/message.h
  12109. Overwrite an existing file if --allow-overwrite=true is given.
  12110. * src/RequestGroup.cc
  12111. Removed unused functions
  12112. * src/AbstractCommand.h
  12113. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12114. Removed 'extern' from 'extern typedef ...' in src/*.h
  12115. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12116. Updated usage
  12117. * src/version_usage.cc
  12118. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12119. Trim announce URL
  12120. * src/DefaultBtContext.cc
  12121. * test/ShaVisitorTest.cc
  12122. Trim argument s. Give trimed s to exception constructor.
  12123. * src/Util.cc (parseInt)(parseLLInt)
  12124. * test/UtilTest.cc
  12125. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12126. Set precision back to 1.
  12127. * src/ConsoleStatCalc.cc (calculateStat)
  12128. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12129. Replaced strtol with Util::parseInt
  12130. * src/ChunkedEncoding.cc
  12131. * src/HttpConnection.cc
  12132. * src/CookieBoxFactory.cc
  12133. * src/ParameterizedStringParser.cc
  12134. * src/Util.cc
  12135. * test/UtilTest.cc
  12136. * test/OptionHandlerTest.cc
  12137. * src/Request.cc
  12138. Throw exception when empty string is given. The message for exception
  12139. changed.
  12140. * src/Util.cc (parseInt)(parseLLInt)
  12141. * src/message.h
  12142. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12143. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12144. set to 1.
  12145. * src/ConsoleStatCalc.cc (calculateStat)
  12146. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12147. Preallocate non-requested file which is adjacent forward to requested
  12148. file('requested' files means the files given in --select-file option)
  12149. if they share a same piece.
  12150. This fixes long pause in the file system which doesn't support sparse
  12151. files like FAT32 while downloading.
  12152. * src/MultiFileAllocationIterator.{h, cc}
  12153. * test/MultiFileAllocationIteratorTest.cc
  12154. * src/FileEntry.{h, cc}
  12155. Removed unused _option.
  12156. * src/MultiDiskAdaptor.h
  12157. * test/MultiDiskAdaptorTest.cc
  12158. * src/DefaultPieceStorage.cc
  12159. Set the default value of --seed-ratio to 1.0.
  12160. If 0.0 is given, then seeding continues regardless of share ratio.
  12161. * src/version_usage.cc
  12162. * src/option_processing.cc
  12163. * src/BtSetup.cc
  12164. * doc/aria2c.1.txt
  12165. * doc/aria2c.1
  12166. Fixed: Selective download is not working in BitTorrent
  12167. * src/RequestGroup.cc
  12168. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12169. * src/PieceStorage.h
  12170. * test/MockPieceStorage.h
  12171. * src/UnknownLengthPieceStorage.h
  12172. * src/DefaultPieceStorage.{h, cc}
  12173. * src/Metalink2RequestGroup.cc
  12174. * src/RequestGroup.cc
  12175. * src/Sequence.h
  12176. * test/SequenceTest.cc
  12177. * src/IntSequence.h
  12178. * src/message.h
  12179. * src/Util.{h, cc}
  12180. * test/UtilTest.cc
  12181. Added new function 'parse' to catch exception thrown by subclass's
  12182. parseArg
  12183. * src/OptionHandler.h
  12184. * src/OptionParser.cc
  12185. * src/NameMatchOptionHandler.h
  12186. * src/OptionHandlerImpl.h
  12187. * test/OptionHandlerTest.cc
  12188. Added IntegerRangeOptionHandler. Used for --listen-port and
  12189. --select-file. Now --listen-port accepts range of port.
  12190. * src/OptionHandlerFactory.cc
  12191. * src/version_usage.cc
  12192. * src/OptionHandlerImpl.h
  12193. * src/option_processing.cc
  12194. * src/BtSetup.cc
  12195. * src/PeerListenCommand.{h, cc}
  12196. * doc/aria2c.1.txt
  12197. * doc/aria2c.1
  12198. Implemented operator< for Exception class to provide easy way to print
  12199. exception stack trace.
  12200. * src/Exception.{h, cc}
  12201. * src/main.cc
  12202. * src/option_processing.cc
  12203. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12204. * src/version_usage.cc
  12205. (showVersion): Reworked.
  12206. (showUsage): Added examples.
  12207. Removed Hint for total length and file name.
  12208. * src/Metalink2RequestGroup.cc
  12209. * src/RequestGroup.{h, cc}
  12210. * src/HttpResponseCommand.cc
  12211. * src/FtpNegotiationCommand.cc
  12212. Now --follow-torrent and --follow-metalink option work properly.
  12213. * src/RequestGroup.cc
  12214. Updated man page
  12215. * doc/aria2c.1.txt
  12216. * doc/aria2c.1
  12217. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12218. Removed.
  12219. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12220. Use Segment::operator==()
  12221. * src/HttpConnection.cc
  12222. * src/Segment.h
  12223. Updated usage
  12224. * src/version_usage.cc
  12225. Added EINTR treatment.
  12226. * src/SocketCore.cc
  12227. * src/AbstractDiskWriter.cc
  12228. Rewritten.
  12229. * src/Util.cc (rangedFileCopy)
  12230. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12231. Fixed typo.
  12232. * src/version_usage.cc
  12233. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12234. Implemented. Now -c option works fine.
  12235. * src/DefaultPieceStorage.cc (markPiecesDone)
  12236. * test/DefaultPieceStorageTest.cc
  12237. Removed.
  12238. * src/SegmentMan.{h, cc}
  12239. (markAllPiecesDone)
  12240. (markPieceDone)
  12241. Synchronized po files with
  12242. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12243. * src/fr.po
  12244. * src/ru.po
  12245. * src/de.po
  12246. * src/ja.po
  12247. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12248. Added ifdef and some modifications to compile without BitTorrent,
  12249. Metalink, MessageDigest
  12250. support.
  12251. * src/PieceHashCheckIntegrityEntry.cc
  12252. * src/MetalinkEntry.h
  12253. * src/version_usage.cc
  12254. * src/main.cc
  12255. * src/DownloadEngine.{h, cc}
  12256. * src/Metalink2RequestGroup.cc
  12257. * src/Peer.cc
  12258. * src/RequestGroup.cc
  12259. * src/MetalinkHelper.cc
  12260. * test/DefaultPieceStorageTest.cc
  12261. * test/MetalinkPostDownloadHandlerTest.cc
  12262. * test/Metalink2RequestGroupTest.cc
  12263. Hide TOTAL SPD when all downloads complete.
  12264. * src/ConsoleStatCalc.cc
  12265. Log target system information.
  12266. * src/main.cc
  12267. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12268. Now --metalink-location accepts a comma-deliminated list of locations.
  12269. * src/MetalinkEntry.{h, cc}
  12270. * test/MetalinkEntryTest.cc
  12271. * src/version_usage.cc
  12272. * src/Metalink2RequestGroup.cc
  12273. * src/Xml2MetalinkProcessor.cc
  12274. * test/Xml2MetalinkProcessorTest.cc
  12275. * doc/aria2c.1.txt
  12276. * doc/aria2c.1
  12277. * src/Util.cc (toUpper)(toLower): Rewritten.
  12278. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12279. Added the ability to detect duplicate download entry which is about to
  12280. download the same file other RequestGroup is downloading.
  12281. * src/RequestGroup.cc
  12282. * src/HttpResponseCommand.cc
  12283. * src/FtpNegotiationCommand.cc
  12284. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12285. Recalculates download progress when loading a control file,
  12286. if the piece length of DownloadContext is different from the one saved
  12287. in the control file. Currently in-flight pieces are ignored.
  12288. * src/DefaultBtProgressInfoFile.cc
  12289. * test/DefaultBtProgressInfoFileTest.cc
  12290. * src/Util.{h, cc}
  12291. * test/UtilTest.cc
  12292. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12293. Do not rotate tiers in announce-list.
  12294. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12295. AnnounceList::allTiersFailed() used instead to detect whether all
  12296. tiers are tried and failed.
  12297. * test/DefaultBtAnnounceTest.cc
  12298. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12299. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12300. * test/AnnounceListTest.cc
  12301. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12302. clause. Catch RecoverableException instead of DlRetryEx instead.
  12303. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12304. Implemented checksum validation feature(1 checksum for each file)
  12305. The validation takes place after the download.
  12306. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12307. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12308. * src/CheckIntegrityCommand.cc: Changed log message.
  12309. * src/Metalink2RequestGroup.cc: Set checksum to
  12310. SingleFileDownloadContext.
  12311. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12312. PieceHashCheckIntegrity class.
  12313. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12314. PieceHashCheckIntegrity class.
  12315. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12316. * src/IteratableValidator.h: New class.
  12317. * src/message.h
  12318. * src/CheckIntegrityEntry.{h, cc}
  12319. * src/IteratableChunkChecksumValidator.{h, cc}
  12320. * src/SingleFileDownloadContext.h
  12321. * src/DownloadCommand.cc
  12322. --allow-overwrite=true is no longer needed to check file integrity
  12323. before download in BitTorrent download.
  12324. * src/RequestGroup.cc (getInitialCommand)
  12325. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12326. throws exception.
  12327. * src/RequestGroupMan.cc (getInitialCommands)
  12328. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12329. urlencode the given url inside Request::parseUrl(...)
  12330. * src/Request.{h, cc}
  12331. * src/Util.{h, cc}
  12332. * test/RequestTest.cc
  12333. Removed #!metalink3! notation support because it is deleted from
  12334. the metalink specification.
  12335. * src/Request.{h, cc}
  12336. * test/RequestTest.cc
  12337. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12338. Don't connect server before checking file integrity at startup, if
  12339. filesize and output file path are known.
  12340. * src/AbstractCommand.cc
  12341. * src/StreamFileAllocationEntry.cc
  12342. * src/Metalink2RequestGroup.cc
  12343. * src/RequestGroup.{h, cc}
  12344. * src/HttpResponseCommand.cc
  12345. * src/FtpNegotiationCommand.cc
  12346. Added DownloadFailureException. If it is thrown, RequestGroup should
  12347. halt.
  12348. * src/AbstractCommand.cc
  12349. * src/DownloadFailureException.h
  12350. * src/RequestGroup.cc
  12351. Catch RecoverableException, instead of DlAbortEx.
  12352. * src/RequestGroupMan.cc
  12353. * src/FillRequestGroupCommand.cc
  12354. * src/MetaFileUtil.cc
  12355. * src/IteratableChunkChecksumValidator.cc
  12356. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12357. getGID())
  12358. * src/CheckIntegrityCommand.cc
  12359. * src/message.h
  12360. Print gid instead of idx.
  12361. * src/RequestGroupMan.cc
  12362. Removed exception throwers declaration.
  12363. * src/DirectDiskAdaptor.{h, cc}
  12364. * src/SocketCore.{h, cc}
  12365. * src/MultiDiskAdaptor.{h, cc}
  12366. * src/HttpConnection.{h, cc}
  12367. * src/HttpResponse.{h, cc}
  12368. * src/DiskAdaptor.{h, cc}
  12369. * src/CopyDiskAdaptor.{h, cc}
  12370. * src/MultiDiskAdaptor.{h, cc}
  12371. * src/HttpHeaderProcessor.{h, cc}
  12372. * src/AbstractSingleDiskAdaptor.{h, cc}
  12373. * src/Util.{h, cc}
  12374. * test/UtilTest.cc
  12375. * src/DefaultDiskWriter.{h, cc}
  12376. * src/FtpConnection.{h, cc}
  12377. * src/AbstractDiskWriter.{h, cc}
  12378. Removed duplicate code.
  12379. * src/StreamCheckIntegrityEntry.cc
  12380. Removed unnecessary include.
  12381. * src/DiskWriter.h
  12382. Included Exception.h
  12383. * src/option_processing.cc
  12384. Included 2 files and added doc
  12385. * src/TrackerWatcherCommand.cc
  12386. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12387. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12388. Changed CheckIntegrityEntry interface so that it can define
  12389. the action when all the chunk checksums are valid.
  12390. * src/CheckIntegrityEntry.h
  12391. * src/StreamCheckIntegrityEntry.{h, cc}
  12392. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12393. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12394. to exit rather than doing seeding. So, it would be good to toggle this
  12395. behavior.
  12396. * src/CheckIntegrityCommand.cc
  12397. * src/AbstractCommand.cc
  12398. * src/RequestGroup.cc
  12399. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12400. Reflect the download length of in-flight pieces.
  12401. It makes the download length readout more precise.
  12402. * src/DefaultPieceStorage.{h, cc}
  12403. * test/DefaultPieceStorageTest.cc
  12404. * src/a2functional.h
  12405. * test/a2functionalTest.cc
  12406. Lower CPU load when --max-download-limit is used.
  12407. There is up and down in speed indicator when enabling
  12408. http-pipelining but a download goes well. I think the problem is that
  12409. because http-pipelining is enabled, DownloadCommand is created for
  12410. each segment and in its constructor, PeerStat::downloadStart() is
  12411. called. In PeerStat::downloadStart(), speed calculation object is
  12412. reseted, which makes download speed zero.
  12413. * src/DownloadCommand.cc
  12414. Rewritten using accumulate.
  12415. * src/RequestGroupMan.cc (calculateStat)
  12416. Code clearnup.
  12417. * src/FtpNegotiationCommand.cc
  12418. * src/HttpResponseCommand.cc
  12419. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12420. Fixed: Can not resume: aria2 reports download already finished.
  12421. * src/AbstractCommand.{h, cc}
  12422. * src/HttpResponseCommand.cc
  12423. * src/FtpNegotiateCommand.cc
  12424. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12425. Now a file is stored in the directory specified in .metalnk file
  12426. (file[@name]).
  12427. * src/Metalink2RequestGroup.cc
  12428. Create the directory structure when opening the file if it doesn't
  12429. exist.
  12430. * src/AbstractDiskWriter.cc
  12431. * src/Util.{h, cc}
  12432. * src/File.h
  12433. * test/UtilTest.cc
  12434. Removed file name comparison
  12435. * src/Metalink2RequestGroup.cc
  12436. * src/HttpResponseCommand.cc
  12437. Rewritten using Util::mkdirs()
  12438. * src/FileEntry.cc (setupDir)
  12439. * test/FileEntryTest.cc
  12440. Updated doc
  12441. * src/SingleFileDownloadContext.h
  12442. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12443. Now SleepCommand dispatches nextCommand when halt is requested.
  12444. It avoids a possible long wait after hitting CTRL-C.
  12445. * src/SleepCommand.{h, cc}
  12446. * src/RequestGroupAware.{h, cc}
  12447. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12448. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12449. to open listen port, then remove the port number from the tracker
  12450. request.
  12451. * src/DefaultBtAnnounce.cc
  12452. * test/DefaultBtAnnounceTest.cc
  12453. * test/MockPieceStorage.h
  12454. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12455. them more testable.
  12456. * src/DefaultBtAnnounce.{h, cc}
  12457. * src/DefaultBtContext.{h, cc}
  12458. * src/Util.{h, cc}
  12459. * test/DefaultBtAnnounceTest.cc
  12460. * test/DefaultBtContextTest.cc
  12461. * test/UtilTest.cc
  12462. Added 'B' to upload bytes readout.
  12463. * src/ConsoleStatCalc.cc
  12464. Now the listen port for BitTorrent download is opened when it is
  12465. needed.
  12466. * src/DownloadEngineFactory.cc
  12467. * src/BtSetup.{h, cc}
  12468. * src/PeerListenCommand.{h, cc}
  12469. Now an exception thrown while parsing tracker response is now logged.
  12470. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12471. called, which means no retry is made in this case, assuming a tracker
  12472. has a problem.
  12473. * src/TrackerWatcherCommand.cc
  12474. Fixed: downloading a file whose length is unkown fails.
  12475. * src/DownloadCommand.cc
  12476. Simplified prepareForNextSegment()
  12477. * src/DownloadCommand.cc
  12478. Updated
  12479. * po/POTFILES.in
  12480. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12481. Re-implemented a file listing for Metalink, which was dropped while
  12482. http/ftp/torrent integration was being implemented.
  12483. * src/MetalinkHelper.{h, cc}: New class.
  12484. * test/MetalinkHelperTest.cc
  12485. * src/main.cc
  12486. * src/Metalink2RequestGroup.cc
  12487. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12488. Added the ability to display the detailed torrent file information.
  12489. Now -S option gives not only a file listing, but also total download
  12490. length, info hash, announce URI, piece length, the number of pieces,
  12491. and mode(single or multi-torrent).
  12492. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12493. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12494. KiB)
  12495. * test/UtilTest.cc
  12496. * src/main.cc
  12497. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12498. Added ftp://USER:PASSWD@Servername automatic parsing.
  12499. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12500. _password. Recognize username and password in URI.
  12501. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12502. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12503. * src/RequestFactory.{h, cc}: Removed.
  12504. * src/AuthConfigFactory.{h, cc}: New class.
  12505. * src/FtpConnection.cc: Use AuthConfigFactory.
  12506. * src/HttpRequest.cc: Use AuthConfigFactory.
  12507. * test/HttpRequestTest.cc: Updated.
  12508. * test/RequestTest.cc: Updated.
  12509. * test/AuthConfigFactoryTest.cc: New class.
  12510. * test/RequestFactoryTest.cc: Removed.
  12511. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12512. Use RequestGroup::allDownloadFinished() to decide whether the control
  12513. file should be removed or saved.
  12514. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12515. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12516. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12517. Use File::renameTo()
  12518. * src/DefaultBtProgressInfoFile.cc
  12519. Added --no-file-allocation-limit command-line option.
  12520. * src/version_usage.cc
  12521. * src/option_processing.cc
  12522. * src/OptionHandlerFactory.cc
  12523. * src/RequestGroup.{h, cc}
  12524. * src/BtCheckIntegrityEntry.cc
  12525. * src/StreamCheckIntegrityEntry.cc
  12526. * src/prefs.h
  12527. * doc/aria2c.1.txt
  12528. * doc/aria2c.1
  12529. Now prealloc is the default value for --file-allocation option.
  12530. * src/version_usage.cc
  12531. * src/option_processing.cc
  12532. * doc/aria2c.1.txt
  12533. * doc/aria2c.1
  12534. Don't URL-encode user-agent.
  12535. * src/HttpRequest.cc
  12536. Updated translations
  12537. * po/LINGUAS: Added nl for Dutch translation.
  12538. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12539. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12540. * po/POTFILES.in: Updated.
  12541. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12542. Added the ability to recognize url-list in a torrent file.
  12543. The retrieved URLs are attached to the corresponding FileEntry.
  12544. * src/DefaultBtContext.{h, cc}
  12545. * src/FileEntry.{h, cc}
  12546. * test/DefaultBtContextTest.cc
  12547. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12548. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12549. after the download finishes.
  12550. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12551. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12552. the data smaller than block length.
  12553. A block length can be specified by constructor's argument.
  12554. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12555. Get a missing piece in the range of given FileEntry. This function is
  12556. not used in the program yet.
  12557. * src/Util.h: Added some macros.
  12558. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12559. Added HTTP/1.1 keep alive and pipelining support.
  12560. See --enable-http-keep-alive and --enable-http-pipelining option.
  12561. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12562. Segment.
  12563. * src/HttpDownloadCommand.{h, cc}
  12564. * src/OptionHandlerFactory.cc
  12565. * src/HttpConnection.{h, cc}
  12566. * src/version_usage.cc
  12567. * src/HttpInitiateConnectionCommand.cc
  12568. * src/FtpInitiateConnectionCommand.cc
  12569. * src/Segment.h
  12570. * src/HttpRequestCommand.{h, cc}
  12571. * src/option_processing.cc
  12572. * src/prefs.h
  12573. * src/HttpResponseCommand.cc
  12574. * src/SegmentMan.{h, cc}
  12575. * src/FtpNegotiateCommand.cc
  12576. * src/HttpProxyResponseCommand.cc
  12577. * src/Request.cc
  12578. * src/HttpRequest.cc
  12579. * src/DownloadCommand.cc
  12580. * test/HttpRequestTest.cc
  12581. * test/RequestTest.cc
  12582. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12583. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12584. finished.
  12585. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12586. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12587. catching it inside the method.
  12588. When no file entry is found in a metalink without querying user
  12589. preferences, throw the exception with the error message that suggests
  12590. metalink file is probably broken.
  12591. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12592. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12593. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12594. processed.
  12595. * src/RequestGroupMan.cc (removeStoppedGroup)
  12596. Added debug message.
  12597. * src/BtPostDownloadHandler.cc
  12598. * src/MetalinkPostDownloadHandler.cc
  12599. * src/PostDownloadHandler.{h, cc}
  12600. * src/RequestGroup.cc
  12601. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12602. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12603. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12604. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12605. stops and there are any unfinished or in-progress downloads.
  12606. Added the legend of "stat".
  12607. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12608. Throw exception when chunck checksum verification fails.
  12609. * src/DownloadCommand.cc (validatePieceHash): New function.
  12610. * src/PiecedSegment.{h, cc} (clear): New function.
  12611. * src/GrowSegment.{h, cc} (clear): New function.
  12612. * src/Segment.h (clear): New function.
  12613. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12614. * test/SegmentTest.cc
  12615. * test/GrowSegmentTest.cc
  12616. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12617. Do not send referer when redirected.
  12618. * src/Request.cc (redirectUrl)
  12619. * test/RequestTest.cc
  12620. * test/HttpRequestTest.cc
  12621. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12622. Implemented BitTorrent/http/ftp integrated download.
  12623. I've rewritten lots of files and now some headers have forward
  12624. class declarations to reduce compile time.
  12625. The implementation is extremely alpha stage, I recommend to use this
  12626. for testing purpose only.
  12627. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12628. Fixed the compilation error on 64bit platform.
  12629. * test/HttpHeaderProcessorTest.cc
  12630. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12631. Merged Ross's patch that fixes compilation problem in MinGW
  12632. * test/DefaultBtProgressInfoFileTest.cc
  12633. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12634. Updated fr.po by sebone
  12635. * po/fr.po
  12636. Updated man page.
  12637. * doc/aria2c.1.txt
  12638. * Release 0.11.3
  12639. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12640. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12641. failure in Metalink.
  12642. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12643. Automatically save *.aria2 control file of http/ftp download in every
  12644. 60 seconds.
  12645. * src/AutoSaveCommand.{h, cc}: New class.
  12646. * src/TimeBasedCommand.{h, cc}: New class.
  12647. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12648. Disable parameterized URI support by default. Added -P option to
  12649. enable the feature.
  12650. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12651. * src/OptionHandlerFactory.cc
  12652. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12653. Updated Japanese translation.
  12654. * po/ja.po
  12655. Updated man page.
  12656. * doc/aria2c.1.txt
  12657. * Release 0.11.3-rc
  12658. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12659. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12660. it is successful, then renamed to *.aria2.
  12661. This prevents *.aria2 file from being truncated or corrupted when
  12662. file system becomes out of space.
  12663. * src/DefaultBtProgressInfoFile.cc (save)
  12664. * src/SegmentMan.cc (save)
  12665. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12666. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12667. Reduced the fragmentation of bitfield in http/ftp download.
  12668. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12669. * test/BitfieldManTest.cc
  12670. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12671. Added the ability to disable segmented download in .metalink.
  12672. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12673. 'url' tag.
  12674. * src/MetalinkEntry.{h, cc}
  12675. * src/RequestResource.{h, cc}
  12676. * src/MetalinkRequestInfo.cc
  12677. * src/Xml2MetalinkProcessor.cc
  12678. * test/Xml2MetalinkProcessorTest.cc
  12679. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12680. Added parameterized URI support.
  12681. * src/main.cc: -Z option added.
  12682. * src/OptionHandlerFactory.cc
  12683. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12684. * src/PStringDatum.h: New class.
  12685. * src/PStringSegment.{h,cc}: New class.
  12686. * src/PStringNumLoop.h: New class.
  12687. * src/PStringSelect.h: New class.
  12688. * src/NumberDecorator.h: New class.
  12689. * src/FixedWidthNumberDecorator.h: New class.
  12690. * src/AlphaNumberDecorator.h: New class.
  12691. * src/PStringVisitor.h: New class.
  12692. * src/PStringBuildVisitor.{h,cc}: New class.
  12693. * src/ParameterizedStringParser.{h,cc}: New class.
  12694. * src/Util.{h,cc}
  12695. (isNumber): New function.
  12696. (isLowercase): New function.
  12697. (isUppercase): New function.
  12698. (alphaToNum): New function.
  12699. * test/ParameterizedStringParserTest.cc: New class.
  12700. * test/AlphaNumberDecoratorTest.cc: New class.
  12701. * test/PStringBuildVisitorTest.cc: New class.
  12702. * test/UtilTest.cc
  12703. (testIsNumber): New function.
  12704. (testIsLowercase): New function.
  12705. (testIsUppercase): New function.
  12706. (testAlphaToNum): New function.
  12707. Added '\n' after the error message
  12708. * src/RequestInfo.h (printDownloadAbortMessage)
  12709. Added auto file renaming feature in http(s)/ftp download.
  12710. * src/main.cc: Added --auto-file-renaming command-line option.
  12711. * src/OptionHandlerFactory.cc
  12712. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12713. * src/RequestGroup.{h, cc}
  12714. (shouldCancelDownloadForSafety): Rewritten
  12715. (tryAutoFileRenaming): New function.
  12716. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12717. * src/HttpResponseCommand.cc
  12718. (executeInternal): Removed the call to RequestGroupMan::
  12719. isSameFileBeingDownloaded()
  12720. * src/FtpNegotiateCommand.cc
  12721. (recvSize): Removed the call to RequestGroupMan::
  12722. isSameFileBeingDownloaded()
  12723. * test/RequestGroupTest.cc: New class.
  12724. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12725. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12726. IO.
  12727. * src/DefaultBtProgressInfoFile.cc
  12728. * src/MetaFileUtil.cc
  12729. * src/SimpleLogger.cc
  12730. * src/SegmentMan.cc
  12731. * src/Util.cc
  12732. * src/Platform.cc
  12733. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12734. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12735. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12736. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12737. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12738. Fixed the bug that prevents file allocation is not done when
  12739. dowloading multi-torrent file.
  12740. * src/AbstractDiskWriter.cc (openFile)
  12741. Increase the maximum number of -j option from 15 to 45.
  12742. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12743. Added fr.po, thanks to Charles Landemaine.
  12744. * po/fr.po
  12745. * po/LINGUAS
  12746. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12747. gcc 3.4.4 support:
  12748. * src/DefaultBtContext.cc: int32_t -> int
  12749. * src/main.cc: int -> int32_t, int32_t -> int
  12750. * src/messageDigest.h: uint32_t -> unsigned int
  12751. * src/NameResolver.h: int32_t -> int
  12752. * src/PeerConnection.cc: int -> int32_t
  12753. * src/SpeedCalc.cc: int32_t -> int
  12754. * src/TrackerUpdateCommand.h: int -> int32_t
  12755. * src/Util.cc: int32_t -> int
  12756. * src/Util.h: int32_t -> int
  12757. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12758. * test/AnnounceListTest.cc: int -> int32_t
  12759. * test/ChunkedEncodingTest.cc: int -> int32_t
  12760. * test/DataTest.cc: int -> int32_t
  12761. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12762. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12763. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12764. * test/FeatureConfigTest.cc: int -> int32_t
  12765. * test/MetalinkEntryTest.cc: int -> int32_t
  12766. * test/MockBtRequestFactory.h: int -> int32_t
  12767. * test/MockPieceStorage.h: int -> int32_t
  12768. * test/OptionTest.cc: int -> int32_t
  12769. * test/RequestTest.cc: int -> int32_t
  12770. * test/SegmentManTest.cc: int -> int32_t
  12771. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12772. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12773. Move sleep functions to Util class:
  12774. * src/Util.cc
  12775. (sleep): New function.
  12776. (usleep): New function.
  12777. * src/DownloadCommand.cc: sleep -> Util::sleep
  12778. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12779. MinGW build enhancements. The following files are added:
  12780. * src/timegm.{c,h}
  12781. Changes to support the above new files:
  12782. * configure.ac
  12783. * src/Makefile.am
  12784. * src/a2time.h
  12785. * src/Util.cc:
  12786. * src/strptime.c: Added support for %Z option.
  12787. Fixed MinGW non-blocking bug.
  12788. * src/SocketCore.cc
  12789. * src/HttpRequestCommand.cc
  12790. Miscellenous build fixes/enhancements.
  12791. * configure.ac: Added summary report.
  12792. * src/Platform.h: Tweaked #include's.
  12793. * src/a2netcompat.h: Tweaked #include's.
  12794. * src/strptime.h: Tweaked #include's.
  12795. * src/gai_strerror.c: Tweaked #include's.
  12796. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12797. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12798. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12799. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12800. Increased the initial connection size in BitTorrent download to 40.
  12801. * src/BtRuntime.h
  12802. Added the usage message of --peer-id-prefix option.
  12803. * src/main.cc
  12804. * Release 0.11.2
  12805. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12806. MessageDigestHelper is introduced in order to simplify the use
  12807. of message digest. Removed repeated code.
  12808. The message digest algorithm is now specified by string, like "sha1",
  12809. "md5".
  12810. * src/messageDigest.{h, cc}
  12811. * src/MessageDigestHelper.{h, cc}: New class.
  12812. * src/DefaultPieceStorage.cc
  12813. * src/DefaultBtContext.{h, cc}
  12814. (computeFastSet): New function.
  12815. (setInfoHash): Added for unit testing.
  12816. (setNumPieces): Added for unit testing.
  12817. * src/DefaultBtInteractive.cc
  12818. * src/BtPieceMessage.cc
  12819. * src/Peer.cc
  12820. * src/Checksum.h
  12821. * src/message.h
  12822. * src/IteratableChecksumValidator.h
  12823. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12824. inside it.
  12825. * src/SegmentMan.{h, cc}
  12826. (checkIntegrity): Removed.
  12827. * src/IteratableChunkChecksumValidator.{h, cc}
  12828. * src/Util.h
  12829. (sha1Sum): Removed.
  12830. (simpleMessageDigest): Removed.
  12831. (fileChecksum): Removed.
  12832. (computeFastSet): Removed.
  12833. * src/ShaVisitor.cc
  12834. * src/ChunkChecksum.h
  12835. * src/DownloadCommand.cc
  12836. Removed messageDigest virtual functions.
  12837. * src/MultiDiskAdaptor.{h, cc}
  12838. * src/DiskAdaptor.h
  12839. * src/ByteArrayDiskWriter.h
  12840. * src/DiskWriter.h
  12841. * src/DiskAdaptorWriter.h
  12842. * src/AbstractSingleDiskAdaptor.{h, cc}
  12843. * src/AbstractDiskWriter.{h, cc}
  12844. Fixed comilation error when message digest is disabled.
  12845. * src/MetalinkEntry.{h, cc}
  12846. * src/MetalinkRequestInfo.cc
  12847. Removed srandom and random.
  12848. * src/SimpleRandomizer.h
  12849. Added size() virtual function to DiskAdaptor
  12850. * src/MultiDiskAdaptor.h
  12851. Fixed the bug that causes that files are not opened correctly in
  12852. multi-file torrent.
  12853. * src/TorrentRequestInfo.cc
  12854. * src/MultiDiskAdaptor.cc
  12855. Added SHA256 support
  12856. * src/messageDigest.cc
  12857. * src/Xml2MetalinkProcessor.cc
  12858. Show supported message digest algorithms
  12859. * src/main.cc
  12860. Updated contact info.
  12861. * src/main.cc
  12862. Applied Ross's patch
  12863. * src/a2netcompat.h
  12864. * src/main.cc
  12865. Fixed the bug that prevents a remote metalink from not being processed
  12866. even if '-o foo.metalink' is specified.
  12867. * src/MetalinkRequestInfo.cc
  12868. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12869. Merged Dan's patch:
  12870. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12871. Use va_copy to avoid core dump on amd64:
  12872. * src/SimpleLogger.cc
  12873. Updated contact info.
  12874. * src/main.cc
  12875. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12876. digest is not available.
  12877. * src/MetalinkEntry.h
  12878. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12879. Make a2netcompat.h include a2io.h to fix compilation error:
  12880. * src/a2netcompat.h
  12881. * src/SocketCore.cc: Removed include of a2io.h
  12882. * src/Util.cc: Removed include of a2io.h
  12883. Gather time related functions to a2time.h:
  12884. * src/a2time.h: New file.
  12885. * src/DefaultPeerStorage.cc
  12886. * src/SimpleLogger.cc
  12887. * src/Util.{h, cc}
  12888. * src/SimpleRandomizer.h
  12889. * src/TimeA2.{h,cc}
  12890. * src/DownloadCommand.cc
  12891. * src/main.cc
  12892. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12893. a2netcompat.h:
  12894. * src/NameResolver.cc
  12895. Fixed compilation error without openssl:
  12896. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12897. Added default block to suppress compiler warnings:
  12898. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12899. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12900. MinGW build enhancements. The following files are added:
  12901. * src/gai_strerror.{c,h}
  12902. * src/gettimeofday.{c,h}
  12903. Changes to support the above new files:
  12904. * configure.ac
  12905. * src/Makefile.am
  12906. * src/a2netcompat.h
  12907. * src/TimeA2.cc
  12908. * src/DefaultPeerStorage.cc
  12909. * src/NameResolver.cc: removed mingw_strerror() function.
  12910. * src/SocketCore.cc: removed mingw_strerror() function.
  12911. Miscellaneous MinGW build fixes.
  12912. * src/a2io.h: Use _lseeki64() instead of lseek()
  12913. * src/common.h
  12914. * src/DefaultFileAllocator.cc
  12915. * src/GlowFileAllocator.cc
  12916. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12917. * src/NameResolver.cc
  12918. (callback): Changed int32_t to int.
  12919. (resolve): Changed int32_t to int.
  12920. * src/Platform.cc
  12921. * src/Platform.h
  12922. * test/MultiDiskWriterTest.cc
  12923. * test/PeerMessageUtilTest.cc
  12924. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12925. Other enhancements and fixes.
  12926. * src/HttpRequestCommand.cc
  12927. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12928. * src/SocketCore.cc:
  12929. (error): New function to abstract errno/WSAGetLastError().
  12930. (errorMsg): New function to abstract errno/WSAGetLastError().
  12931. (initiateSecureConnection): Added more detailed error reporting.
  12932. * src/SocketCore.h: Added private variable blocking, to allow
  12933. proper handling of OpenSSL psuedo-errors.
  12934. * src/message.h
  12935. (EX_SSL_INIT_FAILURE)
  12936. (EX_SSL_IO_ERROR)
  12937. (EX_SSL_PROTOCOL_ERROR)
  12938. (EX_SSL_UNKNOWN_ERROR)
  12939. (EX_SSL_CONNECT_ERROR)
  12940. (EX_SOCKET_BLOCKING)
  12941. (EX_SOCKET_NONBLOCKING)
  12942. (EX_SOCKET_UNKNOWN_ERROR)
  12943. * src/Util.cc
  12944. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12945. reserved name.
  12946. (httpGMT): Fixed typo.
  12947. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12948. Merged Ross's win32 patch(manually)
  12949. In the course of merging, following files are added.
  12950. * src/strptime.{h,c}
  12951. * src/libgen.{h,c}
  12952. * src/inet_aton.{h,c}
  12953. * src/Platform.{h,cc}
  12954. * src/localtime_r.{h,c}
  12955. * src/getaddrinfo.{h,c}
  12956. I've gethered network related things, and put them to following file:
  12957. * src/a2netcompat.h
  12958. Also io related things are put to following file:
  12959. * src/a2io.h
  12960. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12961. * src/message.h
  12962. (MSG_ALLOCATION_COMPLETED)
  12963. (EX_TOO_LARGE_FILE)
  12964. (EX_SIZE_MISMATCH)
  12965. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12966. (EX_INVALID_CHUNK_CHECKSUM)
  12967. (EX_INVALID_RANGE_HEADER)
  12968. * src/FileAllocationCommand.cc
  12969. * src/HttpResponse.cc
  12970. * src/RequestGroup.cc
  12971. * src/MultiDiskAdaptor.cc
  12972. * src/OptionHandlerImpl.h
  12973. * src/HttpResponseCommand.cc
  12974. * src/FtpNegotiateCommand.cc
  12975. * src/IteratableChecksumValidator.cc
  12976. * src/SegmentMan.cc
  12977. * src/ChunkChecksumValidator.cc
  12978. Added Randomizer::getRandomNumber(long int)
  12979. * src/Randomizer.h (getRandomNumber)
  12980. * src/SimpleRandomizer.h (getRandomNumber)
  12981. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12982. * src/Util.cc (randomAlpha): Use this new function.
  12983. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12984. Converted int's to in32_t. long long int's are also converted to
  12985. int64_t
  12986. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12987. Fixed the bug that prevents cookies from being sent to the server
  12988. if the domain of cookie is FQDN and starts with ".".
  12989. * src/Cookie.cc (match)
  12990. To add the ability to change peer id.
  12991. * src/DefaultBtContext.h
  12992. (_peerIdPrefix): New variable
  12993. (setPeerIdPrefix): New function.
  12994. * src/torrentRequestInfo.cc
  12995. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12996. DefaultBtContext.
  12997. * src/main.cc (main): Added peer-id-prefix command-line option.
  12998. The usage message is not added yet.
  12999. * src/DefaultBtContext.cc
  13000. (generatePeerId): Use _peerIdPrefix.
  13001. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13002. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13003. Fixed the bug that prevents filename in content-disposition from
  13004. being retrieved when filename is not quoted.
  13005. * src/Util.cc (getContentDispositionFilename)
  13006. Fixed the bug that causes infinate loop and memory leak when file open
  13007. operation failed.
  13008. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13009. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13010. Fixed the bug that causes segfault when all URIs specified are
  13011. unsupported.
  13012. * src/RequestGroupMan.cc (getInitialCommands)
  13013. Check if RequestGroup::createNextCommand() returns empty list of
  13014. commands.
  13015. * src/RequestGroup.cc (createNextCommand)
  13016. Change log level from info to error so that users can notice that
  13017. an error occurred.
  13018. Fixed the bug that causes segfault when a zero-sized file is
  13019. downloaded.
  13020. * src/BitfieldMan.cc (isAllBitSet)
  13021. Return true if bitfieldLength is 0.
  13022. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13023. * src/main.cc
  13024. (showUsage): Added 3 usage examples for metalink download.
  13025. Replace MetalinkChunkChecksum with ChunkChecksum.
  13026. * src/MetalinkChunkChecksum.h: Removed.
  13027. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13028. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13029. * src/Xml2MetalinkProcessor.cc
  13030. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13031. * src/MetalinkRequestInfo.cc (execute)
  13032. * Release 0.11.1
  13033. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13034. Reads URIs from stdin when "-i -" is specified.
  13035. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13036. * src/UriListParser.h, src/UriListParser.cc: New class.
  13037. * src/StreamUriListParser.h: New class.
  13038. * src/FileUriListParser.h: New class.
  13039. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13040. instead of UriFileListParser.
  13041. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13042. Made console readout more readable.
  13043. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13044. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13045. Fix the bug that causes -s option not to work.
  13046. * src/main.cc (main)
  13047. * src/a2algo.h: New file.
  13048. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13049. Create directory structure specified in metalink file.
  13050. * src/RequestGroup.h, src/RequestGroup.cc
  13051. (initAndOpenFile): Create a directory to store files if it does not
  13052. exist.
  13053. (getDir): New function.
  13054. Added ETA and download speed for an individual file to readout.
  13055. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13056. * src/RequestGroup.h
  13057. (calculateDownloadSpeed): New function.
  13058. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13059. Made -S option work with metalink file and provided selective download
  13060. to metalink.
  13061. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13062. (filename): Removed.
  13063. (file): New variable.
  13064. (size): Removed.
  13065. (operator=): Updated.
  13066. (getPath): New function.
  13067. (getLength): New function.
  13068. (toFileEntry): New function.
  13069. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13070. (execute): Use toStream.
  13071. (showFileEntry): Removed.
  13072. * src/MetalinkRequestInfo.h
  13073. (targetFiles): New variable.
  13074. (setTargetFiles): New variable.
  13075. * src/MetalinkRequestInfo.cc
  13076. (execute): Added the ability to print file information included in
  13077. a metalink file.
  13078. Added selective download mode to metalink.
  13079. * src/main.cc
  13080. (showUsage): Updated to denote that -S and --select-file options are
  13081. applicable to metalink.
  13082. * src/FileEntry.h
  13083. (operator=): New function.
  13084. (getBasename): New function.
  13085. (getDirname): New function.
  13086. * src/Util.h, src/Util.cc
  13087. (toStream): New function.
  13088. * src/Xml2MetalinkProcessor.cc: Updated.
  13089. Made aria2 work with metalink with directory structure.
  13090. * src/File.h, src/File.cc
  13091. (getBasename): New function.
  13092. (getDirname): New function.
  13093. * src/RequestGroup.h, src/RequestGroup.cc
  13094. (_topDir): New variable.
  13095. (setTopDir): New function.
  13096. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13097. Rewrote HTTP header parsing with stringstream.
  13098. * src/HttpConnection.h, src/HttpConnection.cc
  13099. (HttpRequestEntry): New class.
  13100. (headerBuf): Removed.
  13101. (headerBufLength): Removed.
  13102. (outstandingHttpRequests): Now its element type is
  13103. HttpRequestEntryHandle.
  13104. (findEndOfHeader): Removed.
  13105. (receiveResponse): Rewritten.
  13106. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13107. Updated doc for -j option to notice that it should be used with -i
  13108. option.
  13109. * src/main.cc (showUsage)
  13110. Removed unused classes.
  13111. * src/RequestInfo.h
  13112. (FileInfo): Removed.
  13113. (checksum): Removed.
  13114. (fileInfo): Removed.
  13115. (setChecksum): Removed.
  13116. (getChecksum): Removed.
  13117. (getFileInfo): Removed.
  13118. Use ISO units.
  13119. * src/ConsoleDownloadEngine.cc
  13120. * src/TorrentConsoleDownloadEngine.cc
  13121. * src/Util.cc (abbrevSize)
  13122. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13123. Added the default listening ports to the help message.
  13124. * src/main.cc (showUsage)
  13125. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13126. Reduce the number of calls to gettimeofday to lower CPU load.
  13127. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13128. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13129. * src/Peer.h (calculateUploadSpeed): New function.
  13130. (calculateDownloadSpeed): New function.
  13131. * src/DefaultPeerStorage.cc
  13132. (CalculateStat): Added _now variable.
  13133. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13134. and Peer::calculateUploadSpeed(const struct timeval&)
  13135. Drop connection if no request or piece message is exchanged in
  13136. a certain interval.
  13137. * src/DefaultBtInteractive.h
  13138. (btRuntime): New variable.
  13139. (inactiveCheckPoint): New variable.
  13140. (checkActiveInteraction): New function.
  13141. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13142. request or piece message is received.
  13143. (checkActiveInteraction): New function.
  13144. (doInteractionProcessing): Call checkActiveInteraction.
  13145. Fixed the bug that causes remote Metalink and Torrent files are not
  13146. processed.
  13147. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13148. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13149. Changed format of log file.
  13150. * src/SimpleLogger.cc
  13151. * Release 0.11.0
  13152. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13153. * src/AbstractCommand.cc
  13154. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13155. MSG_MAX_TRY from error to info.
  13156. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13157. * src/message.h
  13158. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13159. (MSG_DOWNLOAD_ABORTED): Added %s.
  13160. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13161. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13162. * src/PeerAbstractCommand.cc
  13163. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13164. * src/Request.h
  13165. (cookieBox): Made ShardHandle.
  13166. * src/RequestGroup.h, src/RequestGroup.cc
  13167. (createNextCommandWithAdj): New function.
  13168. * src/FileAllocationCommand.cc
  13169. (executeInternal): Use createNextCommandWithAdj().
  13170. * src/CheckIntegrityCommand.cc
  13171. (executeInternal): Use createNextCommandWithAdj().
  13172. Added --load-cookies command-option.
  13173. * src/OptionHandlerFactory.cc
  13174. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13175. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13176. Now aria2 can handle cookie's expiration date.
  13177. * src/Cookie.h (expires): Changed its type to time_t.
  13178. * src/main.cc: Added --load-cookies command-line option.
  13179. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13180. * src/Util.h, src/Util.cc (httpGMT): New function.
  13181. * src/Request.cc (Request): Initialize cookieBox using
  13182. CookieBoxFactory.
  13183. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13184. * src/CookieParser.h, src/CookieParser.cc: New class.
  13185. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13186. * src/HttpResponseCommand.cc
  13187. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13188. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13189. download.
  13190. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13191. Added -j command-line option.
  13192. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13193. * src/main.cc
  13194. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13195. Rewritten using stringstream.
  13196. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13197. Rewritten using stringstream.
  13198. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13199. Make download size shown in MB, KB.
  13200. * src/ConsoleDownloadEngine.h (sendStatistics)
  13201. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13202. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13203. Accept incoming connections if download rate is low.
  13204. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13205. (_lowestSpeedLimit): New variable.
  13206. (setLowestSpeedLimit): New function.
  13207. (execute): Accept incoming connections if download rate is low.
  13208. MAX_PEERS is ignored in this case.
  13209. Disable PREF_OUT in multiple concurrent download:
  13210. * src/RequestGroup.h, src/RequestGroup.cc
  13211. (setUserDefinedFilename): New function.
  13212. * src/DownloadEngineFactory.cc
  13213. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13214. concurrent download.
  13215. * src/DefaultSegmentManFactory.cc
  13216. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13217. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13218. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13219. Added its overloaded method.
  13220. * src/RequestGroup.h
  13221. (_numConcurrentCommand): New variable.
  13222. (setNumConcurrentCommand): New function.
  13223. * src/RequestGroup.cc
  13224. Abort download if same file is being downloaded concurrently.
  13225. * src/RequestGroup.h, src/RequestGroupMan.cc
  13226. (isSameFileBeingDownloaded): New function.
  13227. * src/HttpResponseCommand.cc (executeInternal)
  13228. * src/FtpNegotiateCommand.cc (recvSize)
  13229. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13230. * main.cc: Added help message for -i option.
  13231. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13232. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13233. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13234. * src/MetalinkEntry.h
  13235. (checksum): Changed to ChecksumHandle
  13236. * src/MetalinkRequestInfo.cc
  13237. (checksum): Changed to ChecksumHandle
  13238. * src/File.cc
  13239. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13240. * src/common.h
  13241. (DIR_OPEN_MODE): New definition
  13242. * src/RequestGroup.cc
  13243. (prepareForNextAction): Added an argument.
  13244. * src/message.h
  13245. (MSG_GOOD_CHECKSUM): New definition
  13246. (MSG_BAD_CHECKSUM): New definition
  13247. * src/HttpResponseCommand.cc
  13248. (handleDefaultEncoding): Continue download sequence in new
  13249. non-segmented download.
  13250. * src/FileAllocationEntry.h
  13251. (_nextDownloadCommand): New variable.
  13252. * src/DownloadCommand.cc
  13253. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13254. available.
  13255. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13256. * src/IteratableChecksumValidator.h,
  13257. src/IteratableChecksumValidator.cc: New class.
  13258. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13259. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13260. Change file mode to 666:
  13261. * src/common.h (OPEN_MODE): New definition.
  13262. * src/File.cc
  13263. * src/Util.cc
  13264. * src/Directry.cc
  13265. * src/AbstractDiskWriter.cc
  13266. Change the level of log message "download aborted" to debug:
  13267. * src/PeerAbstractCommand.cc (execute)
  13268. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13269. * src/TrackerWatcherCommand.cc
  13270. (createCommand): Sleep some seconds after request failed.
  13271. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13272. then abort tracker request.
  13273. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13274. * Added the simultaneous download feature.
  13275. * src/main.cc: Print "Exception caught: " when exception is caught.
  13276. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13277. * src/ActivePeerConnectionCommand.cc
  13278. * src/PeerInteractionCommand.cc
  13279. * src/BtRuntime.h
  13280. (cuidCounter): Removed.
  13281. (getNewCuid): Removed.
  13282. * src/DownloadEngineFactory.cc
  13283. * src/PeerListenCommand.cc
  13284. * src/TrackerUpdateCommand.cc
  13285. * src/PeerInitiateConnectionCommand.cc
  13286. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13287. * src/PeerAbstractCommand.cc
  13288. (onAbort): Call PeerStorage::returnPeer()
  13289. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13290. (incomingPeers): New variable.
  13291. (addIncomingPeer): New function.
  13292. (returnPeer): New function.
  13293. (onErasingPeer): New function.
  13294. (addPeer): push_back -> push_front
  13295. (getActivePeers): Rewritten.
  13296. (calculateStat): Rewritten.
  13297. * src/PeerStorage.h
  13298. (TransferStat::copy): New function.
  13299. (TransferStat::TransferStat): New function.
  13300. (TransferStat::operator=): New function.
  13301. (addIncomingPeer): New function.
  13302. (returnPeer): New function.
  13303. * src/PeerListenCommand.cc
  13304. (execute): Use PeerStorage::addIncomingPeer() instead of
  13305. Peer::addPeer().
  13306. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13307. Connect to a peer actively when download speed is lower than specified
  13308. speed in torrent download:
  13309. * src/ActivePeerConnectionCommand.h: New class.
  13310. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13311. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13312. * src/main.cc: Fixed the bug that prevents download if .netrc
  13313. doesn't exist.
  13314. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13315. To cache resolved hostname:
  13316. * src/AbstractCommand.h, src/AbstractCommand.cc
  13317. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13318. Added dns cache.
  13319. * src/FtpInitiateConnectionCommand.cc
  13320. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13321. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13322. NameResolver working without ares.
  13323. * src/TorrentRequestInfo.cc
  13324. (execute): Don't cache dns in torrent download.
  13325. * src/HttpInitiateConnectionCommand.cc
  13326. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13327. * src/DNSCache.h: New class.
  13328. * src/UrlRequestInfo.cc
  13329. (execute): Use dns cache.
  13330. In http request, suppress port number in http request header if port
  13331. is 80 or 443:
  13332. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13333. request header if port is 80 or 443.
  13334. (createProxyRequest): Allways send port number.
  13335. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13336. To add the command-line option which disables netrc support:
  13337. * src/OptionHandlerFactory.cc
  13338. (createOptionHandlers): Added PREF_NO_NETRC.
  13339. * src/main.cc: Added -n option.
  13340. * src/prefs.h (PREF_NO_NETRC): New definition.
  13341. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13342. V_TRUE.
  13343. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13344. is V_FALSE. This may get configurable in the future release.
  13345. To clear peer's error status by time basis:
  13346. * src/PeerAbstractCommand.cc
  13347. (onAbort): Call Peer::startBadCondition().
  13348. * src/Peer.h, src/Peer.cc
  13349. (error): Removed.
  13350. (_badConditionStartTime): New variable.
  13351. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13352. (startBadCondition): New function.
  13353. (isGood): New function.
  13354. * src/DefaultPeerStorage.cc
  13355. (addPeer): Use Peer::isGood().
  13356. (FindFinePeer): Use Peer::isGood().
  13357. Always include port number in http request header:
  13358. * src/HttpRequest.cc (getHostText): Always include port number in
  13359. http request header.
  13360. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13361. To the ability to read options from a config file:
  13362. * src/main.cc: Command-line parameter validation is delegated to
  13363. OptionHandler class.
  13364. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13365. * src/Option.h, src/Option.cc (clear): New function.
  13366. * src/OptionParser.h, src/OptionParser.cc: New class.
  13367. * src/OptionHandler.h: New class.
  13368. * src/NameMatchOptionHandler.h: New class.
  13369. * src/OptionHandlerImpl.h: New classes.
  13370. * src/prefs.h: '_' -> '-'
  13371. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13372. (FTP_PASV): New definition.
  13373. * src/Util.h, src/Util.cc (getRealSize): New function.
  13374. To disable netrc support if .netrc file does not have correct
  13375. permissions:
  13376. * src/File.h, src/File.cc (mode): New function.
  13377. To prevent confidential information to be logged:
  13378. * src/HttpConnection.h, src/HttpConnection.cc
  13379. (eraseConfidentialInfo): New function.
  13380. (sendRequest): Call eraseConfidentialInfo().
  13381. (sendProxyRequest): Call eraseConfidentialInfo().
  13382. * src/main.cc: Validate permissions of .netrc file.
  13383. To add --user-agent command-line option:
  13384. * src/main.cc: Added new command line option: --user-agent
  13385. * src/prefs.h (PREF_USER_AGENT): New definition.
  13386. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13387. parameter to HttpRequest object.
  13388. * src/AbstractProxyRequestCommand.cc
  13389. (executeInternal): Set user-agent option parameter to HttpRequest
  13390. object.
  13391. Marged the patches from Dan Fandrich.
  13392. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13393. Use filename and size from Metalink file instead of sending HEAD
  13394. request:
  13395. * src/UrlRequestInfo.h
  13396. (_filename): New variable.
  13397. (_totalLength): New variable.
  13398. (setTotalLength): New variable.
  13399. (setFilename): New variable.
  13400. * src/MetalinkRequestInfo.cc
  13401. (execute): Set filename and size to UrlRequestInfo
  13402. * src/UrlRequestInfo.cc
  13403. (execute): Use filename and size from Metalink instead of seding
  13404. HEAD request to servers.
  13405. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13406. To add the ability to resume downloading a partially downloaded file
  13407. which is downloaded from the beginning:
  13408. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13409. takes this role.
  13410. * src/main.cc: Added -c option.
  13411. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13412. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13413. * src/prefs.h (PREF_CONTINUE): New definition.
  13414. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13415. * src/DefaultDiskWriter.cc
  13416. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13417. * src/AbstractDiskWriter.h
  13418. (glowFileAllocator): New variable.
  13419. * src/AbstractDiskWriter.cc
  13420. (openExistingFile): Now preallocate file space from the end of the
  13421. existing file if totalLength argument is specified and grater than 0.
  13422. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13423. to download exists in local, continue the download of the file.
  13424. --allow-overwrite=true is assumed in this context.
  13425. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13426. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13427. Throw exception if --check-integrity=true is specified but chunk
  13428. checksums are not provided:
  13429. * src/UrlRequestInfo.cc
  13430. Do not print URLs to stdout:
  13431. * src/UrlRequestInfo.cc
  13432. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13433. * src/Request.h: Use AuthResolver to get authentication information.
  13434. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13435. set to RequestFactory object.
  13436. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13437. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13438. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13439. create Request object.
  13440. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13441. To integrate Netrc into exsiting classes:
  13442. * src/Request.h
  13443. (_userDefinedAuthConfig): New variable.
  13444. (findNetrcAuthenticator): New function.
  13445. (segment): Removed.
  13446. (setUserDefinedAuthConfig): New function.
  13447. (resolveHttpAuthConfigItem): New function.
  13448. (resolveFtpAuthConfigItem): New function.
  13449. (resolveHttpProxyAuthConfigItem): New function.
  13450. * src/HttpRequest.h
  13451. (authConfig): Removed.
  13452. (proxyAuthConfig): Removed.
  13453. (setAuthConfig): Removed.
  13454. (setProxyAuthConfig): Removed.
  13455. * src/UrlRequest.h
  13456. (getHeadResult): Added a parameter: authConfigHandle
  13457. * src/common.h
  13458. (SingletonHolder.h): New include.
  13459. * src/main.cc
  13460. (Netrc.h): New include.
  13461. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13462. Added initial value of PREF_NETRC_PATH.
  13463. Added the initialization of netrc.
  13464. * src/AuthConfig.h: New class.
  13465. * src/prefs.h
  13466. (PREF_NETRC_PATH): New definition.
  13467. * src/HttpAuthConfig.h: Removed.
  13468. * src/Netrc.cc
  13469. (getRequiredNextToken): New function.
  13470. (skipMacdef): New function.
  13471. (parse): Rewritten.
  13472. * src/Netrc.h
  13473. (getRequiredNextToken): New function.
  13474. (skipMacdef): New function.
  13475. * src/Util.h, src/Util.cc
  13476. (getHomeDir): New function.
  13477. * src/TrackerWatcherComand.cc
  13478. (createRequestCommand): Use AuthConfig.
  13479. * src/FtpConnection.cc
  13480. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13481. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13482. * src/Request.cc
  13483. (findNetrcAuthenticator): New function.
  13484. (resolveHttpAuthConfigItem): New function.
  13485. (resolveFtpAuthConfigItem): New function.
  13486. (resolveHttpProxyAuthConfigItem): New function.
  13487. * src/UrlRequestInfo.cc: Use AuthConfig.
  13488. * src/HttpRequest.cc
  13489. (createRequest): Use authConfig.
  13490. (getProxyAuthString): Use authConfig.
  13491. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13492. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13493. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13494. To reduce overhead to find commands whose socket is either
  13495. readable or writable in the download engine loop:
  13496. * src/Command.h, src/Command.cc
  13497. (STATUS): New enum.
  13498. (status): New variable.
  13499. (statusMatch): New function.
  13500. (setStatusActive): New function.
  13501. (setStatusInactive): New function.
  13502. * src/DownloadEngine.h, src/DownloadEngine.cc
  13503. (executeCommand): New function.
  13504. (run): Simplified.
  13505. (waitData): Call Command::setStatusActive() when command's socket is
  13506. readable or writable.
  13507. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13508. To handle Segment as SegmentHandle:
  13509. * src/AbstractCommand.cc (execute): Rewritten.
  13510. * src/SegmentMan.h: Segment -> SegmentHandle
  13511. Introducded HttpResponse class, HttpRequest class to improve code
  13512. extensiveness and make it clear:
  13513. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13514. HttpResponse class.
  13515. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13516. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13517. * src/HttpConnection.cc: Contruction of http request were moved to
  13518. HttpRequest class.
  13519. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13520. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13521. * src/HttpAuthConfig.h: New class.
  13522. * src/Range.h: New class.
  13523. To make FtpTunnel{Request, Response}Command and
  13524. HttpProxy{Request, Response}Command derived from
  13525. AbstractProxy{Request, Response}Command:
  13526. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13527. Derived from AbstractProxyRequestCommand class.
  13528. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13529. Derived from AbstractProxyResponseCommand class.
  13530. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13531. Derived from AbstractProxyRequestCommand class.
  13532. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13533. Derived from AbstractProxyResponseCommand class.
  13534. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13535. : New class.
  13536. * src/AbstractProxyResponseCommand.h,
  13537. src/AbstractProxyResponseCommand.cc: New class.
  13538. To add netrc support:
  13539. * src/Netrc.h, src/Netrc.cc: New class.
  13540. * src/Util.h, src/Util.cc (split): New function.
  13541. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13542. "Content-Range" header instead of "Range" header.
  13543. * src/HttpHeader.h
  13544. (getStatus): Removed.
  13545. (setStatus): Removed.
  13546. * src/Segment.h
  13547. (getPositionToWrite): New function.
  13548. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13549. * src/HttpHeader.h
  13550. (Range.h): New include.
  13551. (status): New variable.
  13552. (HttpHeader): Initialized status with 0.
  13553. (getStatus): New function.
  13554. (setStatus): New function.
  13555. (getRange): New function.
  13556. (HttpHeaderHandle): New function.
  13557. * src/HttpHeader.cc
  13558. (getRange): New function.
  13559. * src/Request.h
  13560. (RequestWeakHandle): New definition.
  13561. * src/HttpConnection.h
  13562. (HttpConnectionHandle): New type definition.
  13563. * src/HttpConnection.cc
  13564. (receiveResponse): Set HTTP status to headers.
  13565. * src/main.cc
  13566. (showUsage): Fixed typo.
  13567. * src/Segment.h
  13568. (SegmentHandle): New type definition.
  13569. * src/BitfieldMan.h
  13570. (getMissingUnusedLength): New function.
  13571. * src/BitfieldMan.cc
  13572. (getMissingUnusedLength): New function.
  13573. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13574. To fix static initialization order problem:
  13575. * src/BitfieldManFactory.h
  13576. (defaultRandomizer): Removed.
  13577. (factory): New variable.
  13578. (getNewFactory): Removed.
  13579. (getFactoryInstance): New function.
  13580. (setDefaultRandomizer): Rewritten.
  13581. (getDefaultRandomizer): Rewritten.
  13582. * src/BitfieldManFactory.cc
  13583. (defaultRandomizer): Removed.
  13584. (factory): Initialized to 0.
  13585. (BitfieldManFactory): Initialized randomizer to 0.
  13586. * src/DefaultPieceStorage.cc
  13587. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13588. * src/Peer.cc
  13589. (Peer): getNewFactory() -> getFactoryInstance()
  13590. * src/SegmentMan.cc
  13591. (initBitfield): getNewFactory() -> getFactoryInstance()
  13592. * src/Piece.cc
  13593. (Piece): getNewFactory() -> getFactoryInstance()
  13594. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13595. To fix the bug that causes crash on Max OS X:
  13596. * src/SimpleRandomizer.h
  13597. (getInstance): Create new instance if the static variable is null.
  13598. * src/SimpleRandomizer.cc
  13599. (randomizer): Initialized to 0.
  13600. * src/BitfieldManFactory.h
  13601. (getNewFactory): Removed the call to setRandomizer().
  13602. To fix the miscalculation of the range of checksum:
  13603. * src/BitfieldMan.h
  13604. (isBitSetOffsetRange): New function.
  13605. * src/BitfieldMan.cc
  13606. (isBitSetOffsetRange): New function.
  13607. * src/SegmentMan.cc
  13608. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13609. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13610. * Release 0.10.1
  13611. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13612. To lower CPU usage in BitTorrent download when --max-upload-limit
  13613. command-line option specified:
  13614. * src/DefaultBtMessageDispatcher.cc
  13615. (sendMessages): Calculate uploading speed only when current message
  13616. is uploading data and is not sent yet.
  13617. * src/DefaultPeerStorage.h
  13618. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13619. * src/HttpResponseCommand.cc
  13620. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13621. This fixes compile error in Soralis 10.
  13622. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13623. To fix segfault in Metalink download:
  13624. * src/UrlRequestInfo.h
  13625. (filename): Removed.
  13626. (totalLength): Removed.
  13627. (setTotalLength): Removed.
  13628. (setFilename): Removed.
  13629. * src/MetalinkRequestInfo.cc
  13630. (execute): Do not set filename and totalLength to reqInfo.
  13631. Set chunk checksum to reqInfo if it is not null.
  13632. * src/HttpResponseCommand.cc
  13633. (executeInternal): Fixed filename in log.
  13634. (handleDefaultEncoding): Removed the call to initBitfield() and
  13635. markAllPiecesDone().
  13636. (handleOtherEncoding): Added HEAD method handling.
  13637. * src/FtpNegotiateCommand.cc
  13638. (executeInternal): Added SEQ_HEAD_OK handling.
  13639. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13640. return false.
  13641. * src/FtpNegotiateCommand.h
  13642. (SEQ_HEAD_OK): New definition.
  13643. * src/SegmentMan.cc
  13644. (initBitfield): Delete bitfield.
  13645. (isChunkChecksumValidationReady): Fixed the condition.
  13646. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13647. works fine.
  13648. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13649. * src/Xml2MetalinkProcessor.h
  13650. (xpathExists): New function.
  13651. * src/Xml2MetalinkProcessor.cc
  13652. (xpathExists): New function.
  13653. Not to send HEAD request if filename and size are available in Metalink
  13654. file:
  13655. * src/UrlRequestInfo.h
  13656. (filename): New variable.
  13657. (totalLength): New variable.
  13658. (setTotalLength): New function.
  13659. (setFilename): New function.
  13660. * src/MetalinkRequestInfo.cc
  13661. (execute): Set filename and size to UrlRequestInfo.
  13662. * src/MetalinkEntry.cc
  13663. (MetalinkEntry): Initialize size with 0.
  13664. * src/UrlRequestInfo.cc
  13665. (execute): Set filename and size to SegmentMan.
  13666. Not to download rest of the files after selected files are downloaded
  13667. in BitTorrent:
  13668. * src/PieceStorage.h
  13669. (allDownloadFinished): New function.
  13670. * src/DefaultBtAnnounce.cc
  13671. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13672. downloadFinished.
  13673. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13674. * src/DefaultPieceStorage.cc
  13675. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13676. Commented out the call to finishSelectiveDownloadingMode().
  13677. (downloadFinished): Call isFilteredAllBitSet() instead of
  13678. isAllBitSet().
  13679. (allDownloadFinished): New function.
  13680. * src/DefaultBtInteractive.cc
  13681. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13682. downloadFinished().
  13683. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13684. * src/TorrentDownloadEngine.cc
  13685. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13686. * src/BitfieldMan.h
  13687. (isFilteredAllBitSet): New function.
  13688. * src/ShareRatioSeedCriteria.h
  13689. (PieceStorage.h): New include.
  13690. (pieceStorage): New variable.
  13691. (evaluate):
  13692. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13693. * src/BitfieldMan.cc
  13694. (isFilteredAllBitSet): New function.
  13695. (isAllBitSet): Filter is not took into account.
  13696. Rename --force-truncate as --allow-overwrite:
  13697. * src/TorrentRequestInfo.cc
  13698. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13699. * src/main.cc
  13700. (showUsage): --force-truncate -> --allow-overwrite
  13701. * src/message.h
  13702. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13703. * src/prefs.h
  13704. (PREF_FORCE_TRUNCATE): Removed.
  13705. (PREF_ALLOW_OVERWRITE): New definition.
  13706. * src/SegmentMan.cc
  13707. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13708. * src/MetalinkRequestInfo.cc
  13709. (execute): Queueing message are now logged in info level.
  13710. * src/common.h
  13711. (LONG_LONG_MAX): Removed.
  13712. (LONG_LONG_MIN): Removed.
  13713. * src/HttpResponseCommand.cc
  13714. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13715. * src/FtpNegotiateCommand.cc
  13716. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13717. * src/main.cc
  13718. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13719. command-line option.
  13720. (main): Added --check-integriy and --realtime-chunk-checksum
  13721. command-line option.
  13722. --force-truncate -> --allow-overwrite
  13723. Set initial value of --check-integrity option to false.
  13724. Don't show usage when error occurs while persing command-line options.
  13725. Removed deprecated --upload-limit option.
  13726. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13727. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13728. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13729. * src/BtAllowedFastMessage.cc:
  13730. * src/BtBitfieldMessage.cc
  13731. * src/BtCancelMessage.cc
  13732. * src/BtChokeMessage.cc
  13733. * src/BtHaveAllMessage.cc
  13734. * src/BtHaveMessage.cc
  13735. * src/BtHaveNoneMessage.cc
  13736. * src/BtInterestedMessage.cc
  13737. * src/BtNotInterestedMessage.cc
  13738. * src/BtPieceMessage.cc
  13739. * src/BtPortMessage.cc
  13740. * src/BtRejectMessage.cc
  13741. * src/BtRequestMessage.cc
  13742. * src/BtSuggestPieceMessage.cc
  13743. * src/BtUnchokeMessage.cc
  13744. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13745. files are affected.
  13746. * src/ChunkChecksumValidator.cc
  13747. * src/SegmentMan.cc
  13748. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13749. To add chunk checksum validation:
  13750. * src/MetalinkEntry.h
  13751. (MetalinkChunkChecksum.h): New include.
  13752. (chunkChecksum): New variable.
  13753. * src/Request.h
  13754. (method): New variable.
  13755. (setMethod): New function.
  13756. (getMethod): New function.
  13757. (METHOD_GET): New static constant.
  13758. (METHOD_HEAD): New static constant.
  13759. * src/Xml2MetalinkProcessor.h
  13760. (getPieceHash): New function.
  13761. * src/PieceStorage.h
  13762. (markAllPiecesDone): New function.
  13763. (checkIntegrity): New function.
  13764. * src/FileAllocator.h
  13765. (NullFileAllocationMonitor.h): New include.
  13766. (FileAllocator): Initialize fileAllocationMonitor with new
  13767. NullFileAllocationMonitor().
  13768. * src/MultiDiskAdaptor.h
  13769. (messageDigest.h): Remove include.
  13770. (ctx): Removed.
  13771. (hashUpdate): Added ctx.
  13772. (MultiDiskAdaptor): Removed ctx.
  13773. (sha1Sum): Renamed as messageDigest.
  13774. (messageDigest): New function.
  13775. * src/UrlRequestInfo.h
  13776. (HeadResult): New class.
  13777. (digestAlgo): New variable.
  13778. (chunkChecksumLength): New variable.
  13779. (chunkChecksums): New variable.
  13780. (getHeadResult): New function.
  13781. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13782. (setDigestAlgo): New function.
  13783. (setChunkChecksumLength): New function.
  13784. (setChunkChecksums): New function.
  13785. * src/DefaultPieceStorage.cc
  13786. (DiskAdaptorWriter.h): New include.
  13787. (ChunkChecksumValidator.h): New include.
  13788. (markAllPiecesDone): New function.
  13789. (checkIntegrity): New function.
  13790. * src/DefaultBtContext.h
  13791. (getPieceHashes): New function.
  13792. * src/TorrentRequestInfo.cc
  13793. (execute): Try to validate chunk checksum if file already exists and
  13794. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13795. * src/messageDigest.h
  13796. (~MessageDigestContext): Added digestFree().
  13797. * src/MetalinkRequestInfo.cc
  13798. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13799. * src/DiskAdaptor.h
  13800. (messageDigest.h): New include.
  13801. (sha1Sum): Renamed as messageDigest.
  13802. (messageDigest): New function.
  13803. * src/DownloadCommand.h
  13804. (PeerStat.h): New include.
  13805. (maxDownloadSpeedLimit): New variable.
  13806. (startupIdleTime): New variable.
  13807. (lowestDownloadSpeedLimit): New variable.
  13808. (peerStat): New variable.
  13809. (setMaxDownloadSpeedLimit): New function.
  13810. (setStartupIdleTime): New function.
  13811. (setLowestDownloadSPeedLimit): New function.
  13812. * src/BtContext.h
  13813. (getPieceHashes): New function.
  13814. * src/main.cc
  13815. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13816. option to true for testing purpose.
  13817. * src/BtPieceMessage.cc
  13818. (checkPieceHash): Use messageDigest
  13819. * src/DownloadEngine.cc
  13820. (SetDescriptor): Removed.
  13821. (AccumulateActiveCommand): Removed.
  13822. (waitData): Rewritten.
  13823. (updateFdSet): Rewritten.
  13824. * src/MultiDiskAdaptor.cc
  13825. (hashUpdate): Added ctx.
  13826. (sha1Sum): Renamed as messageDigest.
  13827. (messageDigest): New function.
  13828. * src/BitfieldMan.h
  13829. (isBitRangeSet): New function.
  13830. (unsetBitRange): New function.
  13831. * src/ByteArrayDiskWriter.h
  13832. (sha1Sum): Renamed as messageDigest.
  13833. (messageDigest): New function.
  13834. * src/ConsoleDownloadEngine.cc
  13835. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13836. * src/DiskWriter.h
  13837. (messageDigest.h): New include.
  13838. (sha1Sum): Renamed as messageDigest.
  13839. (messageDigest): New function.
  13840. * src/ChunkChecksumValidator.h: New class.
  13841. * src/DiskAdaptorWriter.h: New class.
  13842. * src/prefs.h
  13843. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13844. (PREF_CHECK_INTEGRITY): New definition.
  13845. * src/HttpResponseCommand.cc
  13846. (handleDefaultEncoding): Added method "HEAD" handling.
  13847. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13848. (handleOtherEncoding):
  13849. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13850. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13851. startupIdleTime, lowestDownloadSpeedLimit to command.
  13852. * src/SegmentMan.h
  13853. (getSegmentEntryByIndex): New function.
  13854. (getSegmentEntryByCuid): New function.
  13855. (getSegmentEntryIteratorByCuid): New function.
  13856. (diskWriter): DiskWriter -> DiskWriterHandle
  13857. (pieceHashes): New variable.
  13858. (chunkHashLength): New variable.
  13859. (digestAlgo): New variable.
  13860. (FindPeerStat): Removed.
  13861. (getPeerStat): Rewritten.
  13862. (markAllPiecesDone): New function.
  13863. (checkIntegrity): New function.
  13864. (tryChunkChecksumValidation): New function.
  13865. (isChunkChecksumValidationReady): New function.
  13866. * src/BitfieldMan.cc
  13867. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13868. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13869. blocks to 0.
  13870. (isBitRangeSet): New function.
  13871. (unsetBitRange): New function.
  13872. * src/FtpNegotiateCommand.cc
  13873. (executeInternal): Set maxDownloadSpeedLimit,
  13874. startupIdleTime, lowestDownloadSpeedLimit to command.
  13875. (recvSize): Added method "HEAD" handling.
  13876. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13877. * src/AbstractSingleDiskAdaptor.cc
  13878. (sha1Sum): Renamed as messageDigest.
  13879. (messageDigest): New function.
  13880. * src/AbstractSingleDiskAdaptor.h
  13881. (sha1Sum): Renamed as messageDigest.
  13882. (messageDigest): New function.
  13883. * src/Util.h
  13884. (indexRange): New function.
  13885. * src/MetalinkEntry.cc
  13886. (MetalinkEntry): Initialized chunkChecksum to 0.
  13887. * src/ShaVisitor.cc
  13888. (~ShaVisitor): Removed the call to ctx.digestFree().
  13889. * src/SegmentMan.cc
  13890. (ChunkChecksumValidator.h): New include.
  13891. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13892. to DIGEST_ALGO_SHA1.
  13893. (~SegmentMan): Removed diskWriter.
  13894. (FindSegmentEntryByIndex): Removed.
  13895. (FindSegmentEntryByCuid): Removed.
  13896. (checkoutSegment): Rewritten.
  13897. (findSlowerSegmentEntry): Rewritten.
  13898. (getSegment): Rewritten.
  13899. (updateSegment): Rewritten.
  13900. (completeSegment): Rewritten.
  13901. (markAllPiecesDone): New function.
  13902. (checkIntegrity): New function.
  13903. (isChunkChecksumValidationReady): New function.
  13904. (tryChunkChecksumValidation): New function.
  13905. * src/Xml2MetalinkProcessor.cc
  13906. (getEntry): Get size and set it to entry.
  13907. Get chunk checksum and set it to entry.
  13908. (getPieceHash): New function.
  13909. * src/Util.cc
  13910. (sha1Sum): Removed ctx.digestFree()
  13911. (fileChecksum): Removed ctx.digestFree()
  13912. (indexRange): New function.
  13913. * src/Request.cc
  13914. (METHOD_GET): New variable.
  13915. (METHOD_HEAD): New variable.
  13916. (Request): Added method.
  13917. * src/UrlRequestInfo.cc
  13918. (FatalException.h): New include.
  13919. (message.h): New include.
  13920. (operator<<): Added operator<< for class HeadResult.
  13921. (getHeadResult): New function.
  13922. (execute): Get filename and size in separate download engine.
  13923. * src/ChunkChecksumValidator.cc: New class.
  13924. * src/DownloadCommand.cc:
  13925. (DownloadCommand): Added peerStat.
  13926. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13927. the value from Option.
  13928. The buffer size is now 16KB.
  13929. Use peerStat member instead of getting it from SegmentMan.
  13930. Use startupIdleTime member instead of gettingit from Option.
  13931. Added chunk checksum validation.
  13932. * src/AbstractDiskWriter.cc
  13933. (AbstractDiskWriter): Removed ctx.
  13934. (~AbstractDiskWriter): Removed ctx.digestFree()
  13935. (writeDataInternal): Returns the return value of write.
  13936. (readDataInternal): Returns the return value of read.
  13937. (sha1Sum): Renamed as messageDigest
  13938. (messageDigest): New function.
  13939. * src/AbstractDiwkWriter.h
  13940. (messageDigest.h): Removed include.
  13941. (ctx): Removed.
  13942. (sha1Sum): Renamed as messageDigest
  13943. (messageDigest): New function.
  13944. * src/DefaultPieceStorage.h
  13945. (markAllPiecesDone): New function.
  13946. (checkIntegrity): New function.
  13947. * src/NullFileAllocationMonitor.h: New class.
  13948. * src/MetalinkChunkChecksum.h: New class.
  13949. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13950. To decrease CPU usage in bittorrent download, calculation results in
  13951. BitfieldMan were cached and realtime fetching PeerObject was removed
  13952. with WeakHandle introduced. Option values are set to the objects
  13953. by setter before download begins.
  13954. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13955. * src/DefaultBtRequestFactory.h
  13956. (dispatcher): BtMessageDispatcherHandle ->
  13957. BtMessageDispatcherWeakHandle.
  13958. (messageFactory): New variable.
  13959. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13960. BtMessageDispatcherWeakHandle.
  13961. (setBtMessageFactory): New function.
  13962. * src/DefaultBtMessageDispatcher.cc:
  13963. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13964. from Option.
  13965. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13966. feating the value from Option.
  13967. Use messageFactory member.
  13968. * src/PeerInteractionCommand.cc
  13969. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13970. Add reverse dependencies to factory object.
  13971. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13972. dispatcher.
  13973. Set messageFactory to receiver.
  13974. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13975. btInteractive.
  13976. Set receiver to peerObject.
  13977. Set maxDownloadSpeedLimit to this.
  13978. (executeInternal): Use maxDownloadSpeedLimit member.
  13979. * src/BtChokeMessage.cc
  13980. (doReceivedAction): Use dispatcher, requestFactory member.
  13981. (onSendComplete): Use dispatcher member.
  13982. * src/PeerInteractionCommand.h
  13983. (maxDownloadSpeedLimit): New variable.
  13984. * src/DefaultBtMessageReceiver.h
  13985. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13986. (dispatcher):
  13987. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13988. (messageFactory): New variable.
  13989. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13990. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13991. (setDispatcher):
  13992. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13993. (setBtMessageFactory): New function.
  13994. * src/DefaultBtInteractive.cc
  13995. (initiateHandshake): Use messageFactory member.
  13996. (addBitfieldMessageToQueue): Use messageFactory member.
  13997. (addAllowedFastMessageToQueue): Use messageFactory member.
  13998. (decideChoking): Use messageFactory member.
  13999. (checkHave): Use messageFactory member.
  14000. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14001. (receiveMessages): Use maxDownloadSpeedLimit member.
  14002. (decideInterest): Use messageFactory member.
  14003. * src/BtRequestMessage.cc
  14004. (doReceivedAction): Use messageFactory, dispatcher member.
  14005. (onQueued): Use dispatcher member.
  14006. * src/BtPieceMessage.cc
  14007. (doReceivedAction): Use dispatcher member.
  14008. (send): Use peerConnection member.
  14009. (onWrongPiece): Use requestFactory member.
  14010. (handleChokingEvent): Use messageFactory, dispatcher member.
  14011. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14012. * src/BtMessageDispatcher.h
  14013. (BtMessageDispatcherWeakHandle): New type definition.
  14014. * src/SimpleBtMessage.cc
  14015. (send): Use peerConnection member.
  14016. * src/BtRejectMessage.cc
  14017. (doReceivedAction): Use dispatcher member.
  14018. * src/DefaultBtMessageDispatcher.h
  14019. (Option.h): Removed include.
  14020. (messageFactory): New variable.
  14021. (option): Removed.
  14022. (maxUploadSpeedLimit): New variable.
  14023. (requestTimeout): New variable.
  14024. (DefaultBtMessageDispatcher): Removed option.
  14025. Added maxUploadSpeedLimit, requestTimeout.
  14026. (setOption): Removed.
  14027. (getOption): Removed.
  14028. (setMaxUploadSpeedLimit): New function.
  14029. (setRequestTimeout): New function.
  14030. (setBtMessageFactory): New function.
  14031. * src/DefaultBtInteractive.h
  14032. (btMessageReceiver):
  14033. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14034. (dispatcher):
  14035. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14036. (btRequestFactory):
  14037. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14038. (peerConnection):
  14039. PeerConnectionHandle -> PeerConnectionWeakHandle
  14040. (messageFactory): New variable.
  14041. (option): Removed.
  14042. (keepAliveInterval): New variable.
  14043. (maxDownloadSpeedLimit): New variable.
  14044. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14045. (setBtMessageReceiver):
  14046. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14047. (setDispatcher):
  14048. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14049. (setBtRequestFactory):
  14050. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14051. (setPeerConnection):
  14052. PeerConnectionHandle -> PeerConnectionWeakHandle
  14053. (setOption): Removed.
  14054. (setKeepAliveInterval): New function.
  14055. (setMaxDownloadSpeedLimit): New function.
  14056. (setBtMessageFactory): New function.
  14057. * src/BitfieldMan.h
  14058. (cachedNumMissingBlock): New variable.
  14059. (cachedNumFilteredBlock): New variable.
  14060. (cachedCompletedLength): New variable.
  14061. (cachedFilteredComletedLength): New variable.
  14062. (cachedFilteredTotalLength): New variable.
  14063. (countMissingBlockNow): New function.
  14064. (countFilteredBlockNow): New function.
  14065. (getFilteredTotalLengthNow): New function.
  14066. (getCompletedLengthNow): New function.
  14067. (getFilteredCompletedLengthNow): New function.
  14068. (updateCache): New function.
  14069. * src/AbstractBtMessage.h
  14070. (BtMessageDispatcher.h): New include.
  14071. (PeerConnection.h): New include.
  14072. (BtRequestFactory.h): New include
  14073. (BtMessageFactory.h): New include.
  14074. (dispatcher): New variable.
  14075. (messageFactory): New variable.
  14076. (peerConnection: New variable.
  14077. (setBtMessageDispatcher): New function.
  14078. (setPeerConnection): New function.
  14079. (setBtMessageFactory): New function.
  14080. (setBtRequestFactory): New function.
  14081. * src/DefaultBtMessageFactory.cc
  14082. (setCommonProperty): Set dispatcher, requestFactory, this,
  14083. peerConnection to msg.
  14084. * src/BtRegistry.h
  14085. (BT_MESSAGE_RECEIVER): New macro.
  14086. * src/PeerConnection.h
  14087. (PeerConnectionWeakHandle): New type definition.
  14088. * src/BtMessageFactory.h
  14089. (BtMessageFactoryWeakHandle): New type definition.
  14090. * src/BitfieldMan.cc
  14091. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14092. cachedCompletedLength, cachedFilteredComletedLength,
  14093. cachedFilteredTotalLength.
  14094. Call updateCache().
  14095. (countMissingBlock): Return cachedNumMissingBlock.
  14096. (countMissingBlockNow): New function.
  14097. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14098. (countFilteredBlockNow): New function.
  14099. (setBit): Call updateCache().
  14100. (unsetBit): Call updateCache().
  14101. (setBitfield): Call updateCache().
  14102. (clearAllBit): Call updateCache().
  14103. (setAllBit): Use setBitInternal instead of setBit.
  14104. Call updateCache().
  14105. (addFilter): Call updateCache().
  14106. (enableFilter): Call updateCache().
  14107. (disableFilter): Call updateCache().
  14108. (clearFilter): Call updateCache().
  14109. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14110. (getFilteredTotalLengthNow): New function.
  14111. (getCompletedLength): Return cachedCompletedLength.
  14112. (getCompletedLengthNow): New function.
  14113. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14114. (getFilteredCompletedLengthNow): New function.
  14115. (updateCache): New function.
  14116. * src/BtMessageReceiver.h
  14117. (BtMessageReceiverWeakHandle): New type definition.
  14118. * src/DefaultBtMessageReceiver.cc
  14119. (receiveHandshake): Use messageFactory member.
  14120. (sendHandshake): Use messageFactory member.
  14121. (receiveMessage): Use messageFactory member.
  14122. * src/DefaultBtMessageFactory.h
  14123. (dispatcher): New variable.
  14124. (requestFactory): New variable.
  14125. (peerConnection): New variablle.
  14126. (setBtMessageDispatcher): New function.
  14127. (setBtRequestFactory): New function.
  14128. (setPeerConnection): New function.
  14129. * src/SharedHandle.h
  14130. (RefCount): New class.
  14131. (WeakHandle): New class.
  14132. * src/PeerObject.h
  14133. (BtMessageReceiver.h): New include.
  14134. (PeerObject): Added btMessageReceiver.
  14135. (btMessageReceiver): New variable.
  14136. * src/Util.cc
  14137. (countBit): Simplified.
  14138. * src/BtCancelMessage.cc
  14139. (doReceivedAction): Use dispatcher member.
  14140. * src/BtRequestFactory.h
  14141. (BtRequestFactoryWeakHandle): New type definition.
  14142. * src/PeerStorage.h
  14143. (downloadSpeed): int -> uint32_t
  14144. (uploadSpeed): int -> uint32_t
  14145. (sessionDownloadLength): long long int -> uint64_t
  14146. (sessionUploadLength): long long int -> uint64_t
  14147. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14148. To add RecoverableException, FatalException:
  14149. * src/AbstractCommand.cc
  14150. (onAbort): Exception -> RecoverableException
  14151. * src/PeerAbstractCommand.h
  14152. (RecoverableException.h): New include.
  14153. (onAbort): Exception -> RecoverableException.
  14154. * src/PeerInteractionCommand.cc
  14155. (onAbort): Exception -> RecoverableException.
  14156. * src/PeerAbstractCommand.cc
  14157. (execute): Exception -> RecoverableException.
  14158. (onAbort): Exception -> RecoverableException.
  14159. * src/TorrentRequestInfo.cc
  14160. (execute): Exception -> RecoverableException.
  14161. * src/MetalinkRequestInfo.cc
  14162. (execute): Exception -> RecoverableException.
  14163. * src/MetaFileUtil.cc: RecoverableException.
  14164. * src/AbstractCommand.h
  14165. (onAbort): Exception -> RecoverableException.
  14166. * src/DlRetryEx.h: Exception -> RecoverableException.
  14167. * src/DlAbortEx.h: Exception -> RecoverableException.
  14168. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14169. * src/Util.cc: Exception -> RecoverableException.
  14170. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14171. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14172. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14173. To make ID static const int
  14174. * src/BtInterestedMessage.h
  14175. (ID_t): Removed.
  14176. (ID): New variable.
  14177. (getId): Made non-const.
  14178. * src/BtPieceMessage.h
  14179. (ID_t): Removed.
  14180. (ID): New variable.
  14181. (getId): Made non-const.
  14182. * src/BtChokeMessage.h
  14183. (ID_t): Removed.
  14184. (ID): New variable.
  14185. (getId): Made non-const.
  14186. * src/BtHaveAllMessage.h
  14187. (ID_t): Removed.
  14188. (ID): New variable.
  14189. (getId): Made non-const.
  14190. * src/BtKeepAliveMessage.h
  14191. (ID_t): Removed.
  14192. (ID): New variable.
  14193. (getId): Made non-const.
  14194. * src/BtHandshakeMessage.h
  14195. (ID): New variable.
  14196. (getId): Made non-const.
  14197. * src/BtSuggestPieceMessage.h
  14198. (ID_t): Removed.
  14199. (ID): New variable.
  14200. (getId): Made non-const.
  14201. * src/BtPortMessage.h
  14202. (ID_t): Removed.
  14203. (ID): New variable.
  14204. (getId): Made non-const.
  14205. * src/AbstractBtMessage.h
  14206. (id): Removed.
  14207. (AbstractBtMessage): Removed id.
  14208. (getId): Removed.
  14209. * src/BtHaveMessage.h
  14210. (ID_t): Removed.
  14211. (ID): New variable.
  14212. (getId): Made non-const.
  14213. * src/BtAllowedFastMessage.h
  14214. (ID_t): Removed.
  14215. (ID): New variable.
  14216. (getId): Made non-const.
  14217. * src/BtCancelMessage.h
  14218. (ID_t): Removed.
  14219. (ID): New variable.
  14220. (getId): Made non-const.
  14221. * src/BtNotInterestedMessage.h
  14222. (ID_t): Removed.
  14223. (ID): New variable.
  14224. (getId): Made non-const.
  14225. * src/BtChokeMessage.h
  14226. (ID_t): Removed.
  14227. (ID): New variable.
  14228. (getId): Made non-const.
  14229. * src/BtRejectMessage.h
  14230. (ID_t): Removed.
  14231. (ID): New variable.
  14232. (getId): Made non-const.
  14233. * src/BtBitfieldMessage.h
  14234. (ID_t): Removed.
  14235. (ID): New variable.
  14236. (getId): Made non-const.
  14237. * src/BtUnchokeMessage.h
  14238. (ID_t): Removed.
  14239. (ID): New variable.
  14240. (getId): Made non-const.
  14241. * src/BtRequestMessage.h
  14242. (ID_t): Removed.
  14243. (ID): New variable.
  14244. (getId): Made non-const.
  14245. * src/BtHaveMessage.h
  14246. (ID_t): Removed.
  14247. (ID): New variable.
  14248. (getId): Made non-const.
  14249. To add --force-truncate command-line option and a check whether
  14250. the file already exists:
  14251. * src/DirectDiskAdaptor.h
  14252. (getFilePath): Made virtual public.
  14253. * src/MultiDiskAdaptor.h
  14254. (File.h): New include.
  14255. (DiskWriterEntry::fileEntry): Made private.
  14256. (DiskWriterEntry::fileExists): New function.
  14257. (DiskWriterEntry::getFileEntry): New function.
  14258. (fileExists): New function.
  14259. (getFilePath): New function.
  14260. * src/TorrentRequestInfo.cc
  14261. (FatalException.h): New include.
  14262. (message.h): New include.
  14263. (RecoverableException.h): New include.
  14264. (execute): Added a check whether file is already exists or not.
  14265. * src/DiskAdaptor.h
  14266. (fileExists): New function.
  14267. (getFilePath): New function.
  14268. * src/main.cc
  14269. (showUsage): Added an explanation of --force-truncate command-line
  14270. option.
  14271. (main): Added --force-truncate command-line option.
  14272. * src/Exception.h
  14273. (setMsg): buf[256] -> buf[1024]
  14274. * src/CopyDiskWriter.h
  14275. (getFilePath): Made public virtual.
  14276. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14277. (fileExists): New function.
  14278. * src/DownloadEngineFactory.cc
  14279. (newTorrentConsoleEngine): Don't open file here.
  14280. * src/message.h
  14281. (EX_FILE_ALREADY_EXISTS): New definition.
  14282. * src/prefs.h
  14283. (PREF_FOECE_TRUNCATE): New definition.
  14284. * src/HttpResponseCommand.cc
  14285. (handleDefaultEncoding): Added a check whether the file already exists.
  14286. * src/SegmentMan.h
  14287. (fileExists): New function.
  14288. (shouldCancelDownloadForSafety): New function.
  14289. * src/FtpNegotiateCommand.cc
  14290. (recvSize): Added a check whether the file already exists.
  14291. * src/AbstractSingleDiskAdaptor.cc
  14292. (File.h): New include.
  14293. (fileExists): New function.
  14294. * src/AbstractSingleDiskAdaptor.h
  14295. (getFilePath): Removed.
  14296. (fileExists): New function.
  14297. * src/SegmentMan.cc
  14298. (fileExists): New function.
  14299. (shouldCancelDownloadForSafety): New function.
  14300. To fix regression bug in torrent downloading:
  14301. * src/DefaultBtRequestFactory.cc
  14302. (doChokedAction): New function.
  14303. * src/DefaultBtRequestFactory.h
  14304. (doChokedAction): New function.
  14305. * src/DefaultBtMessageDispatcher.cc
  14306. (doChokedAction): Do not delete request if its target is in allowed
  14307. fast set.
  14308. * src/DefaultBtInteractive.cc
  14309. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14310. (sendKeepAlive): Send keep alive message even if the outgoing message
  14311. queue is not empty.
  14312. (decideInterest): Simplified the code.
  14313. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14314. it is already called when BtChokeMessage is received from a peer.
  14315. * src/BtRequestFactory.h
  14316. (doChokedAction): New function.
  14317. To clean up code:
  14318. * src/PeerInteractionCommand.h
  14319. (executeInternal): Added virtual keyword explicitly.
  14320. (prepareForRetry): Added virtual keyword explicitly.
  14321. (prepareForNextPeer): Added virtual keyword explicitly.
  14322. (onAbort): Added virtual keyword explicitly.
  14323. * src/RequestSlot.cc
  14324. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14325. * src/BtPieceMessage.cc
  14326. (doReceivedAction): Added a debug log of piece's bitfield.
  14327. * src/Piece.h
  14328. (getBitfieldLength): New function.
  14329. * src/ByteArrayDiskWriter.cc
  14330. (clear): Added buf = 0 to avoid double free corruption.
  14331. * src/FileAllocator.cc
  14332. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14333. Added cp.reset().
  14334. * src/BitfieldMan.h
  14335. (operator=): Rewritten.
  14336. * src/BitfieldMan.cc
  14337. (BitfieldMan): Initialized bitfield, useBitfield.
  14338. * src/PeerConnection.cc
  14339. (receiveMessage): Added a call to socket->readable() after getting
  14340. message length to avoid possible EOF.
  14341. * src/Util.cc
  14342. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14343. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14344. To add an ability to pre-allocate file space:
  14345. * src/DirectDiskAdaptor.h: Rewritten.
  14346. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14347. * src/MultiDiskAdaptor.h: Rewritten.
  14348. * src/DefaultPieceStorage.cc
  14349. (MultiDiskWriter.h): Removed include.
  14350. (PreAllocationDiskWriter.h): Removed include.
  14351. (FileAllocationMonitor.h): New include.
  14352. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14353. (initStorage): Rewritten.
  14354. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14355. * src/FileAllocator.h: New class.
  14356. * src/FileAllocator.cc: New class.
  14357. * src/FileAllocationMonitor.h: New class.
  14358. * src/FileAllocationMonitor.cc: New class.
  14359. * src/ConsoleFileAllocationMonitor.h: New class.
  14360. * src/ConsoleFileAllocationMonitor.cc: New class.
  14361. * src/AbstractSingleDiskAdaptor.h: New class.
  14362. * src/AbstractSingleDiskAdaptor.cc: New class.
  14363. * src/DiskAdaptor.h
  14364. (Directory.h): Removed include.
  14365. (DiskWriter.h): Removed include.
  14366. (FileEntry.h): Removed include.
  14367. (diskWriter): Removed.
  14368. (DiskAdaptor): Removed diskWriter.
  14369. (openFile): Made pure virtual.
  14370. (closeFile): Made pure virtual.
  14371. (openExistingFile): Made pure virtual.
  14372. (initAndOpenFile): Made pure virtual.
  14373. (writeData): Made pure virtual.
  14374. (readData): Made pure virtual.
  14375. (sha1Sum): Made pure virtual.
  14376. (getStoreDir): Returns const reference of storeDir.
  14377. (DiskAdaptorHandle): New type definition.
  14378. * src/main.cc
  14379. (ConsoleFileAllocationMonitor.h): New include.
  14380. (showUsage): Added default value description of -s option.
  14381. Added the description of --file-allocation option.
  14382. (main): Set default value of --file-allocation option to 'none'.
  14383. Added --file-allocation command-line option.
  14384. Setup FileAllocationMonitorFactory.
  14385. * src/FtpInitiateConnectionCommand.cc
  14386. (executeInternal): Removed diskWriter related processing, which was
  14387. moved to FtpNegotiationCommand.cc.
  14388. * src/DirectDiskAdaptor.cc
  14389. (getFilePath): Made non-const.
  14390. * src/CopyDiskAdaptor.h
  14391. (DiskAdaptor.h): Removed include.
  14392. (DiskWriter.h): Removed include.
  14393. (AbstractSingleDiskAdaptor.h): New include.
  14394. (getFilePath): Made non-const. Added virtual keyword.
  14395. (CopyDiskAdaptor): Removed diskWriter.
  14396. (getTempFile): Returns const reference.
  14397. (CopyDiskAdaptorHandle): New type definition.
  14398. * src/ByteArrayDiskWriter.cc
  14399. (clear): Simplified.
  14400. (initAndOpenFile): Rewritten.
  14401. (openFile): Call initAndOpenFile()
  14402. * src/MultiDiskAdaptor.cc: Rewritten.
  14403. * src/DownloadEngineFactory.cc
  14404. (FileAllocator.h): New include.
  14405. (FileAllocationMonitor.h): New include.
  14406. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14407. create DefaultDiskWriter with file allocator.
  14408. * src/DiskWriter.h
  14409. (initAndOpenFile): Added totalLength argument.
  14410. (openFile): Added totalLength argument.
  14411. * src/prefs.h
  14412. (PREF_FILE_ALLOCATION): New definition.
  14413. (V_PREALLOC): New definition.
  14414. (V_NONE): New definition.
  14415. * src/HttpResponseCommand.cc
  14416. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14417. size.
  14418. * src/FtpNegotiateCommand.cc
  14419. (Util.h): New include.
  14420. (recvSize): Open file here.
  14421. * src/Util.h
  14422. (ullitos): New function.
  14423. * src/CopyDiskWriter.h
  14424. (getFilePath): Made non-const.
  14425. * src/DefaultDiskWriter.h
  14426. (Option.h): New include.
  14427. (totalLength): Removed.
  14428. (DefaultDiskWriter): Removed totalLength.
  14429. (initAndOpenFile): Added totalLength argument.
  14430. (DefaultDiskWriterHandle): New type definition.
  14431. (createNewDiskWriter): New function.
  14432. * src/Util.cc
  14433. (ullitos): New function.
  14434. * src/DefaultDiskWriter.cc
  14435. (message.h): New include.
  14436. (FileAllocator.h): New include.
  14437. (prefs.h): New include.
  14438. (Util.h): New include.
  14439. (DefaultDiskWriter): Removed totalLength.
  14440. (initAndOpenFile): Added file allocation.
  14441. (createNewDiskWriter): New function. Just for temporary solution.
  14442. It will be rewritten later.
  14443. * src/DiskAdaptor.cc
  14444. (DiskAdaptor): Removed diskWriter.
  14445. * src/AbstractDiskWriter.cc
  14446. (LogFactory.h): New include.
  14447. (AbstractDiskWriter): Added fileAllocator, logger.
  14448. (openFile): Added totalLength argument.
  14449. * src/AbstractDiskWriter.h
  14450. (FileAllocator.h): New include.
  14451. (Logger.h): New include.
  14452. (fileAllocator): New variable.
  14453. (logger): New variable.
  14454. (openFile): Added totalLength argument. Added virtual keyword
  14455. explicitly.
  14456. (openExistingFile): Added totalLength argument. Added virtual keyword
  14457. explicitly.
  14458. (closeFile): Added virtual keyword explicitly.
  14459. (sha1Sum): Added virtual keyword explicitly.
  14460. (writeData): Added virtual keyword explicitly.
  14461. (readData): Added virtual keyword explicitly.
  14462. (setFileAllocator): New function.
  14463. * src/DefaultPieceStorage.h
  14464. (FileAllocator.h): New include.
  14465. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14466. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14467. * src/FileProgressMonitor.h: New class.
  14468. To compile aria2 on PC-BSD:
  14469. * src/DefaultBtContext.cc
  14470. (libgen.h): New include.
  14471. To fix memory leak:
  14472. * src/Exception.h
  14473. (~Exception): Delete cause. Fixed memory leak.
  14474. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14475. Rewritten a portion of bittorrent implementation:
  14476. * src/BtMessageValidator.h: New class.
  14477. * src/BtBitfieldMessageValidator.h: New class.
  14478. * src/BtHandshakeMessageValidator.h: New class.
  14479. * src/BtRequestMessageValidator.h: New class.
  14480. * src/BtSuggestPieceMessageValidator.h: New class.
  14481. * src/BtAllowedFastMessageValidator.h: New class.
  14482. * src/BtRejectMessageValidator.h: New class.
  14483. * src/BtCancelMessageValidator.h: New class.
  14484. * src/BtPieceMessageValidator.h: New class.
  14485. * src/BtHaveMessageValidator.h: New class.
  14486. * src/BtEventListener.h: New class.
  14487. * src/AbstractBtEventListener.h: New class.
  14488. * src/BtEvent.h: New class.
  14489. * src/BtChokingEvent.h: New class.
  14490. * src/BtChokedEvent.h: New class.
  14491. * src/BtCancelSendingPieceEvent.h: New class.
  14492. * src/BtAbortOutstandingRequestEvent.h: New class.
  14493. * src/Randomizer.h: New class.
  14494. * src/SimpleRandomizer.h: New class.
  14495. * src/BtMessage.h: New class.
  14496. * src/AbstractBtMessage.h: New class.
  14497. * src/SimpleBtMessage.h: New class.
  14498. * src/BtHaveMessage.h: New class.
  14499. * src/BtInterestedMessage.h: New class.
  14500. * src/BtAllowedFastMessage.h: New class.
  14501. * src/BtUnchokeMessage.h: New class.
  14502. * src/BtCancelMessage.h: New class.
  14503. * src/BtNotInterestedMessage.h: New class.
  14504. * src/BtChokeMessage.h: New class.
  14505. * src/BtHaveNoneMessage.h: New class.
  14506. * src/BtHandshakeMessage.h: New class.
  14507. * src/BtSuggestPieceMessage.h: New class.
  14508. * src/BtHaveMessage.h: New class.
  14509. * src/BtPieceMessage.h: New class.
  14510. * src/BtHaveAllMessage.h: New class.
  14511. * src/BtKeepAliveMessage.h: New class.
  14512. * src/BtPortMessage.h: New class.
  14513. * src/BtRejectMessage.h: New class.
  14514. * src/BtBitfieldMessage.h: New class.
  14515. * src/BtRequestMessage.h: New class.
  14516. * src/DefaultBtRequestFactory.h: New class.
  14517. * src/DefaultBtMessageReceiver.h: New class.
  14518. * src/BtInteractive.h: New class.
  14519. * src/BtMessageDispatcher.h: New class.
  14520. * src/DefaultBtMessageDispatcher.h: New class.
  14521. * src/DefaultBtInteractive.h: New class.
  14522. * src/BitfieldManFactory.h: New class.
  14523. * src/HandleRegistry.h: New class.
  14524. * src/BtMessageFactory.h: New class.
  14525. * src/BtMessageReceiver.h: New class.
  14526. * src/DefaultBtMessageFactory.h: New class.
  14527. * src/PeerObject.h: New class.
  14528. * src/BtRequestFactory.h: New class.
  14529. * src/SuggestPieceMessage.h: Removed.
  14530. * src/PortMessage.h: Removed.
  14531. * src/SuggestPieceMessage.h: Removed.
  14532. * src/KeepAliveMessage.h: Removed.
  14533. * src/HandshakeMessage.h: Removed.
  14534. * src/PeerInteraction.h: Removed.
  14535. * src/UnchokeMessage.h: Removed.
  14536. * src/PieceMessage.h: Removed.
  14537. * src/RequestMessage.h: Removed.
  14538. * src/InterestedMessage.h: Removed.
  14539. * src/HaveMessage.h: Removed.
  14540. * src/CancelMessage.h: Removed.
  14541. * src/RejectMessage.h: Removed.
  14542. * src/AllowedFastMessage.h: Removed.
  14543. * src/HaveNoneMessage.h: Removed.
  14544. * src/SimplePeerMessage.h: Removed.
  14545. * src/HaveAllMessage.h: Removed.
  14546. * src/BitfieldMessage.h: Removed.
  14547. * src/PeerMessageFactory.h: Removed.
  14548. * src/NotInterestedMessage.h: Removed.
  14549. * src/ChokeMessage.h: Removed.
  14550. * src/PeerMessage.h: Removed.
  14551. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14552. To know root cause of exception:
  14553. * src/Exception.h
  14554. (cause): New variable.
  14555. (Exception): Added a parameter.
  14556. (getMsg): Return const reference to msg.
  14557. (getCause): New function.
  14558. * src/DlRetryEx.h
  14559. (DlRetryEx): Added a parameter 'cause'.
  14560. Added an overloaded constructor.
  14561. (DlAbortEx): Added a parameter 'cause'.
  14562. Added an overloaded constructor.
  14563. * src/SimpleLogger.cc
  14564. (writeLog): Log nested exception messages recursively.
  14565. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14566. * src/DefaultBtProgressInfoFile.cc
  14567. (load): Fixed memory leak when the infohash doesn't match.
  14568. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14569. * src/DefaultPeerStorage.cc
  14570. (calculateStat): Simplified the code by combining 2 loops into 1.
  14571. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14572. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14573. for BitTorrent download:
  14574. * src/PeerAbstractCommand.cc
  14575. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14576. * src/main.cc:
  14577. (timeoutSpecified): Removed.
  14578. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14579. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14580. * src/TorrentRequestInfo.cc
  14581. (timeoutSpecified): Removed.
  14582. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14583. timeout value.
  14584. * src/prefs.h
  14585. (PREF_BT_TIMEOUT): New definition.
  14586. Delete unused variables:
  14587. * src/TorrentRequestInfo.cc
  14588. (requestInfo): Removed.
  14589. Move setSignalHander to Util::setGlobalSignalHandler:
  14590. * src/TorrentRequestInfo.cc:
  14591. setSignalHander -> Util::setGlobalSignalHandler
  14592. * src/main.cc
  14593. (setSignalHander): Removed.
  14594. (main): setSignalHander -> Util::setGlobalSignalHandler
  14595. * src/Util.h
  14596. (setGlobalSignalHandler): New function.
  14597. * src/Util.cc
  14598. (setGlobalSignalHandler): New function.
  14599. * src/UrlRequestInfo.cc:
  14600. setSignalHander -> Util::setGlobalSignalHandler
  14601. Reset peer status in order to exit gracefully:
  14602. * src/PeerAbstractCommand.cc
  14603. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14604. To fix the bug that causes the number of bytes uploaded is not saved
  14605. to .aria2 file:
  14606. * src/DefaultPeerStorage.h
  14607. (removedPeerSessionDownloadLength): New variable.
  14608. (removedPeerSessionUploadLength): New variable.
  14609. * src/DefaultPeerStorage.cc
  14610. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14611. removedPeerSessionUploadLength(0).
  14612. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14613. through all peers, and then add removedPeerSessionDownloadLength(
  14614. removedPeerSessionUploadLength) to it.
  14615. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14616. (to) the peer to removedPeerSessionDownloadLength
  14617. (removedPeerSessionUploadLength).
  14618. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14619. To add Metalink location option:
  14620. * src/MetalinkRequestInfo.cc
  14621. (execute): Call MetalinkEntry::setLocationPreference()
  14622. * src/main.cc
  14623. (showUsage): Added the help message for --metalink-location option.
  14624. (main): Added --metalink-location option.
  14625. * src/prefs.h
  14626. (PREF_METALINK_LOCATION): New definition.
  14627. * src/MetalinkEntry.cc
  14628. (AddLocationPreference): New function object.
  14629. (setLocationPreference): New function.
  14630. * src/Xml2MetalinkProcessor.cc
  14631. (getResource): Set location attribute to MetalinkResource
  14632. To show URLs to download
  14633. * src/UrlRequestInfo.h
  14634. (printUrls): New function.
  14635. To add multiple <file> Metalink support:
  14636. * src/MetalinkEntry.h
  14637. (MetalinkResources): Removed.
  14638. (setLocationPreference): New function.
  14639. (MetalinkEntryHandle): New type definition.
  14640. (MetalinkEntries): New type definition.
  14641. * src/Xml2MetalinkProcessor.h
  14642. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14643. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14644. (parseFile): Metalinker* -> MetalinkerHandle
  14645. * src/UrlRequestInfo.h
  14646. (execute): RequestInfo* -> RequestInfos
  14647. * src/MetalinkRequestInfo.cc
  14648. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14649. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14650. (execute): RequestInfo* -> RequestInfos
  14651. Added multiple <file> support. Print filename when it is queued.
  14652. * src/MetalinkRequestInfo.h
  14653. (execute): RequestInfo* -> RequestInfos
  14654. (getDownloadEngine): Removed.
  14655. * src/RequestInfo.h
  14656. (RequestInfoHandle): New type definition.
  14657. (RequestInfos): New type definition.
  14658. (execute): RequestInfo* -> RequestInfos
  14659. (getDownloadEngine): Removed.
  14660. * src/MetalinkResource.h
  14661. (MetalinkResourceHandle): New type definition.
  14662. (MetalinkResources): New type definition.
  14663. * src/MetalinkEntry.cc
  14664. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14665. because the element is now of type MetalinkResourceHandle.
  14666. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14667. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14668. (dropUnsupportedResource): Removed the deletion of the elements of
  14669. resources because the element is now of type MetalinkResourceHandle.
  14670. * src/Xml2MetalinkProcessor.cc
  14671. (parseFile): Metalinker* -> MetalinkerHandle
  14672. MetalinkEntry* -> MetalinkEntryHandle
  14673. Removed try-catch block.
  14674. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14675. MetalinkResource* -> MetalinkResourceHandle
  14676. Removed try-catch block.
  14677. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14678. Free result by using xmlXPathFreeObject()
  14679. * src/Metalinker.cc
  14680. (~Metalinker): Removed the deletion of entries.
  14681. MetalinkEntry* -> MetalinkEntryHandle
  14682. (queryEntry): Add multiple <file> Metalink support.
  14683. * src/Metalinker.h
  14684. (MetalinkEntries): Removed.
  14685. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14686. * src/MetalinkProcessor.h
  14687. (parseFile): Metalinker* -> MetalinkerHandle
  14688. Bug fixes:
  14689. * src/PeerChokeCommand.cc
  14690. (execute): cat01->cat02
  14691. * src/DefaultPieceStorage.cc
  14692. (DefaultPieceStorage): Added diskAdaptor(0)
  14693. * src/TrackerWatcherComand.cc:
  14694. (execute): Use btAnnounce->noMoreAnnounce()
  14695. to determin whether the function returns true or not.
  14696. * src/TrackerUpdateCommand.cc:
  14697. (execute): Use btAnnounce->noMoreAnnounce()
  14698. to determin whether the function returns true or not.
  14699. * src/FtpConnection.cc
  14700. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14701. This is the fix of the busy loop bug.
  14702. * src/DownloadCommand.cc
  14703. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14704. cached PeerStat.
  14705. The value of "name" entry in torrent file is now set by
  14706. *DiskAdaptor::setTopDir(...) methods.
  14707. * src/MultiDiskAdaptor.h
  14708. (topDir): New variable.
  14709. (setTopDir): New function.
  14710. (getTopDir): New function.
  14711. * src/MultiDiskAdaptor.cc
  14712. (getFilePath): Concat storDir, "/" and topDir.
  14713. (mkdir): Use getFilePath() to get the directory path for output.
  14714. * src/DefaultPieceStorage.cc
  14715. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14716. CopyDiskAdaptor.
  14717. * src/CopyDiskAdaptor.h
  14718. (topDir): New variable.
  14719. (setTopDir): New function.
  14720. (getTopDir): New function.
  14721. * src/CopyDiskAdaptor.cc
  14722. (fixFilename): Updated.
  14723. Misc
  14724. * src/UrlRequestInfo.h
  14725. (e): Removed.
  14726. (UrlRequestInfo): Removed e.
  14727. (getDownloadEngine): Removed.
  14728. * src/UrlRequestInfo.cc
  14729. (handler): Rewritten.
  14730. (printUrls): New function.
  14731. (execute): Call printUrls().
  14732. * src/HandshakeMessage.cc
  14733. (check): peerinteraction->getBtContext() -> btContext
  14734. * src/PeerInteraction.h
  14735. (getBtContext): Removed.
  14736. * src/TorrentRequestInfo.h
  14737. (execute): RequestInfo* -> RequestInfos
  14738. (getDownloadEngine): Removed.
  14739. * src/TorrentRequestInfo.cc
  14740. (haltRequested): Removed.
  14741. (btHaltRequested): New variable.
  14742. (torrentHandler): haltRequested -> btHaltRequested
  14743. (execute): RequestInfo* -> RequestInfos
  14744. * src/TorrentConsoleDownloadEngine.cc
  14745. (afterEachIteration): haltRequested -> btHaltRequested.
  14746. * src/ConsoleDownloadEngine.h
  14747. (initStatistics): Added virtual.
  14748. (calculateStatistics): Added virtual.
  14749. (onEndOfRun): Added virtual.
  14750. (afterEachIteration): Added virtual.
  14751. * src/ConsoleDownloadEngine.cc
  14752. (haltRequested): New variable.
  14753. (afterEachIteration): New function.
  14754. * src/main.cc
  14755. (requestInfo): Removed.
  14756. * src/SegmentMan.cc
  14757. (findSlowerSegmentEntry): Refactored.
  14758. * Release 0.9.0
  14759. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14760. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14761. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14762. * src/TorrentMan.h: Removed.
  14763. * src/TorrentMan.cc: Removed.
  14764. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14765. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14766. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14767. * src/PeerAbstractCommand.cc: Use btRuntime.
  14768. * src/BtContextAwareCommand.h: New class.
  14769. * src/FileEntry.h: Added accessor methods for following variables.
  14770. (path): Made private.
  14771. (length): Made private.
  14772. (offset): Made private.
  14773. (extracted): Made private.
  14774. (requested): Made private.
  14775. (FileEntries): New definition.
  14776. (FileEntryHandle): New definition.
  14777. * src/FileEntry.cc: New file.
  14778. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14779. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14780. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14781. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14782. * src/PieceStorage.h: New file.
  14783. * src/PeerInteractionCommand.h: Use btContext.
  14784. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14785. btRuntime.
  14786. * src/DefaultBtProgressInfoFile.h: New file.
  14787. * src/DefaultBtProgressInfoFile.cc: New file.
  14788. * src/File.cc
  14789. (Util.h): New include.
  14790. (mkdirs): New function.
  14791. * src/MultiDiskAdaptor.h
  14792. (mkdir): New function.
  14793. * src/PeerListProcessor.h
  14794. (Peers): Removed.
  14795. * src/PeerInteraction.h
  14796. (torrentMan): Removed.
  14797. (btContext): New variable.
  14798. (peerStorage): New variable.
  14799. (pieceStorage): New variable.
  14800. (btAnnounce): New variable.
  14801. (getTorrentMan): Removed.
  14802. (getBtContext): New function.
  14803. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14804. btAnnounce.
  14805. * src/HandshakeMessage.h
  14806. (TorrentMan.h): Removed.
  14807. * src/HandshakeMessage.cc: Use btContext.
  14808. * src/DefaultBtAnnounce.cc: New file.
  14809. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14810. * src/DefaultPieceStorage.cc: New file.
  14811. * src/DefaultBtContext.h: New file.
  14812. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14813. Use the accessor methods of FileEntry.
  14814. * src/CookieBox.cc: Updated to use Util::slice().
  14815. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14816. * src/common.h (SharedHandle.h): New include.
  14817. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14818. pieceStorage.
  14819. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14820. * src/DiskAdaptor.h
  14821. (topDir): Removed.
  14822. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14823. (setTopDir): Removed.
  14824. (getTopDir): Removed.
  14825. * src/BtContext.h: New file.
  14826. * src/DefaultPeerStorage.h: New file.
  14827. * src/PieceMessage.h (TorrentMan.h): Removed.
  14828. * src/RequestMessage.h (TorrentMan.h): Removed.
  14829. * src/TorrentDownloadEngine.h
  14830. (uploadLength): New variable.
  14831. (btContext): New variable.
  14832. (btRuntime): New variable.
  14833. (pieceStorage): New variable.
  14834. (peerStorage): New variable.
  14835. (btAnnounce): New variable.
  14836. (btProgressInfoFile): New variable.
  14837. (torrentMan): Removed.
  14838. (setBtContext): New function.
  14839. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14840. peerStorage, btAnnounce, btProgressInfoFile.
  14841. * src/Piece.h
  14842. (toString): New function.
  14843. (Pieces): New type definition.
  14844. * src/Peer.h
  14845. (active): New variable.
  14846. (Peer): Added active.
  14847. (activate): Set active to true.
  14848. (deactivate): Set active to false.
  14849. (isActive): New function.
  14850. (Peers): New type definition.
  14851. * src/DirectDiskAdaptor.cc
  14852. (getFilePath): Use the accessor methods of FileEntry.
  14853. * src/TorrentConsoleDownloadEngine.h
  14854. (afterEachIteration): New function.
  14855. * src/TorrentConsoleDownloadEngine.cc
  14856. (haltRequested): New variable.
  14857. (sendStatistics): Use pieceStorage, btRuntime.
  14858. (afterEachIteration): New function.
  14859. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14860. * src/Directry.h
  14861. (Directory): New function.
  14862. (DirectoryHandle): New type definition.
  14863. * src/BtProgressInfoFile.h: New file.
  14864. * src/RequestMessage.cc: Use pieceStorage.
  14865. * src/BtRuntime.h: New file.
  14866. * src/DefaultBtContext.cc: New file.
  14867. * src/BitfieldMan.h
  14868. (getCompletedLength): New function(private).
  14869. (getCompletedLength): New function.
  14870. (getFilteredCompletedLength): New function.
  14871. * src/BitfieldMan.h
  14872. (getCompletedLength): New function(private).
  14873. (getCompletedLength): New function.
  14874. (getFilteredCompletedLength): New function.
  14875. * src/MultiDiskAdaptor.cc
  14876. (mkdir): New function.
  14877. (openFile): Call mkdir().
  14878. (initAndOpenFile): Call mkdir().
  14879. * src/CancelMessage.h
  14880. (TorrentMan.h): Removed.
  14881. * src/RejectMessage.h
  14882. (TorrentMan.h): Removed.
  14883. * src/DownloadEngineFactory.cc
  14884. (DefaultPieceStorage.h): New include.
  14885. (DefaultPeerStorage.h): New include.
  14886. (DefaultBtAnnounce.h): New include.
  14887. (DefaultBtProgressInfoFile.h): New include.
  14888. (newTorrentConsoleEngine): Rewritten.
  14889. * src/ShareRatioSeedCriteria.h
  14890. (torrentMan): Removed.
  14891. (btContext): New variable.
  14892. (peerStorage): New variable.
  14893. (btRuntime): New variable.
  14894. (evaluate): Use btContext, btRuntime, peerStorage.
  14895. * src/AnnounceTier.h: New file.
  14896. * src/BtAnnounce.h: New file.
  14897. * src/BtRegistry.h: New file.
  14898. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14899. * src/PeerConnection.h (TorrentMan.h): Removed.
  14900. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14901. * src/Util.h
  14902. (slice): Added an argument.
  14903. * src/Util.cc
  14904. (slice): Added an argument to control whether trim is made or not.
  14905. * src/PeerStorage.h: New file.
  14906. * src/BtRegistry.cc: New file.
  14907. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14908. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14909. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14910. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14911. * src/TorrentRequestInfo.h
  14912. (e): Removed.
  14913. (showFileEntry): Added an argument.
  14914. (getDownloadEngine): Return 0.
  14915. * src/DefaultBtAnnounce.h: New file.
  14916. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14917. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14918. * src/PeerMessageFactory.h
  14919. (btContext): New variable.
  14920. (pieceStorage): New variable.
  14921. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14922. btAnnounce.
  14923. * src/DiskAdaptor.cc
  14924. (DiskAdaptor): Removed topDir.
  14925. (~DiskAdaptor): Removed topDir.
  14926. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14927. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14928. * src/File.h (mkdirs): New function.
  14929. * src/DefaultPeerStorage): New file.
  14930. * src/DownloadEngineFactory.h
  14931. (newTorrentConsoleEngine): Use btContext.
  14932. * src/BtContextAwareCommand.cc: New file.
  14933. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14934. * src/PeerMessage.h
  14935. (btContext): New variable.
  14936. (peerStorage): New variable.
  14937. (pieceStorage): New variable.
  14938. (setBtContext): New function.
  14939. * src/Directry.cc
  14940. (Directory): New function.
  14941. (createDir): Do nothing if name.size() == 0.
  14942. * src/AnnounceList.h
  14943. (AnnounceTier): Removed.
  14944. (AnnounceTiers): Removed.
  14945. * src/DefaultPieceStorage.h: New file.
  14946. * src/Piece.cc (toString): New function.
  14947. To fix typo:
  14948. * src/main.cc (showVersion): Fixed typo.
  14949. To fix compile warning:
  14950. * src/DelegatingPeerListProcessor.cc
  14951. (canHandle): Added "return false".
  14952. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14953. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14954. make the process of announce request testable.
  14955. * src/TrackerWatcherCommand.h
  14956. (TimeA2.h): Removed.
  14957. (interval): Removed.
  14958. (checkPoint): Removed.
  14959. (createRequestCommand): Added an argument 'url'.
  14960. (TrackerWatherCommand): Removed interval.
  14961. (createCommand): New function.
  14962. * src/DownloadEngineFactory.cc
  14963. (newTorrentConsoleEngine): Updated according to the changes in
  14964. TrackerWatherCommand.
  14965. * src/TorrentMan.cc
  14966. (DelegatingPeerListProcessor.h): New includes.
  14967. (TorrentMan): Added the initialization of announceInterval.
  14968. (isStoppedAnnounceReady): New function.
  14969. (isCompletedAnnounceReady): New function.
  14970. (isDefaultAnnounceReady): New function.
  14971. (isAnnounceReady): New function.
  14972. (getAnnounceUrl): New function.
  14973. (announceStart): New function.
  14974. (announceFailure): New function.
  14975. (announceSuccess): New function.
  14976. (isAllAnnounceFailed): New function.
  14977. (resetAnnounce): New function.
  14978. (processAnnounceResponse): New function.
  14979. (needMorePeerConnection): New function.
  14980. (noMoreAnnounce): New function.
  14981. * src/TrackerUpdateCommand.h
  14982. (getTrackerResponse): int->size_t
  14983. * src/TorrentMan.h
  14984. (isStoppedAnnounceReady): New function.
  14985. (isCompletedAnnounceReady): New function.
  14986. (isDefaultAnnounceReady): New function.
  14987. (announceInterval): New variable.
  14988. (isAnnounceReady): New function.
  14989. (getAnnounceUrl): New function.
  14990. (announceStart): New function.
  14991. (announceFailure): New function.
  14992. (announceSuccess): New function.
  14993. (isAllAnnounceFailed): New function.
  14994. (resetAnnounce): New function.
  14995. (processAnnounceResponse): New function.
  14996. (needMorePeerConnection): New function.
  14997. (noMoreAnnounce): New function.
  14998. * src/TrackerWatcherCommand.cc
  14999. (TrackerWatherCommand): Removed interval and checkPoint.
  15000. (execute): Rewritten.
  15001. (createCommand): New function.
  15002. (createRequestCommand): Rewritten.
  15003. * src/TrackerUpdateCommand.cc
  15004. (MetaFileUtil.h): Removed.
  15005. (DelegatingPeerListProcessor.h): Removed.
  15006. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15007. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15008. Request -> RequestHandle:
  15009. * src/HttpResponseCommand.h: Request->RequestHandle
  15010. * src/AbstractCommand.cc: Request->RequestHandle
  15011. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15012. * src/HttpRequestCommand.cc: Request->RequestHandle
  15013. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15014. * src/AbstractCommand.h: Request->RequestHandle
  15015. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15016. * src/HttpResponseCommand.cc: Request->RequestHandle
  15017. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15018. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15019. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15020. * src/HttpConnection.h: Request->RequestHandle
  15021. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15022. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15023. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15024. * src/DownloadCommand.h: Request->RequestHandle
  15025. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15026. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15027. * src/HttpRequestCommand.h: Request->RequestHandle
  15028. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15029. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15030. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15031. * src/HttpDownloadCommand.h: Request->RequestHandle
  15032. * src/FtpConnection.cc: Request->RequestHandle
  15033. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15034. * src/UrlRequestInfo.cc: Request->RequestHandle
  15035. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15036. * src/HttpConnection.h: Request->RequestHandle
  15037. * src/DownloadCommand.cc: Request->RequestHandle
  15038. * src/FtpConnection.h: Request->RequestHandle
  15039. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15040. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15041. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15042. * src/Request.h
  15043. (SharedHandle.h): New include.
  15044. (RequestHandle): New type definition.
  15045. (Requests): Redefined.
  15046. To add MULTITRACKER support:
  15047. * src/TrackerWatcherCommand.h
  15048. (createRequestCommand): New function.
  15049. * src/DownloadEngineFactory.cc
  15050. (newTorrentConsoleEngine): Removed req.
  15051. * src/prefs.h
  15052. (PREF_TRACKER_MAX_TRIES): New definition.
  15053. * src/TorrentMan.cc
  15054. (TorrentMan): Removed req. Added trackerNumTry.
  15055. (~TorrentMan): Removed req.
  15056. (setupInternal1): Added announceList.
  15057. * src/TorrentRequestInfo.cc
  15058. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15059. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15060. * src/main.cc
  15061. (main): Added PREF_TRACKER_MAX_TRIES.
  15062. * src/TorrentMan.h
  15063. (Request.h): Removed.
  15064. (AnnounceList.h): New include.
  15065. (trackerNumTry): New variable.
  15066. (req): Removed.
  15067. (announceList): New variable.
  15068. * src/TrackerWatcherCommand.cc
  15069. (execute): Rewritten.
  15070. (createRequestCommand): New function.
  15071. * src/TrackerUpdateCommand.cc
  15072. (execute): Updated with the use of AnnounceList.
  15073. * src/AnnounceList.cc: New class.
  15074. * src/AnnounceList.h: New class.
  15075. To fix typo:
  15076. * src/prefs.h
  15077. (PREF_MAX_TRIES): max_try->max_tries
  15078. To not to decode "+" as space in URL decode:
  15079. * src/Util.cc
  15080. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15081. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15082. To add timeout to async name resolution:
  15083. * src/AbstractCommand.h
  15084. (nameResolveFinished): New function. This is not elegant way. It needs
  15085. to be more refined.
  15086. (nameResolverCheck): New variable.
  15087. * src/AbstractCommand.cc
  15088. (AbstractCommand): Added nameResolverCheck.
  15089. (execute): Added the check whether the name resolution has finished.
  15090. (setNameResolverCheck): Set nameResolverCheck to true.
  15091. (disableNameResolverCheck): Set nameResolverCheck to false.
  15092. (nameResolverFinished): New function.
  15093. * src/FtpInitiateConnectionCommand.h
  15094. (nameResolverFinished): New function.
  15095. * src/FtpInitiateConnectionCommand.cc
  15096. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15097. * src/HttpInitiateConnectionCommand.h
  15098. (nameResolverFinished): New function.
  15099. * src/HttpInitiateConnectionCommand.cc
  15100. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15101. * src/prefs.h
  15102. (PREF_DNS_TIMEOUT): New definition.
  15103. * src/main.cc
  15104. (main): Added PREF_DNS_TIMEOUT.
  15105. To add the support for a non-compact response from a tracker:
  15106. * src/PeerListProcessor.h: New class.
  15107. * src/DefaultPeerListProcessor.h: New class.
  15108. * src/DefaultPeerListProcessor.cc: New class.
  15109. * src/CompactPeerListProcessor.h: New class.
  15110. * src/CompactPeerListProcessor.cc: New class.
  15111. * src/DelegatingPeerListProcessor.h: New class.
  15112. * src/DelegatingPeerListProcessor.cc: New class.
  15113. * src/TorrentMan.cc
  15114. (addPeer): New function(overload).
  15115. (addPeer): Delete unused peers only when new peer is added.
  15116. * src/TorrentMan.h
  15117. (PeerListProcessor.h): Included.
  15118. (Peers): Removed.
  15119. (addPeer): New function(overload).
  15120. * src/TrackerUpdateCommand.cc
  15121. (netinet/in.h): Removed.
  15122. (DelegatingPeerListProcessor.h): Included.
  15123. (execute): Updated to use DelegatingPeerListProcessor.
  15124. To fix the memory leak in TorrentMan::peers:
  15125. * src/PeerAbstractCommand.cc
  15126. (onAbort): Added peer->resetStatus().
  15127. * src/Peer.h
  15128. (resetStatus): Made public.
  15129. To improve the precision of the speed calculation:
  15130. * src/SpeedCalc.h
  15131. (nextInterval): New variable.
  15132. * src/SpeedCalc.cc
  15133. (reset): Added nextInterval.
  15134. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15135. (changeSw): Set nextInterval to 15 seconds relative to the current
  15136. instant time.
  15137. * src/main.cc
  15138. (showVersion): Updated.
  15139. (showUsage): Updated.
  15140. * Release 0.8.1
  15141. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15142. * src/main.cc
  15143. (showUsage): Commented out --min-segment-size option.
  15144. (main): Commented out --min-segment-size option.
  15145. * Release 0.8.0
  15146. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15147. * src/*.{h,cc}:
  15148. Added an exception to the license which allows linking with OpenSSL.
  15149. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15150. * src/AbstractCommand.cc
  15151. (execute): Check whether the download has finished before checking
  15152. socket status.
  15153. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15154. Do not exit even if no segment is available.
  15155. * src/prefs.h
  15156. (PREF_STARTUP_IDLE_TIME): New definition.
  15157. * src/PeerInteractionCommand.cc
  15158. (executeInternal): Removed max speed limit. Because it performs bad.
  15159. (receiveMessages): Added max speed limit. This was better than above,
  15160. but still a little bit to be desired. Sometimes the download speed
  15161. became much faster than I specified.
  15162. * src/SpeedCalc.h
  15163. (start): New variable.
  15164. (accumulatedLength): New variable.
  15165. (getAvgSpeed): New function.
  15166. * src/SpeedCalc.cc
  15167. (reset): Added start, accumulatedLength.
  15168. (update): Added calculation of an average speed.
  15169. (getAvgSpeed): New function.
  15170. * src/DownloadCommand.h
  15171. (sw): Removed.
  15172. * src/main.cc
  15173. (main): Added PREF_STARTUP_IDLE_TIME.
  15174. * src/PeerStat.h
  15175. (STATUS): Added REQUEST_IDLE.
  15176. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15177. (getAvgDownloadSpeed): New function
  15178. (requestIdle): New function.
  15179. * src/SegmentMan.h
  15180. (SegmentEntryHandle): New type definition.
  15181. (SegmentEntries): Now holds SegmentEntryHandle.
  15182. (findSlowerSegmentEntry): New funtion.
  15183. * src/SegmentMan.cc
  15184. (save): Updated according to the changes in SegmentEntries.
  15185. (read): Updated according to the changes in SegmentEntries.
  15186. (FindSegmentEntryByIndex): Updated according to the changes in
  15187. SegmentEntries.
  15188. (FindSegmentEntryByCuid): Updated according to the changes in
  15189. SegmentEntries.
  15190. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15191. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15192. Renamed uitr as itr.
  15193. (findSlowerSegmentEntry): New function.
  15194. (getSegment): Updated according to the changes in SegmentEntries.
  15195. Added the feature that cancels the segment with slow server and fast
  15196. one takes it over.
  15197. (cancelSegment): Updated according to the changes in SegmentEntries.
  15198. (getDownloadLength): Updated according to the changes in
  15199. SegmentEntries.
  15200. (init): Assigned 0 to bitfield after deleting it.
  15201. * src/DownloadCommand.cc
  15202. (STARTUP_IDLE_TIME): Removed.
  15203. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15204. * src/PeerChokeCommand.cc
  15205. (optUnchokingPeer): Updated according to the changes in Peer.
  15206. (ResetDelta): Removed.
  15207. (UploadFaster): Updated according to the changes in Peer.
  15208. (DownloadFaster): Updated according to the changes in Peer.
  15209. (execute): I clarify the meaning of "upload" and "download" here.
  15210. "upload" means the transfer from localhost to remote host.
  15211. "download" means the transfer from remote host to localhost.
  15212. Based on this rule, I swapped orderByUploadRate and
  15213. orderByDownloadRate.
  15214. * src/PeerInteractionCommand.cc
  15215. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15216. (executeInternal): Removed the argument of
  15217. peerInteraction->sendMessages().
  15218. (receiveMessages): Rewritten download speed limit.
  15219. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15220. * src/HttpResponseCommand.cc
  15221. (handleDefaultEncoding): If file size is unknown in torrent request,
  15222. do not call segmentMan->initBitfield() here.
  15223. Disabled persistent connection feature in torrent request.
  15224. * src/UrlRequestInfo.h
  15225. (UrlRequestInfo): Removed const qualifier from option.
  15226. * src/TorrentMan.h
  15227. (TransferStat): New class.
  15228. (deltaDownloadLength): Removed.
  15229. (deltaUploadLength): Removed.
  15230. (addDeltaDownloadLength): Removed.
  15231. (getDeltaDownloadLength): Removed.
  15232. (resetDeltaDownloadLength): Removed.
  15233. (addDeltaUploadLength): Removed.
  15234. (getDeltaUploadLength): Removed.
  15235. (resetDeltaUploadLength): Removed.
  15236. (addActivePeer): Added peer->activate().
  15237. (deleteActivePeer): Added peer->deactivate().
  15238. (calculateStat): New function.
  15239. * src/TorrentMan.cc
  15240. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15241. (calculateStat): New function.
  15242. * src/PeerInteraction.h
  15243. (uploadLimit): Removed.
  15244. (option): New variable.
  15245. (setUploadLimit): Removed.
  15246. (getUploadSpeed): Removed.
  15247. (sendMessages): Removed the argument "currentUploadSpeed".
  15248. * src/PeerInteraction.cc
  15249. (prefs.h): Included.
  15250. (PeerInteraction): Removed uploadLimit. Added option.
  15251. (sendMessages): Rewritten upload speed limit.
  15252. (sendHandshake): Removed the argument from sendMessages().
  15253. (sendBitfield): Removed the argument from sendMessages().
  15254. * src/PeerAbstractCommand.cc
  15255. (execute): Commented out the portion of upload limit.
  15256. (onAbort): Removed peer->resetStatus().
  15257. * src/TorrentRequestInfo.cc
  15258. (timeoutSpecified): Declared extern.
  15259. (execute): Set timeout to 180 if timeout is not specified by.
  15260. command-line.
  15261. * src/PieceMessage.cc
  15262. (receivedAction): Added peer->updateDownloadLength().
  15263. Removed peer->addPeerUpload().
  15264. Removed torrentMan->addDeltaDownloadLength().
  15265. (send): Added peer->updateUploadLength().
  15266. Removed peer->addPeerDownload().
  15267. Removed torrentMan->addDeltaUploadLength().
  15268. * src/main.cc
  15269. (timeoutSpecified): New variable.
  15270. (main): Set timeoutSpecified to false.
  15271. If the command-line option "--upload-limit" is specified, then
  15272. timeoutSpecified is set to true. This option will remain in the next
  15273. release, but be deprecated in the future release.
  15274. * src/TorrentRequestInfo.h
  15275. (TorrentRequestInfo): Removed const qualifier from op.
  15276. * src/PeerStat.h
  15277. (uploadSpeed): New variable.
  15278. (PeerStat): Added default value to cuid.
  15279. (calculateUploadSpeed): New function.
  15280. (updateUploadLength): New function.
  15281. (getMaxUploadSpeed): New function.
  15282. (getAvgUploadSpeed): New function.
  15283. (reset): Added uploadSpeed. Set status to IDLE.
  15284. * src/TorrentDownloadEngine.h
  15285. (cp): Declared as Time.
  15286. (sessionDownloadLengthArray): Removed.
  15287. (sessionUploadLengthArray): Removed.
  15288. (currentCp): Removed.
  15289. (lastCalcStat): New variable
  15290. (lastElapsed): Removed.
  15291. (sessionDownloadLength): Removed.
  15292. (calculateStat): New function.
  15293. * src/TorrentDownloadEngine.cc
  15294. (initStatistics): Removed lastElapsed, cp[],
  15295. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15296. currentCp, sessionDownloadLength.
  15297. Added cp.reset() and lastCalcStat.reset().
  15298. (calculateSpeed): Changed the name of the argument.
  15299. (calculateStatistics): Rewritten.
  15300. (calculateStat): New function.
  15301. * src/Peer.h
  15302. (PeerStat.h): Included.
  15303. (peerUpload): Removed.
  15304. (peerDownload): Removed.
  15305. (peerStat): New variable.
  15306. (sessionUploadLength): New variable.
  15307. (sessionDownloadLength): New variable.
  15308. (deltaUpload): Removed.
  15309. (deltaDownload): Removed.
  15310. (resetStatus): Made private.
  15311. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15312. Removed peerUpload, peerDownload.
  15313. (updateUploadLength): New function.
  15314. (addDeltaUpload): Removed.
  15315. (updateDownloadLength): New function.
  15316. (resetDeltaUpload): Removed.
  15317. (getDeltaUpload): Removed.
  15318. (addDeltaDownload): Removed.
  15319. (calculateUploadSpeed): New function.
  15320. (resetDeltaDownload): Removed.
  15321. (getDeltaDownload): Removed.
  15322. (calculateDownloadSpeed): New function.
  15323. (getSessionUploadLength): New function.
  15324. (getSessionDownloadLength): New function.
  15325. (activate): New function.
  15326. (deactivate): New function.
  15327. (addPeerUpload): Removed.
  15328. (setPeerUpload): Removed.
  15329. (getPeerUpload): Removed.
  15330. (addPeerDownload): Removed.
  15331. (setPeerDownload): Removed.
  15332. (getPeerDownload): Removed.
  15333. * src/Peer.cc
  15334. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15335. * src/MetalinkRequestInfo.h
  15336. (MetalinkRequestInfo): Removed const qualifier from op.
  15337. * src/RequestInfo.h
  15338. (op): Removed const qualifier.
  15339. (RequestInfo): Removed const qualifier from op.
  15340. * src/prefs.h
  15341. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15342. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15343. * src/PeerInteractionCommand.cc
  15344. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15345. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15346. * src/PeerInteraction.cc
  15347. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15348. * src/main.cc
  15349. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15350. Added the description of "--max-download-limit" option.
  15351. Removed the description of "--upload-limit" option.
  15352. Added the description of "--max-upload-limit" option.
  15353. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15354. Added "--max-download-limit" option and "--max-upload-limit" option.
  15355. Added the warning message if "--upload-limit" option is used.
  15356. * src/DownloadCommand.cc
  15357. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15358. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15359. To rewrite segment download mechanism for HTTP/FTP download.
  15360. Use BitfieldMan to manage segment download.
  15361. * src/HttpResponseCommand.h
  15362. (executeInternal): Pass the reference of segment.
  15363. * src/AbstractCommand.cc
  15364. (prepareForRetry): Call segmentMan->cancelSegment here.
  15365. (onAbort): Call segmentMan->cancelSegment here.
  15366. * src/HttpDownloadCommand.cc
  15367. (prepareForNextSegment): New function.
  15368. * src/DownloadEngineFactory.cc
  15369. (newConsoleEngine): Removed splitter.
  15370. (newTorrentConsoleEngine): Removed splitter.
  15371. * src/Request.h
  15372. (segment): Renamed from seg.
  15373. * src/FtpInitiateConnectionCommand.h
  15374. (executeInternal): Pass the reference of segment.
  15375. * src/AbstractCommand.h
  15376. (executeInternal): Pass the reference of segment.
  15377. * src/pref.h
  15378. (PREF_SEGMENT_SIZE): New definition.
  15379. * src/HttpProxyRequestCommand.h
  15380. (executeInternal): Pass the reference of segment.
  15381. * src/HttpResponseCommand.cc
  15382. (checkResponse): Allowed status 206 when a request range starts 0.
  15383. (handleDefaultEncoding): Rewritten the code related to Segment.
  15384. (handleOtherEncoding): Rewritten the code related to Segment.
  15385. * src/SegmentMan.h
  15386. (SegmentEntry): New class.
  15387. (SegmentEntries): New type definition.
  15388. (bitfield): New variable.
  15389. (usedSegmentEntries): New variable.
  15390. (onNullBitfield): New function.
  15391. (checkoutSegment): New function.
  15392. (segments): Removed.
  15393. (splitter): Removed.
  15394. (unregisterId): Removed.
  15395. (getSegment): New function(overload)
  15396. (getDownloadedSize): Removed.
  15397. (cancelSegment): New function.
  15398. (completeSegment): New function.
  15399. (initBitfield): New function.
  15400. (hasSegment): New function.
  15401. (getDownloadLength): New function.
  15402. * src/BitfieldMan.h
  15403. (getStartIndex): New function.
  15404. (getEndIndex): New function.
  15405. (getMissingUnusedIndex): New function(overload).
  15406. (getSparseMissingUnusedIndex): New function.
  15407. * src/BitfieldMan.cc
  15408. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15409. (getMissingUnusedIndex): New function(overload).
  15410. (Range): New class.
  15411. (getStartIndex): New function.
  15412. (getEndIndex): New function.
  15413. (getSparseMissingUnusedIndex): New function.
  15414. (isBitSetInternal): Return false if the given index is less than 0.
  15415. * src/HttpInitiateConnectionCommand.h
  15416. (executeInternal): Pass the reference of segment.
  15417. * src/FtpNegotiateCommand.h
  15418. (executeInternal): Pass the reference of segment.
  15419. * src/FtpNegotiateCommand.cc
  15420. (recvSize): Initialize bitfield here.
  15421. * src/FtpTunnelResponseCommand.h
  15422. (executeInternal): Pass the reference of segment.
  15423. * src/HttpConnection.cc
  15424. (createRequest): Rewritten range header processing.
  15425. * src/DownloadCommand.h
  15426. (executeInternal): Pass the reference of segment.
  15427. (prepareForRetry): Removed.
  15428. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15429. function.
  15430. * src/main.cc
  15431. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15432. * src/SegmentMan.cc
  15433. (SegmentMan): Added bitfield. Removed splitter.
  15434. (~SegmentMan): Added bitfield. Removed splitter.
  15435. (unregisterId): Removed.
  15436. (getSegment): Rewritten.
  15437. (updateSegment): Rewritten.
  15438. (save): Rewritten.
  15439. (read): Rewritten.
  15440. (finished): Rewritten.
  15441. (getDownloadedSize): Removed.
  15442. (initBitfield): New function.
  15443. (FindSegmentEntryByIndex): New function object.
  15444. (FindSegmentEntryByCuid): New function object.
  15445. (checkoutSegment): New function.
  15446. (onNullBitfield): New function.
  15447. (getSegment): New function(overload).
  15448. (CancelSegment): New function object.
  15449. (cancelSegment): New function.
  15450. (completeSegment): New function.
  15451. (hasSegment): New function.
  15452. (getDownloadLength): New function.
  15453. * src/FtpInitiateConnectionCommand.cc
  15454. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15455. * src/Segment.h: Rewritten.
  15456. * src/Segment.cc (operator<<): New function.
  15457. * src/HttpDownloadCommand.h
  15458. (prepareForNextSegment): New function.
  15459. * src/Request.cc
  15460. (resetUrl): Made segment null.
  15461. * src/DownloadEngine.cc
  15462. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15463. * src/HttpProxyRequestCommand.h
  15464. (executeInternal): Pass the reference of segment.
  15465. * src/DownloadCommand.cc
  15466. (executeInternal): Rewritten the code related to Segment.
  15467. (prepareForRetry): Removed.
  15468. (prepareForNextSegment): Rewritten.
  15469. * src/FtpTunnelResponseCommand.h
  15470. (executeInternal): Pass the reference of segment.
  15471. To add HTTP 1.1 persistent connection support(experimental)
  15472. * src/HttpRequestCommand.cc
  15473. (executeInternal): Disable keep alive if it is disabled by
  15474. configuration.
  15475. * src/Request.h
  15476. (keepAlive): New variable.
  15477. (isKeepAlive): New function.
  15478. (setKeepAlive): New function.
  15479. * src/pref.h
  15480. (PREF_HTTP_KEEP_ALIVE): New definition.
  15481. * src/HttpResponseCommand.cc
  15482. (executeInternal): Check the remote server supports keep alive.
  15483. * src/HttpConnection.cc
  15484. (createRequest): Send "Connection: close" only if keep alive is
  15485. disabled.
  15486. * src/main.cc
  15487. (main):
  15488. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15489. To add max download speed limit:
  15490. * src/pref.h
  15491. (PREF_MAX_SPEED_LIMIT): New definition.
  15492. * src/PeerInteractionCommand.cc
  15493. (executeInternal): Added max download speed limit. Not tested yet.
  15494. * src/SegmentMan.h
  15495. (PeerStats): New type definition.
  15496. (peerStats): New variable.
  15497. (registerPeerStat): New function.
  15498. (FindPeerStat): New function object.
  15499. (getPeerStat): New function.
  15500. (calculateDownloadSpeed): New function.
  15501. * src/SpeedCalc.h: New class.
  15502. * src/SpeedCalc.cc: New class.
  15503. * src/main.cc
  15504. (main):
  15505. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15506. download speed is not restricted).
  15507. * src/PeerStat.h: New class.
  15508. * src/SegmentMan.cc
  15509. (registerPeerStat): New function.
  15510. (calculateDownloadSpeed): New function.
  15511. * src/DownloadCommand.cc
  15512. (STARTUP_IDLE_TIME): New definition.
  15513. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15514. downloadStart.
  15515. (~DownloadCommand): Call peerStat->downloadStop.
  15516. (executeInternal): Added download speed limitter. Rewritten lowest
  15517. speed limitter.
  15518. * src/HttpConnection.cc
  15519. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15520. * src/AbstractCommand.cc
  15521. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15522. Added hostname to the error message.
  15523. * src/ConsoleDownloadEngine.cc
  15524. (calculateStatistics): Initialize psize with dlSize.
  15525. * src/PieceMessage.cc
  15526. (receivedAction): Do not call peerInteraction->abortPiece here.
  15527. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15528. * src/BitfieldMan.h
  15529. (clearAllUseBit): New function.
  15530. (setAllUseBit): New function.
  15531. * src/BitfieldMan.cc
  15532. (clearAllBit): Do not clear useBitfield here.
  15533. (clearAllUseBit): New function.
  15534. (setAllUseBit): New function.
  15535. * src/Piece.cc
  15536. (clearAllBlock): Call bitfield->clearAllUseBit().
  15537. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15538. To make filename URL-decoded:
  15539. * src/HttpResponseCommand.h: Updated doc.
  15540. * src/HttpResponseCommand.cc
  15541. (determinFilename): Made filename URL-decoded.
  15542. * src/FtpInitiateConnectionCommand.cc
  15543. (executeInternal): Made filename URL-decoded.
  15544. * src/Util.h (urldecode): New function.
  15545. * src/Util.cc (urldecode): New function.
  15546. To fix a bug that caused assertion failure in ares_strerror:
  15547. * src/NameResolver.cc (callback): Fixed the bug.
  15548. * Release 0.7.3
  15549. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15550. To add --seed-time and --seed-ratio command-line option:
  15551. * src/Option.h (getAsDouble): New function.
  15552. * src/Option.cc (getAsDouble): New function.
  15553. * src/SeedCheckCommand.h: New class.
  15554. * src/SeedCheckCommand.cc: New class.
  15555. * src/DownloadEngineFactory.cc
  15556. (SeedCheckCommand.h): Included.
  15557. (UnionSeedCriteria.h): Included.
  15558. (TimeSeedCriteria.h): Included.
  15559. (ShareRatioSeedCriteria.h): Included.
  15560. (newTorrentConsoleEngine): Added the processing of seed option.
  15561. * src/SeedCriteria.h: New class.
  15562. * src/ShareRatioSeedCriteria.h: New class.
  15563. * src/TimeSeedCriteria.h: New class.
  15564. * src/UnionSeedCriteria.h: New class.
  15565. * src/prefs.h
  15566. (PREF_SEED_TIME): New definition.
  15567. (PREF_SEED_RATIO): New definition.
  15568. * src/main.cc
  15569. (showUsage): Added --seed-time and --seed-ratio option.
  15570. (main): Added --seed-time and --seed-ratio option.
  15571. Made default log file name "/dev/null".
  15572. * src/SharedHandle.h
  15573. (SharedHandle): Copy constructor. Made it assignable from the
  15574. SharedHandle of the subclasses.
  15575. (operator=): Made it assignable from the SharedHandle of the
  15576. subclasses.
  15577. (getRefCount): New function.
  15578. To add notice log level and the switch to write log to stdout. This
  15579. switch is configurable per log level.
  15580. * src/Logger.h
  15581. (notice): New function.
  15582. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15583. constant.
  15584. * src/LogFactory.cc
  15585. (getInstance): The use of NullLogger was removed. A log message with
  15586. notice log level was made written to stdout along with log file.
  15587. * src/NullLogger.h
  15588. (notice): New function.
  15589. * src/SimpleLogger.h
  15590. (writeHeader): Added the 'file' argument.
  15591. (writeLog): Added the 'file' argument.
  15592. (writeFile): New function.
  15593. (stdoutField): New variable.
  15594. (SimpleLogger): Removed the default constructor.
  15595. (SimpleLogger): Made the default value of logfile 0.
  15596. (debug): Added 'virtual' keyword.
  15597. (info): Added 'virtual' keyword.
  15598. (warn): Added 'virtual' keyword.
  15599. (error): Added 'virtual' keyword.
  15600. (notice): New function.
  15601. (setStdout): New function.
  15602. * src/SimpleLogger.cc
  15603. (WRITE_LOG): Replaced writeLog with writeFile.
  15604. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15605. (SimpleLogger): Removed the default constructor.
  15606. (setStdout): New function.
  15607. (writeLog): Added the handling of NOTICE log level.
  15608. (writeFile): New function.
  15609. (notice): New function.
  15610. * src/TorrentMan.h: Updated doc.
  15611. * src/BitfieldMan.h: Updated doc.
  15612. * src/TrackerWatcherCommand.cc
  15613. (execute): Return true if error occurred in the request to the tracker
  15614. and halt is requested.
  15615. * src/TrackerUpdateCommand.cc
  15616. (execute): Return true if error occurred in the request to the tracker
  15617. and halt is requested.
  15618. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15619. DownloadEngine:
  15620. * src/TorrentConsoleDownloadEngine.h
  15621. (onSelectiveDownloadingCompletes): Removed.
  15622. * src/TorrentConsoleDownloadEngine.cc
  15623. (onSelectiveDownloadingCompletes): Removed.
  15624. * src/TorrentDownloadEngine.h
  15625. (onEndOfRun): Added 'virtual' keyword.
  15626. (afterEachIteration): Removed.
  15627. (onSelectiveDownloadingCompletes): Removed.
  15628. * src/TorrentDownloadEngine.cc
  15629. (onEndOfRun): Removed filenameFixed.
  15630. (afterEachIteration): Removed.
  15631. * src/TorrentMan.cc
  15632. (completePiece): Call onDownloadComplete here.
  15633. (onDownloadComplete): Added 2 log messages.
  15634. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15635. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15636. * src/NameResolver.h: Added the prototype declaration of callback().
  15637. To support c-ares library:
  15638. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15639. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15640. * src/FtpInitiateConnectionCommand.h:
  15641. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15642. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15643. * src/HttpInitiateConnectionCommand.h:
  15644. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15645. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15646. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15647. #1542285 by tizianomueller)
  15648. * src/HttpInitiateConnectionCommand.cc:
  15649. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15650. * src/FtpInitiateConnectionCommand.cc:
  15651. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15652. * src/DownloadEngine.h:
  15653. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15654. * src/DownloadEngine.cc:
  15655. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15656. To fix the bug that causes compilation failure with metalink-support
  15657. disabled(bug#1543587):
  15658. * src/main.cc: Fixed with the patch by tizianomueller.
  15659. * Release 0.7.2
  15660. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15661. * src/main.cc
  15662. (main): Added a message to inform users that aria2 is starting to
  15663. verify checksum.
  15664. * src/RequestInfo.cc
  15665. (printDownloadAbortMessage): Added a message to inform users that
  15666. transfer can be resumed.
  15667. * src/FeatureConfig.cc
  15668. (FEATURE_ASYNC_DNS): New definition.
  15669. (FeatureConfig): Added aysnc DNS entry.
  15670. To replace CommandUuid with Command* in SocketEntry and
  15671. NameResolverEntry:
  15672. * src/DownloadEngine.h
  15673. (CommandUuids): Removed.
  15674. (SocketEntry::commandUuid): Removed.
  15675. (SocketEntry::command): New variable.
  15676. (SocketEntry::SocketEntry): Updated.
  15677. (SocketEntry::operator==): Updated.
  15678. (NameResolverEntry::commandUuid): Removed.
  15679. (NameResolverEntry::command): New variable.
  15680. (NameResolverEntry::NameResolverEntry): Updated.
  15681. (NameResolverEntry::operator==): Updated.
  15682. (waitData): Changed the argument type.
  15683. (addSocketForReadCheck): Changed the argument type.
  15684. (deleteSocketForReadCheck): Changed the argument type.
  15685. (addSocketForWriteCheck): Changed the argument type.
  15686. (deleteSocketForWriteCheck): Changed the argument type.
  15687. (addNameResolverCheck): Changed the argument type.
  15688. (deleteNameResolverCheck): Changed the argument type.
  15689. * src/DownloadEngine.cc
  15690. (FindCommand): Removed.
  15691. (run): Removed activeUuid. Added activeCommands instead.
  15692. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15693. (AccumulateActiveCommand): New function object.
  15694. (waitData): Use AccumulateActiveCommand.
  15695. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15696. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15697. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15698. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15699. (addNameResolverCheck): Use Command instead of CommandUuid.
  15700. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15701. * src/AbstractCommand.cc
  15702. (disableReadCheckSocket): Updated according to the changes in
  15703. DownloadEngine.
  15704. (setReadCheckSocket): Updated according to the changes in
  15705. DownloadEngine.
  15706. (disableWriteCheckSocket): Updated according to the changes in
  15707. DownloadEngine.
  15708. (setWriteCheckSocket): Updated according to the changes in
  15709. DownloadEngine.
  15710. (setNameResolverCheck): Updated according to the changes in
  15711. DownloadEngine.
  15712. (disableNameResolverCheck): Updated according to the changes in
  15713. DownloadEngine.
  15714. * src/AbstractCommand.cc
  15715. (disableReadCheckSocket): Updated according to the changes in
  15716. DownloadEngine.
  15717. (setReadCheckSocket): Updated according to the changes in
  15718. DownloadEngine.
  15719. (disableWriteCheckSocket): Updated according to the changes in
  15720. DownloadEngine.
  15721. (setWriteCheckSocket): Updated according to the changes in
  15722. DownloadEngine.
  15723. * release 0.7.1
  15724. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15725. To handle the case where some BitTorrent tracker requires all letters
  15726. except for [A-Za-z0-9] is URL encoded.
  15727. * src/Util.h
  15728. (torrentUrlencode): New function.
  15729. * src/Util.cc
  15730. (ctype.h): Included.
  15731. (torrentUrlencode): New function.
  15732. * src/TrackerWatcherCommand.cc
  15733. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15734. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15735. To add asynchronous DNS support(libares):
  15736. * src/AbstractCommand.h
  15737. (setNameResolverCheck): New function.
  15738. (disableNameResolverCheck): New function
  15739. (resolveHostname): New function.
  15740. * src/AbstractCommand.cc
  15741. (setNameResolverCheck): New function.
  15742. (disableNameResolverCheck): New function
  15743. (resolveHostname): New function.
  15744. * src/FtpInitiateConnectionCommand.h
  15745. (nameResolver): New function.
  15746. * src/FtpInitiateConnectionCommand.cc
  15747. (Util.h): Included.
  15748. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15749. disableWriteCheckSocket.
  15750. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15751. (executeInternal): Added async DNS support.
  15752. * src/HttpInitiateConnectionCommand.h
  15753. (nameResolver): New function.
  15754. * src/HttpInitiateConnectionCommand.cc
  15755. (DlRetryEx.h): Included.
  15756. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15757. disableWriteCheckSocket.
  15758. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15759. (executeInternal): Added async DNS support.
  15760. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15761. by extern "C" declaration.
  15762. * src/NameResolver.cc: New class.
  15763. * src/Util.h:
  15764. (isNumberAndDotsNotation): New function
  15765. * src/Util.cc
  15766. (isNumberAndDotsNotation): New function.
  15767. * src/DownloadEngine.h
  15768. (NameResolver.h): Included.
  15769. (NameResolverEntry): New class.
  15770. (NameResolverEntries): New type definition.
  15771. (addNameResolverCheck): New function.
  15772. (deleteNameResolverCheck): New function.
  15773. * src/DownloadEngine.cc
  15774. (run): Initialize cp with 0.
  15775. (SetDescriptor::operator()): Added for NameResolverEntry.
  15776. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15777. (waitData): Check nameResolver entries.
  15778. (updateFdSet): Update fds in nameResolver entries.
  15779. (addNameResolverCheck): New function.
  15780. (deleteNameResolverCheck): new function.
  15781. * src/PeerInteractionCommand.cc
  15782. (executeInternal): Fixed wrong socket handling.
  15783. * src/main.cc
  15784. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15785. * src/Util.cc
  15786. (fileChecksum): Removed the call to ctx.digestReset().
  15787. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15788. * po/ru.po: Azamat sent me Russian translation.
  15789. * src/FtpNegotiateCommand.cc
  15790. (recvGreeting): Call disableWriteCheckSocket just after
  15791. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15792. (recvRetr): Recognized status code 125 as a acceptable response code.
  15793. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15794. case-insesitive filesystem(BUG#1531057).
  15795. * src/Time.h: Renamed as TimeA2.h.
  15796. * src/Time.cc: Renamed as TimeA2.cc.
  15797. * src/TimeA2.h: New class.
  15798. * src/TimeA2.cc: New class.
  15799. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15800. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15801. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15802. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15803. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15804. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15805. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15806. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15807. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15808. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15809. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15810. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15811. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15812. * release 0.7.0
  15813. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15814. * src/PeerChokeCommand.h
  15815. (PeerChokeCommand): Rearranged the arguments.
  15816. * src/PeerChokeCommand.cc
  15817. (PeerChokeCommand): Rearranged the arguments.
  15818. * src/MetalinkEntry.h
  15819. (Checksum.h): Included.
  15820. (md5): Removed.
  15821. (sha1): Removed.
  15822. (checksum): New variable.
  15823. (operator=): Updated.
  15824. (check): Removed.
  15825. * src/prefs.h
  15826. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15827. (PREF_FOLLOW_TORRENT): New definition.
  15828. (PREF_SELECT_FILE): New definition.
  15829. (PREF_FOLLOW_METALINK): New definition.
  15830. * src/MetalinkResource.h
  15831. (TYPE_HTTPS): Added to enum TYPE.
  15832. * src/TorrentMan.cc
  15833. (~TorrentMan): Rewritten.
  15834. * src/MultiDiskWriter.cc
  15835. (MultiDiskAdaptor): Updated according to the changes in
  15836. MessageDigestContext.
  15837. (~MultiDiskAdaptor): Updated according to the changes in
  15838. MessageDigestContext.
  15839. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15840. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15841. * src/Util.h
  15842. (fileChecksum): Updated according to the changes in
  15843. MessageDigestContext.
  15844. * src/Util.cc
  15845. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15846. (fileChecksum): Updated according to the changes in
  15847. MessageDigestContext.
  15848. * src/messageDigest.h: Rewritten.
  15849. * src/MetalinkEntry.cc
  15850. (check): Removed.
  15851. (Supported): Updated.
  15852. (dropUnsupportedResource): Fixed a memory leak.
  15853. * src/ShaVisitor.cc
  15854. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15855. (~ShaVisitor): Updated according to the changes in
  15856. MessageDigestContext.
  15857. (visit): Updated according to the changes in MessageDigestContext.
  15858. * src/main.cc
  15859. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15860. command-line option added.
  15861. * src/DownloadEngine.h
  15862. (SocketEntry): New class.
  15863. (SocketEntries): New definition.
  15864. (PairFind): Removed.
  15865. (SockCmdMap): Removed.
  15866. * src/DownloadEngine.cc
  15867. (DownloadEngine): Rewritten.
  15868. (~DownloadEngine): Rewritten.
  15869. (run): Renamed activeCommandUuids as activeUuids.
  15870. (SetDescriptor): Rewritten.
  15871. (AccumulateActiveCommandUuid): Removed.
  15872. (AccumulateActiveUuid): New function object.
  15873. (waitData): Rewritten.
  15874. (updateFdSet): Rewritten.
  15875. (addSocket): Rewritten.
  15876. (deleteSocket): Rewritten.
  15877. (addSocketForReadCheck): Rewritten.
  15878. (deleteSocketForReadCheck): Rewritten.
  15879. (addSocketForWriteCheck): Rewritten.
  15880. (deleteSocketForWriteCheck): Rewritten.
  15881. * src/Xml2MetalinkProcessor.cc
  15882. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15883. * src/DownloadCommand.cc
  15884. (executeInternal): Added the check routine for lowest speed limit.
  15885. * src/AbstractDiskWriter.cc
  15886. (AbstractDiskWriter): Updated according to the changes in
  15887. MessageDigestContext.
  15888. (~AbstractDiskWriter): Updated according to the changes in
  15889. MessageDigestContext.
  15890. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15891. * src/RequestInfo.h: New class.
  15892. * src/UrlRequestInfo.h: New class.
  15893. * src/UrlRequestInfo.cc: New class.
  15894. * src/TorrentRequestInfo.h: New class.
  15895. * src/TorrentRequestInfo.cc: New class.
  15896. * src/MetalinkRequestInfo.h: New class.
  15897. * src/MetalinkRequestInfo.cc: New class.
  15898. * src/Checksum.h: New class.
  15899. * src/DownloadEngineFactory.h: New class.
  15900. * src/DownloadEngineFactory.cc: New class.
  15901. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15902. * src/Option.h
  15903. (getAsBool): New function.
  15904. * src/Option.cc
  15905. (prefs.h): Included.
  15906. (defined): 0-length value is now recognized as undefined.
  15907. (getAsInt): Rewritten.
  15908. (getAsLLInt): Rewritten.
  15909. (getAsBool): New function.
  15910. * src/FeatureConfig.h: Rewritten.
  15911. * src/FeatureConfig.cc: Rewritten.
  15912. * src/prefs.h
  15913. (PREF_STDOUT_LOG): New definition.
  15914. (PREF_LOG): New definition.
  15915. (PREF_DIR): New definition.
  15916. (PREF_OUT): New definition.
  15917. (PREF_SPLIT): New definition.
  15918. (PREF_DAEMON): New definition.
  15919. (PREF_REFERER): New definition.
  15920. (PREF_TORRENT_FILE): New definition.
  15921. (PREF_LISTEN_PORT): New definition.
  15922. (PREF_METALINK_FILE): New definition.
  15923. (PREF_METALINK_VERSION): New definition.
  15924. (PREF_METALINK_LANGUAGE): New definition.
  15925. (PREF_METALINK_OS): New definition.
  15926. (PREF_METALINK_SERVERS): New definition.
  15927. * src/main.cc
  15928. (main): Following command-line parameters are now put into Option
  15929. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15930. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15931. metalinkLanguage, metalinkOs, metalinkServers
  15932. To fix the bug that aria2 can not handle http response header properly.
  15933. * src/HttpHeader.cc
  15934. (put): Made name lowercased.
  15935. (defined): Made name lowercased.
  15936. (getFirst): Made name lowercased.
  15937. (get): Made name lowercased.
  15938. (getFirstAsInt): Rewritten.
  15939. (getFirstAsLLInt): Rewritten.
  15940. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15941. * src/TorrentMan.h:
  15942. (advertisePiece): Updated doc.
  15943. (getAdvertisedPieceIndexes): Updated doc.
  15944. (removeAdvertisedPiece); New function.
  15945. * src/TorrentMan.cc
  15946. (FindElapsedHave): New function object.
  15947. (removeAdvertisedPiece): New function.
  15948. * src/HaveEraseCommand.h: New class.
  15949. * src/HaveEraseCommand.cc: New class.
  15950. * src/FeatureConfig.h: New class.
  15951. * src/FeatureConfig.cc: New class.
  15952. * src/Request.h
  15953. (defaultPorts): Removed.
  15954. * src/Request.cc
  15955. (FeatureConfig.h): Included.
  15956. (Request): Removed the statements related to defaultPorts.
  15957. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15958. A default port number is now retrieved from FeatureConfig.
  15959. * src/main.cc
  15960. (HaveEraseCommand.h): Included.
  15961. (showVersion): Added the output of feature list.
  15962. (main): Added HaveEraseCommand to command queue in BitTorrent
  15963. downloading.
  15964. * src/PeerInteractionCommand.h
  15965. (chokeCheckPoint): Commented out.
  15966. (periodicExecPoint): New variable.
  15967. * src/PeerInteractionCommand.cc
  15968. (executeInternal): Following methods are now called in at least every
  15969. 0.5 seconds to reduce CPU usage:
  15970. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15971. checkHave(), sendKeepAlive().
  15972. (checkLongTimePeerChoking): Commented out.
  15973. * src/BitfieldMan.h
  15974. (getNthBitIndex): Changed the method signature.
  15975. (getMissingIndexRandomly): Changed the method signature.
  15976. * src/BitfieldMan.cc
  15977. (getNthBitIndex): Rewritten
  15978. (getMissingIndexRandomly): Rewritten.
  15979. (hasMissingPiece): Rewritten.
  15980. (getMissingIndex): Refactored.
  15981. (getMissingUnusedIndex); Refactored.
  15982. (getMissingIndex): Refactored.
  15983. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15984. * src/PeerMessage.h
  15985. (Piece.h): Included.
  15986. (SharedHandle.h): Included.
  15987. (invalidate): New variable.
  15988. (uploading): New variable.
  15989. (isInvalidate): New function.
  15990. (isUploading): New function.
  15991. (onPush): New function.
  15992. (onChoked): New function.
  15993. (onCanceled): New function.
  15994. (onAbortPiece): New function.
  15995. (PeerMessageHandle): New type definition.
  15996. * src/PeerMessage.cc
  15997. (PeerMessage): Added the initialization for invalidate and uploading.
  15998. * src/CancelMessage.h
  15999. (CancelMessage): Rewritten.
  16000. * src/RejectMessage.h
  16001. (RejectMessage): Rewritten.
  16002. * src/Metalinker.h
  16003. (operator=): Defined.
  16004. * src/MetaEntry.h
  16005. (operator=): Defined.
  16006. * src/MetalinkResource.h
  16007. (operator=): Defined.
  16008. * src/AllowedFastMessage.h
  16009. (AllowedFastMessage): Rewritten.
  16010. * src/HandshakeMessage.h
  16011. (HandshakeMessage): New function(overload).
  16012. * src/HandshakeMessage.cc
  16013. (HandshakeMessage): Rewritten.
  16014. (init): New function.
  16015. * src/HaveMessage.h
  16016. (HaveMessage): Rewritten.
  16017. * src/Time.h
  16018. (operator=): Defined the function body here.
  16019. * src/Time.cc
  16020. (operator=): Removed.
  16021. * src/SocketCore.h
  16022. (operator==): Defined here.
  16023. (operator!=): Defined here.
  16024. (operator<): Defined here.
  16025. * src/SocketCore.cc
  16026. (operator==): Removed.
  16027. (operator<): Removed.
  16028. * src/BitfieldMan.h
  16029. (operator=): Defined the function body here.
  16030. * src/BitfieldMan.cc
  16031. (operator=): Removed.
  16032. * src/TorrentMan.h
  16033. (deleteErrorPeer): Removed.
  16034. (deleteUnusedPeer); New function.
  16035. * src/TorrentMan.cc
  16036. (addPeer): Call deleteUnusedPeer.
  16037. (deleteErrorPeer): Removed.
  16038. (deleteUnusedPeer): New function.
  16039. * src/PeerAbstractCommand.h
  16040. (setNoCheck): New function.
  16041. (noCheck): New variable.
  16042. * src/PeerAbstractCommand.cc
  16043. (PeerAbstractCommand): Added the initialization of noCheck.
  16044. (execute): Added a check for noCheck.
  16045. (setNoCheck): New function.
  16046. * src/Util.h
  16047. (stdio.h): Included.
  16048. * src/Util.cc
  16049. (unistd.h): Included.
  16050. * src/DefaultDiskWriter.cc
  16051. (unistd.h): Included.
  16052. * src/Peer.h
  16053. (operator==): Defined the function body here.
  16054. (operator!=): Defined the function body here.
  16055. * src/Peer.cc
  16056. (operator==): Removed.
  16057. (operator!=): Removed.
  16058. * src/Piece.h
  16059. (Piece): Defined the function body here(copy constructor).
  16060. (operator=): Defined the function body here.
  16061. (operator==): Defined the function body here.
  16062. * src/Piece.cc
  16063. (Piece): Removed(copy constructor).
  16064. (operator=): Removed.
  16065. (operator==): Removed.
  16066. * src/PeerMessageUtil.h
  16067. (ChokeMessage.h): Removed.
  16068. (UnchokeMessage.h): Removed.
  16069. (InterestedMessage.h): Removed.
  16070. (NotInterestedMessage.h): Removed.
  16071. (HaveMessage.h): Removed.
  16072. (BitfieldMessage.h): Removed.
  16073. (RequestMessage.h): Removed.
  16074. (CancelMessage.h): Removed.
  16075. (PieceMessage.h): Removed.
  16076. (HandshakeMessage.h): Removed.
  16077. (KeepAliveMessage.h): Removed.
  16078. (PortMessage.h): Removed.
  16079. (HaveAllMessage.h): Removed.
  16080. (HaveNoneMessage.h): Removed.
  16081. (PeerConnection.h): Removed.
  16082. (HandshakeMessage.h): Included.
  16083. * src/BitfieldMessage.h
  16084. (init): New function.
  16085. (BitfieldMessage): Rewritten.
  16086. (BitfieldMessage): New function(overload).
  16087. * src/RequestSlot.h
  16088. (operator=): Defined the function body here.
  16089. (operator==): Defined the function body here.
  16090. * src/RequestSlot.cc
  16091. (operator=): Removed.
  16092. (operator==): Removed.
  16093. To remove the dependency on the PeerMessage subclass from
  16094. PeerInteraction:
  16095. * src/PeerMessageFactory.h: New class.
  16096. * src/PeerMessageFactory.cc: New class.
  16097. * src/SimplePeerMessage.cc
  16098. (send): If invalidate is true then do nothing.
  16099. * src/PeerInteractionCommand.cc
  16100. (HandshakeMessage.h): Included.
  16101. (KeepAliveMessage.h): Included.
  16102. (ChokeMessage.h): Included.
  16103. (UnchokeMessage.h): Included.
  16104. (HaveMessage.h): Included.
  16105. (executeInternal): Call setNoCheck().
  16106. Removed setWriteCheckSocket(socket).
  16107. * src/PeerInteraction.h
  16108. (ChokeMessage.h): Removed.
  16109. (UnchokeMessage.h): Removed.
  16110. (InterestedMessage.h): Removed.
  16111. (NotInterestedMessage.h): Removed.
  16112. (HaveMessage.h): Removed.
  16113. (BitfieldMessage.h): Removed.
  16114. (RequestMessage.h): Removed.
  16115. (CancelMessage.h): Removed.
  16116. (PieceMessage.h): Removed.
  16117. (HandshakeMessage.h): Removed.
  16118. (KeepAliveMessage.h): Removed.
  16119. (PortMessage.h): Removed.
  16120. (HaveAllMessage.h): Removed.
  16121. (HaveNoneMessage.h): Removed.
  16122. (RejectMessage.h): Removed.
  16123. (AllowedFastMessage.h): Removed.
  16124. (SuggestPieceMessage.h): Removed.
  16125. (PeerMessageFactory.h): Included.
  16126. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16127. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16128. (PeerMessageFactory): New variable.
  16129. (createPeerMessage): Removed.
  16130. (createHandshakeMessage): Removed.
  16131. (setPeerMessageCommonProperty): Removed.
  16132. (addRequestSlot): New function.
  16133. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16134. (getPeerMessageFactory): New function.
  16135. (createRequestMessage): Removed.
  16136. (createCancelMessage): Removed.
  16137. (createPieceMessage): Removed.
  16138. (createHaveMessage): Removed.
  16139. (createChokeMessage): Removed.
  16140. (createUnchokeMessage): Removed.
  16141. (createInterestedMessage): Removed.
  16142. (createNotInterestedMessage): Removed.
  16143. (createBitfieldMessage): Removed.
  16144. (createKeepAliveMessage): Removed.
  16145. (createHaveAllMessage): Removed.
  16146. (createHaveNoneMessage): Removed.
  16147. (createRejectMessage): Removed.
  16148. (createAllowedFastMessage): Removed.
  16149. * src/PeerInteraction.cc
  16150. (PeerInteraction): Allocate PeerMessageFactory here.
  16151. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16152. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16153. PieceMessage::ID.
  16154. (addMessage): Simplified by using PeerMessage::onPush().
  16155. (addRequestSlot): New function.
  16156. (rejectAllPieceMessageInQueue): Simplified by using
  16157. PeerMessage::onChoked().
  16158. (rejectPieceMessageInQueue): Simplified by using
  16159. PeerMessage::onCanceled().
  16160. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16161. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16162. (createHandshakeMessage): Removed.
  16163. (createPeerMessage): Removed.
  16164. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16165. (setPeerMessageCommonProperty): Removed.
  16166. (createRequestMessage): Removed.
  16167. (createCancelMessage): Removed.
  16168. (createPieceMessage): Removed.
  16169. (createHaveMessage): Removed.
  16170. (createChokeMessage): Removed.
  16171. (createUnchokeMessage): Removed.
  16172. (createInterestedMessage): Removed.
  16173. (createNotInterestedMessage): Removed.
  16174. (createBitfieldMessage): Removed.
  16175. (createKeepAliveMessage): Removed.
  16176. (createHaveAllMessage): Removed.
  16177. (createHaveNoneMessage): Removed.
  16178. (createRejectMessage): Removed.
  16179. (createAllowedFastMessage): Removed.
  16180. * src/PieceMessage.h
  16181. (createRejectMessage): New function.
  16182. (PieceMessage): Rewritten.
  16183. (onChoked): New function.
  16184. (onCanceled): New function.
  16185. * src/PieceMessage.cc
  16186. (send): If invalidate is true then do nothing, just return.
  16187. (createRejectMessage): New function.
  16188. (onChoked): New function.
  16189. (onCanceled): New function.
  16190. * src/RequestMessage.h
  16191. (RequestMessage): Rewritten.
  16192. (onPush): New function.
  16193. (onAbortPiece): New function.
  16194. * src/RequestMessage.cc
  16195. (onPush): New function.
  16196. (onAbortPiece): New function.
  16197. Update fd_set when a socket is added or deleted in order to improve
  16198. performance:
  16199. * src/DownloadEngine.h
  16200. (rfdset): New variable.
  16201. (wfdset): New variable.
  16202. (updateFdSet): New function.
  16203. * src/DownloadEngine.cc
  16204. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16205. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16206. (waitData): Copy rfdset and wfdset.
  16207. (updateFdSet): New function.
  16208. (addSocket): Call updateFdSet.
  16209. (deleteSocket): Call updateFdSet.
  16210. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16211. To add the support for Metalink3.0 backward compatible links:
  16212. * src/Request.h
  16213. (SAFE_CHARS): Added '#'.
  16214. (METALINK_MARK): New definition.
  16215. * src/Request.cc
  16216. (parseUrl): Added the support for Metalink3.0 backward compatible
  16217. links.
  16218. etc
  16219. * src/PeerInteraction.cc
  16220. (MsgPushBack): Removed.
  16221. (sendMessages): Use STL copy and back_inserter.
  16222. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16223. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16224. * src/TorrentMan.h
  16225. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16226. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16227. * src/SharedHandle.h: New class.
  16228. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16229. * src/HttpResponseCommand.h
  16230. (HttpResponseCommand): Wrapped Socket.
  16231. * src/SocketCore.h
  16232. (operator==): New function.
  16233. (operator!=): New function.
  16234. (operator<): New function.
  16235. (getSockfd): New function.
  16236. (isOpen): New function.
  16237. (writeData): New function.
  16238. * src/SocketCore.cc
  16239. (operator==): New function.
  16240. (operator!=): New function.
  16241. (operator<): New function.
  16242. * src/AbstractCommand.h
  16243. (socket): Changed its type to SocketHandle.
  16244. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16245. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16246. (disableReadCheckSocket): New function.
  16247. (disableWriteCheckSocket): New function.
  16248. (readCheckTarget): Changed its type to SocketHandle.
  16249. (writeCheckTarget): Changed its type to SocketHandle.
  16250. (AbstractCommand): Replaced Socket with SocketHandle.
  16251. * src/AbstractCommand.cc
  16252. (AbstractCommand): Replaced Socket with SocketHandle.
  16253. (~AbstractCommand): Removed the deallocation for Socket object.
  16254. (disableReadCheckSocket): New function.
  16255. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16256. (disableWriteCheckSocket): New function.
  16257. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16258. * src/HttpDownloadCommand.cc
  16259. (DownloadCommand): Replaced Socket with SocketHandle.
  16260. * src/PeerAbstractCommand.h
  16261. (socket): Changed its type to SocketHandle.
  16262. (peer): Changed its type to PeerHandle.
  16263. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16264. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16265. (disableReadCheckSocket): New function.
  16266. (disableWriteCheckSocket): New function.
  16267. (readCheckTarget): Changed its type to SocketHandle.
  16268. (writeCheckTarget): Changed its type to SocketHandle.
  16269. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16270. Replaced Peer with PeerHandle.
  16271. * src/HttpRequestCommand.cc
  16272. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16273. Use disableReadCheckSocket.
  16274. * src/PeerInitiateConnectionCommand.h
  16275. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16276. * src/PeerChokeCommand.cc
  16277. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16278. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16279. (execute): Use PeerHandle.
  16280. * src/PeerConnection.h
  16281. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16282. (socket): Changed its type to SocketHandle.
  16283. (PeerConnection): Replaced Socket with SocketHandle.
  16284. * src/PeerConnection.cc
  16285. (PeerConnection): Replaced Socket with SocketHandle.
  16286. * src/PeerInteractionCommand.h
  16287. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16288. Replaced Peer with PeerHandle.
  16289. * src/PeerInteractionCommand.cc
  16290. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16291. Replaced Peer with PeerHandle.
  16292. (executeInternal): Use disableWriteCheckSocket.
  16293. Use HandshakeMessageHandle.
  16294. (receiveMessages): Use PeerMessageHandle.
  16295. (prepareForNextPeer): Use PeerHandle.
  16296. * src/HttpProxyRequestCommand.h
  16297. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16298. * src/HttpResponseCommand.cc
  16299. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16300. * src/TorrentMan.cc
  16301. (nullPeer): Added external reference.
  16302. (~TorrentMan): Removed the deallocation of the elements of peers.
  16303. (addPeer): Rewritten.
  16304. (isPeerAvailable): Use nullPeer.
  16305. (deleteOldpeers): Replaced with deleteErrorPeer.
  16306. (deleteErrorPeer): New function.
  16307. (getPeer): Use PeerHandle and nullPeer.
  16308. (hasMissingPiece): Replaced Peer with PeerHandle.
  16309. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16310. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16311. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16312. (getMissingPiece): Replaced Peer with PeerHandle.
  16313. * src/FtpNegotiateCommand.cc
  16314. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16315. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16316. (recvGreeting): Use disableWriteCheckSocket.
  16317. (recvPasv): Removed the allocation of Socket.
  16318. Use disableReadCheckSocket.
  16319. (sendRestPasv): Use disableWriteCheckSocket.
  16320. (recvRetr): Changed assertion.
  16321. * src/PeerInteraction.h
  16322. (SharedHandle.h): Included SharedHandle.h.
  16323. (PeerMessageHandle): New type definition.
  16324. (HandshakeMessageHandle): New type definition.
  16325. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16326. (peer): Changed its type to PeerHandle.
  16327. (createHandshakeMessage): Replaced HandshakeMessage with
  16328. HandshakeMessageHandle.
  16329. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16330. (PeerInteraction): Replaced Peer with PeerHandle.
  16331. Replaced Socket with SocketHandle.
  16332. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16333. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16334. (receiveHandshake): Replaced HandshakeMessage with
  16335. HandshakeMessageHandle.
  16336. * src/PeerInteraction.cc
  16337. (PeerInteraction): Replaced Peer with PeerHandle.
  16338. Replaced Socket with SocketHandle.
  16339. (~PeerInteraction): Removed the deallocation of the elements of
  16340. messageQueue.
  16341. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16342. (isSendingMessageInProgress): Replaced PeerMessage with
  16343. PeerMessageHandle.
  16344. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16345. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16346. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16347. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16348. (abortPiece): Use PeerMessageHandle.
  16349. (receiveHandshake): Replaced HandshakeMessage with
  16350. HandshakeMessageHandle. Removed try-catch block.
  16351. (createHandshakeMessage): Replaced HandshakeMessage with
  16352. HandshakeMessageHandle.
  16353. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16354. Removed try-catch block.
  16355. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16356. * src/HttpProxyResponseCommand.cc
  16357. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16358. * src/FtpTunnelResponseCommand.h
  16359. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16360. * src/HttpConnection.cc
  16361. (HttpConnection): Replaced Socket with SocketHandle.
  16362. * src/PeerAbstractCommand.cc
  16363. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16364. (~PeerAbstractCommand): Removed the deallocation of socket.
  16365. Use disableReadCheckSocket, disableWriteCheckSocket.
  16366. (disableReadCheckSocket): New function.
  16367. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16368. (disableWriteCheckSocket): New function.
  16369. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16370. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16371. * src/FtpTunnelRequestCommand.cc
  16372. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16373. (~FtpTunnelRequestCommand): Corrected indentation.
  16374. * src/DownloadCommand.h
  16375. (DownloadCommand): Replaced Socket with SocketHandle.
  16376. * src/PeerListenCommand.cc
  16377. (PeerListenCommand): Removed the initialization of socket.
  16378. (~PeerListenCommand): Removed the deallocation of socket.
  16379. (bindPort): Use SocketHandle.
  16380. (execute): Use SocketHandle and PeerHandle.
  16381. * src/FtpDowndloadCommand.cc
  16382. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16383. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16384. * src/main.cc
  16385. (main): Corrected indentation.
  16386. * src/HttpInitiateConnectionCommand.cc
  16387. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16388. (executeInternal): Removed the allocation of socket.
  16389. * src/HttpRequestCommand.h
  16390. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16391. * src/FtpNegotiationCommand.h
  16392. (dataSocket): Changed its type to SocketHandle.
  16393. (serverSocket): Changed its type to SocketHandle.
  16394. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16395. * src/TorrentMan.h
  16396. (MAX_PEER_UPDATE): Removed.
  16397. (MAX_PEERS): New definition.
  16398. (Peers): The element is now of type PeerHandle.
  16399. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16400. (getPeer): Replaced Peer with PeerHandle.
  16401. (deleteOldErrorPeers): Removed.
  16402. (deleteErrorPeer): New function.
  16403. (hasMissingPiece): Replaced Peer with PeerHandle.
  16404. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16405. (getMissingPiece): Replaced Peer with PeerHandle.
  16406. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16407. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16408. (addActivePeer): Replaced Peer with PeerHandle.
  16409. (deleteActivePeer): Replaced Peer with PeerHandle.
  16410. Added a check for the return value of find.
  16411. * src/FtpTunnelResponseCommand.cc
  16412. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16413. * src/FtpInitiateConnectionCommand.cc
  16414. (executeInternal): Removed the allocation of socket.
  16415. * src/DownloadEngine.h
  16416. (Sockets): An element is now of type SocketHandle.
  16417. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16418. (CommandUuids): New type definition.
  16419. (rsockets): Changed its type to SockCmdMap.
  16420. (wsockets): Changed its type to SockCmdMap.
  16421. (addSocket): Rewritten.
  16422. (deleteSocket): Rewritten.
  16423. (addSocketForReadCheck): Rewritten.
  16424. (deleteSocketForReadCheck): Rewritten.
  16425. (addSocketForWriteCheck): Rewritten.
  16426. (deleteSocketForWriteCheck): Rewritten.
  16427. (PairFind): New template class.
  16428. * src/HttpDownloadCommand.h
  16429. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16430. * src/FtpConnection.cc
  16431. (FtpConnection): Replaced Socket with SocketHandle.
  16432. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16433. block.
  16434. * src/InitiateConnectionCommandFactory.cc
  16435. (DlAbortEx.h): Included DlAbortEx.h.
  16436. (createInitiateConnectionCommand): Throw exception if the protocol of
  16437. requested URI is not supported.
  16438. * src/Peer.cc
  16439. (nullPeer): Changed its type to PeerHandle.
  16440. (operator==): New function.
  16441. (operator!=): New function.
  16442. * src/Peer.h
  16443. (SharedHandle.h): Included SharedHandle.h.
  16444. (operator==): New function.
  16445. (operator!=): New function.
  16446. (Peer): Added the default constructor.
  16447. Use resetStatus() to initialize member variables.
  16448. (nullPeer): Removed.
  16449. * src/TrackerUpdateCommand.cc
  16450. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16451. with MIN_PEERS.
  16452. * src/PeerListenCommand.h
  16453. (socket): Changed its type to SocketHandle.
  16454. * src/Command.h
  16455. (CommandUuid): New type definition.
  16456. (uuid): New variable.
  16457. (uuidGen): New variable.
  16458. (Command): Added the initialization of uuid.
  16459. (getUuid): New function.
  16460. * src/Socket.h
  16461. (Socket): Removed.
  16462. (SocketHandle): New type definition.
  16463. * src/DownloadEngine.h
  16464. (FindCommand): New function object.
  16465. (run): The portion of socket check was rewritten.
  16466. (SetDescriptor): New function object.
  16467. (AccumulateActiveCommandUuid): New function object.
  16468. (waitData): Rewritten.
  16469. (addSocket): Rewritten.
  16470. (deleteSocket): Rewritten.
  16471. (addSocketForReadCheck): Rewritten.
  16472. (addSocketForWriteCheck): Rewritten.
  16473. (deleteSocketForReadCheck): Rewritten.
  16474. (deleteSocketForWriteCheck): Rewritten.
  16475. * src/HttpProxyResponseCommand.h
  16476. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16477. * src/HttpConnection.h
  16478. (socket): Changed its type to SocketHandle.
  16479. (HttpConnection): Replaced Socket with SocketHandle.
  16480. * src/PeerInitiateConnectionCommand.cc
  16481. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16482. (executeInternal): Removed the allocation of socket.
  16483. (prepareForNextPeer): Use PeerHandle.
  16484. * src/PeerMessage.h
  16485. (peer): Changed its type to PeerHandle.
  16486. (getPeer): Replaced Peer with PeerHandle.
  16487. (setPeer): Replaced Peer with PeerHandle.
  16488. * src/DownloadCommand.cc
  16489. (DownloadCommand): Replaced Socket with SocketHandle.
  16490. * src/FtpConnection.h
  16491. (socket): Changed its type to SocketHandle.
  16492. (FtpConnection): Replaced Socket with SocketHandle.
  16493. (sendPort); Replaced Socket with SocketHandle.
  16494. * src/FtpDowndloadCommand.h
  16495. (ctrlSocket): Changed its type to SocketHandle.
  16496. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16497. * src/HttpProxyRequestCommand.cc
  16498. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16499. * src/FtpTunnelRequestCommand.h
  16500. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16501. etc
  16502. * src/PeerChokeCommand.h
  16503. (setAllPeerChoked): Removed.
  16504. (setAllPeerResetDelta): Removed.
  16505. * src/PeerChokeCommand.cc
  16506. (setAllPeerChoked): Removed.
  16507. (ChokePeer): New function object.
  16508. (setAllPeerResetDelta): Removed.
  16509. (ResetDelta): New function object.
  16510. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16511. (execute): Show download speed when the local node is a seeder.
  16512. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16513. using STL.
  16514. * src/TrackerWatcherCommand.h
  16515. (MIN_PEERS): Removed.
  16516. * src/TorrentMan.cc
  16517. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16518. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16519. To fix the bug that .aria2 file is not saved if downloading is stopped
  16520. by the errors:it results that aria2 can not resume downloading:
  16521. * src/main.cc
  16522. (normalDownload): Added the call to save().
  16523. (main): Added the deletion of the elements in 'reserved'.
  16524. To fix log:
  16525. * src/PeerInteraction.cc
  16526. (receiveHandshake): Fixed log.
  16527. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16528. To improve download performance in BitTorrent:
  16529. * src/TorrentMan.cc
  16530. (getPeer): Check the number of connections. Return nullPeer if
  16531. it is greater than MAX_PEER_UPDATE.
  16532. This code was originally here, but was removed in 0.5.1.
  16533. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16534. To improve the conditional compilation:
  16535. * src/MultiDiskWriter.h:
  16536. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16537. * src/MultiDiskWriter.cc:
  16538. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16539. * src/Util.h:
  16540. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16541. Added ENABLE_BITTORRENT around computeFastSet().
  16542. * src/Util.cc:
  16543. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16544. Added ENABLE_BITTORRENT around computeFastSet().
  16545. * src/messageDigest.h:
  16546. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16547. * src/ShaVisitor.h:
  16548. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16549. * src/ShaVisitor.cc:
  16550. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16551. * src/main.cc:
  16552. Added ENABLE_BITTORRENT around includes and blocks related to
  16553. BitTorrent.
  16554. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16555. digest support is not available.
  16556. * src/AbstractDiskWriter.h:
  16557. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16558. * src/AbstractDiskWriter.cc:
  16559. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16560. * src/MetalinkEntry.cc
  16561. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16562. support is not available.
  16563. To add command-line options for Metalink:
  16564. * src/main.cc:
  16565. Added metalink-version, metalink-language, metalink-os,
  16566. follow-metalink.
  16567. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16568. * src/main.cc: Use these definition.
  16569. * Release 0.6.0
  16570. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16571. To add Metalink support(http/ftp only):
  16572. * src/AbstractCommand.h
  16573. (tryReserved): New function.
  16574. * src/AbstractCommand.cc
  16575. (execute): Call tryReserved().
  16576. (tryReserved): New function.
  16577. * src/Request.h
  16578. (Requests): New type definition.
  16579. * src/SegmentMan.h
  16580. (reserved): New variable.
  16581. * src/Util.h
  16582. (fileChecksum): New function.
  16583. (toUpper): New function.
  16584. (toLower): New function.
  16585. * src/Util.cc
  16586. (messageDigest.h): Included.
  16587. (trim): Trim \r\n\t.
  16588. (fileChecksum): New function.
  16589. (toUpper): New function.
  16590. (toLower): New function.
  16591. * src/main.cc
  16592. (normalDownload): New function.
  16593. (main): Added 2 command-line options: metalink-file,
  16594. metalink-connection. Their usage has not been written yet.
  16595. * src/MetalinkProcessor.h: New class.
  16596. * src/Xml2MetalinkProcessor.h: New class.
  16597. * src/Xml2MetalinkProcessor.cc: New class.
  16598. * src/MetalinkEntry.h: New class.
  16599. * src/MetalinkEntry.cc: New class.
  16600. * src/MetalinkResource.h: New class.
  16601. * src/MetalinkResource.cc: New class.
  16602. To add md5 message digest checking:
  16603. * src/messageDigest.h: Rewritten.
  16604. * src/MultiDiskWriter.cc: Updated according to the changes in
  16605. messageDigest.h.
  16606. * src/ShaVisitor.cc: Updated according to the changes in
  16607. messageDigest.h.
  16608. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16609. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16610. messageDigest.h.
  16611. To fix a bug that causes segfault when the payload length in peer
  16612. message is less than 0:
  16613. * src/PeerConnection.cc:
  16614. (receiveMessage): Fixed the bug.
  16615. * src/PeerMessageUtil.cc
  16616. (checkLength): Throw an exception if length is less than or equals to
  16617. 0.
  16618. To add new interfaces to Base64 encoding/decoding:
  16619. * src/Base64.h
  16620. (part_encode): Changed the method signature.
  16621. (encode): New function(overload).
  16622. (decode): New function(overload).
  16623. * src/Base64.cc
  16624. (part_encode): Rewritten.
  16625. (encode): Rewritten.
  16626. (encode): New function(overload).
  16627. To prevent a peer to download same piece if there is an error in
  16628. checksum:
  16629. * src/PieceMessage.cc
  16630. (receivedAction): Call peerInteraction->abortPiece().
  16631. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16632. To fix the bug that causes same have message is sent many times to
  16633. a single peer.
  16634. * src/Time.cc
  16635. (isNewer): Use Util::difftv().
  16636. * src/Util.cc
  16637. (difftv): Added a cast to (long long int).
  16638. * src/TorrentMan.cc
  16639. (advertisePiece): Use push_front.
  16640. (getAdvertisedPieceIndexes): A performance improvement was made.
  16641. To fix the bug that sends tracker requests without a sleep interval
  16642. when the number of connections is less than 15.
  16643. * src/TrackerWatcherCommand.cc
  16644. (execute): Now the number of connections is not a factor to decide
  16645. whether or not a tracker request should be sent or not.
  16646. * src/Time.h
  16647. (setTimeInSec): New function.
  16648. * src/Time.cc
  16649. (setTimeInSec): New function.
  16650. etc.
  16651. * src/ChokeMessage.cc
  16652. (receivedAction): Removed peer->snubbing = false
  16653. * src/PeerConnection.h
  16654. (receiveHandshake): Updated doc.
  16655. * src/TorrentMan.h
  16656. (getAdvertisedPieceIndexes): Updated the method signature.
  16657. * src/TorrentMan.cc
  16658. (getAdvertisedPieceIndexes): Updated the method signature.
  16659. * src/Time.h
  16660. (getTimeInMicros): Added a cast to (long long int).
  16661. (getTimeInMillis): Added a cast to (long long int).
  16662. * Release 0.5.2
  16663. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16664. To make a listening socket non-block:
  16665. * src/SocketCore.h
  16666. (setNonBlockingMode): New function.
  16667. * src/SocketCore.cc
  16668. (setNonBlockingMode): New function.
  16669. (beginListen): Added a call to setNonBlockingMode().
  16670. (acceptConnection): Call setNonBlockingMode().
  16671. (setBlockingMode): Updated.
  16672. To handle tracker's NAT-checking:
  16673. * src/PeerConnection.cc
  16674. (receiveHandshake): 'msg' param is filled with received data and
  16675. its length is assigned to 'length' param, even if all handshake
  16676. message is not yet received.
  16677. * src/PeerInteractionCommand.cc
  16678. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16679. a new peer connects to localhost.
  16680. A call to peerInteraction->sendHandshake() was removed because
  16681. it is called from peerInteraction->receiveHandshake(true).
  16682. * src/PeerInteraction.h
  16683. (quickReplied): New variable.
  16684. (receiveHandshake): Added an argument.
  16685. * src/PeerInteraction.cc
  16686. (PeerInteraction): Added the initialization of quickReplied.
  16687. (receiveHandshake): Send handshake message as soon as the info hash
  16688. in a handshake message from a peer is correct.
  16689. To change the random part of peer id and key parameter:
  16690. * src/TorrentMan.h
  16691. (key): New variable.
  16692. * src/TorrentMan.cc
  16693. (setupInternal1): Use Util::randomAlpha() to generate random part
  16694. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16695. key is also generated by Util::randomAlpha() and it is now 8 character
  16696. long.
  16697. * src/Util.h
  16698. (randomAlpha): New function.
  16699. * src/Util.cc
  16700. (randomAlpha): New function.
  16701. * src/TrackerWatcherCommand.cc
  16702. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16703. Added no_peer_id=1.
  16704. Set snubbing flag to false when a choke message is received from a
  16705. snubbed peer.
  16706. * src/ChokeMessage.cc
  16707. (receivedAction): Set snubbing flag to false.
  16708. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16709. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16710. * src/SimpleLogger.h (writeHeader): New function.
  16711. * src/SimpleLogger.cc (writeHeader): New function.
  16712. (writeLog): Fixed the bug that causes segfaults if exception message
  16713. contains an unescaped "%" character.
  16714. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16715. when a tracker request fails.
  16716. * src/Request.cc (parseUrl): Query string is now handled properly.
  16717. * Release 0.5.1
  16718. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16719. To add Time class which represents a specific instant in time and
  16720. its precision is microseconds. Time checking procedures were rewritten
  16721. using this object.
  16722. * src/Time.h: New class.
  16723. * src/Time.cc: New class.
  16724. * src/AbstractCommand.h
  16725. (updateCheckPoint): Removed.
  16726. (isTimeoutDetected): Removed.
  16727. (checkPoint): Changed the type to Time.
  16728. (timeout): New variable.
  16729. (setTimeout): New function.
  16730. * src/AbstractCommand.cc
  16731. (AbstractCommand): Removed the initialization of checkPoint.
  16732. Added the initialization of timeout.
  16733. (updateCheckPoint): Removed.
  16734. (isTimeoutDetected): Removed.
  16735. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16736. * src/PeerChokeCommand.h
  16737. (checkPoint): Changed the type to Time.
  16738. * src/PeerChokeCommand.cc
  16739. (PeerChokeCommand): Removed the initialization of checkPoint.
  16740. (execute): Rewritten using Time object.
  16741. * src/TrackerWatcherCommand.h
  16742. (checkPoint): Changed the type to Time.
  16743. * src/TrackerWatcherCommand.cc
  16744. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16745. (execute): Rewritten.
  16746. * src/ConsoleDownloadEngine.h
  16747. (cp): Changed the type to Time.
  16748. (startup): Changed the type to Time.
  16749. * src/ConsoleDownloadEngine.cc
  16750. (initStatistics): Use cp.reset(), startup.reset().
  16751. (calculateStatistics): Rewritten using Time object.
  16752. * src/PeerAbstractCommand.h
  16753. (updateCheckPoint): Removed.
  16754. (isTimeoutDetected): Removed.
  16755. (checkPoint): Changed the type to Time.
  16756. * src/PeerAbstractCommand.cc
  16757. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16758. (updateCheckPoint): Removed.
  16759. (isTimeoutDetected): Removed.
  16760. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16761. * src/PeerInteractionCommand.cc
  16762. (PeerInteractionCommand): Removed the initializations of struct
  16763. timeval variables.
  16764. * src/PeerInteractionCommand.h
  16765. (keepAliveCheckPoint): Changed the type to Time.
  16766. (chokeCheckPoint): Changed the type to Time.
  16767. (freqCheckPoint): Changed the type to Time.
  16768. (haveCheckTime): Changed the type to Time.
  16769. * src/PeerInteractionCommand.cc
  16770. (executeInternal): Rewritten using Time object.
  16771. (detectMessageFlooding): Rewritten using Time object.
  16772. (checkLongTimePeerChoking): Rewritten using Time object.
  16773. (sendKeepAlive): Rewritten using Time object.
  16774. (checkHave): Rewritten using Time object.
  16775. * src/SleepCommand.h
  16776. (checkPoint): Changed the type to Time.
  16777. * src/SleepCommand.cc
  16778. (SleepCommand): Removed the initialization of checkPoint.
  16779. (execute): Rewritten using Time object.
  16780. * src/TorrentAutoSaveCommand.h
  16781. (checkPoint): Changed the type to Time.
  16782. * src/TorrentAutoSaveCommand.cc
  16783. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16784. (execute): Rewritten.
  16785. * src/DownloadCommand.h
  16786. (sw): Changed the type to Time.
  16787. * src/DownloadCommand.cc
  16788. (DownloadCommand): Removed the initialization of sw.
  16789. (executeInternal): Rewritten.
  16790. * src/RequestSlot.h
  16791. (dispatchedTime): Changed the type to Time.
  16792. * src/RequestSlot.cc
  16793. (RequestSlot): Removed the call to setDispatchedTime().
  16794. (setDispatchedTime): Rewirtten.
  16795. (isTimeout): Rewritten.
  16796. (getLatencyInMillis): Rewritten.
  16797. * src/TorrentDownloadEngine.h
  16798. (cp): Changed the type to Time[2].
  16799. (startup): Changed the type to Time.
  16800. * src/TorrentDownloadEngine.cc
  16801. (initStatistics): Rewritten.
  16802. (calculateStatistics): Rewritten.
  16803. * src/DownloadEngine.cc
  16804. (run): Rewritten.
  16805. To detect all attempts to connect to the tracker are failed:
  16806. * src/AbstractCommand.cc
  16807. (execute): Increment e->segmentMan->errors if a command aborted.
  16808. * src/SegmentMan.h
  16809. (errors): New variable.
  16810. * src/SegmentMan.cc
  16811. (SegmentMan): Added the initialization of errors.
  16812. (init): Added the initialization of errors.
  16813. * src/TrackerWatcherCommand.cc
  16814. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16815. request was failed.
  16816. To handle snubbed peers:
  16817. * src/PeerChokeCommand.cc
  16818. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16819. (execute): Snubbed peers don't get unchoked.
  16820. * src/PeerInteraction.h
  16821. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16822. * src/PeerInteraction.cc
  16823. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16824. back the requested 16k block in 60 seconds.
  16825. * src/PieceMessage.cc
  16826. (receivedAction): A peer's snubbed state is cleard if it sends
  16827. the requested 16k block in 60 seconds.
  16828. * src/Peer.h
  16829. (snubbing): New variable.
  16830. * src/Peer.cc
  16831. (resetStatus): Added snubbed = false.
  16832. To fix the bug that causes have message is not sent:
  16833. * src/PeerInteractionCommand.cc
  16834. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16835. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16836. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16837. * src/TorrentMan.h
  16838. (HaveEntry): New class.
  16839. (advertisePiece): Rewritten.
  16840. (getAdvertisedPieceIndexes): Rewritten.
  16841. (Haves): Changed the type.
  16842. (getAdvertisedPieceIndexes): Added an argument.
  16843. Others:
  16844. * src/TorrentMan.h
  16845. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16846. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16847. * src/TorrentMan.cc
  16848. (getPeer): Don't check the number of connections here.
  16849. (setupInternal1): Changed peerId.
  16850. * src/PeerInteractionCommand.h
  16851. (KEEP_ALIVE_INTERVAL): New definition.
  16852. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16853. * src/main.cc
  16854. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16855. * src/DownloadEngine.h: Removed unnecessary header includes.
  16856. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16857. To fix the bug that causes segfaults if a tracker returns a zero-length
  16858. list as "peers":
  16859. * src/TrackerUpdateCommand.cc
  16860. (execute): Added a check to see wether the type of peers is Data*.
  16861. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16862. * Release 0.5.0
  16863. To fix compile issue with gcc3:
  16864. * src/CancelMessage.h
  16865. (ID): Renamed as ID_t
  16866. (ID_t): New enum.
  16867. * src/RejectMessage.h
  16868. (ID): Renamed as ID_t
  16869. (ID_t): New enum.
  16870. * src/SuggestPieceMessage.h
  16871. (ID): Renamed as ID_t
  16872. (ID_t): New enum.
  16873. * src/AllowedFastMessage.h
  16874. (ID): Renamed as ID_t
  16875. (ID_t): New enum.
  16876. * src/PortMessage.h
  16877. (ID): Renamed as ID_t
  16878. (ID_t): New enum.
  16879. * src/HaveNoneMessage.h
  16880. (ID): Renamed as ID_t
  16881. (ID_t): New enum.
  16882. * src/KeepAliveMessage.h
  16883. (ID): Renamed as ID_t
  16884. (ID_t): New enum.
  16885. * src/HaveAllMessage.h
  16886. (ID): Renamed as ID_t
  16887. (ID_t): New enum.
  16888. * src/UnchokeMessage.h
  16889. (ID): Renamed as ID_t
  16890. (ID_t): New enum.
  16891. * src/BitfieldMessage.h
  16892. (ID): Renamed as ID_t
  16893. (ID_t): New enum.
  16894. * src/PieceMessage.h
  16895. (ID): Renamed as ID_t
  16896. (ID_t): New enum.
  16897. * src/RequestMessage.h
  16898. (ID): Renamed as ID_t
  16899. (ID_t): New enum.
  16900. * src/NotInterestedMessage.h
  16901. (ID): Renamed as ID_t
  16902. (ID_t): New enum.
  16903. * src/ChokeMessage.h
  16904. (ID): Renamed as ID_t
  16905. (ID_t): New enum.
  16906. * src/InterestedMessage.h
  16907. (ID): Renamed as ID_t
  16908. (ID_t): New enum.
  16909. * src/HaveMessage.h
  16910. (ID): Renamed as ID_t
  16911. (ID_t): New enum.
  16912. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16913. * src/PeerAbstractCommand.h
  16914. (beforeSocketCheck): Removed.
  16915. * src/PeerAbstractCommand.cc
  16916. Modified in order to call executeInternal() even if socket check
  16917. and upload limit check fail.
  16918. * src/PeerInteractionCommand.h
  16919. (keepAlive): Removed.
  16920. (sendKeepAlive): New function.
  16921. (checkHave): New function.
  16922. (beforeSocketCheck): Removed.
  16923. * src/PeerInteractionCommand.cc
  16924. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16925. calls to checkHave() and sendKeepAlive().
  16926. (keepAlive): Renamed to sendKeepAlive().
  16927. (sendKeepAlive): New function.
  16928. (beforeSocketCheck): Removed.
  16929. (checkHave): New function.
  16930. * src/BitfieldMan.cc
  16931. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16932. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16933. 0.
  16934. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16935. * src/TorrentMan.h
  16936. (UsedPieces): Removed.
  16937. (Pieces): New type definition.
  16938. * src/Piece.h: Updated doc.
  16939. * src/Peer.h
  16940. (totalLength): Removed.
  16941. * src/Peer.cc
  16942. (updateLatency): Fixed the latency calculation.
  16943. * src/TorrentMan.cc
  16944. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16945. than or equal to MAX_PEER_LIST_SIZE.
  16946. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16947. then return false.
  16948. (deleteOldErrorPeers): Rewritten.
  16949. (deleteUsedPiece): Fixed the miss use of STL remove.
  16950. * src/PeerInteraction.h
  16951. (Pieces): Removed.
  16952. (deleteTimeoutRequestSlot): Removed.
  16953. (deleteCompletedRequestSlot): Removed.
  16954. (checkRequestSlot): New function.
  16955. * src/PeerInteraction.cc
  16956. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16957. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16958. (checkRequestSlot): New function.
  16959. * src/DownloadEngine.cc
  16960. (run): Clear activeSockets before calling waitData().
  16961. (waitData): Removed a call to activeSockets.clear().
  16962. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16963. To attempt to handle EINTR:
  16964. * src/SocketCore.cc
  16965. (isReadable): Added EINTR handling.
  16966. (isWritable): Added EINTR handling.
  16967. To improve the performance:
  16968. * src/AbstractCommand.cc
  16969. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16970. * src/PeerInteractionCommand.h
  16971. (receiveMessage): Renamed as receiveMessages().
  16972. (receiveMessages): New function.
  16973. * src/PeerInteractionCommand.cc
  16974. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16975. () function. detectMessageFlooding() is moved here.
  16976. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16977. (). The flooding detection for have message is comment out.
  16978. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16979. Util::difftv().
  16980. (receiveMessage): Renamed as receiveMessages().
  16981. (receiveMessages): New function.
  16982. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16983. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16984. * src/SleepCommand.cc
  16985. (execute): Use Util::difftvsec() instead of Util::difftv().
  16986. * src/BitfieldMan.h
  16987. (getNthBitIndex): New function.
  16988. (hasMissingPiece): New function.
  16989. (getAllMissingIndexes): New function.
  16990. * src/BitfieldMan.cc
  16991. (countSetBit): Rewritten.
  16992. (getNthBitIndex): New function.
  16993. (getMissingIndexRandomly): Rewritten.
  16994. (hasMissingPiece): New function.
  16995. (getAllMissingIndexes): New function.
  16996. * src/TorrentMan.cc
  16997. (hasMissingPiece): New function.
  16998. (deleteUsedPiece): Rewritten using STL.
  16999. * src/PeerInteraction.cc
  17000. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17001. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17002. (addRequests): Updated the number of pending requests.
  17003. * src/PeerAbstractCommand.cc
  17004. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17005. (execute): Returns true if TorrentMan::isHalt() is true.
  17006. Corrected the condition of upload limit checking.
  17007. * src/Util.h
  17008. (countBit): New function.
  17009. * src/Util.cc
  17010. (nbits): New variable.
  17011. (countBit): New function.
  17012. * src/DownloadEngine.h
  17013. (SockCmdMap): New type definition.
  17014. (waitData): Added an argument.
  17015. (addSocket): Added an argument.
  17016. (addSocketForReadCheck): Added an argument.
  17017. (addSocketForWriteCheck): Added an argument.
  17018. * src/DownloadEngine.cc
  17019. (run): Executes only commands whose sockets are ready to read or write.
  17020. All commands are executed in every 1 second.
  17021. (waitData): Calls select() again if it returned
  17022. EINTR.
  17023. (addSocket): Saves socket and command object pair to the map.
  17024. (deleteSocket): Deletes socket and command object pair from the map.
  17025. (addSocketForReadCheck): Added an argument.
  17026. (addSocketForWriteCheck): Added an argument.
  17027. * src/DownloadCommand.cc
  17028. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17029. To send "event=stopped" to the tracker when the application finishes:
  17030. * src/PeerChokeCommand.h
  17031. (checkPoint): New variable.
  17032. * src/PeerChokeCommand.cc
  17033. (PeerChokeCommand): Added the initialization of checkPoint.
  17034. (execute): The interval check is now done by checkPoint, not
  17035. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17036. * src/TorrentMan.h
  17037. (halt): New function.
  17038. (hasMissingPiece): New function.
  17039. (isHalt): New function.
  17040. (setHalt): New function.
  17041. * src/TorrentMan.cc
  17042. (TorrentMan): Added the initialization of halt.
  17043. * src/TorrentAutoSaveCommand.h
  17044. (checkPoint): New variable.
  17045. * src/PeerListenCommand.cc
  17046. (execute): Returns true if TorrentMan::isHalt() is true.
  17047. * src/main.cc
  17048. (setSignalHander): Added flags argument.
  17049. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17050. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17051. Removed printDownloadAbortMessage() after torrent downloading loop.
  17052. * src/TorrentAutoSaveCommand.cc
  17053. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17054. (execute): Returns true if TorrentMan::isHalt() is true.
  17055. The interval check is now done by checkPoint, not SleepCommand.
  17056. * src/TrackerWatcherCommand.cc
  17057. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17058. event=stopped.
  17059. * src/TrackerUpdateCommand.cc
  17060. (prepareForRetry): Do not use SleepCommand here.
  17061. (execute): Returns true if TorrentMan::isHalt() is true.
  17062. Others:
  17063. * src/TorrentMan.cc
  17064. (getMissingPieceIndex): Updated log message.
  17065. * src/PeerInteraction.cc
  17066. (createPeerMessag): Updated log message.
  17067. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17068. To add the ability to download several pieces in mix in a command and
  17069. increase the number of request slots according to request-cancel
  17070. latency:
  17071. * src/PeerInteractionCommand.cc
  17072. (executeInternal): The number of messages to be received at a time
  17073. is increased from 10 to 50.
  17074. * src/LogFactory
  17075. (getInstance): Added NullLogger.
  17076. * src/NullLogger.h: New class.
  17077. * src/BitfieldMan.h
  17078. (getMissingIndex): New function.
  17079. * src/BitfieldMan.cc
  17080. (getMissingIndex): New function.
  17081. * src/TorrentMan.h
  17082. (checkOutPiece): New function.
  17083. (getMissingPieceIndex): New function.
  17084. (getMissingFastPieceIndex): New function.
  17085. (getMissingFastPiece): New function.
  17086. * src/TorrentMan.cc
  17087. (updatePiece): Rewritten using STL.
  17088. (syncPiece): Rewritten using STL.
  17089. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17090. checkOutPiece().
  17091. (getMissingPieceIndex): New function.
  17092. (getMissingFastPieceIndex): New function.
  17093. (getMissingFastPiece): New function.
  17094. (checkOutPiece): New function.
  17095. * src/PeerInteraction.h
  17096. (Pieces): New type definition.
  17097. (piece): Removed.
  17098. (pieces): New variable.
  17099. (getNewPieceAndSendInterest): Added the "piece" argument.
  17100. (abortPiece): Added the "piece" argument.
  17101. (abortAllPieces): New function.
  17102. (isInRequestSlot): New function.
  17103. (hasDownloadPiece): Added the "index" argument.
  17104. (setDownloadPiece): Removed.
  17105. (getDownloadPiece): Added the "index" argument.
  17106. (updatePiece): New function.
  17107. (createRequestMessage): Added the "index" argument.
  17108. * src/PeerInteraction.cc
  17109. (onChoked): Rewritten.
  17110. (abortPiece): Rewirtten.
  17111. (abortAllPieces): New function.
  17112. (deleteTimeoutRequestSlot): Rewritten.
  17113. Clarified code a little bit.
  17114. (deleteCompletedRequestSlot): Rewritten.
  17115. (isInRequestSlot): New function.
  17116. (syncPiece): Rewritten.
  17117. (updatePiece): New function.
  17118. (getNewPieceAndSendInterest): Rewritten.
  17119. (addRequests): Rewritten.
  17120. (getDownloadPiece): Rewritten.
  17121. (hasDownloadPiece): Rewritten.
  17122. (createRequestMessage): Added the "index" argument.
  17123. * src/common.h
  17124. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17125. (DIV_FLOOR): New definition.
  17126. * src/PieceMessage.cc
  17127. (receivedAction): Update request-piece latency here.
  17128. * src/RequestSlot.h
  17129. (getLatencyInMillis): New function.
  17130. * src/RequestSlot.cc
  17131. (isTimeout): Rewritten using getLatencyInMillis.
  17132. (getLatencyInMillis): New function.
  17133. * src/Piece.h
  17134. (operator==): New function.
  17135. (getMissingBlockIndex): New function.
  17136. * src/Piece.cc
  17137. (operator==): New function.
  17138. (getMissingBlockIndex): New function.
  17139. * src/Peer.h
  17140. (DEFAULT_LATENCY): New definition.
  17141. (latency): New variable.
  17142. (updateLatency): New function.
  17143. (getLatency): New function.
  17144. * src/Peer.cc
  17145. (resetStatus): Reset latecy.
  17146. (updateLatency): New function.
  17147. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17148. * src/SocketCore.cc
  17149. (isReadable): Added secure to the condition.
  17150. * src/HttpConnection.cc
  17151. (receiveResponse): Fixed a bug that causes no response header
  17152. exception.
  17153. * src/Peer.h
  17154. (getFastSet): Fixed the return value type.
  17155. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17156. To remove a wait from download loop:
  17157. * src/DownloadEngine.cc
  17158. (run): Comment out shortSleep.
  17159. To rewrite the message handling:
  17160. * src/SimplePeerMessage.h: New class.
  17161. * src/SimplePeerMessage.cc: New class.
  17162. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17163. (msg): New variable.
  17164. (create): New function.
  17165. (send): Removed.
  17166. (getMessage): New function.
  17167. (getMessageLength): New function.
  17168. * src/CancelMessage.cc
  17169. (create): New function.
  17170. (receivedAction): Replaced deleteRequestMessageInQueue with
  17171. rejectPieceMessageInQueue.
  17172. (send): Removed.
  17173. (getMessage): New function.
  17174. (getMessageLength): New function.
  17175. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17176. (msg): New variable.
  17177. (msgLength): New variable.
  17178. (~BitfieldMessage): Deleted msg.
  17179. (send): Removed.
  17180. (getMessage): New function.
  17181. (getMessageLength): New function.
  17182. * src/BitfieldMessage.cc
  17183. (create): New function.
  17184. (send): Removed.
  17185. (getMessage): New function.
  17186. (getMessageLength): New function.
  17187. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17188. (msg): New variable.
  17189. (sendPredicate): New function.
  17190. (onSendComplete): New function.
  17191. (send): Removed.
  17192. (getMessage): New function.
  17193. (getMessageLength): New function.
  17194. (create): New function.
  17195. * src/ChokeMessage.cc
  17196. (create): New function.
  17197. (send): Removed.
  17198. (sendPredicate): New function.
  17199. (getMessage): New function.
  17200. (getMessageLength): New function.
  17201. (onSendComplete): New function.
  17202. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17203. (msg): New variable.
  17204. (send): Removed.
  17205. (getMessage): New function.
  17206. (getMessageLength): New function.
  17207. * src/KeepAliveMessage.cc
  17208. (send): Removed.
  17209. (getMessage): New function.
  17210. (getMessageLength): New function.
  17211. * src/PortMessage.h
  17212. (create): New function.
  17213. (receivedAction): Updated log message.
  17214. * src/PortMessage.cc: New file.
  17215. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17216. (msg): New variable.
  17217. (sendPredicate): New function.
  17218. (onSendComplete): New function.
  17219. (create): New function.
  17220. (send): Removed.
  17221. (getMessage): New function.
  17222. (getMessageLength): New function.
  17223. * src/UnchokeMessage.cc
  17224. (create): New function.
  17225. (send): Removed.
  17226. (sendPredicate): New function.
  17227. (getMessage): New function.
  17228. (getMessageLength): New function.
  17229. (onSendComplete): New function.
  17230. * src/PieceMessage.h
  17231. (leftPieceDataLength): Removed.
  17232. (leftDataLength): New variable.
  17233. (headerSend): New variable.
  17234. (pendingCount): New variable.
  17235. (msgHeader): New variable.
  17236. (sendPieceData): New function.
  17237. (incrementPendingCount): New function.
  17238. (isPendingCountMax): New function.
  17239. (create): New function.
  17240. (getMessageHeader): New function.
  17241. (getMessageHeaderLength): New function.
  17242. * src/PieceMessage.cc
  17243. (create): New function.
  17244. (getMessageHeader): New function.
  17245. (getMessageHeaderLength): New function.
  17246. (send): Rewritten.
  17247. (sendPieceData): New function.
  17248. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17249. (msg): New variable.
  17250. (create): New function.
  17251. (getMessage): New function.
  17252. (getMessageLength): New function.
  17253. * src/HaveMessage.cc
  17254. (create): New function.
  17255. (send): Removed.
  17256. (sendPieceData): New function.
  17257. (getMessage): New function.
  17258. (getMessageLength): New function.
  17259. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17260. (msg): New variable.
  17261. (create): New function.
  17262. (send): Removed.
  17263. (getMessage): New function.
  17264. (getMessageLength): New function.
  17265. * src/RequestMessage.cc
  17266. (create): New function.
  17267. (receivedAction): Added the handling of fast extension.
  17268. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17269. (send): Removed.
  17270. (getMessage): New function.
  17271. (getMessageLength): New function.
  17272. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17273. (msg): New variable.
  17274. (sendPredicate): New function.
  17275. (onSendComplete): New function.
  17276. (create): New function.
  17277. (getMessage): New function.
  17278. (getMessageLength): New function.
  17279. * src/InterestedMessage.cc
  17280. (create): New function.
  17281. (send): Removed.
  17282. (sendPieceData): New function.
  17283. (getMessage): New function.
  17284. (getMessageLength): New function.
  17285. (onSendComplete): New function.
  17286. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17287. (msg): New variable.
  17288. (sendPieceData): New function.
  17289. (onSendComplete): New function.
  17290. (create): New function.
  17291. (send): Removed.
  17292. (getMessage): New function.
  17293. (getMessageLength): New function.
  17294. * src/NotInterestedMessage.cc
  17295. (create): New function.
  17296. (send): Removed.
  17297. (sendPredicate): New function.
  17298. (getMessage): New function.
  17299. (getMessageLength): New function.
  17300. (onSendComplete): New function.
  17301. * src/AllowedFastMessage.h: New class.
  17302. * src/AllowedFastMessage.cc: New class.
  17303. * src/RejectMessage.h: New class.
  17304. * src/RejectMessage.cc: New class.
  17305. * src/SuggestPieceMessage.h: New class.
  17306. * src/SuggestPieceMessage.cc: New class.
  17307. * src/HaveAllMessage.h: New class.
  17308. * src/HaveAllMessage.cc: New class.
  17309. * src/HaveNoneMessage.h: New class.
  17310. * src/HaveNoneMessage.cc: New class.
  17311. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17312. (msg): New variable.
  17313. (reserved): New variable.
  17314. (create): New function.
  17315. (getId): New function.
  17316. (receivedAction): New function.
  17317. (getMessage): New function.
  17318. (getMessageLength): New function.
  17319. (isFastExtensionSupported): New function.
  17320. * src/HandshakeMessage.cc
  17321. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17322. (create): New function.
  17323. (getMessage): New function.
  17324. (getMessageLength): New function.
  17325. (toString): Added the output of reserved field.
  17326. (check): Added const qualifier.
  17327. (isFastExtensionSupported): New function.
  17328. * src/PeerMessageUtil.h
  17329. (createChokeMessage): Removed.
  17330. (createUnchokeMessage): Removed.
  17331. (createInterestedMessage): Removed.
  17332. (createNotInterestedMessage): Removed.
  17333. (createHaveMessage): Removed.
  17334. (createBitfieldMessage): Removed.
  17335. (createRequestMessage): Removed.
  17336. (createCancelMessage): Removed.
  17337. (createPieceMessage): Removed.
  17338. (createPortMessage): Removed.
  17339. (createChokeMessage): Removed.
  17340. (createUnchokeMessage): Removed.
  17341. (createInterestedMessage): Removed.
  17342. (createNotInterestedMessage): Removed.
  17343. (createHaveMessage): Removed.
  17344. (createBitfieldMessage): Removed.
  17345. (createRequestMessage): Removed.
  17346. (createCancelMessage): Removed.
  17347. (createPieceMessage): Removed.
  17348. (createKeepAliveMessage): Removed.
  17349. (createHandshakeMessage): Removed.
  17350. (setIntParam): New function.
  17351. (createPeerMessageString): New function.
  17352. * src/PeerMessageUtil.cc
  17353. (createChokeMessage): Removed.
  17354. (createUnchokeMessage): Removed.
  17355. (createInterestedMessage): Removed.
  17356. (createNotInterestedMessage): Removed.
  17357. (createHaveMessage): Removed.
  17358. (createBitfieldMessage): Removed.
  17359. (createRequestMessage): Removed.
  17360. (createCancelMessage): Removed.
  17361. (createPieceMessage): Removed.
  17362. (createPortMessage): Removed.
  17363. (createRequestMessage): Removed.
  17364. (createCancelMessage): Removed.
  17365. (createPieceMessage): Removed.
  17366. (createHaveMessage): Removed.
  17367. (createChokeMessage): Removed.
  17368. (createUnchokeMessage): Removed.
  17369. (createInterestedMessage): Removed.
  17370. (createNotInterestedMessage): Removed.
  17371. (createBitfieldMessage): Removed.
  17372. (createKeepAliveMessage): Removed.
  17373. (createHandshakeMessage): Removed.
  17374. (setIntParam): New function.
  17375. (createPeerMessageString): New function.
  17376. * src/PeerConnection.h
  17377. (peer): Removed.
  17378. (torrentMan): Removed.
  17379. (createNLengthMessage): Removed.
  17380. (setIntParam): Removed.
  17381. (writeOutgoingMessageLog): Removed all overloaded functions.
  17382. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17383. (sendMessage): New function.
  17384. (sendHandshake): Removed.
  17385. (sendKeepAlive): Removed.
  17386. (sendChoke): Removed.
  17387. (sendUnchoke): Removed.
  17388. (sendInterested): Removed.
  17389. (sendNotInterested): Removed.
  17390. (sendHave): Removed.
  17391. (sendBitfield): Removed.
  17392. (sendRequest): Removed.
  17393. (sendPiece): Removed.
  17394. (sendPieceHeader): Removed.
  17395. (sendPieceData): Removed.
  17396. (sendCancel): Removed.
  17397. (getPeer): Removed.
  17398. * src/PeerConnection.cc
  17399. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17400. (sendHandshake): Removed.
  17401. (sendKeepAlive): Removed.
  17402. (createNLengthMessage): Removed.
  17403. (setIntParam): Removed.
  17404. (writeOutgoingMessageLog): Removed all overloaded functions.
  17405. (sendChoke): Removed.
  17406. (sendUnchoke): Removed.
  17407. (sendInterested): Removed.
  17408. (sendNotInterested): Removed.
  17409. (sendHave): Removed.
  17410. (sendBitfield): Removed.
  17411. (sendRequest): Removed.
  17412. (sendPiece): Removed.
  17413. (sendPieceHeader): Removed.
  17414. (sendPieceData): Removed.
  17415. (sendMessage): New function.
  17416. (sendCancel): Removed.
  17417. * src/PeerInteractionCommand.cc
  17418. (PeerInteractionCommand): Call setUploadLimit.
  17419. (executeInternal): Call setUploadLimit.
  17420. Added the handling of "inProgress" state of handshake message.
  17421. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17422. sendNow().
  17423. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17424. sendNow().
  17425. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17426. * src/TorrentMan.h
  17427. (PEER_ID_LENGTH): New definition.
  17428. (hasAllPieces): New function.
  17429. * src/TorrentMan.cc
  17430. (getMissingPiece): Added the handling of fast extension.
  17431. (cancelPiece): Call updatePiece().
  17432. (hasAllPieces): New function.
  17433. * src/PeerInteraction.h
  17434. (fastSet): New variable.
  17435. (getNewPieceAndSendInterest): Changed the return type to void.
  17436. (send): Renamed as sendMessages.
  17437. (deleteAllRequestSlot): Removed.
  17438. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17439. (cancelAllRequest): Removed all overloaded functions.
  17440. (deleteAllRequestSlot): Removed.
  17441. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17442. (rejectPieceMessageInQueue): New function.
  17443. (rejectAllPieceMessageInQueue): New function.
  17444. (onChoked): New function.
  17445. (isSendingMessageInProgress): New function.
  17446. (getCorrespondingRequestSlot): Changed its arguments.
  17447. (isInFastSet): New function.
  17448. (addFastSetIndex): New function.
  17449. (addRequests): New function.
  17450. (sendNow): Removed.
  17451. (trySendNow): Removed.
  17452. (sendBitfield): New function.
  17453. (sendAllowdFast): New function.
  17454. (createHaveAllMessage): New function.
  17455. (createHaveNoneMessage): New function.
  17456. (createRejectMessage): New function.
  17457. (createAllowedFastMessage): New function.
  17458. * src/PeerInteraction.cc
  17459. (send): Renamed as sendMessages.
  17460. (sendMessages): New function.
  17461. (MsgPushBack): New class.
  17462. (isSendingMessageInProgress): New function.
  17463. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17464. (rejectAllPieceMessageInQueue): New function.
  17465. Added the handling of fast extension.
  17466. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17467. (rejectPieceMessageInQueue): New function.
  17468. Added the handling of fast extension.
  17469. (deleteRequestSlot): Replaced for loop with std::find.
  17470. (onChoked): New function.
  17471. (deleteAllRequestSlot): Removed.
  17472. (abortPiece): Rewirtten.
  17473. (deleteTimeoutRequestSlot): Updated log messages.
  17474. (getCorrespondingRequestSlot): Changed its arguments.
  17475. (cancelAllRequest): Removed all overloaded functions.
  17476. (receiveHandshake): Added the check to see whether an incoming peer
  17477. supports fast extension.
  17478. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17479. PeerMessageUtil.
  17480. (createPeerMessage): Use create() of each message class instead of
  17481. PeerMessageUtil.
  17482. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17483. AllowedFastMessage were added.
  17484. (getNewPieceAndSendInterest): Changed its return value type to void.
  17485. Added the handling of fast extension.
  17486. (addRequests): New function.
  17487. (sendNow): Removed.
  17488. (sendHandshake): Rewritten.
  17489. (trySendNow): Removed.
  17490. (sendBitfield): New function.
  17491. (sendAllowdFast): New function.
  17492. (isInFastSet): New function.
  17493. (addFastSetIndex): New function.
  17494. (createRequestMessage): Use RequestMessage::create instead of
  17495. PeerMessageUtil.
  17496. (createCancelMessage): Use CancelMessage::create instead of
  17497. PeerMessageUtil.
  17498. (createPieceMessage): Use PieceMessage::create instead of
  17499. PeerMessageUtil.
  17500. (createHaveMessage): Use HaveMessage::create instead of
  17501. PeerMessageUtil.
  17502. (createChokeMessage): Use ChokeMessage::create instead of
  17503. PeerMessageUtil.
  17504. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17505. PeerMessageUtil.
  17506. (createInterestedMessage): Use InterestedMessage::create instead of
  17507. PeerMessageUtil.
  17508. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17509. of PeerMessageUtil.
  17510. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17511. PeerMessageUtil.
  17512. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17513. PeerMessageUtil.
  17514. (createHaveAllMessage): New function.
  17515. (createHaveNoneMessage): New function.
  17516. (createRejectMessage): New function.
  17517. (createAllowedFastMessage: New function.
  17518. * src/Util.h
  17519. (sha1Sum): New function.
  17520. (computeFastSet): New function.
  17521. * src/Util.cc
  17522. (sha1Sum): New function.
  17523. (computeFastSet): New function.
  17524. * src/Peer.h
  17525. (fastExtensionEnabled): New variable.
  17526. (fastSet): New variable.
  17527. (setAllBitfield): New function.
  17528. (setFastExtensionEnabled): New function.
  17529. (isFastExtensionEnabled): New function.
  17530. (addFastSetIndex): New function.
  17531. (getFastSet): New function.
  17532. (isInFastSet): New function.
  17533. (countFastSet): New function.
  17534. * src/Peer.cc
  17535. (isInFastSet): New function.
  17536. (addFastSetIndex): New function.
  17537. (setAllBitfield): New function.
  17538. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17539. sockets.
  17540. * src/PeerAbstractCommand.cc
  17541. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17542. and uploadLimit.
  17543. (execute): Changed the procedure of checking sockets. The upload speed
  17544. checking were added.
  17545. (setUploadLimit): New function.
  17546. (setUploadLimitCheck): New function.
  17547. * src/PeerAbstractCommand.h
  17548. (setUploadLimit): New function.
  17549. (setUploadLimitCheck): New function.
  17550. (uploadLimit): New variable.
  17551. (uploadLimitCheck): New variable.
  17552. To contact a tracker regularly:
  17553. * src/TrackerWatcherCommand.h (interval): New variable.
  17554. (checkPoint): New variable.
  17555. (TrackerWatcherCommand): Added interval argument.
  17556. * src/TrackerWatcherCommand.cc
  17557. (TrackerWatcherCommand): Initialized checkPoint.
  17558. (execute): Now a tracker is contacted in every specified period.
  17559. If peer list is not needed, send request with numwant=0.
  17560. * src/TrackerUpdateCommand.cc
  17561. (execute): Updated log messages.
  17562. * src/DownloadEngine.cc
  17563. (~DownloadEngine): Removed two asserts.
  17564. (waitData): Uncommented wfds. May be a bug fix.
  17565. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17566. * src/PeerInteractionCommand.h
  17567. (checkInactiveConnection): Removed.
  17568. * src/PeerInteractionCommand.cc
  17569. (executeInternal): Removed following function calls:
  17570. detectMessageFlooding(), checkLongTimePeerChoking and
  17571. checkInactiveConnection().
  17572. (checkInactiveConnection): Removed.
  17573. (detectMessageFlooding): Removed function call to
  17574. checkInactiveConnection().
  17575. * src/PeerMessageUtil.h
  17576. (createChokeMessage): New function. Overload.
  17577. (createUnchokeMessage): New function. Overload.
  17578. (createInterestedMessage): New function. Overload.
  17579. (createNotInterestedMessage): New function. Overload.
  17580. (createHaveMessage): New function. Overload.
  17581. (createBitfieldMessage): New function. Overload.
  17582. (createRequestMessage): New function. Overload.
  17583. (createCancelMessage): New function. Overload.
  17584. (createPieceMessage): New function. Overload.
  17585. (createKeepAliveMessage): New function. Overload.
  17586. * src/PeerMessageUtil.cc
  17587. (createChokeMessage): New function. Overload.
  17588. (createUnchokeMessage): New function. Overload.
  17589. (createInterestedMessage): New function. Overload.
  17590. (createNotInterestedMessage): New function. Overload.
  17591. (createHaveMessage): New function. Overload.
  17592. (createBitfieldMessage): New function. Overload.
  17593. (createRequestMessage): New function. Overload.
  17594. (createCancelMessage): New function. Overload.
  17595. (createPieceMessage): New function. Overload.
  17596. (createKeepAliveMessage): New function. Overload.
  17597. * src/SendMessageQueue.cc
  17598. (createRequestMessage): Use PeerMessageUtil.
  17599. (createCancelMessage): Use PeerMessageUtil.
  17600. (createPieceMessage): Use PeerMessageUtil.
  17601. (createHaveMessage): Use PeerMessageUtil.
  17602. (createChokeMessage): Use PeerMessageUtil.
  17603. (createUnchokeMessage): Use PeerMessageUtil.
  17604. (createInterestedMessage): Use PeerMessageUtil.
  17605. (createNotInterestedMessage): Use PeerMessageUtil.
  17606. (createBitfieldMessage): Use PeerMessageUtil.
  17607. (createKeepAliveMessage): Use PeerMessageUtil.
  17608. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17609. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17610. * src/PeerInteraction.h: New class.
  17611. * src/PeerInteraction.cc: New class.
  17612. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17613. Each peer message has its own class.
  17614. * src/PendingMessages.h: Removed.
  17615. * src/PendingMessages.cc: Removed. The sending process was moved to
  17616. each message class.
  17617. * src/RequestSlotMan.h: Removed.
  17618. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17619. SendMessageQueue.
  17620. * src/RequestMessage.h: New class.
  17621. * src/RequestMessage.cc: New class.
  17622. * src/CancelMessage.h: New class.
  17623. * src/CancelMessage.cc: New class.
  17624. * src/BitfieldMessage.h: New class.
  17625. * src/BitfieldMessage.cc: New class.
  17626. * src/ChokeMessage.h: New class.
  17627. * src/ChokeMessage.cc: New class.
  17628. * src/KeepAliveMessage.h: New class.
  17629. * src/KeepAliveMessage.cc: New class.
  17630. * src/PortMessage.h: New class.
  17631. * src/UnchokeMessage.h: New class.
  17632. * src/UnchokeMessage.cc: New class.
  17633. * src/PieceMessage.h: New class.
  17634. * src/PieceMessage.cc: New class.
  17635. * src/HaveMessage.h: New class.
  17636. * src/HaveMessage.cc: New class.
  17637. * src/BitfieldMessage.h: New class.
  17638. * src/BitfieldMessage.cc: New class.
  17639. * src/NotInterestedMessage.h: New class.
  17640. * src/NotInterestedMessage.cc: New class.
  17641. * src/InterestedMessage.h: New class.
  17642. * src/InterestedMessage.cc: New class.
  17643. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17644. (getSendMessageQueue): New function.
  17645. (setSendMessageQueue): New function.
  17646. * src/HandshakeMessage.cc: New class.
  17647. * src/PeerConnection.h (receiveMessage): Changed return value and
  17648. arguments.
  17649. (receiveHandshake): Changed return value and arguments.
  17650. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17651. here.
  17652. (receiveHandshake): Do not create handshake class here.
  17653. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17654. (piece): Removed.
  17655. (syncPiece): Removed.
  17656. (sendInterest): Removed.
  17657. (sendMessages): Removed.
  17658. (createRequestPendingMessage): Removed.
  17659. (checkPieceHash): Removed.
  17660. (erasePieceOnDisk): Removed.
  17661. (getNewPieceAndSendInterest): Removed.
  17662. (onGotNewPice): Removed.
  17663. (onGotWrongPiece): Removed.
  17664. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17665. Removed peerConnection, piece.
  17666. (~PeerInteractionCommand): Removed peerConnection.
  17667. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17668. (syncPiece): Moved to SendMessageQueue.
  17669. (decideChoking): Removed PendingMessage.
  17670. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17671. The action after receiving peer message was moved to each message
  17672. class.
  17673. (onGotNewPice): Moved to SendMessageQueue.
  17674. (onGotWrongPiece): Moved to SendMessageQueue.
  17675. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17676. (sendInterest): Moved to SendMessageQueue.
  17677. (createRequestPendingMessage): Removed.
  17678. (sendMessages): Moved to SendMessageQueue.
  17679. (onAbort): Use SendMessageQueue::abortPiece()
  17680. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17681. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17682. (checkPieceHash): Moved to SendMessageQueue.
  17683. (erasePieceOnDisk): Moved to SendMessageQueue.
  17684. * src/PeerMessageUtil.h
  17685. (createBitfieldMessage): Removed.
  17686. (createHaveMessage): Changed return value and arguments.
  17687. (createBitfieldMessage): Changed return value and arguments.
  17688. (createRequestCancelMessage): Removed.
  17689. (createPieceMessage): Changed return value and arguments.
  17690. (getShortIntParam): New function.
  17691. (checkIndex): Changed arguments.
  17692. (checkBegin): Changed arguments.
  17693. (checkLength): Changed arguments.
  17694. (checkPieceOffset): Removed.
  17695. (checkRange): New function.
  17696. (checkBitfield): Changed arguments.
  17697. (createPeerMessage): Removed.
  17698. (checkIntegrity): Removed.
  17699. (createHandshakeMessage): Changed arguments.
  17700. (createChokeMessage): New function.
  17701. (createUnchokeMessage): New function.
  17702. (createInterestedMessage): New function.
  17703. (createNotInterestedMessage): New function.
  17704. (createRequestMessage): New function.
  17705. (createCancelMessage): New function.
  17706. (createPortMessage): New function.
  17707. * src/PeerMessageUtil.cc
  17708. (createBitfieldMessage): Removed.
  17709. (createHaveMessage): Changed return value and arguments.
  17710. (createBitfieldMessage): Changed return value and arguments.
  17711. (createRequestCancelMessage): Removed.
  17712. (createPieceMessage): Changed return value and arguments.
  17713. (getShortIntParam): New function.
  17714. (checkIndex): Changed arguments.
  17715. (checkBegin): Changed arguments.
  17716. (checkLength): Changed arguments.
  17717. (checkPieceOffset): Removed.
  17718. (checkRange): New function.
  17719. (checkBitfield): Changed arguments.
  17720. (createPeerMessage): Removed.
  17721. (checkIntegrity): Removed.
  17722. (createHandshakeMessage): Changed arguments.
  17723. (createChokeMessage): New function.
  17724. (createUnchokeMessage): New function.
  17725. (createInterestedMessage): New function.
  17726. (createNotInterestedMessage): New function.
  17727. (createRequestMessage): New function.
  17728. (createCancelMessage): New function.
  17729. (createPortMessage): New function.
  17730. * src/PeerMessage.h
  17731. (id): Removed.
  17732. (index): Removed.
  17733. (begin): Removed.
  17734. (length): Removed.
  17735. (bitfield): Removed.
  17736. (bitfieldLength): Removed.
  17737. (block): Removed.
  17738. (blockLength): Removed.
  17739. (inProgress): New variable.
  17740. (cuid): New variable.
  17741. (peer): New variable.
  17742. (sendMessageQueue): New variable.
  17743. (logger): New variable.
  17744. (setBitfield): Removed.
  17745. (getBitfield): Removed.
  17746. (setBlock): Removed.
  17747. (getBlock): Removed.
  17748. (getBitfieldLength): Removed.
  17749. (getBlockLength): Removed.
  17750. (isInProgress): New function.
  17751. (toString): Made pure virtual.
  17752. (check): New function.
  17753. (send): New function.
  17754. (receivedAction): New function.
  17755. (getId): Made pure virtual.
  17756. (setId): Removed.
  17757. (getIndex): Removed.
  17758. (setIndex): Removed.
  17759. (getBegin): Removed.
  17760. (setBegin): Removed.
  17761. (getLength): Removed.
  17762. (setLength): Removed.
  17763. (getCuid): New function.
  17764. (setCuid): New function.
  17765. (getPeer): New function.
  17766. (setPeer): New function.
  17767. (getSendMessageQueue): New function.
  17768. (setSendMessageQueue): New function.
  17769. (ID): Removed.
  17770. * src/PeerMessage.cc
  17771. (setBitfield): Removed.
  17772. (setBlock): Removed.
  17773. (toString): Removed.
  17774. * src/TorrentMan.h
  17775. (getPieceLength): New function.
  17776. (getPieceLength): New function.
  17777. * src/SendMessageQueue.h
  17778. (REQUEST_TIME_OUT): New definition.
  17779. (RequestSlots): New definition.
  17780. (MessageQueue): New definition.
  17781. (requestSlotMan): Removed.
  17782. (pendingMessages): Removed.
  17783. (requestSlots): New variable.
  17784. (messageQueue): New variable.
  17785. (torrentMan): New variable.
  17786. (peerConnection): New variable.
  17787. (peer): New variable.
  17788. (piece): New variable.
  17789. (getNewPieceAndSendInterest): New function.
  17790. (createPeerMessage): New function.
  17791. (createHandshakeMessage): New function.
  17792. (send): Made private.
  17793. (setPeerMessageCommonProperty): New function.
  17794. (deleteAllRequestSlot): New function.
  17795. (deleteRequestMessageInQueue): New function.
  17796. (cancelAllRequest): Made private.
  17797. (cancelAllRequest): Made private.
  17798. (countRequestSlot): Made private.
  17799. (addPendingMessage): Removed.
  17800. (deletePendingPieceMessage): Removed.
  17801. (deletePendingRequestMessage): Removed.
  17802. (addMessage): New function.
  17803. (deletePieceMessageInQueue): New function.
  17804. (deleteTimeoutRequestSlot): Changed argument.
  17805. (deleteCompletedRequestSlot): Changed argument.
  17806. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17807. (getCorrespondingRequestSlot): New function.
  17808. (countPendingMessage): Removed.
  17809. (countMessageInQueue): New function.
  17810. (getTorrentMan): New function.
  17811. (getPeerConnection): New function.
  17812. (hasDownloadPiece): New function.
  17813. (getDownloadPiece): New function.
  17814. (setDownloadPiece): New function.
  17815. (syncPiece): New function.
  17816. (sendMessages): New function.
  17817. (sendNow): New function.
  17818. (trySendNow): New function.
  17819. (abortPiece): New function.
  17820. (sendHandshake): New function.
  17821. (receiveMessage): New function.
  17822. (receiveHandshake): New function.
  17823. (createRequestMessage): New function.
  17824. (createCancelMessage): New function.
  17825. (createPieceMessage): New function.
  17826. (createHaveMessage): New function.
  17827. (createChokeMessage): New function.
  17828. (createUnchokeMessage): New function.
  17829. (createInterestedMessage): New function.
  17830. (createNotInterestedMessage): New function.
  17831. (createBitfieldMessage): New function.
  17832. (createKeepAliveMessage): New function.
  17833. * src/SendMessageQueue.cc
  17834. (SendMessageQueue): Removed requestSlotMan.
  17835. Instantiated peerConnection here.
  17836. (~SendMessageQueue): Removed requestSlotMan.
  17837. Added deletion of peerConnection and the contents of messageQueue.
  17838. (send): Updated according to the change of messageQueue.
  17839. (addPendingMessage): Renamed to addMessage.
  17840. (addMessage): New function.
  17841. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17842. (deletePieceMessageInQueue): New function.
  17843. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17844. (deleteRequestMessageInQueue): New function.
  17845. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17846. here.
  17847. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17848. (...) was moved here.
  17849. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17850. moved here.
  17851. (deleteCompletedRequestSlot):
  17852. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17853. (getCorrespondingRequestSlot):
  17854. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17855. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17856. (countPendingMessage): Renamed to countMessageInQueue.
  17857. (countMessageInQueue): New function.
  17858. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17859. (receiveHandshake): New function.
  17860. (createHandshakeMessage): New function.
  17861. (receiveMessage): New function.
  17862. (createPeerMessage): New function.
  17863. (syncPiece): New function.
  17864. (getNewPieceAndSendInterest): New function.
  17865. (sendMessages): New function.
  17866. (sendNow): New function.
  17867. (trySendNow): New function.
  17868. (sendHandshake): New function.
  17869. (abortPiece): New function.
  17870. (getDownloadPiece): New function.
  17871. (getPeerMessageCommonProperty): New function.
  17872. (createRequestMessage): New function.
  17873. (createCancelMessage): New function.
  17874. (createPieceMessage): New function.
  17875. (createHaveMessage): New function.
  17876. (createChokeMessage): New function.
  17877. (createUnchokeMessage): New function.
  17878. (createInterestedMessage): New function.
  17879. (createNotInterestedMessage): New function.
  17880. (createBitfieldMessage): New function.
  17881. (createKeepAliveMessage): New function.
  17882. To add simple Content-Disposition support:
  17883. * src/HttpResponseCommand.h (determinFilename): New function.
  17884. * src/HttpResponseCommand.cc (executeInternal):
  17885. Use determinFilename(headers) instead of req->getFile() when comparing
  17886. filename.
  17887. (determinFilename): New function.
  17888. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17889. req->getFile().
  17890. (handleOtherEncoding): Use determinFilename(headers) instead of
  17891. req->getFile().
  17892. * src/Util.h (getContentDispositionFilename): New function.
  17893. * src/Util.cc (getContentDispositionFilename): New function.
  17894. * src/LogFactory.h (release): New function.
  17895. * src/LogFactory.cc (release): New function.
  17896. To fix a bug that causes out-of-bound exception when HTTP status
  17897. line is wrong:
  17898. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17899. size.
  17900. * src/common.h (Deleter): New class.
  17901. * src/SegmentMan.cc
  17902. (~SegmentMan): Added deletion of splitter and diskWriter.
  17903. * src/DownloadEngine.h
  17904. (Commands): Use deque.
  17905. (clearQueue): New function.
  17906. * src/DownloadEngine.cc
  17907. (~DownloadEngine): Added deletion of segmentMan.
  17908. (cleanQueue): New function.
  17909. * src/TorrentDownloadEngine.h
  17910. (TorrentDownloadEngine): The implementation was moved to
  17911. TorrentDownloadEngine.cc.
  17912. (~TorrentDownloadEngine): The implementation was moved to
  17913. TorrentDownloadEngine.cc.
  17914. * src/TorrentDownloadEngine.cc
  17915. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17916. * src/main.cc
  17917. (clearRequest): Removed.
  17918. (handler): Added deletion of e.
  17919. (torrentHandler): Added deletion of te.
  17920. (main): Do not share splitter.
  17921. Use Deleter instead of clearRequest.
  17922. Deletion of classes were updated.
  17923. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17924. * src/main.cc (main): Fixed typo.
  17925. * src/message.h: Fixed typo.
  17926. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17927. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17928. To add --select-file command-line option:
  17929. * src/Util.cc
  17930. (unfoldRange): New function.
  17931. (getNum): New function.
  17932. (unfoldSubRange): New function
  17933. * src/main.cc
  17934. (showUsage): Added help message.
  17935. (main): Added --select-file command-line option. Updated the layout of
  17936. file listing.
  17937. * src/common.h
  17938. (Integers): New definition.
  17939. * src/SocketCore.cc
  17940. (writeData): Removed timeout argument.
  17941. (readData): Removed timeout argument.
  17942. (peekData): Removed timeout argument.
  17943. * src/Socket.cc
  17944. (writeData): Removed timeout argument.
  17945. (readData): Removed timeout argument.
  17946. (peekData): Removed timeout argument.
  17947. * Release 0.4.1
  17948. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17949. To deploy upload rate based choking algorithm:
  17950. * src/PeerInteractionCommand.cc
  17951. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17952. peer currently used.
  17953. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17954. download completes. Simplified.
  17955. (receiveMessage): Updated.
  17956. * src/TorrentMan.h
  17957. (activePeers): New variable.
  17958. (addActivePeer): New function.
  17959. (getActivePeers): New function.
  17960. (deleteActivePeer): New function.
  17961. * src/TorrentMan.cc
  17962. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17963. * src/PeerAbstractCommand.cc
  17964. (onAbort): Use peer->resetStatus().
  17965. * src/main.cc
  17966. (PeerChokeCommand.h): Included.
  17967. (main): Added the instance of ChokingCommand to the command queue.
  17968. * src/Peer.h
  17969. (amChoking): Renamed from amChocking
  17970. (chokingRequired): New variable.
  17971. (optUnchoking): New variable.
  17972. (deltaUpload): New variable.
  17973. (deltaDownload): New variable.
  17974. (addDeltaUpload): New function.
  17975. (resetDeltaUpload): New function.
  17976. (addDeltaDownload): New function.
  17977. (resetDeltaDownload): New function.
  17978. (addPeerUpload): Added a call to addDeltaUpload.
  17979. (addPeerDownload): Added a call to addDeltaDownload.
  17980. * src/Peer.cc
  17981. (shouldBeChoking): Renamed from shouldChoke.
  17982. (resetStatus): New function.
  17983. * src/PeerChokeCommand.h: New class.
  17984. * src/PeerChokeCommand.cc: New class.
  17985. To add lazy upload speed limiter:
  17986. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17987. statistics calculation to TorrentDownloadEngine.
  17988. * src/TorrentConsoleDownloadEngine.cc
  17989. (sendStatistics): Renamed from printStatistics.
  17990. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17991. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17992. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17993. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17994. calculation.
  17995. (sendStatistics): New function as pure virtual function.
  17996. (getUploadSpeed): New function.
  17997. * src/TorrentDownloadEngine.cc
  17998. (initStatistics): New function.
  17999. (calculateSpeed): New function.
  18000. (calculateStatistics): New function.
  18001. * src/SendMessageQueue.h
  18002. (uploadLength): New variable.
  18003. (send): Added an argument.
  18004. (setUploadLimit): New function.
  18005. (getUploadLimit): New function.
  18006. * src/SendMessageQueue.cc
  18007. (send): Added upload speed limiter.
  18008. * src/prefs.h
  18009. (PREF_UPLOAD_LIMIT): New definition.
  18010. * src/PeerInteractionCommand.cc
  18011. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18012. * src/main.cc
  18013. (main): Added --upload-limit option
  18014. For bug fixes:
  18015. * src/main.cc
  18016. (showUsage): Corrected --listen-port help
  18017. Other changes:
  18018. * src/TorrentMan.cc
  18019. (getPeer): Return nullPeer if connection is grather than
  18020. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18021. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18022. To add some useful information to the exception message:
  18023. * src/SocketCore.cc : Updated messages.
  18024. * src/SegmentMan.cc :
  18025. * src/TorrentMan.cc : Updated messages.
  18026. * src/MultiDiskWriter.cc : Updated messages.
  18027. * src/Util.cc : Updated messages.
  18028. * src/AbstractDiskWriter.cc : Updated messages.
  18029. * src/PreAllocationDiskWriter.cc : Updated messages.
  18030. * src/message.cc : Added new messages. Updated some messages.
  18031. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18032. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18033. Updated threshold from 30 to 15.
  18034. * src/AbstractDiskWriter.h (filename): New variable.
  18035. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18036. (createFile): Assigned filename.
  18037. * src/main.cc: Updated the help message for http-auth-scheme.
  18038. * Release 0.4.0
  18039. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18040. To add TrackerUpdateCommand with which replaces
  18041. CompactTrackerResponseProcessor:
  18042. * src/TrackerWatcherCommand.h (req): Removed.
  18043. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18044. if the number of peer connections are less than 30.
  18045. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18046. * src/SegmentMan.h (diskWriter): New function.
  18047. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18048. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18049. (main): Use TrackerUpdateCommand.
  18050. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18051. (req): New variable.
  18052. (setTrackerResponseProcessor): Removed.
  18053. (getTrackerResponseProcessor): Removed.
  18054. (processTrackerResponse): Removed.
  18055. * src/DownloadEngine.h (diskWriter): Removed.
  18056. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18057. to torrentMan->processTrackerResponse().
  18058. To add Util::expandBuffer:
  18059. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18060. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18061. * src/Util.h (expandBuffer): New function.
  18062. To fix the bug that causes segmentation fault when "-l ." is specified
  18063. in command-line option:
  18064. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18065. (openFile): New function.
  18066. (closeFile): New function.
  18067. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18068. (~SimpleLogger): Call closeFile();
  18069. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18070. * src/main.cc (main): Added a check to see logger is configured
  18071. properly.
  18072. To enable HTTP authentication without specifying "--http-auth-scheme"
  18073. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18074. * src/HttpConnection.cc (createRequest): Send Authorization header
  18075. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18076. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18077. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18078. * src/Peer.cc (shouldChoke): Updated algorithm.
  18079. * src/message.h (EX_AUTH_FAILED): New definition.
  18080. (EX_FILE_OPEN): New definition.
  18081. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18082. if status == 401.
  18083. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18084. if req->isTorrent == true.
  18085. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18086. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18087. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18088. (createFile): Updated message.
  18089. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18090. To add a readout of estimated remaining time to normal HTTP/FTP
  18091. downloads:
  18092. * src/ConsoleDownloadEngine.h (startup): New variable.
  18093. (startupLength): New variable.
  18094. (isStartupLengthSet): New variable.
  18095. (avgSpeed): New variable.
  18096. (eta): New variable.
  18097. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18098. estimated remaining time.
  18099. (initStatistics): Initialized newly added variables.
  18100. (calculateStatistics): Calculate average speed and estimated remaining
  18101. time.
  18102. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18103. * src/TrackerDownloadCommand.h: Removed.
  18104. * src/TrackerDownloadCommand.cc: Removed.
  18105. * src/TrackerInitCommand.h: Removed.
  18106. * src/TrackerInitCommand.cc: Removed.
  18107. * src/TrackerUpdateCommand.h: Removed.
  18108. * src/TrackerUpdateCommand.cc: Removed.
  18109. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18110. url written in TrackerInitCommand was moved here. Do not create
  18111. tracker request command if torrentMan->trackers != 0.
  18112. * src/CompactTrackerResponseProcessor.h: New class.
  18113. * src/CompactTrackerResponseProcessor.cc: New class.
  18114. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18115. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18116. Decoupled TorrentDownloadEngine from this.
  18117. * src/SegmentMan.h (init): New function.
  18118. * src/SegmentMan.cc (init): New function.
  18119. * src/TorrentMan.h (responseProcessor): New variable.
  18120. (trackers): New variable.
  18121. (setTrackerResponseProcessor): New function.
  18122. (getTrackerResponseProcessor): New function.
  18123. (processTrackerResponse): New function.
  18124. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18125. (processTrackerResponse): New function.
  18126. * src/main.cc (main): Use ByteArrayDiskWriter and
  18127. CompactTrackerResponseProcessor.
  18128. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18129. processTrackerResponse().
  18130. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18131. readout.
  18132. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18133. which indicates download has completed.
  18134. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18135. (closeFile): fd >= 0, not fd > 0
  18136. * src/main.cc (main): Added short cut for show-files.
  18137. Added short cut for torrent-file.
  18138. Added new command-line option listen-port.
  18139. Updated i18n messages.
  18140. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18141. To add LogFactory which creates singleton logger:
  18142. * src/LogFactory.h: New class.
  18143. * src/LogFactory.cc: New class.
  18144. * src/Command.h (logger): New variable.
  18145. (Constructor): Use LogFactory.
  18146. * src/AbstractCommand.cc: Use Command::logger
  18147. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18148. Use LogFactory.
  18149. * src/SegmentSplitter.h : Made logger protected.
  18150. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18151. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18152. * src/DownloadEngine.h : Made logger protected.
  18153. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18154. * src/PeerInteractionCommand.cc : Use Command::logger.
  18155. * src/HttpResponseCommand.cc : Use Command::logger.
  18156. * src/SegmentMan.h : Made logger private.
  18157. * src/TorrentMan.h : Made logger private.
  18158. * src/TorrentMan.cc : Use LogFactory.
  18159. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18160. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18161. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18162. Use LogFactory.
  18163. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18164. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18165. Use LogFactory.
  18166. * src/DownloadCommand.cc : Use Command::logger.
  18167. * src/PeerAbstractCommand.cc : Use Command::logger.
  18168. * src/PeerListenCommand.cc : Use Command::logger.
  18169. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18170. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18171. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18172. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18173. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18174. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18175. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18176. Use LogFactory.
  18177. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18178. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18179. Use LogFactory.
  18180. * src/main.cc (main): Use LogFactory.
  18181. * src/DiskAdaptor.h (logger): New variable.
  18182. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18183. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18184. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18185. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18186. parameter to a tracker request.
  18187. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18188. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18189. * src/main.cc (setSignalHander): New function.
  18190. (main): Added a handler for SIGTERM.
  18191. (handler): Updated message.
  18192. (torrentHandler): Updated message.
  18193. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18194. * src/TorrentConsoleDownloadEngine.cc
  18195. (onPartialDownloadingCompletes): Renamed as
  18196. onSelectiveDownloadingCompletes.
  18197. (onSelectiveDownloadingCompletes): Updated message.
  18198. To add DiskAdaptor which abstract DiskWriter family:
  18199. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18200. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18201. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18202. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18203. MultiDiskAdaptor.h.
  18204. (readFileEntry): Changed its arguments.
  18205. (setup): setupDiskWriter is merged into this function.
  18206. (setupDiskWriter): Removed.
  18207. (setFileFilter): New function.
  18208. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18209. made in readFileEntry.
  18210. (getFilePath): Removed.
  18211. (getTempFilePath): Removed.
  18212. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18213. (fixFilename): Removed.
  18214. (copySingleFile): Removed.
  18215. (splitMultiFile): Removed.
  18216. (deleteTempFile): Removed.
  18217. (setFileEntriesToDownload): Removed.
  18218. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18219. (isSelectiveDownloadingMode): New function.
  18220. (setAllMultiFileRequestedState): Removed.
  18221. (finishPartialDownloadingMode): Renamed as
  18222. finishSelectiveDownloadingMode.
  18223. (finishSelectiveDownloadingMode): New function.
  18224. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18225. (getSelectedTotalLength): New function.
  18226. (onDownloadComplete): Use diskAdaptor.
  18227. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18228. (Range): Removed.
  18229. (setMultiFileEntries): Renamed as setFileEntries.
  18230. (setFileEntries): New function.
  18231. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18232. (pieceLength): New variable.
  18233. * src/main.cc (printDownloadCompeleteMessage): New function.
  18234. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18235. (main): Renamed torrent-show-files to show-files.
  18236. Rewritten file contents listing.
  18237. * src/TorrentMan.h (FileEntry): Removed.
  18238. (multiFileTopDir): Removed.
  18239. (multiFileEntries): Removed.
  18240. (diskWriter): Removed.
  18241. (diskAdaptor): New variable.
  18242. * src/DefaultDiskWriter.h (totalLength): New variable.
  18243. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18244. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18245. diskWriter.
  18246. * src/TorrentConsoleDownloadEngine.h
  18247. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18248. (partialTotalLength): Renamed as selectedTotalLength.
  18249. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18250. openExistingFile, otherwise call initAndOpenFile.
  18251. (closeFile): fd > 0, not fd != 0.
  18252. * src/DirectDiskAdaptor.h: New class.
  18253. * src/DirectDiskAdaptor.cc: New class.
  18254. * src/MultiDiskAdaptor.h: New class.
  18255. * src/MultiDiskAdaptor.cc: New class.
  18256. * src/CopyDiskAdaptor.h: New class.
  18257. * src/CopyDiskAdaptor.cc: New class.
  18258. * src/DiskAdaptor.h: New class.
  18259. * src/DiskAdaptor.cc: New class.
  18260. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18261. (PREF_SHOW_FILES): New definition.
  18262. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18263. To add the ability to download multi torrent into respective files
  18264. directly:
  18265. * src/DiskWriter.h (openFile): New function.
  18266. (seek): Removed.
  18267. * src/MultiDiskWriter.h: New class.
  18268. * src/MultiDiskWriter.cc: New class.
  18269. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18270. protected.
  18271. (openFile): New function.
  18272. * src/AbstractDiskWriter.cc (openFile): New function.
  18273. * src/prefs.h (V_FALSE): New definition.
  18274. (PREF_DIRECT_FILE_MAPPING): New definition.
  18275. * src/TorrentMan.h (setupDiskWriter): New function.
  18276. (setAllMultiFileRequestedState): New function.
  18277. (onDownloadComplete): New function.
  18278. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18279. (setupDiskWriter): New function.
  18280. (getFilePath): Updated.
  18281. (getTempFilePath): Updated.
  18282. (getSegmentFilePath): Updated.
  18283. (fixFilename): Updated.
  18284. (deleteTempFile): Updated.
  18285. (setAllMultiFileRequestedState): New function.
  18286. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18287. (finishPartialDownloadingMode): Reset requested flags.
  18288. (onDownloadComplete): New function.
  18289. * src/main.cc: Added --direct-file-mapping option.
  18290. Use TorrentMan::setupDiskWriter().
  18291. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18292. onDownloadComplete().
  18293. To fix ETA bug:
  18294. * src/Util.h (difftvsec): New function.
  18295. * src/Util.cc (difftvsec): New function.
  18296. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18297. type of "elapsed" instead of long long int.
  18298. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18299. The updates of statistics takes place every 1 seconds.
  18300. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18301. (calculateSpeed): Changed its argument signature.
  18302. * src/PeerMessage.cc (toString): Fixed message.
  18303. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18304. To print ETA:
  18305. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18306. completion handling when dealing with
  18307. TorrentMan::isPartialDownloadingMode() == true.
  18308. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18309. New function.
  18310. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18311. (sessionDownloadLength): New variable.
  18312. (avgSpeed): New variable.
  18313. (eta): New variable.
  18314. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18315. new variables: eta, avgSpeed, startup.
  18316. (calculateSpeed): Calculate average speed and ETA.
  18317. (printStatistics): Added ETA.
  18318. * src/Util.h (secfmt): New function.
  18319. * src/Util.cc (secfmt): New function.
  18320. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18321. To detect "keep alive" flooding:
  18322. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18323. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18324. variable: keepAliveCount.
  18325. (detectMessageFlooding): Added "keep alive" flooding detection.
  18326. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18327. received.
  18328. To add the ability to download only specified files in multi-file
  18329. torrent:
  18330. * src/BitfieldMan.h (filterBitfield): New variable.
  18331. (filterEnabled): New variable.
  18332. (setFilterBit): New function.
  18333. (enableFilter): New function.
  18334. (disableFilter): New function.
  18335. (isFilterEnabled): New function.
  18336. (getFilteredTotalLength): New function.
  18337. (getCompletedLength): New function.
  18338. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18339. filterBitfield, filterEnabled.
  18340. (CopyConstructor): Added filterBitfield and filterEnabled.
  18341. (operator==): Added filterBitfield and filterEnabled.
  18342. (Destructor): Added filterBitfield.
  18343. (getMissingIndex): Use filterBitfield.
  18344. (getMissingUnusedIndex): Use filterBitfield.
  18345. (getFirstMissingUnusedIndex): Use filterBitfield.
  18346. (getFirstMissingUnusedIndex): Use filterBitfield.
  18347. (getAllMissingIndexes): Use filterBitfield.
  18348. (countMissingBlock): Use filterBitfield.
  18349. (countBlock): Use filterBitfield.
  18350. (setBitInternal): Added new argument on.
  18351. (setUseBit): Use setBitInternal.
  18352. (unsetUseBit): Use setBitInternal.
  18353. (setBit): Use setBitInternal.
  18354. (unsetBit): Use setBitInternal.
  18355. (isAllBitSet): Use filterBitfield.
  18356. (setFilterBit): New function.
  18357. (addFilter): New function.
  18358. (enableFilter): New function.
  18359. (disableFilter): New function.
  18360. (clearFilter): New function.
  18361. (isFilterEnabled): New function.
  18362. (getFilteredTotalLength): New function.
  18363. (getCompletedLength): New function.
  18364. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18365. Initalized newly added variables.
  18366. [FileEntry](offset): New variable.
  18367. [FileEntry](extracted): New variable.
  18368. [FileEntry](requested): New variable.
  18369. (readFileEntry): New function.
  18370. (option): New variable.
  18371. (splitMultiFile): Removed const qualifier.
  18372. (fixFilename): Removed const qualifier.
  18373. (readFileEntryFromMetaInfoFile): New function.
  18374. (finishPartialDownloadingMode): New function.
  18375. (isPartialDownloadingMode): New function.
  18376. (setFileEntriesToDownload): New function.
  18377. (getCompletedLength): New function.
  18378. (getPartialTotalLength): New function.
  18379. * src/TorrentMan.cc (readFileEntry): New function.
  18380. (setup): Use readFileEntry. If no-preallocation option is specified,
  18381. use DefaultDiskWriter.
  18382. (readFileEntryFromMetaInfoFile): New function.
  18383. (fixFilename): Removed const qualifier.
  18384. (splitMultiFile): Removed const qualifier.
  18385. (setFileEntriesToDownload): New function.
  18386. (isPartialDownloadingMode): New function.
  18387. (finishPartialDownloadingMode): New function.
  18388. (getCompletedLength): New function.
  18389. (getPartialTotalLength): New function.
  18390. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18391. New variable.
  18392. (partialTotalLength): New variable.
  18393. (downloadLength): New variable.
  18394. (totalLength): New variable.
  18395. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18396. Added log.
  18397. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18398. partialTotalLength, downloadLength, totalLength.
  18399. (calculate): Calculate downloadLength and totalLength.
  18400. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18401. * src/main.cc (addCommand): Changed argument signature.
  18402. (main): Added new variable: args. Added new option "torrent-show-files"
  18403. "no-preallocation". Usage is not updated yet.
  18404. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18405. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18406. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18407. Attempt to add the ability to listing file entries in a .torrent file.
  18408. This feature is not yet complete.
  18409. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18410. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18411. (getName): New function.
  18412. * src/TorrentMan.h (getMultiFileEntries): New function.
  18413. (getName): New function.
  18414. * src/main.cc (main): Use above 2 funtion.
  18415. * Release 0.3.2
  18416. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18417. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18418. (detectMessageFlooding): Updated threshold value.
  18419. (checkLongTimePeerChoking): Updated timeout value.
  18420. (getNewPieceAndSendInterest): Added debug log.
  18421. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18422. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18423. (getPeer): Updated.
  18424. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18425. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18426. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18427. is localhost.
  18428. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18429. * src/PendingMessage.cc (processMessage): Not to send piece message
  18430. if peer is not interested in the pieces localhost has.
  18431. * src/Peer.cc (shouldChoke): Updated.
  18432. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18433. * src/Util.cc (isPowerOf): New function.
  18434. * src/Util.h (isPowerOf): New function.
  18435. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18436. whether or not it is power of 2.
  18437. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18438. Added new class SendMessageQueue that includes PendingMessages and
  18439. RequestSlotMan.
  18440. * src/SendMessageQueue.h: New class.
  18441. * src/SendMessageQueue.cc: New class.
  18442. * src/PendingMessage.h: Added new member variable blockIndex and its
  18443. accessors.
  18444. (createRequestMessage): Updated.
  18445. * src/PendingMessage.cc (createRequestMessage): Updated.
  18446. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18447. SendMessageQueue.
  18448. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18449. (receiveMessage): Updated with SendMessageQueue.
  18450. (deletePendingPieceMessage): Removed.
  18451. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18452. (sendInterest): Updated with SendMessageQueue.
  18453. (createRequestPendingMessage): Updated with SendMessageQueue.
  18454. (sendMessages): Updated with SendMessageQueue.
  18455. (onAbort): Updated with SendMessageQueue.
  18456. (keepAlive): Updated with SendMessageQueue.
  18457. (beforeSocketCheck): Updated SendMessageQueue.
  18458. * src/PeerInteractionCommand (sendMessages): Shuffle
  18459. missingBLockIndexes before using it.
  18460. Added its own timeout for peer connection.
  18461. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18462. setter.
  18463. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18464. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18465. Added setTimeout() call.
  18466. (executeInternal): Added setTimeout() call.
  18467. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18468. Added timeout.
  18469. (isTimeoutDetected): Updated.
  18470. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18471. option.
  18472. Added *simple* message flooding checker.
  18473. * src/PeerInteractionCommand.cc (executeInternal):
  18474. Added detectMessageFlooding() call.
  18475. (detectMessageFlooding): New function.
  18476. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18477. (beforeSocketCheck): Added detectMessageFlooding() call.
  18478. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18479. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18480. Removed deletePendingPieceMessage(), getRequestSlot(),
  18481. deleteRequestSlot(), deleteAllRequestSlot().
  18482. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18483. Added checkLongTimePeerChoking() call.
  18484. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18485. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18486. if duplicate == false.
  18487. The parameter "uploaded" and "downloaded" in the tracker request are
  18488. the size since the client sent the "started" event to the tracker.
  18489. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18490. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18491. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18492. getSessionDownloadedSize(), getSessionUploadedSize().
  18493. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18494. getSessionUploadedSize() instead of getDownloadedSize(),
  18495. getUploadedSize().
  18496. * src/PendingMessage.cc (processMessage): Do not send request message
  18497. if the peer is choking the client.
  18498. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18499. less than interval.
  18500. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18501. * configure.in: Added gnutls support. Added several CPP macros.
  18502. * m4/openssl.m4: Added.
  18503. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18504. readData(), peekData(). Added gnutls support.
  18505. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18506. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18507. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18508. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18509. Instead, added a check for whether setup method has executed
  18510. successfully.
  18511. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18512. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18513. * src/Makefile.am: Updated.
  18514. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18515. using whether OpenSSL or gcrypt, depending on the result of configure
  18516. script.
  18517. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18518. messageDigest.h.
  18519. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18520. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18521. Fixed memory leak.
  18522. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18523. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18524. Removed instantiation of TrackerInitCommand. Instead,
  18525. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18526. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18527. ENABLE_SSL.
  18528. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18529. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18530. If a piece is already acquired by another command, delete the request
  18531. slots for the piece.
  18532. * src/TrackerUpdateCommand.cc (execute):
  18533. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18534. Added a check whether peer list is null.
  18535. Fixed the bug that causes sending completed event to the tracker
  18536. several times.
  18537. * src/TrackerInitCommand.cc (execute):
  18538. Fixed the bug that causes sending completed event to the tracker
  18539. several times.
  18540. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18541. by using messageDigest.h.
  18542. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18543. * PeerConnection.cc: Replaced log message "keep-alive" with
  18544. "keep alive".
  18545. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18546. localhost long time.
  18547. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18548. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18549. at most 100 failure entry from the list. If with duplicate = false,
  18550. MAX_PEER_LIST is not checked.
  18551. * PeerListenCommand.cc: Fixed the argument order of log message.
  18552. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18553. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18554. Added warn().
  18555. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18556. Implemented warn().
  18557. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18558. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18559. * Request.h: Added AFTER_COMPLETED event.
  18560. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18561. instead of downloaded size and progress(%) after download completes.
  18562. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18563. message to the peer if it is interested in what localhost has
  18564. downloaded.
  18565. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18566. destination instead of just renaming it.
  18567. * TorrentMan.cc: Added deleteTempFile().
  18568. * PeerAbstractCommand.cc: do not stop execution after download
  18569. completes. This makes localhost a seeder.
  18570. * Util.{h,cc}: Added fileCopy().
  18571. * PeerListenCommand.cc: do not stop execution after download completes.
  18572. This makes localhost a seeder.
  18573. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18574. Added TorrentMan::deleteTempFile() to torrentHandler.
  18575. Initialized the variable dir as ".".
  18576. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18577. Deleted renameSingleFile().
  18578. Added copySingleFile(), deleteTempFile().
  18579. * DownloadEngine.h: Added virtual function afterEachIteration().
  18580. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18581. in onEndOfRun() to afterEachIteration().
  18582. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18583. true.
  18584. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18585. In rangedFileCopy(), added try-catch block to properly close file
  18586. descriptors.
  18587. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18588. Added afterEachIteration(), isFilenameFixed().
  18589. * Peer.cc: Changed choking strategy.
  18590. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18591. * TrackerInitCommand.cc: Send completed event only once.
  18592. * DownloadEngine.cc: Added a call to afterEachIteration().
  18593. * TrackerUpdateCommand.cc: Do not stop execution after download
  18594. completes.
  18595. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18596. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18597. received from a tracker.
  18598. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18599. Decreased the number of failure peers to delete to 0(just comment out
  18600. the line).
  18601. * Release 0.3.1
  18602. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18603. * PeerInteractionCommand.cc: added a call to
  18604. TorrentMan::unadvertisePiece in Destructor.
  18605. * PeerInteractionCommand.cc: make have message sent immediately
  18606. if the size of pending message queue is zero.
  18607. * TorrentMan.cc: set the maximum size of peer list to 250.
  18608. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18609. to deque.
  18610. * Util.cc: fixed rangedFileCopy.
  18611. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18612. to Constructor. Also, moved digest cleanup to Destructor.
  18613. * MetaFileUtil.cc: fixed memory leak
  18614. * replaced std::vector with std::deque.
  18615. * AbstractCommand.cc: casted timeout value to long long int.
  18616. * ChunkedEncoding.cc: fixed memory leak.
  18617. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18618. * SleepCommand.cc: casted timeout value to long long int.
  18619. * Data.cc: fixed memory leak.
  18620. * Data.cc: fixed toLLInt().
  18621. * BitfieldMan.cc: fixed memory leak.
  18622. * TorrentMan.cc: initialized storeDir to ".".
  18623. * TorrentMan.cc: fixed memory leak.
  18624. * TorrentMan.cc: corrected file paths of splitted files.
  18625. * PeerAbstractCommand.cc: casted timeout to long long int.
  18626. * main.cc: added delete(req) and delete(te->diskWriter).
  18627. * RequestSlot.cc: casted timeout value to long long int.
  18628. * Request.cc: fixed memory leak.
  18629. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18630. have the piece.
  18631. * Peer.{h,cc}: added hasPiece(int index).
  18632. * main.cc: corrected addCommand.
  18633. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18634. * BitTorrent protocol support added.
  18635. * Release 0.3.0
  18636. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18637. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18638. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18639. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18640. decoding did not work properly.
  18641. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18642. * DownloadEngine.h: included sys/time.h
  18643. * DownloadEngine.cc: remove sys/time.h
  18644. * Makefile.am (SUBDIRS): Add intl.
  18645. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18646. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18647. * main.cc: correct help message for --http-auth-scheme.
  18648. * main.cc: changed e-mail address for bug reports.
  18649. * ja.po: added japanese translation.
  18650. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18651. * SimpleLogger.cc: flush log file instead of stdout.
  18652. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18653. * main.cc: Fixed command-line option: max-tries
  18654. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18655. does not equal to seg.sp.
  18656. * DownloadCommand.cc: If EOF is got from the server and the total size
  18657. of file is not zero, then throw DlRetryEx.
  18658. * main.cc: Set the minium value of min-segment-size to 1024.
  18659. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18660. fails because of a regression since 0.2.0 release.
  18661. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18662. * HttpConnection.cc:
  18663. * common.h: defined the user agent name as macro
  18664. * DownloadEngine.{h, cc}:
  18665. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18666. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18667. * main.cc: Download complete/abort message is now generated by main.
  18668. * Makefile.am (SUBDIRS): Add m4.
  18669. (ACLOCAL_AMFLAGS): New variable.
  18670. (EXTRA_DIST): New variable.
  18671. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18672. * gettext: added gettext functionality
  18673. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18674. * AbstractCommand.cc:
  18675. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18676. unregister its cuid from SegmentMan.
  18677. * DownloadEngine.cc: .aria2 file was written when a downloading
  18678. failed with errors.
  18679. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18680. Added "User-Agent" header to CONNECT proxy request.
  18681. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18682. properly.
  18683. * Logger.h:
  18684. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18685. * ChunkedEncoding.cc: Added #include directive for strings.h
  18686. * Release 0.2.1
  18687. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18688. * Util.{h,cc}: added startsWith().
  18689. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18690. Util::endsWith().
  18691. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18692. * common.h: added #include directive of limit.h.
  18693. * DownloadEngine.cc: added #include directive of sys/time.h and
  18694. algorithm.
  18695. * Exception.h: added #include directive of stdio.h.
  18696. * AbstractCommand.h: added #include directive of sys/time.h.
  18697. * DownloadCommand.h: added #include directive of sys/time.h.
  18698. * *.h: added #include directive of common.h to all base classes.
  18699. subclasses' one was removed.
  18700. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18701. does not define these macros.
  18702. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18703. * Release 0.2.0
  18704. * main.cc:
  18705. * HttpInitiateConnectionCommand.{h,cc}:
  18706. * prefs.h:
  18707. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18708. We can now use GET command in http proxy.
  18709. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18710. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18711. that splits slowest segment of SegmentMan::commands vector.
  18712. This is the default split algorithm of aria2.
  18713. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18714. that splits first segment of SegmentMan::commands vector.
  18715. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18716. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18717. * Segment.h:
  18718. * SegmentMan.cc: Added speed field to Segment.h
  18719. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18720. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18721. * message.h: Change file size related %d to %lld.
  18722. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18723. * FtpInitiateConnectionCommand.{h,cc}:
  18724. * FtpNegotiationCommand.{h,cc}:
  18725. * FtpDownloadCommand.{h,cc}:
  18726. * FtpConnection.{h,cc}: Added FTP support
  18727. * SimpleLogger.cc: Log message now includes time information.
  18728. * main.cc: The value of --http-auth-scheme option is chagned from
  18729. 'BASIC' to 'basic'
  18730. * main.cc: Added --timeout command-line option.
  18731. * main.cc: Added --min-segment-size command-line option.
  18732. * main.cc: Added --max-retries command-line option.
  18733. * prefs.h: option string constants are now defined in prefs.h
  18734. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18735. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18736. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18737. with version 0.1.0's one.
  18738. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18739. * configure.in: Added --enable-ssl option to configure script.
  18740. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18741. cannot permit absoluteURI as Request-URI.
  18742. * HttpConnection.cc: Added Referer support.
  18743. * main.cc: Added referer command-line option.
  18744. * main.cc: Added rety-wait command-line option.
  18745. * Exception.h: Fixed formating bug in Exception::setMsg()
  18746. * SocketCore.{h,cc}:
  18747. * Socket.{h, cc}:
  18748. * Request.cc:
  18749. * InitiateConnectionCommandFactory.cc:
  18750. * HttpRequestCommand.cc: Added HTTPS support.
  18751. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18752. for SocketCore.
  18753. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18754. size is wrong
  18755. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18756. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18757. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18758. * Release 0.1.0