ChangeLog 656 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090
  1. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Mentioned about pkg-config
  3. * README
  4. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Fixed typo. Referred --index-out option in BitTorrent notes.
  6. * README
  7. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Store all addresses found by getifaddrs() and getaddrinfo(). In
  9. bind, try all addresses until success
  10. * src/SocketCore.cc
  11. * src/SocketCore.h
  12. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Updated po templates.
  14. * po/aria2.pot
  15. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Bump up version number to 1.7.0
  17. * configure.ac
  18. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Fixed compile error if ENABLE_BITTORRENT is undefined.
  20. * src/DefaultPieceStorage.cc
  21. * src/DefaultPieceStorage.h
  22. * src/PieceStorage.h
  23. * src/UnknownLengthPieceStorage.cc
  24. * src/UnknownLengthPieceStorage.h
  25. * test/MockPieceStorage.h
  26. * test/ProtocolDetectorTest.cc
  27. * test/XmlRpcMethodTest.cc
  28. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Documented in man page that if getifaddrs() is missing,
  30. --interface option doesn't accept interface name.
  31. * doc/aria2c.1.txt
  32. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  34. * src/DefaultBtAnnounce.cc
  35. * src/DefaultBtAnnounce.h
  36. * test/DefaultBtAnnounceTest.cc
  37. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed the bug that connection is always dropped if handshake
  39. message in extension protocol don't have metadata_size.
  40. src/HandshakeExtensionMessage.cc
  41. * src/HandshakeExtensionMessage.cc
  42. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  44. text saying DHT is recommended when Magnet URI is provided.
  45. * doc/aria2c.1.txt
  46. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  48. URI is supplied. Notify user that they should consider enabling
  49. DHT if they use Magnet URI.
  50. * src/RequestGroup.cc
  51. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Added --disable-ipv6 option to disable IPv6.
  53. * doc/aria2c.1.txt
  54. * src/InitiateConnectionCommand.cc
  55. * src/NameResolver.cc
  56. * src/NameResolver.h
  57. * src/OptionHandlerFactory.cc
  58. * src/main.cc
  59. * src/prefs.cc
  60. * src/prefs.h
  61. * src/usage_text.h
  62. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Updated usage text for --bt-prioritize-piece option.
  64. * doc/aria2c.1.txt
  65. * src/usage_text.h
  66. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. In configure script, if --with-PACKAGE and --enable-FEATURE are
  68. given and PACKAGE is missing in the system or FEATURE cannot be
  69. enabled, print error message and stop the script.
  70. * configure.ac
  71. * m4/aria2_arg.m4
  72. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Halt metadata download immediately when metadata download is done.
  74. Don't wait unresponsive tracker.
  75. * src/ByteArrayDiskWriter.h
  76. * src/DefaultBtInteractive.cc
  77. * src/DefaultExtensionMessageFactory.cc
  78. * src/DefaultExtensionMessageFactory.h
  79. * src/PeerInteractionCommand.cc
  80. * src/UTMetadataDataExtensionMessage.cc
  81. * src/UTMetadataDataExtensionMessage.h
  82. * src/UTMetadataRequestExtensionMessage.cc
  83. * test/UTMetadataDataExtensionMessageTest.cc
  84. * test/UTMetadataRequestExtensionMessageTest.cc
  85. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Documented --interface option in man page.
  87. * doc/aria2c.1.txt
  88. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Try resolved address in the order received from the resolver.
  90. * src/DNSCache.h
  91. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Added debug logs.
  93. * src/SocketCore.cc
  94. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Fixed type of tail to uint64_t
  96. * src/util.cc
  97. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Added --interface option. This feature binds sockets to given
  99. interface. You can specify interface name, IP address and
  100. hostname.
  101. * configure.ac
  102. * src/OptionHandlerFactory.cc
  103. * src/SocketCore.cc
  104. * src/SocketCore.h
  105. * src/main.cc
  106. * src/message.h
  107. * src/prefs.cc
  108. * src/prefs.h
  109. * src/usage_text.h
  110. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Updated man page for bt-prioritize-piece option in -i list.
  112. * doc/aria2c.1.txt
  113. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Added bt-prioritize-piece option to -i list.
  115. * src/download_helper.cc
  116. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Removed --http-auth-scheme option from man page.
  118. * doc/aria2c.1.txt
  119. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Removed --http-auth-scheme option since it doesn't do nothing.
  121. * src/OptionHandlerFactory.cc
  122. * src/prefs.cc
  123. * src/prefs.h
  124. * src/usage_text.h
  125. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Adjusted the number of peer info which get_peers reply message can
  127. carry.
  128. * src/DHTGetPeersReplyMessage.cc
  129. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Added extension_message_test_helper.h to aria2c_SOURCES.
  131. * test/Makefile.am
  132. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Documented --bt-prioritize-piece option in man page.
  134. * doc/aria2c.1.txt
  135. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Added option --bt-prioritize-piece. This option instruct aria2 to
  137. try to download first and last pieces of each file first. The
  138. argument can contain 2 keywords:head and tail. To include both
  139. keywords, they must be separated by comma. These keywords can take
  140. one parameter, SIZE. For example , if head=SIZE is specified,
  141. pieces in the range of first SIZE bytes of each file get higher
  142. priority. tail=SIZE means the range of last SIZE bytes of each
  143. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  144. * src/DefaultPieceStorage.h
  145. * src/Makefile.am
  146. * src/OptionHandlerFactory.cc
  147. * src/OptionHandlerImpl.h
  148. * src/PriorityPieceSelector.cc
  149. * src/PriorityPieceSelector.h
  150. * src/RequestGroup.cc
  151. * src/prefs.cc
  152. * src/prefs.h
  153. * src/usage_text.h
  154. * src/util.cc
  155. * src/util.h
  156. * test/Makefile.am
  157. * test/MockPieceSelector.h
  158. * test/PriorityPieceSelectorTest.cc
  159. * test/UtilTest.cc
  160. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Fixed typo
  162. * src/HttpRequest.h
  163. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. In Magnet URI with tr parameter, put each announce URI in separate
  165. tier.
  166. * src/bittorrent_helper.cc
  167. * test/BittorrentHelperTest.cc
  168. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Renamed ExtensionMessage::getBencodedData() as
  170. ExtensionMessage::getPayload()
  171. * src/BtExtendedMessage.cc
  172. * src/ExtensionMessage.h
  173. * src/HandshakeExtensionMessage.cc
  174. * src/HandshakeExtensionMessage.h
  175. * src/UTMetadataDataExtensionMessage.cc
  176. * src/UTMetadataDataExtensionMessage.h
  177. * src/UTMetadataRejectExtensionMessage.cc
  178. * src/UTMetadataRejectExtensionMessage.h
  179. * src/UTMetadataRequestExtensionMessage.cc
  180. * src/UTMetadataRequestExtensionMessage.h
  181. * src/UTPexExtensionMessage.cc
  182. * src/UTPexExtensionMessage.h
  183. * test/HandshakeExtensionMessageTest.cc
  184. * test/MockExtensionMessage.h
  185. * test/UTMetadataDataExtensionMessageTest.cc
  186. * test/UTMetadataRejectExtensionMessageTest.cc
  187. * test/UTMetadataRequestExtensionMessageTest.cc
  188. * test/UTPexExtensionMessageTest.cc
  189. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Updated man page for BitTorrent Magnet URI.
  191. * doc/aria2c.1.txt
  192. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Call DownloadContext::setOwnerRequestGroup() in
  194. RequestGroup::setDownloadContext().
  195. * src/BtDependency.cc
  196. * src/RequestGroup.cc
  197. * src/RequestGroup.h
  198. * src/download_helper.cc
  199. * test/DefaultBtMessageDispatcherTest.cc
  200. * test/DefaultExtensionMessageFactoryTest.cc
  201. * test/HandshakeExtensionMessageTest.cc
  202. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  204. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  205. from metadata, use new metadata2Torrent() function.
  206. * src/BtDependency.cc
  207. * src/UTMetadataPostDownloadHandler.cc
  208. * src/bittorrent_helper.cc
  209. * src/bittorrent_helper.h
  210. * test/BittorrentHelperTest.cc
  211. * test/BtDependencyTest.cc
  212. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Use createRequestGroupForUri to create the download for torrent
  214. file.
  215. * src/Metalink2RequestGroup.cc
  216. * test/Metalink2RequestGroupTest.cc
  217. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Fixed typo
  219. * src/DownloadContext.h
  220. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Use createRequestGroupForBitTorrent()
  222. * src/BtPostDownloadHandler.cc
  223. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Added remove().
  225. * src/Option.cc
  226. * src/Option.h
  227. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Removed options which is only valid for URIs specified in
  229. command-line. If they are left, because op is used as a template
  230. for new RequestGroup(such as created in XML-RPC command,
  231. BtPostDownloadHandler etc), they causes unintentional effect.
  232. * src/main.cc
  233. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Refer to option value of PREF_OUT only in download_helper.
  235. * src/FtpNegotiationCommand.cc
  236. * src/HttpResponseCommand.cc
  237. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  239. * src/download_helper.cc
  240. * src/download_helper.h
  241. * src/XmlRpcMethodImpl.cc
  242. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Updated man page for changeOption XML-RPC method.
  244. * doc/aria2c.1.txt
  245. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Added --bt-max-peers option to changeOption XML-RPC method.
  247. * src/XmlRpcMethod.cc
  248. * src/XmlRpcMethodImpl.cc
  249. * test/XmlRpcMethodTest.cc
  250. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  252. * test/XmlRpcMethodTest.cc
  253. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Removed redundant DownloadContext::hasAttribute(...) calls.
  255. * src/ConsoleStatCalc.cc
  256. * src/RequestGroup.cc
  257. * src/XmlRpcMethodImpl.cc
  258. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Changed the number of tracker request attempt from 5 to 2.
  260. * src/TrackerWatcherCommand.cc
  261. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Use host and protocol in original URI, because URI selector
  263. selects URI based on original URI, not redirected one.
  264. * src/Request.cc
  265. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Fixed the bug which causes segmentation fault with tellWaiting
  267. XML-RPC method when BitTorrent download is waiting. The key of
  268. BtRegistry is changed from info hash to GID, because it is
  269. registered per RequestGroup, not info hash.
  270. * src/BtRegistry.cc
  271. * src/BtRegistry.h
  272. * src/BtSetup.cc
  273. * src/ConsoleStatCalc.cc
  274. * src/InitiatorMSEHandshakeCommand.cc
  275. * src/PeerInitiateConnectionCommand.cc
  276. * src/PeerInteractionCommand.cc
  277. * src/PeerInteractionCommand.h
  278. * src/PeerReceiveHandshakeCommand.cc
  279. * src/RequestGroup.cc
  280. * src/XmlRpcMethodImpl.cc
  281. * test/BtRegistryTest.cc
  282. * test/XmlRpcMethodTest.cc
  283. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Updated man page for changeOption XML-RPC method.
  285. * doc/aria2c.1.txt
  286. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  288. method.
  289. * src/XmlRpcMethod.cc
  290. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Documented about BitTorrent Magnet URI in man page.
  292. * doc/aria2c.1.txt
  293. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Fixed the bug that trackers in BitTorrent Magnet URI are not
  295. inherited to generated RequestGroup.
  296. * src/UTMetadataPostDownloadHandler.cc
  297. * test/UTMetadataPostDownloadHandlerTest.cc
  298. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Prepended "[METADATA]" before dn.
  300. * src/bittorrent_helper.cc
  301. * test/BittorrentHelperTest.cc
  302. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Rewritten Magnet URI parser.
  304. * src/Makefile.am
  305. * src/ProtocolDetector.cc
  306. * src/bittorrent_helper.cc
  307. * src/bittorrent_helper.h
  308. * src/download_helper.cc
  309. * src/magnet.cc
  310. * src/magnet.h
  311. * test/BittorrentHelperTest.cc
  312. * test/MagnetTest.cc
  313. * test/Makefile.am
  314. * test/ProtocolDetectorTest.cc
  315. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Use hton64
  317. * src/base32.cc
  318. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Added Base32 encoded BitTorrent Magnet Link support.
  320. * src/Makefile.am
  321. * src/base32.cc
  322. * src/base32.h
  323. * src/bittorrent_helper.cc
  324. * test/Base32Test.cc
  325. * test/BittorrentHelperTest.cc
  326. * test/Makefile.am
  327. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Added BitTorrent Magnet Link support. Base32 encoded link is not
  329. supported yet. Fixed typo in method name in RequestGroup. In
  330. metadataGetMode, don't show "Your share ratio was ..." message.
  331. * src/DefaultBtInteractive.cc
  332. * src/DefaultBtInteractive.h
  333. * src/DownloadHandlerFactory.cc
  334. * src/DownloadHandlerFactory.h
  335. * src/HandshakeExtensionMessage.cc
  336. * src/Makefile.am
  337. * src/Metalink2RequestGroup.cc
  338. * src/PeerInteractionCommand.cc
  339. * src/RequestGroup.cc
  340. * src/RequestGroup.h
  341. * src/UTMetadataPostDownloadHandler.cc
  342. * src/UTMetadataPostDownloadHandler.h
  343. * src/download_helper.cc
  344. * test/HandshakeExtensionMessageTest.cc
  345. * test/Makefile.am
  346. * test/UTMetadataPostDownloadHandlerTest.cc
  347. * test/UTMetadataRejectExtensionMessageTest.cc
  348. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. In metadataGetMode, don't show SEEDING.
  350. * src/ConsoleStatCalc.cc
  351. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Fixed ut_metadata data handling. Implemented
  353. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  354. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  355. metadata_size is received.
  356. * src/DefaultExtensionMessageFactory.cc
  357. * src/DefaultExtensionMessageFactory.h
  358. * src/HandshakeExtensionMessage.cc
  359. * src/HandshakeExtensionMessage.h
  360. * src/UTMetadataDataExtensionMessage.cc
  361. * src/UTMetadataDataExtensionMessage.h
  362. * src/UTMetadataRequestExtensionMessage.cc
  363. * src/UTMetadataRequestFactory.cc
  364. * src/UTMetadataRequestFactory.h
  365. * src/UTMetadataRequestTracker.cc
  366. * src/UTMetadataRequestTracker.h
  367. * test/DefaultExtensionMessageFactoryTest.cc
  368. * test/HandshakeExtensionMessageTest.cc
  369. * test/MockBtMessage.h
  370. * test/UTMetadataDataExtensionMessageTest.cc
  371. * test/UTMetadataRequestExtensionMessageTest.cc
  372. * test/UTMetadataRequestFactoryTest.cc
  373. * test/UTMetadataRequestTrackerTest.cc
  374. * test/extension_message_test_helper.h
  375. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Drop connection if ut_metadata reject message is received.
  377. * src/UTMetadataRejectExtensionMessage.cc
  378. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  380. get high enough in that mode.
  381. * src/ActivePeerConnectionCommand.cc
  382. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Added BitTorrent magnet link support to ProtocolDetector.
  384. * src/ProtocolDetector.cc
  385. * src/ProtocolDetector.h
  386. * test/ProtocolDetectorTest.cc
  387. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Don't inject validator into BtMessage in metadataGetMode because
  389. most of the checks depends on the total length of download but it
  390. is unknown. Delegate metadataGetMode to BtMessage.
  391. * src/DefaultBtMessageFactory.cc
  392. * src/DefaultBtMessageFactory.h
  393. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  395. * src/DefaultPieceStorage.h
  396. * src/PieceStorage.h
  397. * src/UnknownLengthPieceStorage.h
  398. * test/MockPieceStorage.h
  399. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Added markTotalLengthIsKnown().
  401. * src/DownloadContext.h
  402. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  404. missing. If metadata is missing, always use DHT when it is ready.
  405. * src/BtSetup.cc
  406. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Added parseMagnetLink(). Hex encoded info hash is supported.
  408. Base32 encoded info hash is not supported yet.
  409. * src/bittorrent_helper.cc
  410. * src/bittorrent_helper.h
  411. * test/BittorrentHelperTest.cc
  412. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Added FromHex()
  414. * src/util.cc
  415. * src/util.h
  416. * test/UtilTest.cc
  417. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Added _metadataGetMode member variable. It toggles the action when
  419. messages are received: usually they almost do nothing if
  420. _metadataGetMode is true.
  421. * src/AbstractBtMessage.cc
  422. * src/AbstractBtMessage.h
  423. * src/BtAllowedFastMessage.cc
  424. * src/BtBitfieldMessage.cc
  425. * src/BtCancelMessage.cc
  426. * src/BtChokeMessage.cc
  427. * src/BtHaveAllMessage.cc
  428. * src/BtHaveMessage.cc
  429. * src/BtInterestedMessage.cc
  430. * src/BtNotInterestedMessage.cc
  431. * src/BtPieceMessage.cc
  432. * src/BtRejectMessage.cc
  433. * src/BtRequestMessage.cc
  434. * src/BtUnchokeMessage.cc
  435. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Added bencode::decode overload functions. They have extra argument
  437. 'end', passed by reference. 'end' points to the beyond the last
  438. position of data used in decoding process.
  439. * src/bencode.cc
  440. * src/bencode.h
  441. * test/BencodeTest.cc
  442. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Initial support of Extension for Peers to Send Metadata
  444. Files(BEP9). Currently aria2 only serves metadata and cannot get
  445. metadata from swarm.
  446. * src/BtConstants.h
  447. * src/DefaultBtInteractive.cc
  448. * src/DefaultExtensionMessageFactory.cc
  449. * src/DefaultExtensionMessageFactory.h
  450. * src/ExtensionMessage.h
  451. * src/ExtensionMessageRegistry.h
  452. * src/HandshakeExtensionMessage.cc
  453. * src/HandshakeExtensionMessage.h
  454. * src/Makefile.am
  455. * src/PeerConnection.h
  456. * src/PeerInteractionCommand.cc
  457. * src/UTMetadataDataExtensionMessage.cc
  458. * src/UTMetadataDataExtensionMessage.h
  459. * src/UTMetadataExtensionMessage.cc
  460. * src/UTMetadataExtensionMessage.h
  461. * src/UTMetadataRejectExtensionMessage.cc
  462. * src/UTMetadataRejectExtensionMessage.h
  463. * src/UTMetadataRequestExtensionMessage.cc
  464. * src/UTMetadataRequestExtensionMessage.h
  465. * src/bittorrent_helper.cc
  466. * src/bittorrent_helper.h
  467. * test/BittorrentHelperTest.cc
  468. * test/DefaultExtensionMessageFactoryTest.cc
  469. * test/HandshakeExtensionMessageTest.cc
  470. * test/Makefile.am
  471. * test/UTMetadataDataExtensionMessageTest.cc
  472. * test/UTMetadataRejectExtensionMessageTest.cc
  473. * test/UTMetadataRequestExtensionMessageTest.cc
  474. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Cancel segment in prepareForRetry() because there is a chance that
  476. the command has segments.
  477. * src/CreateRequestCommand.cc
  478. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Fixed the bug that slow server is not knocked down in favor of
  480. faster one.
  481. * src/AbstractCommand.cc
  482. * src/DefaultPieceStorage.cc
  483. * src/DefaultPieceStorage.h
  484. * src/PieceStorage.h
  485. * src/UnknownLengthPieceStorage.cc
  486. * src/UnknownLengthPieceStorage.h
  487. * test/MockPieceStorage.h
  488. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Fixed the bug that Request object is not added to
  490. _inFlightRequests in findFasterRequest().
  491. * src/FileEntry.cc
  492. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Changed the strategry of how to increase the number of outstanding
  494. requests. Now the number is doubled if there are no outstanding
  495. requests after receiving messages.
  496. * src/BtConstants.h
  497. * src/DefaultBtInteractive.cc
  498. * src/DefaultBtInteractive.h
  499. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Check socket for reading if there are outstanding requests.
  501. * src/PeerInteractionCommand.cc
  502. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Moved frequently called methods to header file so they get
  504. inlined.
  505. * src/RequestSlot.cc
  506. * src/RequestSlot.h
  507. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Copied in_addr instead of just casting from char* which might
  509. violate strict aliasing rules.
  510. * src/AsyncNameResolver.cc
  511. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Use dynamic_pointer_cast
  513. * test/BtPieceMessageTest.cc
  514. * test/BtRequestMessageTest.cc
  515. * test/DefaultBtRequestFactoryTest.cc
  516. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Added testSetUrl20()
  518. * test/RequestTest.cc
  519. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Code cleanup
  521. * src/bittorrent_helper.cc
  522. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Use C++ style cast
  524. * src/AsyncNameResolver.cc
  525. * src/Base64.h
  526. * src/BtBitfieldMessage.cc
  527. * src/BtHandshakeMessage.cc
  528. * src/DefaultBtMessageFactory.cc
  529. * src/DefaultBtProgressInfoFile.cc
  530. * src/EpollEventPoll.cc
  531. * src/ExpatMetalinkProcessor.cc
  532. * src/IteratableChecksumValidator.cc
  533. * src/IteratableChunkChecksumValidator.cc
  534. * src/MessageDigestHelper.cc
  535. * src/Platform.cc
  536. * src/RequestGroupMan.cc
  537. * src/SingleFileAllocationIterator.cc
  538. * src/Sqlite3MozCookieParser.cc
  539. * src/XML2SAXMetalinkProcessor.cc
  540. * src/Xml2XmlRpcRequestProcessor.cc
  541. * src/util.cc
  542. * src/util.h
  543. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Fixed integer potential alignment problem.
  545. * src/bitfield.h
  546. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Applied a patch from tizianomueller to fix sigbus errors on Linux
  548. sparc. I modified the patch to eliminate a cast to uint32_t* and
  549. include file ordering.
  550. * src/PeerListProcessor.h
  551. * src/bittorrent_helper.cc
  552. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  554. * src/Request.cc
  555. * src/util.cc
  556. * src/util.h
  557. * test/RequestTest.cc
  558. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Rewritten util::uitos()
  560. * src/util.h
  561. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Code cleanup
  563. * src/Request.cc
  564. * src/Request.h
  565. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Rewritten Request::parseUrl()
  567. * src/Request.cc
  568. * test/RequestTest.cc
  569. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Removed unused macro SAFE_CHARS
  571. * src/Request.cc
  572. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Updated doc
  574. * src/DHTRoutingTableDeserializer.cc
  575. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Release 1.6.3
  577. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Removed unused function.
  579. * test/DHTPeerAnnounceStorageTest.cc
  580. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Only decrement cols if cols > 0
  582. * src/ConsoleStatCalc.cc
  583. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  584. Updated Polish, Catalan, French, Italian, Russian and Japanese
  585. translations. Thanks to all translators.
  586. * po/ca.po
  587. * po/fr.po
  588. * po/it.po
  589. * po/ja.po
  590. * po/pl.po
  591. * po/ru.po
  592. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Updated translation template
  594. * po
  595. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Fixed compile error without ssl library.
  597. * src/util.cc
  598. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Logged received nodes in get_peers reply message.
  600. * src/DHTAbstractNodeLookupTask.cc
  601. * src/DHTAbstractNodeLookupTask.h
  602. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  604. error occurred in DHTMessageDispatcherImpl::sendMessage().
  605. * src/DHTMessageDispatcherImpl.cc
  606. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Don't reuse URI if Request pool is not empty.
  608. * src/CreateRequestCommand.cc
  609. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  611. receive get_peers request for torrent which the client is now
  612. downloading.
  613. * src/BtSetup.cc
  614. * src/DHTPeerAnnounceEntry.cc
  615. * src/DHTPeerAnnounceEntry.h
  616. * src/DHTPeerAnnounceStorage.cc
  617. * src/DHTPeerAnnounceStorage.h
  618. * src/RequestGroup.cc
  619. * test/DHTPeerAnnounceEntryTest.cc
  620. * test/DHTPeerAnnounceStorageTest.cc
  621. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Fixed the bug that in Windows environment new blank line is
  623. inserted when console readout is updated.
  624. * src/ConsoleStatCalc.cc
  625. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Throw exception if binding listening port is failed. Removed
  627. RequestGroupMan::getInitialCommand(). Use
  628. fillRequestGroupFromReserver() instead. Delete commands for
  629. RequestGroup which has errors when it is being added.
  630. * src/BtSetup.cc
  631. * src/DownloadEngine.cc
  632. * src/DownloadEngine.h
  633. * src/DownloadEngineFactory.cc
  634. * src/MultiUrlRequestInfo.cc
  635. * src/RequestGroupMan.cc
  636. * src/RequestGroupMan.h
  637. * test/RequestGroupManTest.cc
  638. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Fixed the bug that when downloading more than one torrent,
  640. listening port is not reported properly to tracker for 2nd or
  641. later torrents.
  642. * src/BtSetup.cc
  643. * src/PeerListenCommand.cc
  644. * src/PeerListenCommand.h
  645. * src/RequestGroup.cc
  646. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Bump up version number to 1.6.3
  648. * configure.ac
  649. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Removed Util.cc from POTFILES.in
  651. * po/POTFILES.in
  652. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Updated man page for previous change.
  654. * doc/aria2c.1.txt
  655. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. If user name is embedded but password is missing in URI, first
  657. resolve password using .netrc. If password is found in .netrc,
  658. then use it as password. If not, use the password specified in
  659. --ftp-passwd.
  660. * src/AuthConfigFactory.cc
  661. * src/Request.cc
  662. * src/Request.h
  663. * test/AuthConfigFactoryTest.cc
  664. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Fixed typo
  666. * doc/aria2c.1.txt
  667. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Fixed typo
  669. * src/usage_text.h
  670. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Added missing bitfield.cc
  672. * src/bitfield.cc
  673. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Renamed Util.{cc,h} as util.{cc,h}
  675. * src/Util.cc
  676. * src/Util.h
  677. * src/util.cc
  678. * src/util.h
  679. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. Moved static functions in Util class to namespace util.
  681. * src
  682. * test
  683. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  685. Moved generateRandomKey to bittorrent_helper.cc.
  686. * src/DHTBucket.cc
  687. * src/DHTGetPeersMessage.cc
  688. * src/DHTGetPeersReplyMessage.cc
  689. * src/DHTMessage.cc
  690. * src/DHTNode.cc
  691. * src/DHTTokenTracker.cc
  692. * src/DHTUtil.cc: Removed.
  693. * src/DHTUtil.h: Removed.
  694. * src/Makefile.am
  695. * src/Util.cc
  696. * src/Util.h
  697. * src/bitfield.h
  698. * src/bittorrent_helper.cc
  699. * src/bittorrent_helper.h
  700. * test/ARC4Test.cc
  701. * test/BNodeTest.cc
  702. * test/DHTAnnouncePeerMessageTest.cc
  703. * test/DHTAnnouncePeerReplyMessageTest.cc
  704. * test/DHTFindNodeMessageTest.cc
  705. * test/DHTFindNodeReplyMessageTest.cc
  706. * test/DHTGetPeersMessageTest.cc
  707. * test/DHTGetPeersReplyMessageTest.cc
  708. * test/DHTPingMessageTest.cc
  709. * test/DHTPingReplyMessageTest.cc
  710. * test/DHTTokenTrackerTest.cc
  711. * test/DHTUtilTest.cc: Removed.
  712. * test/Makefile.am
  713. * test/UtilTest.cc
  714. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Removed the call to trim() because trim() is called for each
  716. element in split().
  717. * src/CookieParser.cc
  718. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Replaced Util::slice() with split()
  720. * src/AbstractCommand.cc
  721. * src/CookieParser.cc
  722. * src/File.cc
  723. * src/HttpHeaderProcessor.cc
  724. * src/HttpRequest.cc
  725. * src/Metalink2RequestGroup.cc
  726. * src/MetalinkParserController.cc
  727. * src/Netrc.cc
  728. * src/NsCookieParser.cc
  729. * src/ParameterizedStringParser.cc
  730. * src/ServerStatMan.cc
  731. * src/UriListParser.cc
  732. * src/Util.cc
  733. * src/Util.h
  734. * src/bittorrent_helper.cc
  735. * test/UtilTest.cc
  736. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Use request->getDir() instead of "/" for embedded user/pass in
  738. URI.
  739. * src/AuthConfigFactory.cc
  740. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Fixed wrong insertion point for BasicCred.
  742. * src/AuthConfigFactory.cc
  743. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Allowed non-regular file in LocalFilePathOptionHandler
  745. * src/OptionHandlerImpl.h
  746. * src/message.h
  747. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Fixed the bug that Netrc::parse() cannot recognize comment line.
  749. * src/Netrc.cc
  750. * src/Util.h
  751. * test/NetrcTest.cc
  752. * test/sample.netrc
  753. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Fixed typo
  755. * src/BtDependency.cc
  756. * src/BtRejectMessage.cc
  757. * src/FtpConnection.cc
  758. * src/HttpHeaderProcessor.h
  759. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Fixed lintian report in man page
  761. * doc/aria2c.1.txt
  762. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Release 1.6.2
  764. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Updated Ukrainian translation. Thanks to all translators.
  766. * po/uk.po
  767. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  768. Updated translation template
  769. * po
  770. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Bump up version number to 1.6.2
  772. * configure.ac
  773. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Updated licence message in -v output.
  775. * src/version_usage.cc
  776. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  777. Replaced aria2 with aria2c in help message.
  778. * src/version_usage.cc
  779. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  781. * src/version_usage.cc
  782. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Quoted localedir
  784. * src/Makefile.am
  785. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  787. utime. Check header for utime.h.
  788. * configure.ac
  789. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  791. * configure.ac
  792. * src/daemon.cc
  793. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Don't set localedir manually. Leave it to autoconf.
  795. * configure.ac
  796. * src/Makefile.am
  797. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Added --install to ACLOCAL_AMFLAGS.
  799. Removed m4 from SUBDIRS.
  800. Updated automake 1.11 and autoconf 2.64.
  801. Replaced some obsolute macros with new one.
  802. * Makefile.am
  803. * configure.ac
  804. * m4/aria2_arg.m4
  805. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Removed Makefile.am in m4 directory.
  807. * configure.ac
  808. * m4/ChangeLog
  809. * m4/Makefile.am
  810. * m4/Makefile.in
  811. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Removed unused m4 macros.
  813. * m4/intldir.m4
  814. * m4/inttypes.m4
  815. * m4/isc-posix.m4
  816. * m4/libgnutls-extra.m4
  817. * m4/ulonglong.m4
  818. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Fixed the bug that causes segmentation fault if
  820. req->getCurrentUrl() contains printf formatting characters such as
  821. %d. The statement that causes this bug is useless and removed.
  822. * src/AbstractCommand.cc
  823. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. * Release 1.6.1
  825. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Updated Simplified Chinese translation. Thanks to translators.
  827. * po/zh_CN.po
  828. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Updated translation template
  830. * po
  831. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Bump up version number to 1.6.1
  833. * configure.ac
  834. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Changed interval from 120 to 60 for dropping inactive peer.
  836. * src/DefaultBtInteractive.cc
  837. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Updated man page for --user-agent and --peer-id-prefix option.
  839. * doc/aria2c.1.txt
  840. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Code clean up
  842. * src/BtPostDownloadHandler.cc
  843. * src/ContentTypeRequestGroupCriteria.cc
  844. * src/ContentTypeRequestGroupCriteria.h
  845. * src/DownloadHandlerConstants.cc
  846. * src/DownloadHandlerConstants.h
  847. * src/DownloadHandlerFactory.cc
  848. * src/MetalinkPostDownloadHandler.cc
  849. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Don't save control file when aria2 exists while checking piece
  851. hash(behavior of -V option). If control file doesn't exist when
  852. aria2 launched, the completed length in saved control file will be
  853. 0 byte and this confuses user. disableSaveControlFile() is called
  854. in RequestGroup::processCheckIntegrityEntry().
  855. enableSaveControlFile() will be called after hash checking is
  856. done. See CheckIntegrityCommand.
  857. * src/CheckIntegrityCommand.cc
  858. * src/RequestGroup.cc
  859. * src/RequestGroup.h
  860. * src/RequestGroupMan.cc
  861. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Included version number in Peer ID and client version. Peer ID
  863. now starts with "aria2/VERSION-", where VERSION is
  864. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  865. * src/DefaultBtInteractive.cc
  866. * src/OptionHandlerFactory.cc
  867. * src/bittorrent_helper.cc
  868. * src/bittorrent_helper.h
  869. * src/main.cc
  870. * src/usage_text.h
  871. * test/BittorrentHelperTest.cc
  872. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Fixed memory leak.
  874. * src/DownloadCommand.cc
  875. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Removed server, port, user and passwd key from options before
  877. XMLRPC::Client.call since they are not options of aria2.
  878. * doc/xmlrpc/aria2mon
  879. * doc/xmlrpc/aria2rpc
  880. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Included version number in user-agent string.
  882. * src/OptionHandlerFactory.cc
  883. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Fixed the bug that the option values changed by XML-RPC
  885. method(changeOption and changeGlobalOption) are overwritten to the
  886. previous value by the next these request which doesn't contain
  887. that option value. Supporse max-download-limit is initially 0. You
  888. changed this value to 100K by changeOption. Then you issue
  889. changeOption request to change max-upload-limit to 50K. This
  890. second request doesn't contain xml-download-limit, so it is back
  891. to initial value, 0. Another improvement is that exception is
  892. thrown when changeOption and changeGlobalOption request contains
  893. option name which doesn't allowed in each request.
  894. * src/DownloadEngine.h
  895. * src/XmlRpcMethod.cc
  896. * src/XmlRpcMethod.h
  897. * src/XmlRpcMethodImpl.cc
  898. * src/download_helper.cc
  899. * src/download_helper.h
  900. * test/XmlRpcMethodTest.cc
  901. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Added missing MetalinkParserStateImpl.{cc,h}
  903. * src/MetalinkParserStateImpl.cc
  904. * src/MetalinkParserStateImpl.h
  905. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Put all MetalinkParserState subclasses into
  907. MetalinkParserStateImpl.cc. Use stack to track element structure.
  908. * src/FileMetalinkParserState.cc: Removed
  909. * src/FileMetalinkParserState.h: Removed
  910. * src/FilesMetalinkParserState.cc: Removed
  911. * src/FilesMetalinkParserState.h: Removed
  912. * src/FinMetalinkParserState.cc: Removed
  913. * src/FinMetalinkParserState.h: Removed
  914. * src/HashMetalinkParserState.cc: Removed
  915. * src/HashMetalinkParserState.h: Removed
  916. * src/InitialMetalinkParserState.cc: Removed
  917. * src/InitialMetalinkParserState.h: Removed
  918. * src/LanguageMetalinkParserState.cc: Removed
  919. * src/LanguageMetalinkParserState.h: Removed
  920. * src/Makefile.am
  921. * src/MetalinkMetalinkParserState.cc: Removed
  922. * src/MetalinkMetalinkParserState.h: Removed
  923. * src/MetalinkParserState.h
  924. * src/MetalinkParserStateMachine.cc
  925. * src/MetalinkParserStateMachine.h
  926. * src/OSMetalinkParserState.cc: Removed
  927. * src/OSMetalinkParserState.h: Removed
  928. * src/PieceHashMetalinkParserState.cc: Removed
  929. * src/PieceHashMetalinkParserState.h: Removed
  930. * src/PiecesMetalinkParserState.cc: Removed
  931. * src/PiecesMetalinkParserState.h: Removed
  932. * src/ResourcesMetalinkParserState.cc: Removed
  933. * src/ResourcesMetalinkParserState.h: Removed
  934. * src/SignatureMetalinkParserState.cc: Removed
  935. * src/SignatureMetalinkParserState.h: Removed
  936. * src/SizeMetalinkParserState.cc: Removed
  937. * src/SizeMetalinkParserState.h: Removed
  938. * src/SkipTagMetalinkParserState.cc: Removed
  939. * src/SkipTagMetalinkParserState.h: Removed
  940. * src/URLMetalinkParserState.cc: Removed
  941. * src/URLMetalinkParserState.h: Removed
  942. * src/VerificationMetalinkParserState.cc: Removed
  943. * src/VerificationMetalinkParserState.h: Removed
  944. * src/VersionMetalinkParserState.cc: Removed
  945. * src/VersionMetalinkParserState.h: Removed
  946. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Move all functions in PeerMessageUtil to bittorrent_helper.
  948. * src/BtBitfieldMessage.cc
  949. * src/BtBitfieldMessageValidator.h
  950. * src/BtExtendedMessage.cc
  951. * src/BtHandshakeMessage.cc
  952. * src/BtHandshakeMessageValidator.h
  953. * src/BtPieceMessage.cc
  954. * src/BtPieceMessageValidator.h
  955. * src/BtPortMessage.cc
  956. * src/DHTFindNodeReplyMessage.cc
  957. * src/DHTGetPeersReplyMessage.cc
  958. * src/DHTMessageFactoryImpl.cc
  959. * src/DHTRoutingTableDeserializer.cc
  960. * src/DHTRoutingTableSerializer.cc
  961. * src/DHTTokenTracker.cc
  962. * src/DefaultBtMessageFactory.cc
  963. * src/IndexBtMessage.cc
  964. * src/IndexBtMessage.h
  965. * src/IndexBtMessageValidator.h
  966. * src/Makefile.am
  967. * src/PeerMessageUtil.cc: Removed.
  968. * src/PeerMessageUtil.h: Removed.
  969. * src/RangeBtMessage.cc
  970. * src/RangeBtMessage.h
  971. * src/RangeBtMessageValidator.h
  972. * src/UTPexExtensionMessage.cc
  973. * src/ZeroBtMessage.cc
  974. * src/ZeroBtMessage.h
  975. * src/bittorrent_helper.cc
  976. * src/bittorrent_helper.h
  977. * test/BittorrentHelperTest.cc
  978. * test/BtAllowedFastMessageTest.cc
  979. * test/BtBitfieldMessageTest.cc
  980. * test/BtCancelMessageTest.cc
  981. * test/BtChokeMessageTest.cc
  982. * test/BtExtendedMessageTest.cc
  983. * test/BtHandshakeMessageTest.cc
  984. * test/BtHaveAllMessageTest.cc
  985. * test/BtHaveMessageTest.cc
  986. * test/BtHaveNoneMessageTest.cc
  987. * test/BtInterestedMessageTest.cc
  988. * test/BtNotInterestedMessageTest.cc
  989. * test/BtPieceMessageTest.cc
  990. * test/BtPortMessageTest.cc
  991. * test/BtRejectMessageTest.cc
  992. * test/BtRequestMessageTest.cc
  993. * test/BtSuggestPieceMessageTest.cc
  994. * test/BtUnchokeMessageTest.cc
  995. * test/DHTFindNodeReplyMessageTest.cc
  996. * test/DHTGetPeersReplyMessageTest.cc
  997. * test/DHTMessageFactoryImplTest.cc
  998. * test/DHTRoutingTableDeserializerTest.cc
  999. * test/DHTRoutingTableSerializerTest.cc
  1000. * test/DefaultBtMessageFactoryTest.cc
  1001. * test/DefaultExtensionMessageFactoryTest.cc
  1002. * test/Makefile.am
  1003. * test/PeerListProcessorTest.cc
  1004. * test/PeerMessageUtilTest.cc: Removed.
  1005. * test/UTPexExtensionMessageTest.cc
  1006. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Limit the size of values list when sending get_peers reply.
  1008. * src/DHTGetPeersReplyMessage.cc
  1009. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Updated banner
  1011. * doc/xmlrpc/aria2rpc
  1012. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added missing help message for remove command.
  1014. * doc/xmlrpc/aria2rpc
  1015. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Generated configure and config.h.in
  1017. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1018. Add check for fork(), which is missing on MinGW
  1019. * src/daemon.cc
  1020. * configure.ac
  1021. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1023. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1024. Util::httpGMT().
  1025. * src/Util.cc
  1026. * src/Util.h
  1027. * test/UtilTest.cc
  1028. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. * Release 1.6.0
  1030. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Fixed a path to xmlrpc/README.txt
  1032. * doc/Makefile.am
  1033. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Added XML-RPC in -v Configuration output.
  1035. * src/FeatureConfig.cc
  1036. * src/FeatureConfig.h
  1037. * test/FeatureConfigTest.cc
  1038. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Updated Bulgarian, Russian, Slovak and Japanese
  1040. translations. Thanks to all translators.
  1041. * po/bg.po
  1042. * po/ja.po
  1043. * po/ru.po
  1044. * po/sk.po
  1045. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Removed --retry-wait option from aria2rpc
  1047. * doc/xmlrpc/aria2rpc
  1048. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Removed --retry-wait option from man page.
  1050. * doc/aria2c.1.txt
  1051. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Removed --retry-wait option since the current architecture doesn't
  1053. allow sleep for particular URI.
  1054. * src/AbstractCommand.cc
  1055. * src/OptionHandlerFactory.cc
  1056. * src/download_helper.cc
  1057. * src/prefs.cc
  1058. * src/prefs.h
  1059. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Removed Retry-After header support. Since the current architecture
  1061. doesn't allow sleep for particular URI.
  1062. * src/HttpSkipResponseCommand.cc
  1063. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Updated the help message for --daemon option.
  1065. * doc/aria2c.1.txt
  1066. * src/usage_text.h
  1067. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Added our own daemon() function for systems which desn't have
  1069. daemon(3).
  1070. * configure.ac
  1071. * src/Makefile.am
  1072. * src/daemon.cc
  1073. * src/daemon.h
  1074. * src/option_processing.cc
  1075. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Simplified File::getCurrentDir()
  1077. * src/File.cc
  1078. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Use exit() instead of _exit
  1080. * src/RequestGroupMan.cc
  1081. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Replaced "CATEGORY" with "TAGS".
  1083. * src/usage_text.h
  1084. * doc/aria2c.1.txt
  1085. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Updated the help message for --help option.
  1087. * src/usage_text.h
  1088. * doc/aria2c.1.txt
  1089. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Updated man page for added help tags.
  1091. * doc/aria2c.1.txt
  1092. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Added help category #file. Added #file tag to the options related
  1094. to downloaded file.
  1095. * src/OptionHandlerFactory.cc
  1096. * src/help_tags.h
  1097. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Added help categories: #cookie and #hook. Added #https tag to
  1099. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1100. * src/OptionHandlerFactory.cc
  1101. * src/help_tags.h
  1102. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Made MSG_NOT_FILE translatable.
  1104. * src/message.h
  1105. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Updated man page for --help option.
  1107. * doc/aria2c.1.txt
  1108. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Updated doc.
  1110. * src/XmlRpcMethod.h
  1111. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Help category now starts with "#" to distinguish a category from
  1113. keyword search. For example, "http" categroy is now "#http". You
  1114. can type "--help=#http" to get explanation of options related to
  1115. http. If '#' is omitted, then the argument is treated as a keyword
  1116. and aria2 searches options whose name includes the keyword and
  1117. print matched ones. For example, "--help=http" will show options
  1118. whose name includes "http".
  1119. * src/OptionHandlerFactory.cc
  1120. * src/help_tags.h
  1121. * src/usage_text.h
  1122. * src/version_usage.cc
  1123. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Documented missing experimental tag and newly added xml-rpc tag in
  1125. man page.
  1126. * doc/aria2c.1.txt
  1127. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Added xml-rpc help tag. Tagged xml-rpc related options with
  1129. xml-rpc tag.
  1130. * src/OptionHandlerFactory.cc
  1131. * src/help_tags.h
  1132. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Updated message when a path is not a file. Updated common message
  1134. for wrong option.
  1135. * src/OptionHandlerException.cc
  1136. * src/message.h
  1137. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Use File::isFile() instead of File::exists(). Updated message when
  1139. a path is not a file.
  1140. * src/OptionHandlerImpl.cc
  1141. * src/message.h
  1142. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1143. Fixed the bug that server performence profile is not updated when
  1144. aria2c was terminated by emergency shutdown.
  1145. * src/TrackerWatcherCommand.cc
  1146. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Use LocalFilePathOptionHandler for -T and -M option.
  1148. Updated message of MSG_FILE_NOT_EXIST.
  1149. * src/OptionHandlerFactory.cc
  1150. * src/message.h
  1151. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Added LocalFilePathOptionHandler which check whether the specified
  1153. file path does exist or not.
  1154. * src/OptionHandlerImpl.cc
  1155. * src/message.h
  1156. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Updated wiki page URI.
  1158. * README
  1159. * doc/aria2c.1.txt
  1160. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Added README.txt for xmlrpc directory.
  1162. * doc/Makefile.am
  1163. * doc/xmlrpc/README.txt
  1164. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Bump up version number to 1.6.0.
  1166. * configure.ac
  1167. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Added XML-RPC client scripts written in ruby.
  1169. * doc/Makefile.am
  1170. * doc/xmlrpc/aria2mon
  1171. * doc/xmlrpc/aria2rpc
  1172. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Added support for IPv6 literal address in URI. Now aria2 can
  1174. handle URI such as http://[::1]/
  1175. * src/HttpRequest.cc
  1176. * src/HttpRequest.h
  1177. * src/Request.cc
  1178. * src/Request.h
  1179. * test/HttpRequestTest.cc
  1180. * test/OptionHandlerTest.cc
  1181. * test/RequestTest.cc
  1182. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Fixed the bug that HTTP request header for XML-RPC request is not
  1184. parsed properly.
  1185. * src/HttpHeader.cc
  1186. * src/HttpHeaderProcessor.cc
  1187. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Fixed the bug that XML-RPC authorization might be done before HTTP
  1189. request header is fully received.
  1190. * src/HttpServerCommand.cc
  1191. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Documented --xml-rpc-listen-all option in man page.
  1193. * doc/aria2c.1.txt
  1194. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Added --xml-rpc-listen-all option. If true is given to this
  1196. option, aria2 listens incoming XML-RPC requests on all network
  1197. interfaces. If false is given, listens only on local loopback
  1198. interface. The default value is false.
  1199. * src/HttpListenCommand.cc
  1200. * src/OptionHandlerFactory.cc
  1201. * src/SocketCore.cc
  1202. * src/SocketCore.h
  1203. * src/prefs.cc
  1204. * src/prefs.h
  1205. * src/usage_text.h
  1206. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. * Release 1.5.2
  1208. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Updated Ukrainian and Russian translations. Thanks to all
  1210. translators.
  1211. * po/ru.po
  1212. * po/uk.po
  1213. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Bump up version number to 1.5.2
  1215. * configure.ac
  1216. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Get comment, comment.utf-8, created by and creation date from
  1218. .torrent file and print them in -S output.
  1219. * src/bittorrent_helper.cc
  1220. * src/bittorrent_helper.h
  1221. * test/BittorrentHelperTest.cc
  1222. * test/test.torrent
  1223. * test/utf8.torrent
  1224. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Show exact file size along in -S option output.
  1226. * src/Util.h
  1227. * src/bittorrent_helper.cc
  1228. * test/UtilTest.cc
  1229. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Avoided unnecessary memory allocation in
  1231. BitfieldMan::getCompletedLength().
  1232. * src/BitfieldMan.cc
  1233. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Fixed the bug that download fails if
  1235. SocketCore::establishConnection() throws exception and aria2
  1236. doesn't try another address.
  1237. * src/AbstractCommand.cc
  1238. * src/InitiateConnectionCommand.cc
  1239. * src/message.h
  1240. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1242. detected properly.
  1243. * m4/sqlite3.m4
  1244. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1246. because it causes compile error if PARAMS macro is defined.
  1247. * src/XmlRpcElements.cc
  1248. * src/XmlRpcElements.h
  1249. * src/XmlRpcRequestParserStateImpl.cc
  1250. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. * Release 1.5.1
  1252. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Bump up version number to 1.5.1
  1254. * configure.ac
  1255. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Fixed compile error without BitTorrent support
  1257. * src/DefaultBtProgressInfoFile.cc
  1258. * src/DownloadEngine.cc
  1259. * src/DownloadEngine.h
  1260. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Added missing '=' in Download Results
  1262. * src/RequestGroupMan.cc
  1263. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Fixed compiler warning
  1265. * src/DefaultBtProgressInfoFile.cc
  1266. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Fixed compiler warning on 32bit systems.
  1268. * src/DownloadCommand.cc
  1269. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Call flush from ServerStatMan::save()
  1271. * src/ServerStatMan.cc
  1272. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Check stream status after file is opened.
  1274. * src/CookieStorage.cc
  1275. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Rewritten Signature::save()
  1277. * src/Signature.cc
  1278. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Rewritten RequestGroupMan::saveServerStat()
  1280. * src/RequestGroupMan.cc
  1281. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Rewritten stream error handling
  1283. * src/DHTAutoSaveCommand.cc
  1284. * src/DHTRoutingTableDeserializer.cc
  1285. * src/DHTRoutingTableSerializer.cc
  1286. * src/DHTSetup.cc
  1287. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1288. Check stream status after file is opened.
  1289. * src/DefaultBtProgressInfoFile.cc
  1290. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1291. Rewritten stream error handling
  1292. * src/DefaultBtProgressInfoFile.cc
  1293. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Make sure that stream is closed before renaming file. Unit test
  1295. fails on mingw32 in the previous implementation.
  1296. * src/CookieStorage.cc
  1297. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Fixed the unit test error without sqlite3
  1299. * test/CookieStorageTest.cc
  1300. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Fixed the undefined reference error
  1302. * test/HttpResponseTest.cc
  1303. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. * Release 1.5.0
  1305. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1307. Ukrainian translations. Thanks to all translators.
  1308. * po/ru.po
  1309. * po/it.po
  1310. * po/da.po
  1311. * po/bg.po
  1312. * po/ja.po
  1313. * po/uk.po
  1314. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Added missing src/Logger.cc
  1316. * src/Logger.cc
  1317. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Rewritten Logger to avoiding constly virtual call.
  1319. * src/LogFactory.cc
  1320. * src/LogFactory.h
  1321. * src/Logger.h
  1322. * src/Makefile.am
  1323. * src/Makefile.in
  1324. * src/NullLogger.h: Removed.
  1325. * src/SimpleLogger.cc
  1326. * src/SimpleLogger.h
  1327. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Updated doc
  1329. * src/main.cc
  1330. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Updated debug log message
  1332. * src/AbstractCommand.cc
  1333. * src/message.h
  1334. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Avoid to create zombie process when commands specified in
  1336. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1337. X and NetBSD.
  1338. * src/main.cc
  1339. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Fixed typo
  1341. * src/usage_text.h
  1342. * doc/aria2c.1.txt
  1343. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Documented 'errorCode' of tellStatus in man page.
  1345. * doc/aria2c.1.txt
  1346. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1348. This key is only available for stopped/completed downloads and its
  1349. value is the error code defined in EXIT STATUS in man page.
  1350. * src/XmlRpcMethodImpl.cc
  1351. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Fixed the bug that session download length is not updated when
  1353. PeerStat is not fastest one.
  1354. * src/SegmentMan.cc
  1355. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. Updated doc.
  1357. * doc/aria2c.1.txt
  1358. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Updated doc.
  1360. * src/AbstractCommand.cc
  1361. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Handle the case when DownloadContext has no FileEntry.
  1363. * src/XmlRpcMethodImpl.cc
  1364. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Handle the situation where struct option.name is char *.
  1366. * configure.ac
  1367. * src/OptionParser.cc
  1368. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Code cleanup
  1370. * src/AbstractCommand.cc
  1371. * src/DownloadCommand.cc
  1372. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Use option of each download to create AuthConfig instead of global
  1374. option.
  1375. * src/AuthConfigFactory.cc
  1376. * src/AuthConfigFactory.h
  1377. * src/FtpNegotiationCommand.cc
  1378. * src/HttpRequest.cc
  1379. * src/HttpRequest.h
  1380. * src/HttpRequestCommand.cc
  1381. * src/HttpSkipResponseCommand.cc
  1382. * src/MultiUrlRequestInfo.cc
  1383. * test/AuthConfigFactoryTest.cc
  1384. * test/FtpConnectionTest.cc
  1385. * test/HttpRequestTest.cc
  1386. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Don't call prepareForRetry(1) if all segments are ignored in
  1388. SegmentMan.
  1389. * src/AbstractCommand.cc
  1390. * src/BitfieldMan.cc
  1391. * src/BitfieldMan.h
  1392. * src/SegmentMan.cc
  1393. * src/SegmentMan.h
  1394. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Removed FileEntry::getAssociatedUris()
  1396. * src/FileEntry.h
  1397. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Updated doc: TODO1.5 -> TODO
  1399. * src/FileEntry.cc
  1400. * src/HttpResponseCommand.cc
  1401. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1403. involved.
  1404. * src/RequestGroup.cc
  1405. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Eliminated duplicated filterBitfield initialization code.
  1407. * src/BitfieldMan.cc
  1408. * src/BitfieldMan.h
  1409. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1411. relatively naive approach, though). For DownloadFailureException,
  1412. we handle the case when req is null properly.
  1413. * src/AbstractCommand.cc
  1414. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Added function returning suffix of control file to
  1416. DefaultBtProgressInfoFile.
  1417. * src/DefaultBtProgressInfoFile.cc
  1418. * src/DefaultBtProgressInfoFile.h
  1419. * src/RequestGroup.cc
  1420. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Documented getVersion in man page.
  1422. * doc/aria2c.1.txt
  1423. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Documented type of offset and num for tellWaiting xml-rpc method.
  1425. * doc/aria2c.1.txt
  1426. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Implemented getVersion xml-rpc method. This method returns struct
  1428. which has 2 key-value pairs: "version" key is associated to the
  1429. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1430. associated to the list of enabled features, such as "Async DNS",
  1431. "BitTorrent".
  1432. * src/FeatureConfig.h
  1433. * src/XmlRpcMethodFactory.cc
  1434. * src/XmlRpcMethodImpl.cc
  1435. * src/XmlRpcMethodImpl.h
  1436. * test/XmlRpcMethodTest.cc
  1437. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1439. for compatibility issue.
  1440. * src/SocketCore.cc
  1441. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Fixed compile error with openSSL
  1443. * src/bittorrent_helper.cc
  1444. * src/messageDigest.h
  1445. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Removed bad code: setting certificate type priority to key
  1447. exchange priority.
  1448. * src/SocketCore.cc
  1449. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Disconnect seeder if client is also in seed state.
  1451. * src/BtBitfieldMessage.cc
  1452. * src/BtHaveAllMessage.cc
  1453. * src/BtHaveMessage.cc
  1454. * src/message.h
  1455. * test/BtBitfieldMessageTest.cc
  1456. * test/BtHaveAllMessageTest.cc
  1457. * test/BtHaveMessageTest.cc
  1458. * test/MockPieceStorage.h
  1459. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Keep CreateRequestCommand in queue when no segment is available so
  1461. that they can pick up pieces which slow BitTorrent peers are
  1462. downloading.
  1463. * src/AbstractCommand.cc
  1464. * src/CreateRequestCommand.cc
  1465. * src/CreateRequestCommand.h
  1466. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. --bt-stop-timeout now only checks download speed.
  1468. * src/BtStopDownloadCommand.cc
  1469. * src/BtStopDownloadCommand.h
  1470. * src/BtSetup.cc
  1471. * src/usage_text.h
  1472. * doc/aria2c.1.txt
  1473. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Fixed compile error regarding BUFSIZE.
  1475. * src/DownloadCommand.cc
  1476. * src/DownloadCommand.h
  1477. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Documented tellWaiting xml-rpc method in man page.
  1479. * doc/aria2c.1.txt
  1480. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Bump up version number to 1.5.0
  1482. * configure.ac
  1483. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Removed resolved TODO1.5
  1485. * src/AbstractCommand.cc
  1486. * src/DownloadCommand.cc
  1487. * src/RequestGroup.cc
  1488. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Release pooled and in-flight Request objectsand URIResult objects
  1490. in FileEntry after download completed.
  1491. * src/DownloadContext.cc
  1492. * src/DownloadContext.h
  1493. * src/FileEntry.cc
  1494. * src/FileEntry.h
  1495. * src/RequestGroup.cc
  1496. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Set manual and source attribute in aria2c.1.txt
  1498. * doc/aria2c.1.txt
  1499. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Documented that the default value of --use-head is 'false' in man
  1501. page.
  1502. * doc/aria2c.1.txt
  1503. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Added bt-stop-timeout option to -i list.
  1505. * doc/aria2c.1.txt
  1506. * src/download_helper.cc
  1507. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Fixed typo
  1509. * doc/aria2c.1.txt
  1510. * src/usage_text.h
  1511. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Removed peer-id-prefix option from -i list.
  1513. * doc/aria2c.1.txt
  1514. * src/download_helper.cc
  1515. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Fixed typo
  1517. * doc/aria2c.1.txt
  1518. * src/usage_text.h
  1519. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Documented --bt-stop-timeout option in man page.
  1521. * doc/aria2c.1.txt
  1522. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Updated README regarding multi-file torrent web-seeding.
  1524. * doc/README.txt
  1525. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Updated man page regarding multi-file torrent web-seeding.
  1527. * doc/aria2c.1.txt
  1528. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Updated doc
  1530. * src/version_usage.cc
  1531. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Winsock select() doesn't work if no socket is in FD_SET. To
  1533. overcome this problem, a dummy socket is added to FD_SET and it is
  1534. given to select().
  1535. * src/SelectEventPoll.cc
  1536. * src/SelectEventPoll.h
  1537. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1538. Disabled --use-head option by default because --use-head=true
  1539. causes problems on some web sites.
  1540. * src/OptionHandlerFactory.cc
  1541. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Print URL List in -S option for torrent.
  1543. * src/bittorrent_helper.cc
  1544. * src/bittorrent_helper.h
  1545. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Allocate buffer in ctor of DownloadCommand.
  1547. * src/DownloadCommand.cc
  1548. * src/DownloadCommand.h
  1549. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Removed DiskAdaptor::onDownloadComplete()
  1551. * src/DirectDiskAdaptor.cc
  1552. * src/DirectDiskAdaptor.h
  1553. * src/DiskAdaptor.h
  1554. * src/MultiDiskAdaptor.cc
  1555. * src/MultiDiskAdaptor.h
  1556. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Committed missing BtStopDownloadCommand.{cc,h}
  1558. * src/BtStopDownloadCommand.cc
  1559. * src/BtStopDownloadCommand.h
  1560. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1562. download if the download speed is 0 and the number of seeder is 0
  1563. in consecutive SEC seconds. By default, this function is disabled.
  1564. * src/BtSetup.cc
  1565. * src/Makefile.am
  1566. * src/OptionHandlerFactory.cc
  1567. * src/prefs.cc
  1568. * src/prefs.h
  1569. * src/usage_text.h
  1570. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Removed the call to DiskAdaptor::onDownloadComplete() from
  1572. BtCheckIntegrityEntry and DefaultPieceStorage.
  1573. * src/BtCheckIntegrityEntry.cc
  1574. * src/DefaultPieceStorage.cc
  1575. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Commented out throw statements when number of piece is 0 to
  1577. download 0 length torrent.
  1578. * src/bittorrent_helper.cc
  1579. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Call RequestGroup::createNextCommandWithAdj() from
  1581. BtFileAllocationEntry if at least one FileEntry has URI. The
  1582. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1583. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1584. * src/BtFileAllocationEntry.cc
  1585. * src/FileEntry.h
  1586. * src/RequestGroup.cc
  1587. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Generate peer ID after SimpleRandomizer is initialized.
  1589. * src/main.cc
  1590. * src/option_processing.cc
  1591. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Removed unused method argument.
  1593. * src/CreateRequestCommand.cc
  1594. * src/RequestGroup.cc
  1595. * src/RequestGroup.h
  1596. * src/RequestGroupMan.cc
  1597. * src/TrackerWatcherCommand.cc
  1598. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Made URI reusing function work.
  1600. * src/CreateRequestCommand.cc
  1601. * src/FileEntry.cc
  1602. * src/FileEntry.h
  1603. * test/FileEntryTest.cc
  1604. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Add formerly fastest PeerStat's sessionDownloadLength to new
  1606. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1607. bytes in a session.
  1608. * src/PeerStat.cc
  1609. * src/SegmentMan.cc
  1610. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. If pipelining is enabled, we can always pool socket.
  1612. * src/HttpDownloadCommand.cc
  1613. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. In a single file download, file size becomes known just after
  1615. downloading, set total length to FileEntry object when download
  1616. completed.
  1617. * src/DownloadCommand.cc
  1618. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Use std::vector::reserve() for fileEntries and pieceHashes in
  1620. bittorrent_helper
  1621. * src/bittorrent_helper.cc
  1622. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1624. Removed hidden option PREF_RESET_URI.
  1625. * src/AbstractCommand.cc
  1626. * src/OptionHandlerFactory.cc
  1627. * src/prefs.cc
  1628. * src/prefs.h
  1629. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Removed unused variable/function.
  1631. * src/PeerStat.h
  1632. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Show first URL in Download Results if file path is not available.
  1634. * src/FileEntry.h
  1635. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Throw exception if file path doesn't exist in FTP URL.
  1637. * src/InitiateConnectionCommandFactory.cc
  1638. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1640. * src/BitfieldMan.cc
  1641. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1643. of PeerStat in SegmentMan. peerStats is used for calculating
  1644. download speed. Therefore all active PeerStats should be in
  1645. there. Another one is _fastestPeerStats and it only contains
  1646. fastest PeerStat for each hostname/protocol pair. They are used
  1647. for updating ServerStat.
  1648. * src/DownloadCommand.cc
  1649. * src/Request.h
  1650. * src/RequestGroupMan.cc
  1651. * src/SegmentMan.cc
  1652. * src/SegmentMan.h
  1653. * test/SegmentManTest.cc
  1654. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Try all available addresses returned by DNS until it gets
  1656. connected in HTTP(S)/FTP download
  1657. * src/AbstractCommand.cc
  1658. * src/AbstractCommand.h
  1659. * src/AbstractProxyRequestCommand.cc
  1660. * src/AbstractProxyRequestCommand.h
  1661. * src/DNSCache.h
  1662. * src/DownloadEngine.cc
  1663. * src/DownloadEngine.h
  1664. * src/FtpInitiateConnectionCommand.cc
  1665. * src/FtpInitiateConnectionCommand.h
  1666. * src/FtpNegotiationCommand.cc
  1667. * src/FtpNegotiationCommand.h
  1668. * src/HttpInitiateConnectionCommand.cc
  1669. * src/HttpInitiateConnectionCommand.h
  1670. * src/HttpRequestCommand.cc
  1671. * src/HttpRequestCommand.h
  1672. * src/InitiateConnectionCommand.cc
  1673. * src/InitiateConnectionCommand.h
  1674. * test/DNSCacheTest.cc
  1675. * test/Makefile.am
  1676. * test/SimpleDNSCacheTest.cc
  1677. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Updated doc
  1679. * src/download_helper.cc
  1680. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Refactored fieldMan ctor.
  1682. * src/BitfieldMan.cc
  1683. * src/BitfieldMan.h
  1684. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Don't print "No files to download." message if -S is given.
  1686. * src/main.cc
  1687. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Set referer and method to newly created Request object.
  1689. * src/CreateRequestCommand.cc
  1690. * src/FileEntry.cc
  1691. * src/FileEntry.h
  1692. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1694. * src/AbstractCommand.cc
  1695. * src/AbstractCommand.h
  1696. * src/CreateRequestCommand.cc
  1697. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Get proxy download working
  1699. * src/AbstractProxyRequestCommand.cc
  1700. * src/AbstractProxyRequestCommand.h
  1701. * src/AbstractProxyResponseCommand.cc
  1702. * src/AbstractProxyResponseCommand.h
  1703. * src/FtpInitiateConnectionCommand.cc
  1704. * src/FtpTunnelRequestCommand.cc
  1705. * src/FtpTunnelRequestCommand.h
  1706. * src/FtpTunnelResponseCommand.cc
  1707. * src/FtpTunnelResponseCommand.h
  1708. * src/HttpInitiateConnectionCommand.cc
  1709. * src/HttpProxyRequestCommand.cc
  1710. * src/HttpProxyRequestCommand.h
  1711. * src/HttpProxyResponseCommand.cc
  1712. * src/HttpProxyResponseCommand.h
  1713. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Use SegmentMan::getSegment(cuid) for single file download.
  1715. * src/AbstractCommand.cc
  1716. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Fixed bufSize calculation
  1718. * src/DownloadCommand.cc
  1719. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Don't append "/" if base URI ends with "/".
  1721. * src/bittorrent_helper.cc
  1722. * test/url-list-multiFile.torrent
  1723. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. HTTP pipelining is now working. Fixed Segmention fault in
  1725. BitfieldMan's copy ctor.
  1726. * src/AbstractCommand.cc
  1727. * src/BitfieldMan.cc
  1728. * src/BitfieldMan.h
  1729. * src/DownloadCommand.cc
  1730. * src/HttpDownloadCommand.cc
  1731. * src/HttpRequest.cc
  1732. * src/SegmentMan.cc
  1733. * src/SegmentMan.h
  1734. * test/BitfieldManTest.cc
  1735. * test/SegmentManTest.cc
  1736. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Removed ServerHost. Same functionality is implemented using
  1738. FileEntry's in-flight Request objects.
  1739. * src/AbstractCommand.cc
  1740. * src/BtDependency.cc
  1741. * src/CreateRequestCommand.cc
  1742. * src/FileEntry.cc
  1743. * src/FileEntry.h
  1744. * src/FtpNegotiationCommand.cc
  1745. * src/HttpResponseCommand.cc
  1746. * src/Makefile.am
  1747. * src/Metalink2RequestGroup.cc
  1748. * src/RequestGroup.cc
  1749. * src/RequestGroup.h
  1750. * src/ServerHost.cc: Removed
  1751. * src/ServerHost.h: Removed
  1752. * test/BtDependencyTest.cc
  1753. * test/FileEntryTest.cc
  1754. * test/RequestGroupTest.cc
  1755. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Rewritten PeerStat handling. In the previous implementation,
  1757. faster command tries to find slower command. In this new
  1758. implementation, slower command tries to find faster command.
  1759. PeerStat is now created in each HTTP/FTP request to get download
  1760. rate correctly. If the download range is small, the download rate
  1761. tends to small and this will occur at the later stage of download.
  1762. * src/AbstractCommand.cc
  1763. * src/DownloadCommand.cc
  1764. * src/FileEntry.cc
  1765. * src/FileEntry.h
  1766. * src/Request.cc
  1767. * src/Request.h
  1768. * src/RequestGroup.h
  1769. * src/RequestGroupMan.cc
  1770. * src/SegmentMan.cc
  1771. * src/SegmentMan.h
  1772. * test/SegmentManTest.cc
  1773. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Removed _uris from RequestGroup. All functions that refer to _uris
  1775. were moved to FileEntry. Exit status code are now defined in
  1776. DownloadResultCode.h.
  1777. * src/AbstractCommand.cc
  1778. * src/AdaptiveURISelector.cc
  1779. * src/AdaptiveURISelector.h
  1780. * src/AutoSaveCommand.cc
  1781. * src/BtPostDownloadHandler.cc
  1782. * src/CheckIntegrityDispatcherCommand.cc
  1783. * src/CookieStorage.cc
  1784. * src/DHTAutoSaveCommand.cc
  1785. * src/DHTBucketRefreshCommand.cc
  1786. * src/DHTEntryPointNameResolveCommand.cc
  1787. * src/DHTInteractionCommand.cc
  1788. * src/DHTPeerAnnounceCommand.cc
  1789. * src/DHTTokenUpdateCommand.cc
  1790. * src/DlAbortEx.h
  1791. * src/DlRetryEx.h
  1792. * src/DownloadCommand.cc
  1793. * src/DownloadContext.h
  1794. * src/DownloadFailureException.h
  1795. * src/DownloadResult.h
  1796. * src/DownloadResultCode.h
  1797. * src/FeedbackURISelector.cc
  1798. * src/FeedbackURISelector.h
  1799. * src/FileEntry.cc
  1800. * src/FileEntry.h
  1801. * src/FtpNegotiationCommand.cc
  1802. * src/HttpListenCommand.cc
  1803. * src/HttpResponseCommand.cc
  1804. * src/HttpServerResponseCommand.cc
  1805. * src/HttpSkipResponseCommand.cc
  1806. * src/InOrderURISelector.cc
  1807. * src/InOrderURISelector.h
  1808. * src/Makefile.am
  1809. * src/Makefile.in
  1810. * src/Metalink2RequestGroup.cc
  1811. * src/MultiUrlRequestInfo.cc
  1812. * src/MultiUrlRequestInfo.h
  1813. * src/OptionHandlerFactory.cc
  1814. * src/PeerListenCommand.cc
  1815. * src/RecoverableException.h
  1816. * src/RequestGroup.cc
  1817. * src/RequestGroup.h
  1818. * src/RequestGroupMan.cc
  1819. * src/RequestGroupMan.h
  1820. * src/TimedHaltCommand.cc
  1821. * src/TrackerWatcherCommand.cc
  1822. * src/URIResult.cc
  1823. * src/URIResult.h
  1824. * src/URISelector.h
  1825. * src/XmlRpcMethodImpl.cc
  1826. * src/bittorrent_helper.cc
  1827. * src/bittorrent_helper.h
  1828. * src/download_helper.cc
  1829. * src/main.cc
  1830. * src/option_processing.cc
  1831. * test/BtDependencyTest.cc
  1832. * test/BtPostDownloadHandlerTest.cc
  1833. * test/CookieStorageTest.cc
  1834. * test/DefaultBtMessageDispatcherTest.cc
  1835. * test/DownloadHandlerFactoryTest.cc
  1836. * test/DownloadHelperTest.cc
  1837. * test/FeedbackURISelectorTest.cc
  1838. * test/FileEntryTest.cc
  1839. * test/InOrderURISelectorTest.cc
  1840. * test/Metalink2RequestGroupTest.cc
  1841. * test/MetalinkPostDownloadHandlerTest.cc
  1842. * test/RequestGroupManTest.cc
  1843. * test/RequestGroupTest.cc
  1844. * test/XmlRpcMethodTest.cc
  1845. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Removed MockBtContext.h
  1847. * test/Makefile.am
  1848. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Removed _currentRequest from StreamCheckIntegrityEntry and
  1850. StreamFileAllocationEntry.
  1851. * src/AbstractCommand.cc
  1852. * src/HttpResponseCommand.cc
  1853. * src/RequestGroup.cc
  1854. * src/StreamCheckIntegrityEntry.cc
  1855. * src/StreamCheckIntegrityEntry.h
  1856. * src/StreamFileAllocationEntry.cc
  1857. * src/StreamFileAllocationEntry.h
  1858. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1859. Rewritten DownloadContext and removed SingleFileDownloadContext
  1860. and BtContext and its derived classes. BitTorrent specific
  1861. attributes are now set by DownloadContext::setAttribute() with key
  1862. bittorrent::BITTORRENT.
  1863. * src/AbstractBtMessage.cc
  1864. * src/AbstractBtMessage.h
  1865. * src/AbstractCommand.cc
  1866. * src/AbstractCommand.h
  1867. * src/AbstractProxyRequestCommand.cc
  1868. * src/AbstractProxyResponseCommand.cc
  1869. * src/ActivePeerConnectionCommand.cc
  1870. * src/ActivePeerConnectionCommand.h
  1871. * src/AnnounceList.cc
  1872. * src/BtCheckIntegrityEntry.cc
  1873. * src/BtConstants.h
  1874. * src/BtContext.h: Removed
  1875. * src/BtDependency.cc
  1876. * src/BtExtendedMessage.cc
  1877. * src/BtPieceMessage.cc
  1878. * src/BtPieceMessage.h
  1879. * src/BtPostDownloadHandler.cc
  1880. * src/BtRegistry.cc
  1881. * src/BtRegistry.h
  1882. * src/BtSetup.cc
  1883. * src/CheckIntegrityCommand.cc
  1884. * src/CheckIntegrityEntry.cc
  1885. * src/ChecksumCheckIntegrityEntry.cc
  1886. * src/ConsoleStatCalc.cc
  1887. * src/ContentTypeRequestGroupCriteria.cc
  1888. * src/DHTGetPeersCommand.cc
  1889. * src/DHTGetPeersCommand.h
  1890. * src/DHTPeerLookupTask.cc
  1891. * src/DHTPeerLookupTask.h
  1892. * src/DHTTaskFactory.h
  1893. * src/DHTTaskFactoryImpl.cc
  1894. * src/DHTTaskFactoryImpl.h
  1895. * src/DefaultBtAnnounce.cc
  1896. * src/DefaultBtAnnounce.h
  1897. * src/DefaultBtContext.cc: Removed
  1898. * src/DefaultBtContext.h: Removed
  1899. * src/DefaultBtInteractive.cc
  1900. * src/DefaultBtInteractive.h
  1901. * src/DefaultBtMessageDispatcher.cc
  1902. * src/DefaultBtMessageDispatcher.h
  1903. * src/DefaultBtMessageFactory.cc
  1904. * src/DefaultBtMessageFactory.h
  1905. * src/DefaultBtMessageReceiver.cc
  1906. * src/DefaultBtMessageReceiver.h
  1907. * src/DefaultBtProgressInfoFile.cc
  1908. * src/DefaultBtRequestFactory.cc
  1909. * src/DefaultBtRequestFactory.h
  1910. * src/DefaultExtensionMessageFactory.cc
  1911. * src/DefaultExtensionMessageFactory.h
  1912. * src/DefaultPeerStorage.cc
  1913. * src/DefaultPeerStorage.h
  1914. * src/DefaultPieceStorage.cc
  1915. * src/DefaultSegmentManFactory.cc
  1916. * src/DiskAdaptor.cc
  1917. * src/DiskAdaptor.h
  1918. * src/DownloadContext.cc
  1919. * src/DownloadContext.h
  1920. * src/DownloadEngine.cc
  1921. * src/DownloadEngineFactory.cc
  1922. * src/DownloadHandler.cc
  1923. * src/DownloadResult.h
  1924. * src/FileAllocationCommand.cc
  1925. * src/FileAllocationDispatcherCommand.cc
  1926. * src/FileAllocationEntry.cc
  1927. * src/FileEntry.h
  1928. * src/FillRequestGroupCommand.cc
  1929. * src/FtpDownloadCommand.cc
  1930. * src/FtpFinishDownloadCommand.cc
  1931. * src/FtpInitiateConnectionCommand.cc
  1932. * src/FtpNegotiationCommand.cc
  1933. * src/FtpTunnelRequestCommand.cc
  1934. * src/FtpTunnelResponseCommand.cc
  1935. * src/HandshakeExtensionMessage.cc
  1936. * src/HandshakeExtensionMessage.h
  1937. * src/HaveEraseCommand.cc
  1938. * src/HttpDownloadCommand.cc
  1939. * src/HttpInitiateConnectionCommand.cc
  1940. * src/HttpProxyRequestCommand.cc
  1941. * src/HttpProxyResponseCommand.cc
  1942. * src/HttpRequest.cc
  1943. * src/HttpRequest.h
  1944. * src/HttpRequestCommand.cc
  1945. * src/HttpResponseCommand.cc
  1946. * src/HttpServerBodyCommand.cc
  1947. * src/HttpServerCommand.cc
  1948. * src/HttpSkipResponseCommand.cc
  1949. * src/InitiateConnectionCommandFactory.cc
  1950. * src/InitiatorMSEHandshakeCommand.cc
  1951. * src/InitiatorMSEHandshakeCommand.h
  1952. * src/IteratableChecksumValidator.cc
  1953. * src/IteratableChecksumValidator.h
  1954. * src/IteratableChunkChecksumValidator.cc
  1955. * src/MSEHandshake.cc
  1956. * src/MSEHandshake.h
  1957. * src/Makefile.am
  1958. * src/Makefile.in
  1959. * src/Metalink2RequestGroup.cc
  1960. * src/MetalinkPostDownloadHandler.cc
  1961. * src/MultiDiskAdaptor.cc
  1962. * src/MultiDiskAdaptor.h
  1963. * src/MultiFileAllocationIterator.cc
  1964. * src/MultiUrlRequestInfo.cc
  1965. * src/PeerChokeCommand.cc
  1966. * src/PeerChokeCommand.h
  1967. * src/PeerInitiateConnectionCommand.cc
  1968. * src/PeerInitiateConnectionCommand.h
  1969. * src/PeerInteractionCommand.cc
  1970. * src/PeerInteractionCommand.h
  1971. * src/PeerReceiveHandshakeCommand.cc
  1972. * src/PieceHashCheckIntegrityEntry.cc
  1973. * src/RealtimeCommand.cc
  1974. * src/ReceiverMSEHandshakeCommand.cc
  1975. * src/RequestGroup.cc
  1976. * src/RequestGroup.h
  1977. * src/RequestGroupEntry.cc
  1978. * src/RequestGroupMan.cc
  1979. * src/SeedCheckCommand.cc
  1980. * src/SeedCheckCommand.h
  1981. * src/SegmentMan.cc
  1982. * src/ShareRatioSeedCriteria.h
  1983. * src/SingleFileDownloadContext.cc: Removed
  1984. * src/SingleFileDownloadContext.h: Removed
  1985. * src/SleepCommand.cc
  1986. * src/StreamCheckIntegrityEntry.cc
  1987. * src/TrackerWatcherCommand.cc
  1988. * src/TrackerWatcherCommand.h
  1989. * src/UnknownLengthPieceStorage.cc
  1990. * src/Util.cc
  1991. * src/Util.h
  1992. * src/XmlRpcMethodImpl.cc
  1993. * src/bittorrent_helper.cc
  1994. * src/bittorrent_helper.h
  1995. * src/download_helper.cc
  1996. * src/main.cc
  1997. * src/option_processing.cc
  1998. * test/BitfieldManTest.cc
  1999. * test/BittorrentHelperTest.cc
  2000. * test/BtCancelMessageTest.cc
  2001. * test/BtChokeMessageTest.cc
  2002. * test/BtDependencyTest.cc
  2003. * test/BtPieceMessageTest.cc
  2004. * test/BtPostDownloadHandlerTest.cc
  2005. * test/BtRegistryTest.cc
  2006. * test/BtRejectMessageTest.cc
  2007. * test/BtRequestMessageTest.cc
  2008. * test/DHTPeerAnnounceStorageTest.cc
  2009. * test/DefaultBtAnnounceTest.cc
  2010. * test/DefaultBtContextTest.cc: Removed
  2011. * test/DefaultBtMessageDispatcherTest.cc
  2012. * test/DefaultBtMessageFactoryTest.cc
  2013. * test/DefaultBtProgressInfoFileTest.cc
  2014. * test/DefaultBtRequestFactoryTest.cc
  2015. * test/DefaultExtensionMessageFactoryTest.cc
  2016. * test/DefaultPeerStorageTest.cc
  2017. * test/DefaultPieceStorageTest.cc
  2018. * test/DirectDiskAdaptorTest.cc
  2019. * test/DownloadContextTest.cc
  2020. * test/DownloadHandlerFactoryTest.cc
  2021. * test/DownloadHelperTest.cc
  2022. * test/HandshakeExtensionMessageTest.cc
  2023. * test/HttpRequestTest.cc
  2024. * test/HttpResponseTest.cc
  2025. * test/IteratableChecksumValidatorTest.cc
  2026. * test/IteratableChunkChecksumValidatorTest.cc
  2027. * test/MSEHandshakeTest.cc
  2028. * test/Makefile.am
  2029. * test/Makefile.in
  2030. * test/Metalink2RequestGroupTest.cc
  2031. * test/MetalinkPostDownloadHandlerTest.cc
  2032. * test/MockBtContext.h: Removed
  2033. * test/MockDHTTaskFactory.h
  2034. * test/MockDownloadContext.h: Removed
  2035. * test/MockPieceStorage.h
  2036. * test/MultiDiskAdaptorTest.cc
  2037. * test/MultiFileAllocationIteratorTest.cc
  2038. * test/RequestGroupManTest.cc
  2039. * test/RequestGroupTest.cc
  2040. * test/SegmentManTest.cc
  2041. * test/ShareRatioSeedCriteriaTest.cc
  2042. * test/SingleFileDownloadContextTest.cc: Removed
  2043. * test/UtilTest.cc
  2044. * test/XmlRpcMethodTest.cc
  2045. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Added experimental support of WEB-Seeding for multi-file torrent.
  2047. Due to fundamental changes in file handling in HTTP/FTP code, many
  2048. functions are not working: PeerStat, ServerHost, proxy..etc
  2049. * src/AbstractCommand.cc
  2050. * src/AbstractCommand.h
  2051. * src/BitfieldMan.cc
  2052. * src/BitfieldMan.h
  2053. * src/CreateRequestCommand.cc
  2054. * src/CreateRequestCommand.h
  2055. * src/DefaultPieceStorage.cc
  2056. * src/DefaultPieceStorage.h
  2057. * src/DownloadCommand.cc
  2058. * src/DownloadCommand.h
  2059. * src/DownloadContext.cc
  2060. * src/DownloadContext.h
  2061. * src/FileEntry.cc
  2062. * src/FileEntry.h
  2063. * src/FtpDownloadCommand.cc
  2064. * src/FtpDownloadCommand.h
  2065. * src/FtpFinishDownloadCommand.cc
  2066. * src/FtpFinishDownloadCommand.h
  2067. * src/FtpInitiateConnectionCommand.cc
  2068. * src/FtpInitiateConnectionCommand.h
  2069. * src/FtpNegotiationCommand.cc
  2070. * src/FtpNegotiationCommand.h
  2071. * src/FtpTunnelResponseCommand.cc
  2072. * src/HttpDownloadCommand.cc
  2073. * src/HttpDownloadCommand.h
  2074. * src/HttpInitiateConnectionCommand.cc
  2075. * src/HttpInitiateConnectionCommand.h
  2076. * src/HttpProxyResponseCommand.cc
  2077. * src/HttpRequest.cc
  2078. * src/HttpRequest.h
  2079. * src/HttpRequestCommand.cc
  2080. * src/HttpRequestCommand.h
  2081. * src/HttpResponseCommand.cc
  2082. * src/HttpResponseCommand.h
  2083. * src/HttpSkipResponseCommand.cc
  2084. * src/HttpSkipResponseCommand.h
  2085. * src/InitiateConnectionCommand.cc
  2086. * src/InitiateConnectionCommand.h
  2087. * src/InitiateConnectionCommandFactory.cc
  2088. * src/InitiateConnectionCommandFactory.h
  2089. * src/Makefile.am
  2090. * src/PieceStorage.h
  2091. * src/RequestGroup.cc
  2092. * src/RequestGroup.h
  2093. * src/RequestGroupMan.cc
  2094. * src/SegmentMan.cc
  2095. * src/SegmentMan.h
  2096. * src/SingleFileDownloadContext.h
  2097. * src/StreamFileAllocationEntry.cc
  2098. * src/TrackerWatcherCommand.cc
  2099. * src/UnknownLengthPieceStorage.cc
  2100. * src/UnknownLengthPieceStorage.h
  2101. * src/array_fun.h
  2102. * src/bitfield.h
  2103. * src/download_helper.cc
  2104. * test/DownloadContextTest.cc
  2105. * test/Makefile.am
  2106. * test/MockDownloadContext.h
  2107. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Added tellWaiting XML-RPC method.
  2109. * src/SingleFileDownloadContext.cc
  2110. * src/XmlRpcMethodFactory.cc
  2111. * src/XmlRpcMethodImpl.cc
  2112. * src/XmlRpcMethodImpl.h
  2113. * test/XmlRpcMethodTest.cc
  2114. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Updated CookieStorageTest
  2116. * test/CookieStorageTest.cc
  2117. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2119. handle excepion inside these functions.
  2120. * src/LibgnutlsTLSContext.cc
  2121. * src/LibgnutlsTLSContext.h
  2122. * src/LibsslTLSContext.cc
  2123. * src/LibsslTLSContext.h
  2124. * src/MultiUrlRequestInfo.cc
  2125. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Added comment
  2127. * src/RequestGroup.cc
  2128. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. In CookieStorage::load() and saveNsFormat(), handle exception
  2130. inside the functions. When saving Cookies, first write temporary
  2131. file and after successful writes, then renames it to final
  2132. destination.
  2133. * src/CookieStorage.cc
  2134. * src/CookieStorage.h
  2135. * src/MultiUrlRequestInfo.cc
  2136. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. The default value of --dir option is the absolute path to the
  2138. current directory. If getcwd() is failed, then it is ".", which is
  2139. the same value with old implementation. This change is necessary
  2140. because after daemon() call, the current working directory is
  2141. changed to /.
  2142. * src/File.cc
  2143. * src/File.h
  2144. * src/OptionHandlerFactory.cc
  2145. * src/option_processing.cc
  2146. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Call daemon() with arguments(0,0), which means daemon() changes
  2148. current working directory to / and redirects stdin, stdout and
  2149. stderr to /dev/null.
  2150. * src/option_processing.cc
  2151. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Small performance optimizations.
  2153. * src/RequestGroupMan.cc
  2154. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2156. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2157. * src/RequestGroupMan.cc
  2158. * src/RequestGroupMan.h
  2159. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2161. setNoWiat(true) if newly created command calls
  2162. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2163. * src/HttpListenCommand.cc
  2164. * src/HttpServerBodyCommand.cc
  2165. * src/HttpServerCommand.cc
  2166. * src/HttpServerResponseCommand.cc
  2167. * src/InitiateConnectionCommand.cc
  2168. * src/RequestGroup.cc
  2169. * src/StreamFileAllocationEntry.cc
  2170. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Removed include vector
  2172. * src/BtRegistry.h
  2173. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Rewritten BtRegistry
  2175. * src/BtRegistry.cc
  2176. * src/BtRegistry.h
  2177. * src/BtSetup.cc
  2178. * src/ConsoleStatCalc.cc
  2179. * src/PeerInteractionCommand.cc
  2180. * src/PeerReceiveHandshakeCommand.cc
  2181. * src/ReceiverMSEHandshakeCommand.cc
  2182. * src/RequestGroup.cc
  2183. * src/XmlRpcMethodImpl.cc
  2184. * test/BtRegistryTest.cc
  2185. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2187. * src/DefaultBtProgressInfoFile.cc
  2188. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Throw an exception if position is less than 0.
  2190. * src/XmlRpcMethodImpl.cc
  2191. * test/XmlRpcMethodTest.cc
  2192. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Use writeFilePath() in ConsoleStatCalc.cc
  2194. * src/ConsoleStatCalc.cc
  2195. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Receive the return value as const reference from
  2197. DownloadContext::getFileEntries().
  2198. * src/DefaultPieceStorage.cc
  2199. * src/RequestGroupMan.cc
  2200. * src/XmlRpcMethodImpl.cc
  2201. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. DownloadContext now has _fileEntries so that
  2203. DownloadContext::getFileEntries() can returns its const reference.
  2204. * src/DefaultBtContext.cc
  2205. * src/DefaultBtContext.h
  2206. * src/DownloadContext.cc
  2207. * src/DownloadContext.h
  2208. * src/SingleFileDownloadContext.cc
  2209. * src/SingleFileDownloadContext.h
  2210. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2212. writeFilePath() function template from RequestGroupMan.cc to
  2213. FileEntry.h
  2214. * src/FileEntry.h
  2215. * src/RequestGroupMan.cc
  2216. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2217. Documented 'position' parameter is starting from 0 in man page.
  2218. * doc/aria2c.1.txt
  2219. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Updated doc.
  2221. * src/MSEHandshake.cc
  2222. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Removed _acceptFeatures and its accessor functions from
  2224. RequestGroup since they are not used practically.
  2225. * src/HttpRequestCommand.cc
  2226. * src/RequestGroup.cc
  2227. * src/RequestGroup.h
  2228. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Removed member _maxTries from RequestGroup class to avoid
  2230. duplicate option value. Those classes who refer this variable
  2231. should use option value of PREF_MAX_TRIES directly.
  2232. * src/AbstractCommand.cc
  2233. * src/RequestGroup.cc
  2234. * src/RequestGroup.h
  2235. * src/TrackerWatcherCommand.cc
  2236. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. * Release 1.4.1
  2238. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Fixed compiler warnings on netbsd
  2240. * src/DHTConnectionImpl.cc
  2241. * src/PeerListenCommand.cc
  2242. * src/PeerSessionResource.cc
  2243. * src/SegmentMan.cc
  2244. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Updated Ukrainian translation. Thanks to all translators.
  2246. * po/uk.po
  2247. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Bump up version number to 1.4.1.
  2249. * configure.ac
  2250. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Added unit tests for strjoin, strconcat and strappend.
  2252. * test/a2functionalTest.cc
  2253. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. Rewritten strconcat and strappend using operator+ instead of
  2255. append().
  2256. * src/a2functional.h
  2257. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2259. is enabled.
  2260. * src/Makefile.am
  2261. * test/Makefile.am
  2262. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Added countSeeder() function which counts seeder in the given
  2264. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2265. * src/ConsoleStatCalc.cc
  2266. * src/Peer.h
  2267. * src/XmlRpcMethodImpl.cc
  2268. * test/PeerTest.cc
  2269. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Documented missing seeder in getPeers xml-rpc method.
  2271. Documented uploadLength and numSeeders.
  2272. * doc/aria2c.1.txt
  2273. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Added uploadLength and numSeeders to the response of tellStatus
  2275. xml-rpc method. Assert that PeerStorage instance is not null
  2276. instead of checking if statement. It should be non-null in this
  2277. context.
  2278. * src/XmlRpcMethodImpl.cc
  2279. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2281. * src/XmlRpcResponse.cc
  2282. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Avoid intermediate object during string concatenation.
  2284. * src/HttpRequest.cc
  2285. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Added strjoin function template. Use it in pathJoin()
  2287. * src/Util.h
  2288. * src/a2functional.h
  2289. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Avoid intermediate object during string concatenation. Replaced
  2291. post-increment unary operator with pre-increment one in for loop.
  2292. * src/AdaptiveURISelector.cc
  2293. * src/AnnounceList.cc
  2294. * src/AuthConfig.h
  2295. * src/BtBitfieldMessage.cc
  2296. * src/BtExtendedMessage.cc
  2297. * src/BtHandshakeMessage.cc
  2298. * src/BtPieceMessage.cc
  2299. * src/BtPortMessage.cc
  2300. * src/Cookie.cc
  2301. * src/DHTAnnouncePeerMessage.cc
  2302. * src/DHTAutoSaveCommand.cc
  2303. * src/DHTGetPeersReplyMessage.cc
  2304. * src/DHTNode.cc
  2305. * src/DHTQueryMessage.cc
  2306. * src/DHTResponseMessage.cc
  2307. * src/DHTUnknownMessage.cc
  2308. * src/DefaultBtAnnounce.cc
  2309. * src/DefaultBtContext.cc
  2310. * src/DefaultBtInteractive.cc
  2311. * src/DefaultBtProgressInfoFile.cc
  2312. * src/DefaultPeerStorage.cc
  2313. * src/DownloadEngine.cc
  2314. * src/FeatureConfig.cc
  2315. * src/File.cc
  2316. * src/FtpConnection.cc
  2317. * src/FtpNegotiationCommand.cc
  2318. * src/HandshakeExtensionMessage.cc
  2319. * src/HttpConnection.cc
  2320. * src/HttpRequest.cc
  2321. * src/HttpResponseCommand.cc
  2322. * src/HttpServer.cc
  2323. * src/IndexBtMessage.cc
  2324. * src/Metalink2RequestGroup.cc
  2325. * src/OptionHandlerImpl.h
  2326. * src/PStringBuildVisitor.cc
  2327. * src/Peer.cc
  2328. * src/PeerListenCommand.cc
  2329. * src/Piece.cc
  2330. * src/RangeBtMessage.cc
  2331. * src/Request.cc
  2332. * src/Request.h
  2333. * src/RequestGroup.cc
  2334. * src/RequestGroupMan.cc
  2335. * src/ServerStat.cc
  2336. * src/ServerStatMan.cc
  2337. * src/UTPexExtensionMessage.cc
  2338. * src/Util.cc
  2339. * src/a2functional.h
  2340. * src/download_helper.cc
  2341. * src/messageDigest.cc
  2342. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Unchoke a peer randomly at first and second choke round in seed
  2344. state.
  2345. * src/BtSeederStateChoke.cc
  2346. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2347. Added (sock_t) to quiet compiler warnings in MinGW
  2348. * src/SocketCore.cc
  2349. * src/SocketCore.h
  2350. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2352. * src/EpollEventPoll.h
  2353. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2354. Added fork() emulation using CreateProcess() in MinGW
  2355. * src/RequestGroupMan.cc
  2356. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. * Release 1.4.0
  2358. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Added utf8.torrent to EXTRA_DIST
  2360. * test/Makefile.am
  2361. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Fixed docs of aria2.addMetalink xml-rpc method.
  2363. * doc/aria2c.1.txt
  2364. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Added Slovak translation. Updated Ukrainian and Brazilian
  2366. Portuguese translation. Thanks to all translators.
  2367. * po/sk.po
  2368. * po/uk.po
  2369. * po/pt_BR.po
  2370. * po/LINGUAS
  2371. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Added test case for XmlRpcProcessor to fail to parse malformed
  2373. document.
  2374. * test/XmlRpcRequestProcessorTest.cc
  2375. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2376. Removed *.gmo files in po because they are generated on 'make
  2377. dist'
  2378. * po/*.gmo
  2379. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Documented max-concurrent-downloads of changeGlobalOption method
  2381. in man page.
  2382. * doc/aria2c.1.txt
  2383. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Added max-concurrent-downloads option to changeGlobalOption
  2385. xml-rpc method. Rewritten loop conditional in
  2386. RequestGroupMan::fillRequestGroupFromReserver().
  2387. * src/RequestGroupMan.cc
  2388. * src/RequestGroupMan.h
  2389. * src/XmlRpcMethod.cc
  2390. * src/XmlRpcMethodImpl.cc
  2391. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Documented position parameter in man page.
  2393. * doc/aria2c.1.txt
  2394. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Added 'position' parameter to addUri, addTorrent and addMetalink
  2396. xml-rpc method.
  2397. * src/RequestGroupMan.cc
  2398. * src/RequestGroupMan.h
  2399. * src/XmlRpcMethodImpl.cc
  2400. * test/XmlRpcMethodTest.cc
  2401. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Removed Peer.cc from compile source list when --disable-bittorrent
  2403. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2404. takes Peer.
  2405. * src/DefaultPieceStorage.cc
  2406. * src/DefaultPieceStorage.h
  2407. * src/Makefile.am
  2408. * src/PieceStorage.h
  2409. * src/UnknownLengthPieceStorage.cc
  2410. * src/UnknownLengthPieceStorage.h
  2411. * test/MockPieceStorage.h
  2412. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Implemented getter methods in header files to give them more
  2414. chance of optimization.
  2415. Return const reference for SharadHandle if possible.
  2416. * src/AbstractAuthResolver.cc
  2417. * src/AbstractAuthResolver.h
  2418. * src/AbstractBtMessage.cc
  2419. * src/AbstractBtMessage.h
  2420. * src/AbstractSingleDiskAdaptor.cc
  2421. * src/AbstractSingleDiskAdaptor.h
  2422. * src/AsyncNameResolver.cc
  2423. * src/AsyncNameResolver.h
  2424. * src/BNode.cc
  2425. * src/BNode.h
  2426. * src/BitfieldMan.cc
  2427. * src/BitfieldMan.h
  2428. * src/BtAbortOutstandingRequestEvent.h
  2429. * src/BtExtendedMessage.cc
  2430. * src/BtExtendedMessage.h
  2431. * src/BtSeederStateChoke.cc
  2432. * src/BtSeederStateChoke.h
  2433. * src/Cookie.cc
  2434. * src/Cookie.h
  2435. * src/DHTBucket.cc
  2436. * src/DHTBucket.h
  2437. * src/DHTConnectionImpl.cc
  2438. * src/DHTConnectionImpl.h
  2439. * src/DHTFindNodeReplyMessage.cc
  2440. * src/DHTFindNodeReplyMessage.h
  2441. * src/DHTGetPeersReplyMessage.cc
  2442. * src/DHTGetPeersReplyMessage.h
  2443. * src/DHTInteractionCommand.cc
  2444. * src/DHTMessage.cc
  2445. * src/DHTMessage.h
  2446. * src/DHTMessageDispatcherImpl.cc
  2447. * src/DHTMessageEntry.cc
  2448. * src/DHTMessageReceiver.cc
  2449. * src/DHTMessageReceiver.h
  2450. * src/DHTMessageTrackerEntry.cc
  2451. * src/DHTMessageTrackerEntry.h
  2452. * src/DHTPeerAnnounceEntry.cc
  2453. * src/DHTPeerAnnounceEntry.h
  2454. * src/DHTPeerLookupTask.cc
  2455. * src/DHTPeerLookupTask.h
  2456. * src/DHTRoutingTableDeserializer.cc
  2457. * src/DHTRoutingTableDeserializer.h
  2458. * src/DefaultBtAnnounce.cc
  2459. * src/DefaultBtAnnounce.h
  2460. * src/DefaultBtMessageDispatcher.cc
  2461. * src/DefaultBtMessageDispatcher.h
  2462. * src/DefaultBtRequestFactory.cc
  2463. * src/DefaultBtRequestFactory.h
  2464. * src/DiskAdaptor.cc
  2465. * src/DiskAdaptor.h
  2466. * src/DownloadContext.cc
  2467. * src/DownloadContext.h
  2468. * src/DownloadEngine.cc
  2469. * src/DownloadEngine.h
  2470. * src/EpollEventPoll.cc
  2471. * src/EpollEventPoll.h
  2472. * src/FtpConnection.cc
  2473. * src/FtpConnection.h
  2474. * src/HttpConnection.cc
  2475. * src/HttpConnection.h
  2476. * src/HttpHeader.cc
  2477. * src/HttpHeader.h
  2478. * src/HttpRequest.cc
  2479. * src/HttpRequest.h
  2480. * src/HttpResponse.cc
  2481. * src/HttpResponse.h
  2482. * src/LibsslTLSContext.cc
  2483. * src/LibsslTLSContext.h
  2484. * src/MSEHandshake.cc
  2485. * src/MSEHandshake.h
  2486. * src/MetalinkEntry.cc
  2487. * src/MetalinkEntry.h
  2488. * src/MetalinkParserController.cc
  2489. * src/MetalinkParserController.h
  2490. * src/MetalinkParserStateMachine.cc
  2491. * src/MetalinkParserStateMachine.h
  2492. * src/MultiDiskAdaptor.cc
  2493. * src/MultiDiskAdaptor.h
  2494. * src/NetrcAuthResolver.cc
  2495. * src/NetrcAuthResolver.h
  2496. * src/Peer.cc
  2497. * src/Peer.h
  2498. * src/PeerSessionResource.cc
  2499. * src/PeerSessionResource.h
  2500. * src/Piece.cc
  2501. * src/Piece.h
  2502. * src/PieceStatMan.cc
  2503. * src/PieceStatMan.h
  2504. * src/Request.cc
  2505. * src/Request.h
  2506. * src/RequestGroup.cc
  2507. * src/RequestGroup.h
  2508. * src/RequestGroupMan.cc
  2509. * src/RequestGroupMan.h
  2510. * src/RequestSlot.cc
  2511. * src/RequestSlot.h
  2512. * src/SegmentMan.cc
  2513. * src/SegmentMan.h
  2514. * src/SelectEventPoll.cc
  2515. * src/SelectEventPoll.h
  2516. * src/ServerStat.cc
  2517. * src/ServerStat.h
  2518. * src/Signature.cc
  2519. * src/Signature.h
  2520. * src/URIResult.cc
  2521. * src/URIResult.h
  2522. * src/UTPexExtensionMessage.cc
  2523. * src/UTPexExtensionMessage.h
  2524. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Fixed compile error without BitTorrent and Metalink support.
  2526. * src/XmlRpcMethod.cc
  2527. * src/XmlRpcMethodFactory.cc
  2528. * src/XmlRpcMethodImpl.cc
  2529. * src/XmlRpcMethodImpl.h
  2530. * test/XmlRpcMethodTest.cc
  2531. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Rewritten the help message for --allow-overwrite option.
  2533. * doc/aria2c.1.txt
  2534. * src/usage_text.h
  2535. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Fixed typo
  2537. * doc/aria2c.1.txt
  2538. * src/usage_text.h
  2539. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Updated README for 1.4.0 release. Use new table syntax of
  2541. asciidoc.
  2542. * README
  2543. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Documented --xml-rpc-max-request-size option in man page.
  2545. * doc/aria2c.1.txt
  2546. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Moved C_* constants from BtContext to DefaultBtContext.
  2548. * src/BtContext.cc: Removed.
  2549. * src/BtContext.h
  2550. * src/DefaultBtContext.cc
  2551. * src/DefaultBtContext.h
  2552. * src/Makefile.am
  2553. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2555. path key respectively when persing .torrent file.
  2556. * src/BtContext.cc
  2557. * src/BtContext.h
  2558. * src/DefaultBtContext.cc
  2559. * test/DefaultBtContextTest.cc
  2560. * test/utf8.torrent
  2561. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Added --xml-rpc-max-request-size option to limit the size of
  2563. XML-RPC request.
  2564. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Documented XML-RPC API in man page.
  2566. * doc/aria2c.1.txt
  2567. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2569. will break strict-aliasing rules
  2570. * src/PeerConnection.cc
  2571. * test/DHTRoutingTableSerializerTest.cc
  2572. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2573. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2574. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2575. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2576. PKG_CHECK_MODULES macro uses latter name.
  2577. * m4/sqlite3.m4
  2578. * src/Makefile.am
  2579. * test/Makefile.am
  2580. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Fixed typo
  2582. * configure.ac
  2583. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2585. presence of libgnutls using pkg-config first. If it fails, fall
  2586. back to old macro libgnutls.m4.
  2587. * configure.ac
  2588. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Use s itself instead of !s.bad()
  2590. * src/CookieStorage.cc
  2591. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Documented --on-download-* option and --save-cookies option in man
  2593. page.
  2594. * doc/aria2c.1.txt
  2595. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Set possible values for --load-cookie option to "/path/to/file".
  2597. * src/OptionHandlerFactory.cc
  2598. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Added --save-cookies option.
  2600. * src/Cookie.cc
  2601. * src/Cookie.h
  2602. * src/CookieStorage.cc
  2603. * src/CookieStorage.h
  2604. * src/MultiUrlRequestInfo.cc
  2605. * src/OptionHandlerFactory.cc
  2606. * src/prefs.cc
  2607. * src/prefs.h
  2608. * src/usage_text.h
  2609. * test/CookieStorageTest.cc
  2610. * test/CookieTest.cc
  2611. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Removed tellAll XML-RPC command because its reponse tends to be
  2613. big if stopped/waiting downloads pile up.
  2614. * src/XmlRpcMethodFactory.cc
  2615. * src/XmlRpcMethodImpl.cc
  2616. * src/XmlRpcMethodImpl.h
  2617. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Added the ability to execute command when download starts and
  2619. stops. You can also specify command for particular cases such as
  2620. complete/error download. Added --on-download-start,
  2621. --on-download-stop, --on-download-complete and --on-download-error
  2622. option.
  2623. * src/OptionHandlerFactory.cc
  2624. * src/RequestGroupMan.cc
  2625. * src/prefs.cc
  2626. * src/prefs.h
  2627. * src/usage_text.h
  2628. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Fixed test error
  2630. * test/BencodeTest.cc
  2631. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Added unit tests.
  2633. * test/XmlRpcMethodTest.cc
  2634. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Made exception message more verbose.
  2636. * src/bencode.cc
  2637. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2639. space in console readout. Also they are now shown in MiB/s if
  2640. speed > 1024KiB/s.
  2641. * src/ConsoleStatCalc.cc
  2642. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Added SEED to console output, which represents the number of
  2644. seeders currently the client is connecting to.
  2645. * src/ConsoleStatCalc.cc
  2646. * src/ConsoleStatCalc.h
  2647. * src/DownloadEngine.cc
  2648. * src/NullStatCalc.h
  2649. * src/StatCalc.h
  2650. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Added source filename(__FILE__) and line number(__LINE__) to
  2652. exception message.
  2653. * src/AbstractCommand.cc
  2654. * src/AbstractDiskWriter.cc
  2655. * src/AbstractProxyResponseCommand.cc
  2656. * src/BDE.h
  2657. * src/BtAllowedFastMessage.cc
  2658. * src/BtHandshakeMessageValidator.h
  2659. * src/BtHaveAllMessage.cc
  2660. * src/BtHaveNoneMessage.cc
  2661. * src/BtPieceMessage.cc
  2662. * src/BtRejectMessage.cc
  2663. * src/ChunkedDecoder.cc
  2664. * src/CookieStorage.cc
  2665. * src/DHTAnnouncePeerMessage.cc
  2666. * src/DHTEntryPointNameResolveCommand.cc
  2667. * src/DHTMessageFactoryImpl.cc
  2668. * src/DHTMessageTracker.cc
  2669. * src/DHTRoutingTableDeserializer.cc
  2670. * src/DHTRoutingTableSerializer.cc
  2671. * src/DHTSetup.cc
  2672. * src/DHTTokenTracker.cc
  2673. * src/DefaultBtAnnounce.cc
  2674. * src/DefaultBtContext.cc
  2675. * src/DefaultBtInteractive.cc
  2676. * src/DefaultBtMessageFactory.cc
  2677. * src/DefaultBtProgressInfoFile.cc
  2678. * src/DefaultExtensionMessageFactory.cc
  2679. * src/DlAbortEx.h
  2680. * src/DlRetryEx.h
  2681. * src/DownloadCommand.cc
  2682. * src/DownloadEngineFactory.cc
  2683. * src/DownloadFailureException.h
  2684. * src/Exception.cc
  2685. * src/Exception.h
  2686. * src/ExpatMetalinkProcessor.cc
  2687. * src/ExpatXmlRpcRequestProcessor.cc
  2688. * src/FallocFileAllocationIterator.cc
  2689. * src/FatalException.h
  2690. * src/FtpConnection.cc
  2691. * src/FtpFinishDownloadCommand.cc
  2692. * src/FtpInitiateConnectionCommand.cc
  2693. * src/FtpNegotiationCommand.cc
  2694. * src/GZipDecoder.cc
  2695. * src/HandshakeExtensionMessage.cc
  2696. * src/HttpConnection.cc
  2697. * src/HttpHeaderProcessor.cc
  2698. * src/HttpInitiateConnectionCommand.cc
  2699. * src/HttpResponse.cc
  2700. * src/HttpResponseCommand.cc
  2701. * src/HttpServer.cc
  2702. * src/HttpSkipResponseCommand.cc
  2703. * src/InitiateConnectionCommandFactory.cc
  2704. * src/IteratableChunkChecksumValidator.cc
  2705. * src/LibgcryptARC4Context.h
  2706. * src/LibgcryptARC4Decryptor.h
  2707. * src/LibgcryptARC4Encryptor.h
  2708. * src/LibgcryptDHKeyExchange.h
  2709. * src/LibgnutlsTLSContext.cc
  2710. * src/LibsslARC4Context.h
  2711. * src/LibsslARC4Decryptor.h
  2712. * src/LibsslARC4Encryptor.h
  2713. * src/LibsslDHKeyExchange.h
  2714. * src/LibsslTLSContext.cc
  2715. * src/MSEHandshake.cc
  2716. * src/MessageDigestHelper.cc
  2717. * src/MetalinkHelper.cc
  2718. * src/MultiDiskAdaptor.cc
  2719. * src/NameMatchOptionHandler.h
  2720. * src/NameResolver.cc
  2721. * src/Netrc.cc
  2722. * src/NsCookieParser.cc
  2723. * src/OptionHandlerException.cc
  2724. * src/OptionHandlerException.h
  2725. * src/OptionHandlerImpl.h
  2726. * src/OptionParser.cc
  2727. * src/ParameterizedStringParser.cc
  2728. * src/PeerAbstractCommand.cc
  2729. * src/PeerConnection.cc
  2730. * src/PeerMessageUtil.cc
  2731. * src/PeerReceiveHandshakeCommand.cc
  2732. * src/Platform.cc
  2733. * src/ReceiverMSEHandshakeCommand.cc
  2734. * src/RecoverableException.h
  2735. * src/RequestGroup.cc
  2736. * src/SimpleLogger.cc
  2737. * src/SocketCore.cc
  2738. * src/Sqlite3MozCookieParser.cc
  2739. * src/UTPexExtensionMessage.cc
  2740. * src/Util.cc
  2741. * src/XML2SAXMetalinkProcessor.cc
  2742. * src/Xml2XmlRpcRequestProcessor.cc
  2743. * src/XmlRpcMethodImpl.cc
  2744. * src/bencode.cc
  2745. * src/download_helper.cc
  2746. * src/messageDigest.h
  2747. * test/ExceptionTest.cc
  2748. * test/TestUtil.cc
  2749. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Bump up version number to 1.4.0
  2751. * configure.ac
  2752. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Added 2files.metalink to EXTRA_DIST
  2754. * test/Makefile.am
  2755. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Added missing 2files.metalink
  2757. * test/2files.metalink
  2758. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Show "[MEMORY]" prefix before filename in download summary if it
  2760. is downloaded into memory.
  2761. * src/DownloadResult.h
  2762. * src/RequestGroup.cc
  2763. * src/RequestGroupMan.cc
  2764. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2766. * src/ExpatXmlRpcRequestProcessor.cc
  2767. * src/Xml2XmlRpcRequestProcessor.cc
  2768. * src/message.h
  2769. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Defined const BDEs to avoid duplicate instantiation.
  2771. Defined MSG_GID_NOT_PROVIDED.
  2772. * src/XmlRpcMethodImpl.cc
  2773. * src/message.h
  2774. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Code cleanup
  2776. * src/Xml2XmlRpcRequestProcessor.cc
  2777. * src/Xml2XmlRpcRequestProcessor.h
  2778. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Defined ENABLE_XML_RPC
  2780. * configure.ac
  2781. * configure
  2782. * config.h.in
  2783. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Added ExpatXmlRpcRequestProcessor
  2785. * src/ExpatXmlRpcRequestProcessor.cc
  2786. * src/ExpatXmlRpcRequestProcessor.h
  2787. * src/Makefile.am
  2788. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Added tests for addTorrent and addMetalink command.
  2790. * test/TestUtil.cc
  2791. * test/TestUtil.h
  2792. * test/XmlRpcMethodTest.cc
  2793. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Corrected the description of --file-allocation option.
  2795. * doc/aria2c.1.txt
  2796. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Added tellAll command.
  2798. * src/XmlRpcMethodFactory.cc
  2799. * src/XmlRpcMethodImpl.cc
  2800. * src/XmlRpcMethodImpl.h
  2801. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2803. * src/XmlRpcMethodImpl.cc
  2804. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. Added changeGlobalOption command. Currently,
  2806. max-overall-download-limit and max-overall-upload-limit option are
  2807. available.
  2808. * src/RequestGroupMan.h
  2809. * src/XmlRpcMethod.cc
  2810. * src/XmlRpcMethod.h
  2811. * src/XmlRpcMethodFactory.cc
  2812. * src/XmlRpcMethodImpl.cc
  2813. * src/XmlRpcMethodImpl.h
  2814. * test/XmlRpcMethodTest.cc
  2815. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Added changeOption command. Currently, max-download-limit,
  2817. max-upload-limit option are available in this command.
  2818. * src/RequestGroup.h
  2819. * src/XmlRpcMethod.cc
  2820. * src/XmlRpcMethod.h
  2821. * src/XmlRpcMethodFactory.cc
  2822. * src/XmlRpcMethodImpl.cc
  2823. * src/XmlRpcMethodImpl.h
  2824. * test/XmlRpcMethodTest.cc
  2825. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2826. Added purgeDownloadResult command.
  2827. * src/RequestGroupMan.cc
  2828. * src/RequestGroupMan.h
  2829. * src/XmlRpcMethodFactory.cc
  2830. * src/XmlRpcMethodImpl.cc
  2831. * src/XmlRpcMethodImpl.h
  2832. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Refactored.
  2834. * src/XmlRpcMethod.cc
  2835. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2837. XmlRpcResponse.
  2838. * src/HttpServerBodyCommand.cc
  2839. * src/Makefile.am
  2840. * src/XmlRpcMethod.cc
  2841. * src/XmlRpcMethod.h
  2842. * src/XmlRpcMethodImpl.cc
  2843. * src/XmlRpcResponse.cc
  2844. * src/XmlRpcResponse.h
  2845. * test/XmlRpcMethodTest.cc
  2846. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2847. In XML-RPC option struct, header and index-out option can take
  2848. array as value.
  2849. * src/XmlRpcMethod.cc
  2850. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Removed unused option member from PeerConnection.
  2852. * src/InitiatorMSEHandshakeCommand.cc
  2853. * src/PeerConnection.cc
  2854. * src/PeerConnection.h
  2855. * src/PeerInteractionCommand.cc
  2856. * src/PeerReceiveHandshakeCommand.cc
  2857. * src/ReceiverMSEHandshakeCommand.cc
  2858. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Added "seeder" key to getPeers response.
  2860. * src/XmlRpcMethodImpl.cc
  2861. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Added addMetalink XML-RPC command.
  2863. * src/XmlRpcMethodFactory.cc
  2864. * src/XmlRpcMethodImpl.cc
  2865. * src/XmlRpcMethodImpl.h
  2866. * src/download_helper.cc
  2867. * src/download_helper.h
  2868. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Fixed the bug that POU peers are never choked in seeding.
  2870. * src/BtSeederStateChoke.cc
  2871. * src/BtSeederStateChoke.h
  2872. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Added web-seeding URI handling in addTorrent command.
  2874. * src/XmlRpcMethodImpl.cc
  2875. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Added "length" key to getFiles response.
  2877. * src/XmlRpcMethodImpl.cc
  2878. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Moved --no-netrc option from ftp option section to http/ftp option
  2880. section.
  2881. * doc/aria2c.1.txt
  2882. * src/OptionHandlerFactory.cc
  2883. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Removed garbage "\" character before '
  2885. * doc/aria2c.1.txt
  2886. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Removed garbage "\" character before http.
  2888. * doc/aria2c.1.txt
  2889. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Documented additional options that can be specified in -i list.
  2891. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2892. and --xml-rpc-passwd. Removed --enable-http-server and
  2893. --http-server-listen-port.
  2894. * doc/aria2c.1.txt
  2895. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2897. * src/DefaultPeerStorage.cc
  2898. * src/DefaultPeerStorage.h
  2899. * src/PeerStorage.h
  2900. * src/XmlRpcMethodImpl.cc
  2901. * test/MockPeerStorage.h
  2902. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Put a call to Socket::isReadable() in try block.
  2904. * src/HttpServerBodyCommand.cc
  2905. * src/HttpServerCommand.cc
  2906. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2908. exception , so it is now in try block.
  2909. * src/HttpServerResponseCommand.cc
  2910. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Added "amChoking" and "peerChoking" key in getPeers response.
  2912. * src/XmlRpcMethodImpl.cc
  2913. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Added test case for zero-length filter.
  2915. * test/BitfieldManTest.cc
  2916. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. getFiles command now returns file data for finished/stopped
  2918. downloads.
  2919. * src/XmlRpcMethodImpl.cc
  2920. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. DownloadResult now has the list of FileEntry. The download
  2922. summary displays the path of first selected file and the number of
  2923. remaining files for multi-file torrent.
  2924. * src/DownloadResult.h
  2925. * src/RequestGroup.cc
  2926. * src/RequestGroupMan.cc
  2927. * test/RequestGroupTest.cc
  2928. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Fixed segmentation fault error when no file is selected in
  2930. multi-file torrent.
  2931. * src/BitfieldMan.cc
  2932. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Escaped <,>,& character in XML-RPC response.
  2934. * src/XmlRpcMethod.cc
  2935. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Throw DlAbortEx instead of FatalException during parsing options
  2937. because we don't want for aria2 to quit when bad option is passed
  2938. via XML-RPC.
  2939. * src/OptionHandlerException.cc
  2940. * src/OptionHandlerException.h
  2941. * src/OptionHandlerImpl.h
  2942. * src/OptionParser.cc
  2943. * src/OptionParser.h
  2944. * src/PStringSegment.cc
  2945. * src/ParameterizedStringParser.cc
  2946. * src/download_helper.cc
  2947. * test/ParameterizedStringParserTest.cc
  2948. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2949. Selecting files are now done in
  2950. DefaultBtContext::setFileFileter().
  2951. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2952. functions are removed because they are no longer used. Creating
  2953. filter in BitfieldMan is done in new funtion
  2954. PieceStorage::setupFileFilter()
  2955. * src/BtContext.cc
  2956. * src/BtContext.h
  2957. * src/DefaultBtContext.cc
  2958. * src/DefaultBtContext.h
  2959. * src/DefaultPieceStorage.cc
  2960. * src/DefaultPieceStorage.h
  2961. * src/DiskAdaptor.cc
  2962. * src/DiskAdaptor.h
  2963. * src/PieceStorage.h
  2964. * src/RequestGroup.cc
  2965. * src/UnknownLengthPieceStorage.h
  2966. * src/XmlRpcMethodImpl.cc
  2967. * test/DefaultBtContextTest.cc
  2968. * test/MockBtContext.h
  2969. * test/MockPieceStorage.h
  2970. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Fixed compile error on Mac OS X
  2972. * src/HttpServer.cc
  2973. * src/XmlRpcMethod.h
  2974. * src/XmlRpcMethodImpl.cc
  2975. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Use std::binary_search instead of std::find
  2977. * src/DefaultPieceStorage.cc
  2978. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2979. Removed unnecessary BDE() call; leave them to implicit conversion.
  2980. * src/XmlRpcMethodImpl.cc
  2981. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2982. Return connections and gid in string
  2983. * src/XmlRpcMethodImpl.cc
  2984. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Renamed addURI as addUri
  2986. * src/XmlRpcMethodFactory.cc
  2987. * src/XmlRpcMethodImpl.cc
  2988. * src/XmlRpcMethodImpl.h
  2989. * test/XmlRpcMethodTest.cc
  2990. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2991. Renamed addTorrentFile as addTorrent
  2992. * src/XmlRpcMethodFactory.cc
  2993. * src/XmlRpcMethodImpl.cc
  2994. * src/XmlRpcMethodImpl.h
  2995. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. The information for files, URIs, peers are removed from the
  2997. reponse of TellaActive, TellStatus command because they tend to be
  2998. large. Instead they can be retrieved by the dedicated commands:
  2999. getFiles, getUris and getPeers respectively.
  3000. * src/XmlRpcMethodFactory.cc
  3001. * src/XmlRpcMethodImpl.cc
  3002. * src/XmlRpcMethodImpl.h
  3003. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Removed --max-overall-upload-limit and
  3005. --max-overall-download-limit option from listRequestOptions.
  3006. * src/download_helper.cc
  3007. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Log incoming host in HttpListenCommand.
  3009. * src/HttpListenCommand.cc
  3010. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3012. --xml-rpc-passwd option.
  3013. * src/HttpServer.cc
  3014. * src/HttpServer.h
  3015. * src/HttpServerCommand.cc
  3016. * src/OptionHandlerFactory.cc
  3017. * src/prefs.cc
  3018. * src/prefs.h
  3019. * src/usage_text.h
  3020. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3022. processing 0 length request.
  3023. * src/HttpServerBodyCommand.cc
  3024. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Removed --enable-http-server and --http-server-listen-port
  3026. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3027. instead. The original feature for --enable-http-server that
  3028. reports download progress in HTML was officially removed. Persist
  3029. XML-RPC connection if client supports keep-alive.
  3030. * src/DownloadEngineFactory.cc
  3031. * src/HttpServerCommand.cc
  3032. * src/HttpServerResponseCommand.cc
  3033. * src/Makefile.am
  3034. * src/Makefile.in
  3035. * src/OptionHandlerFactory.cc
  3036. * src/RequestGroupMan.cc
  3037. * src/main.cc
  3038. * src/option_processing.cc
  3039. * src/prefs.cc
  3040. * src/prefs.h
  3041. * src/usage_text.h
  3042. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Added "uris" key to the response of tellStatus command. Added
  3044. "connections" key to the response of tellStatus and tellActive
  3045. command.
  3046. * src/XmlRpcMethodImpl.cc
  3047. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3049. Added TellStatusXmlRpcMethod. Remove command can now remove
  3050. waiting RequestGroup.
  3051. * src/RequestGroupMan.cc
  3052. * src/RequestGroupMan.h
  3053. * src/XmlRpcMethodFactory.cc
  3054. * src/XmlRpcMethodImpl.cc
  3055. * src/XmlRpcMethodImpl.h
  3056. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3057. Initialized _peerId
  3058. * src/Peer.cc
  3059. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Return fault structure for error. FailXmlRpcMethod is renamed as
  3061. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3062. in non-torrent download. Return single param value.
  3063. * src/XmlRpcMethod.cc
  3064. * src/XmlRpcMethodFactory.cc
  3065. * src/XmlRpcMethodImpl.cc
  3066. * src/XmlRpcMethodImpl.h
  3067. * test/XmlRpcMethodTest.cc
  3068. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3070. command.
  3071. * src/RequestGroup.cc
  3072. * src/RequestGroup.h
  3073. * src/RequestGroupMan.cc
  3074. * src/XmlRpcMethodImpl.cc
  3075. * test/RequestGroupTest.cc
  3076. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Added more options that can be specified in -i list and xml-rpc
  3078. add* command.
  3079. * src/download_helper.h
  3080. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. The available options in -i list should be listed in
  3082. listRequestOptions().
  3083. * src/download_helper.cc
  3084. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3086. command.
  3087. * src/XmlRpcMethodImpl.cc
  3088. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Now RequestGroup has its own copy of Option object. This will help
  3090. to give custom option for each RequestGroup.
  3091. addTorrentFile command now takes options.
  3092. * src/AbstractCommand.cc
  3093. * src/AbstractCommand.h
  3094. * src/AbstractProxyRequestCommand.cc
  3095. * src/ActivePeerConnectionCommand.cc
  3096. * src/ActivePeerConnectionCommand.h
  3097. * src/AdaptiveURISelector.cc
  3098. * src/BtCheckIntegrityEntry.cc
  3099. * src/BtDependency.cc
  3100. * src/BtDependency.h
  3101. * src/BtFileAllocationEntry.cc
  3102. * src/BtPostDownloadHandler.cc
  3103. * src/CheckIntegrityEntry.cc
  3104. * src/DownloadCommand.cc
  3105. * src/FtpDownloadCommand.cc
  3106. * src/FtpFinishDownloadCommand.cc
  3107. * src/FtpInitiateConnectionCommand.cc
  3108. * src/FtpNegotiationCommand.cc
  3109. * src/HttpInitiateConnectionCommand.cc
  3110. * src/HttpRequestCommand.cc
  3111. * src/HttpResponseCommand.cc
  3112. * src/HttpSkipResponseCommand.cc
  3113. * src/InitiateConnectionCommand.cc
  3114. * src/InitiateConnectionCommandFactory.cc
  3115. * src/InitiatorMSEHandshakeCommand.cc
  3116. * src/InitiatorMSEHandshakeCommand.h
  3117. * src/Metalink2RequestGroup.cc
  3118. * src/Metalink2RequestGroup.h
  3119. * src/MetalinkPostDownloadHandler.cc
  3120. * src/MultiUrlRequestInfo.cc
  3121. * src/MultiUrlRequestInfo.h
  3122. * src/PeerAbstractCommand.cc
  3123. * src/PeerInteractionCommand.cc
  3124. * src/PeerInteractionCommand.h
  3125. * src/PeerReceiveHandshakeCommand.cc
  3126. * src/PeerReceiveHandshakeCommand.h
  3127. * src/RequestGroup.cc
  3128. * src/RequestGroup.h
  3129. * src/TrackerWatcherCommand.cc
  3130. * src/TrackerWatcherCommand.h
  3131. * src/XmlRpcMethod.cc
  3132. * src/XmlRpcMethod.h
  3133. * src/XmlRpcMethodImpl.cc
  3134. * src/download_helper.cc
  3135. * src/download_helper.h
  3136. * src/main.cc
  3137. * test/BtDependencyTest.cc
  3138. * test/BtPostDownloadHandlerTest.cc
  3139. * test/DefaultBtMessageDispatcherTest.cc
  3140. * test/DownloadHandlerFactoryTest.cc
  3141. * test/DownloadHelperTest.cc
  3142. * test/Metalink2RequestGroupTest.cc
  3143. * test/MetalinkPostDownloadHandlerTest.cc
  3144. * test/RequestGroupManTest.cc
  3145. * test/RequestGroupTest.cc
  3146. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Added tellActiveStatus xml-rpc command which reports download
  3148. status of active downloads.
  3149. * src/XmlRpcMethodFactory.cc
  3150. * src/XmlRpcMethodImpl.cc
  3151. * src/XmlRpcMethodImpl.h
  3152. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Added addTorrentFile xml-rpc command which receives uploaded
  3154. torrent file and add download for it.
  3155. * src/RequestGroupMan.cc
  3156. * src/XmlRpcMethodFactory.cc
  3157. * src/XmlRpcMethodImpl.cc
  3158. * src/XmlRpcMethodImpl.h
  3159. * src/download_helper.cc
  3160. * src/download_helper.h
  3161. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Added remove xml-rpc command which removes specified download.
  3163. There is a known issue: the removed unfinished downloads are
  3164. reported ERR when aria2 exits. They should be reported as INPR.
  3165. * src/RequestGroupMan.cc
  3166. * src/RequestGroupMan.h
  3167. * src/XmlRpcMethodFactory.cc
  3168. * src/XmlRpcMethodImpl.cc
  3169. * src/XmlRpcMethodImpl.h
  3170. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. If --enable-http-server is enabled, don't stop aria2 when all
  3172. download finished and don't quit when no files to download at
  3173. start up.
  3174. * src/RequestGroupMan.cc
  3175. * src/main.cc
  3176. * src/option_processing.cc
  3177. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Added missing AM_CONDITIONAL
  3179. * configure.ac
  3180. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Added xml-rpc functionality. Currently only addURI commad is
  3182. supported. To enable xml-rpc, run aria2 with
  3183. --enable-http-server. This option name is temporal and will be
  3184. changed. The feature that reports download progress in html format
  3185. is temporarily disabled.
  3186. * src/HttpServer.cc
  3187. * src/HttpServer.h
  3188. * src/HttpServerBodyCommand.cc
  3189. * src/HttpServerBodyCommand.h
  3190. * src/HttpServerCommand.cc
  3191. * src/HttpServerResponseCommand.cc
  3192. * src/Makefile.am
  3193. * src/OptionParser.cc
  3194. * src/OptionParser.h
  3195. * src/RequestGroupMan.cc
  3196. * src/RequestGroupMan.h
  3197. * src/XmlRpcMethod.cc
  3198. * src/XmlRpcMethod.h
  3199. * src/XmlRpcMethodFactory.cc
  3200. * src/XmlRpcMethodFactory.h
  3201. * src/XmlRpcMethodImpl.cc
  3202. * src/XmlRpcMethodImpl.h
  3203. * src/download_helper.cc
  3204. * src/download_helper.h
  3205. * test/Makefile.am
  3206. * test/XmlRpcMethodTest.cc
  3207. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3208. Added xml-rpc request parser. The supported value types are:
  3209. i4/int, string, double, struct, array, base64. Currently only
  3210. libxml2 version is provided.
  3211. * src/Xml2XmlRpcRequestProcessor.cc
  3212. * src/Xml2XmlRpcRequestProcessor.h
  3213. * src/XmlRpcElements.cc
  3214. * src/XmlRpcElements.h
  3215. * src/XmlRpcRequest.h
  3216. * src/XmlRpcRequestParserController.cc
  3217. * src/XmlRpcRequestParserController.h
  3218. * src/XmlRpcRequestParserState.h
  3219. * src/XmlRpcRequestParserStateImpl.cc
  3220. * src/XmlRpcRequestParserStateImpl.h
  3221. * src/XmlRpcRequestParserStateMachine.cc
  3222. * src/XmlRpcRequestParserStateMachine.h
  3223. * src/XmlRpcRequestProcessor.h
  3224. * test/XmlRpcRequestParserControllerTest.cc
  3225. * test/XmlRpcRequestProcessorTest.cc
  3226. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3227. * Release 1.3.3
  3228. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Fixed compile error since r1202.
  3230. * src/ExpatMetalinkProcessor.cc
  3231. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Updated Ukrainian, Russian and Simplified Chinese
  3233. translations. Thanks to all translators.
  3234. * po/ru.po
  3235. * po/uk.po
  3236. * po/zh_CN.po
  3237. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Pass reference of Option object instead of pointer.
  3239. * src/download_helper.cc
  3240. * src/download_helper.h
  3241. * src/main.cc
  3242. * test/DownloadHelperTest.cc
  3243. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3245. from option directly. Instead, get them from RequestGroup.
  3246. * src/ActivePeerConnectionCommand.cc
  3247. * src/ActivePeerConnectionCommand.h
  3248. * src/PeerReceiveHandshakeCommand.cc
  3249. * src/RequestGroup.h
  3250. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Removed unused uploadLimitCheck and uploadLimit from
  3252. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3253. PeerInteractionCommand.
  3254. * src/PeerAbstractCommand.cc
  3255. * src/PeerAbstractCommand.h
  3256. * src/PeerInteractionCommand.cc
  3257. * src/PeerInteractionCommand.h
  3258. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Fixed broken file renaming feature since r1202.
  3260. * src/FtpNegotiationCommand.cc
  3261. * src/FtpNegotiationCommand.h
  3262. * src/HttpResponseCommand.cc
  3263. * src/RequestGroup.cc
  3264. * src/RequestGroup.h
  3265. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Removed unused debug log
  3267. * src/SocketCore.cc
  3268. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Generated configure and Makefile.in using autoconf 2.63 and
  3270. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3271. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3272. * configure.ac
  3273. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Moved piece statistics stuff to new PieceStatMan class.
  3275. Refactored PieceSelector interface.
  3276. * src/DefaultPieceStorage.cc
  3277. * src/DefaultPieceStorage.h
  3278. * src/LongestSequencePieceSelector.cc
  3279. * src/LongestSequencePieceSelector.h
  3280. * src/Makefile.am
  3281. * src/PieceSelector.h
  3282. * src/PieceStatMan.cc
  3283. * src/PieceStatMan.h
  3284. * src/RarestPieceSelector.cc
  3285. * src/RarestPieceSelector.h
  3286. * src/RequestGroup.cc
  3287. * test/DefaultPieceStorageTest.cc
  3288. * test/InOrderPieceSelector.h
  3289. * test/Makefile.am
  3290. * test/PieceStatManTest.cc
  3291. * test/RarestPieceSelectorTest.cc
  3292. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3293. Added static member _protocolFamily to SocketCore. By default,
  3294. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3295. address. Sometime SocketCore::bind() and
  3296. SocketCore::establishConnection() use difference protocl family
  3297. and latter cannot connect to former. To avoid this situation, we
  3298. limit protocol family to AF_INET for unit tests.
  3299. * src/SocketCore.cc
  3300. * src/SocketCore.h
  3301. * test/AllTest.cc
  3302. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. Avoid std::bad_alloc for negative bencode string length.
  3304. * src/bencode.cc
  3305. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Supported segmented downloading with chunked transfer encoding and
  3307. content-length.
  3308. * src/DownloadCommand.cc
  3309. * src/HttpResponseCommand.cc
  3310. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Bump up version number to 1.3.3
  3312. * configure.ac
  3313. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3315. from 4096 to 65536 (for insanely large ftp login banners)
  3316. * src/FtpConnection.h
  3317. * test/FtpConnectionTest.cc
  3318. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3319. In DefaultBtContext::getActualBasePath(), return first
  3320. FileEntry::getPath() for single file torrent.
  3321. * src/DefaultBtContext.cc
  3322. * test/DefaultBtContextTest.cc
  3323. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3324. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3325. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3326. Removed _directIOAllowed member from DiskWriter.
  3327. * src/AbstractDiskWriter.cc
  3328. * src/AbstractDiskWriter.h
  3329. * src/AbstractSingleDiskAdaptor.cc
  3330. * src/AbstractSingleDiskAdaptor.h
  3331. * src/BinaryStream.h
  3332. * src/ByteArrayDiskWriter.h
  3333. * src/DefaultPieceStorage.cc
  3334. * src/DiskWriter.h
  3335. * src/MultiDiskAdaptor.cc
  3336. * src/MultiDiskAdaptor.h
  3337. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3338. Now the constructor of AbstractDiskWriter takes filename as an
  3339. argument and filename argument is removed from openFile(),
  3340. initAndOpenFile(), openExistingFile() interface. storeDir member
  3341. and its accessor functions are removed from DiskAdaptor because it
  3342. is not used anymore. size() member function of DefaultDiskWriter,
  3343. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3344. opening file.
  3345. * src/AbstractDiskWriter.cc
  3346. * src/AbstractDiskWriter.h
  3347. * src/AbstractSingleDiskAdaptor.cc
  3348. * src/AbstractSingleDiskAdaptor.h
  3349. * src/ByteArrayDiskWriter.cc
  3350. * src/ByteArrayDiskWriter.h
  3351. * src/ByteArrayDiskWriterFactory.cc
  3352. * src/ByteArrayDiskWriterFactory.h
  3353. * src/DefaultDiskWriter.cc
  3354. * src/DefaultDiskWriter.h
  3355. * src/DefaultDiskWriterFactory.cc
  3356. * src/DefaultDiskWriterFactory.h
  3357. * src/DefaultPieceStorage.cc
  3358. * src/DirectDiskAdaptor.cc
  3359. * src/DirectDiskAdaptor.h
  3360. * src/DiskAdaptor.h
  3361. * src/DiskWriter.h
  3362. * src/DiskWriterFactory.h
  3363. * src/MessageDigestHelper.cc
  3364. * src/MultiDiskAdaptor.cc
  3365. * src/RequestGroup.cc
  3366. * src/UnknownLengthPieceStorage.cc
  3367. * src/Util.cc
  3368. * test/DefaultDiskWriterTest.cc
  3369. * test/DirectDiskAdaptorTest.cc
  3370. * test/FallocFileAllocationIteratorTest.cc
  3371. * test/MessageDigestHelperTest.cc
  3372. * test/MetalinkProcessorTest.cc
  3373. * test/MultiDiskAdaptorTest.cc
  3374. * test/MultiFileAllocationIteratorTest.cc
  3375. * test/SingleFileAllocationIteratorTest.cc
  3376. * test/UtilTest.cc
  3377. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Fixed the bug that aria2 aborts when --select-file is used. This
  3379. bug was introduced in r1199.
  3380. * src/MultiDiskAdaptor.cc
  3381. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3382. Code cleanup
  3383. * test/MockPieceStorage.cc
  3384. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Fixed the bug that read-only file with wrong file size will cause
  3386. error because it cannot be truncated to the correct size. Now if
  3387. file size is different than the expected one, re-open file in
  3388. writable mode.
  3389. * src/AbstractSingleDiskAdaptor.cc
  3390. * src/AbstractSingleDiskAdaptor.h
  3391. * src/BtCheckIntegrityEntry.cc
  3392. * src/DiskAdaptor.h
  3393. * src/MultiDiskAdaptor.h
  3394. * src/RequestGroup.cc
  3395. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. Fixed the bug that with --check-integrity option aria2 reports
  3397. downloaded file size is 0 even if some parts of file is correctly
  3398. downloaded. This bug is reproducible for the download that a file
  3399. includes last piece is missing. This bug doesn't reveal for
  3400. single-torrent with file allocation on.
  3401. * src/IteratableChecksumValidator.cc
  3402. * test/IteratableChecksumValidatorTest.cc
  3403. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3405. * src/RequestGroupMan.cc
  3406. * src/AdaptiveURISelector.cc
  3407. * src/AdaptiveURISelector.h
  3408. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3409. * Release 1.3.2
  3410. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3411. Updated README
  3412. * README
  3413. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. Updated Ukrainian translations. Thanks to Alexander10.
  3415. * po/uk.po
  3416. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3417. Code cleanup
  3418. * src/MetalinkParserStateMachine.cc
  3419. * src/MetalinkParserStateMachine.h
  3420. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3422. and expat simultaneously, MetalinkProcessor is now not base class
  3423. and it is directly implemented in XML2SAXMetalinkProcessor and
  3424. ExpatMetalinkProcessor.
  3425. * src/ExpatMetalinkProcessor.cc
  3426. * src/ExpatMetalinkProcessor.h
  3427. * src/Makefile.am
  3428. * src/MetalinkHelper.cc
  3429. * src/MetalinkProcessor.h
  3430. * src/MetalinkProcessorFactory.cc: Removed.
  3431. * src/MetalinkProcessorFactory.h: Removed
  3432. * src/XML2SAXMetalinkProcessor.cc
  3433. * src/XML2SAXMetalinkProcessor.h
  3434. * test/MetalinkProcessorTest.cc
  3435. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3436. Bump up version number to 1.3.2
  3437. * configure.ac
  3438. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Added missing file.
  3440. * test/Makefile.am
  3441. * test/url-list-singleFileEndsWithSlash.torrent
  3442. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3444. request.
  3445. * src/AnnounceList.cc
  3446. * src/AnnounceList.h
  3447. * src/BDE.cc: Added
  3448. * src/BDE.h: Added
  3449. * src/DHTAbstractMessage.cc
  3450. * src/DHTAbstractMessage.h
  3451. * src/DHTAnnouncePeerMessage.cc
  3452. * src/DHTAnnouncePeerMessage.h
  3453. * src/DHTAnnouncePeerReplyMessage.cc
  3454. * src/DHTAnnouncePeerReplyMessage.h
  3455. * src/DHTFindNodeMessage.cc
  3456. * src/DHTFindNodeMessage.h
  3457. * src/DHTFindNodeReplyMessage.cc
  3458. * src/DHTFindNodeReplyMessage.h
  3459. * src/DHTGetPeersMessage.cc
  3460. * src/DHTGetPeersMessage.h
  3461. * src/DHTGetPeersReplyMessage.cc
  3462. * src/DHTGetPeersReplyMessage.h
  3463. * src/DHTMessageFactory.h
  3464. * src/DHTMessageFactoryImpl.cc
  3465. * src/DHTMessageFactoryImpl.h
  3466. * src/DHTMessageReceiver.cc
  3467. * src/DHTMessageTracker.cc
  3468. * src/DHTMessageTracker.h
  3469. * src/DHTPingMessage.cc
  3470. * src/DHTPingMessage.h
  3471. * src/DHTPingReplyMessage.cc
  3472. * src/DHTPingReplyMessage.h
  3473. * src/DHTQueryMessage.cc
  3474. * src/DHTQueryMessage.h
  3475. * src/DHTResponseMessage.cc
  3476. * src/DHTResponseMessage.h
  3477. * src/DefaultBtAnnounce.cc
  3478. * src/DefaultBtContext.cc
  3479. * src/DefaultBtContext.h
  3480. * src/HandshakeExtensionMessage.cc
  3481. * src/Makefile.am
  3482. * src/PeerListProcessor.h
  3483. * src/UTPexExtensionMessage.cc
  3484. * src/bencode.cc
  3485. * src/bencode.h
  3486. * test/AnnounceListTest.cc
  3487. * test/BDETest.cc: Added
  3488. * test/BencodeTest.cc
  3489. * test/DHTAnnouncePeerMessageTest.cc
  3490. * test/DHTAnnouncePeerReplyMessageTest.cc
  3491. * test/DHTFindNodeMessageTest.cc
  3492. * test/DHTFindNodeReplyMessageTest.cc
  3493. * test/DHTGetPeersMessageTest.cc
  3494. * test/DHTGetPeersReplyMessageTest.cc
  3495. * test/DHTMessageFactoryImplTest.cc
  3496. * test/DHTMessageTrackerTest.cc
  3497. * test/DHTPingMessageTest.cc
  3498. * test/DHTPingReplyMessageTest.cc
  3499. * test/Makefile.am
  3500. * test/MockDHTMessageFactory.h
  3501. * test/PeerListProcessorTest.cc
  3502. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3503. Use url-list (web-seeding) only for single-file torrent. This is
  3504. basically the same behavior with Metalink file with torrent and
  3505. URIs.
  3506. * src/RequestGroup.cc
  3507. * src/DefaultBtContext.cc
  3508. * test/DefaultBtContextTest.cc
  3509. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Rewritten expr
  3511. * src/array_fun.h
  3512. * test/array_funTest.cc
  3513. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3515. * src/DefaultBtMessageDispatcher.cc
  3516. * src/a2algo.h
  3517. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3518. Removed ExtendedMessagingAware. Instead of using inheritance,
  3519. added ExtensionMessageRegistry and it is passed to
  3520. DefaultExtensionMessageFactory.
  3521. * src/DefaultBtInteractive.cc
  3522. * src/DefaultBtInteractive.h
  3523. * src/DefaultExtensionMessageFactory.cc
  3524. * src/DefaultExtensionMessageFactory.h
  3525. * src/ExtendedMessagingAware.h: Removed.
  3526. * src/ExtensionMessageFactory.h
  3527. * src/ExtensionMessageRegistry.h: Added.
  3528. * src/Makefile.am
  3529. * src/PeerInteractionCommand.cc
  3530. * test/DefaultExtensionMessageFactoryTest.cc
  3531. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Fixed typo in log messages
  3533. * src/MSEHandshake.cc
  3534. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Fixed the bug that prevents torrent download from finishing. The
  3536. bug doesn't reveal for all torrents. The torrents affected this
  3537. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3538. of pieces.
  3539. * src/bitfield.h
  3540. * test/bitfieldTest.cc
  3541. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Code cleanup
  3543. * src/PeerListProcessor.h
  3544. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Removed RequestGroupAware
  3546. * src/AbstractCommand.cc
  3547. * src/AbstractCommand.h
  3548. * src/ActivePeerConnectionCommand.cc
  3549. * src/ActivePeerConnectionCommand.h
  3550. * src/DHTGetPeersCommand.cc
  3551. * src/DHTGetPeersCommand.h
  3552. * src/InitiatorMSEHandshakeCommand.cc
  3553. * src/InitiatorMSEHandshakeCommand.h
  3554. * src/Makefile.am
  3555. * src/PeerInitiateConnectionCommand.cc
  3556. * src/PeerInitiateConnectionCommand.h
  3557. * src/PeerInteractionCommand.cc
  3558. * src/PeerInteractionCommand.h
  3559. * src/RealtimeCommand.cc
  3560. * src/RealtimeCommand.h
  3561. * src/RequestGroupAware.cc: Removed
  3562. * src/RequestGroupAware.h: Removed
  3563. * src/SeedCheckCommand.cc
  3564. * src/SeedCheckCommand.h
  3565. * src/SleepCommand.cc
  3566. * src/TrackerWatcherCommand.cc
  3567. * src/TrackerWatcherCommand.h
  3568. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Rewritten PeerListProcessor
  3570. * src/PeerListProcessor.h
  3571. * src/CompactPeerListProcessor.h: Removed
  3572. * src/CompactPeerListProcessor.cc: Removed
  3573. * src/DelegatingPeerListProcessor.cc: Removed.
  3574. * src/DefaultBtAnnounce.cc
  3575. * src/Makefile.am
  3576. * src/UTPexExtensionMessage.cc
  3577. * src/DefaultPeerListProcessor.h: Removed.
  3578. * src/DefaultPeerListProcessor.cc: Removed.
  3579. * src/DelegatingPeerListProcessor.h: Removed.
  3580. * test/Makefile.am
  3581. * test/PeerListProcessorTest.cc
  3582. * test/DefaultPeerListProcessorTest.cc: Removed.
  3583. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Rewritten RequestGroupMan::calculateStat()
  3585. * src/RequestGroupMan.cc
  3586. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Removed unnecessary virtual destructor for Request class.
  3588. * src/Request.cc
  3589. * src/Request.h
  3590. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Avoid dynamic_pointer_cast.
  3592. * src/DHTGetPeersCommand.cc
  3593. * src/DHTGetPeersCommand.h
  3594. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3595. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3596. BtEvent.
  3597. * src/AbstractBtEventListener.h: Removed.
  3598. * src/AbstractBtMessage.cc
  3599. * src/AbstractBtMessage.h
  3600. * src/BtAbortOutstandingRequestEvent.h
  3601. * src/BtCancelSendingPieceEvent.h
  3602. * src/BtChokedEvent.h: Removed.
  3603. * src/BtChokingEvent.h
  3604. * src/BtEvent.h: Removed
  3605. * src/BtEventListener.h: Removed.
  3606. * src/BtMessage.h
  3607. * src/BtPieceMessage.cc
  3608. * src/BtPieceMessage.h
  3609. * src/BtRequestMessage.cc
  3610. * src/BtRequestMessage.h
  3611. * src/DefaultBtMessageDispatcher.cc
  3612. * src/Makefile.am
  3613. * src/a2functional.h
  3614. * test/BtPieceMessageTest.cc
  3615. * test/BtRequestMessageTest.cc
  3616. * test/DefaultBtMessageDispatcherTest.cc
  3617. * test/MockBtMessage.h
  3618. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3619. Code cleanup
  3620. * src/RequestGroupMan.cc
  3621. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Code cleanup
  3623. * src/DownloadCommand.cc
  3624. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3626. byte.
  3627. * src/DownloadCommand.cc
  3628. * src/bitfield.h
  3629. * test/bitfieldTest.cc
  3630. Fixed the bug that causes infinite loop if broken web server
  3631. returns chunked response without last "0" chunk-size marker and
  3632. closes connection.
  3633. * src/DownloadCommand.cc
  3634. Instantiate properly configured HttpDownloadCommand for
  3635. non-resumable downlaods.
  3636. * src/HttpResponseCommand.cc
  3637. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Rewritten array operation functions.
  3639. * src/BitfieldMan.cc
  3640. * src/array_fun.h
  3641. * test/array_funTest.cc
  3642. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Removed unused variable 'query'
  3644. * src/Request.cc
  3645. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3647. accidentally set to false in r1162.
  3648. * configure.ac
  3649. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3650. Code cleanup
  3651. * src/BNode.cc
  3652. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Increase prefixLength for the bucket which doesn't own local node
  3654. ID when splitting bucket.
  3655. * src/DHTBucket.cc
  3656. * test/DHTBucketTest.cc
  3657. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3658. * Release 1.3.1
  3659. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3660. Bump up version number to 1.3.1
  3661. * configure.ac
  3662. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Removed unused variable checkPoint. Also removed include directive
  3664. for TimeA2.h.
  3665. * src/SeedCheckCommand.h
  3666. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Fixed the bug that upload limit exceeds the value specified in
  3668. --seed-ratio option depending on the timing of the execution of
  3669. SeedCheckCommand.
  3670. * src/SeedCheckCommand.cc
  3671. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Fixed the bug that removed peer's session upload/download length
  3673. are counted twice in _cachedTransferStat before it is
  3674. re-calculated. This affected the calculation of shara ratio,
  3675. resulting aria2 wrongly determines that specified share ratio is
  3676. reached. Also fixed the typo in calculateStatFor function name.
  3677. * src/BtSetup.cc
  3678. * src/DefaultPeerStorage.cc
  3679. * src/ShareRatioSeedCriteria.h
  3680. * test/ShareRatioSeedCriteriaTest.cc
  3681. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. * Release 1.3.0
  3683. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3685. Nynorsk translations. Thanks to all translators.
  3686. * po/es.po
  3687. * po/ja.po
  3688. * po/nn.po
  3689. * po/ru.po
  3690. * po/uk.po
  3691. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3692. Rewritten isInRange()
  3693. * src/DHTBucket.cc
  3694. * test/DHTBucketTest.cc
  3695. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Fixed typo
  3697. * doc/aria2c.1.txt
  3698. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3700. malloc/realloc is not used.
  3701. * src/configure.ac
  3702. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3704. char* bitfield instead of stl container for efficiency.
  3705. PieceSelector::select now takes this
  3706. bitfield. RarestPieceSelector::select now also performs
  3707. efficiently for this change. bitfield namespace is introduced and
  3708. it has several helper functions to handle basic bitfield
  3709. operations such as test, count set bits, etc.
  3710. * src/BitfieldMan.cc
  3711. * src/BitfieldMan.h
  3712. * src/DefaultBtRequestFactory.cc
  3713. * src/DefaultPieceStorage.cc
  3714. * src/DefaultPieceStorage.h
  3715. * src/LongestSequencePieceSelector.cc
  3716. * src/LongestSequencePieceSelector.h
  3717. * src/Makefile.am
  3718. * src/Piece.cc
  3719. * src/Piece.h
  3720. * src/PieceSelector.h
  3721. * src/RarestPieceSelector.cc
  3722. * src/RarestPieceSelector.h
  3723. * src/Util.cc
  3724. * src/Util.h
  3725. * src/bitfield.h
  3726. * test/BitfieldManTest.cc
  3727. * test/LongestSequencePieceSelectorTest.cc
  3728. * test/Makefile.am
  3729. * test/RarestPieceSelectorTest.cc
  3730. * test/UtilTest.cc
  3731. * test/bitfieldTest.cc
  3732. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Made accepted socket non-block.
  3734. * src/FtpNegotiationCommand.cc
  3735. * src/HttpListenCommand.cc
  3736. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3738. * src/AbstractSingleDiskAdaptor.cc
  3739. * src/DefaultPieceStorage.cc
  3740. * src/DiskAdaptor.h
  3741. * src/DiskAdaptor.h
  3742. * src/MultiFileAllocationIterator.cc
  3743. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Run
  3745. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3746. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3747. it doesn't need to be called every time when
  3748. DefaultBtInteractive::doInteractionProcessing() is called.
  3749. * src/DefaultBtInteractive.cc
  3750. * src/DefaultBtInteractive.h
  3751. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Documented 'falloc' in man page.
  3753. * doc/aria2c.1.txt
  3754. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Updated doc
  3756. * src/usage_text.h
  3757. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3759. allocation mode uses posix_fallocate() system call to allocate
  3760. file on disk. If you are using newer file systems such as ext4
  3761. (with extents support), btrfs or xfs, 'falloc' is your best
  3762. choice. It allocates large(few GiB) files almost instantly. Don't
  3763. use 'falloc' with legacy file systems such as ext3 because it
  3764. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3765. until allocation finishes. 'falloc' may not be available if your
  3766. system doesn't have posix_fallocate() system call.
  3767. * configure.ac
  3768. * src/AbstractDiskWriter.cc
  3769. * src/AbstractDiskWriter.h
  3770. * src/AbstractSingleDiskAdaptor.cc
  3771. * src/BinaryStream.h
  3772. * src/BtCheckIntegrityEntry.cc
  3773. * src/ByteArrayDiskWriter.h
  3774. * src/CheckIntegrityEntry.cc
  3775. * src/CheckIntegrityEntry.h
  3776. * src/DefaultPieceStorage.cc
  3777. * src/DiskAdaptor.cc
  3778. * src/DiskAdaptor.h
  3779. * src/DiskWriter.h
  3780. * src/FallocFileAllocationIterator.cc
  3781. * src/FallocFileAllocationIterator.h
  3782. * src/FileAllocationEntry.cc
  3783. * src/FileAllocationEntry.h
  3784. * src/Makefile.am
  3785. * src/MultiFileAllocationIterator.cc
  3786. * src/MultiFileAllocationIterator.h
  3787. * src/OptionHandlerFactory.cc
  3788. * src/RequestGroup.cc
  3789. * src/StreamCheckIntegrityEntry.cc
  3790. * src/prefs.cc
  3791. * src/prefs.h
  3792. * src/usage_text.h
  3793. * test/FallocFileAllocationIteratorTest.cc
  3794. * test/Makefile.am
  3795. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3796. Removed duplicate enableDirectIO() call.
  3797. * src/MultiFileAllocationIterator.cc
  3798. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3799. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3800. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3801. cost of std::rotate().
  3802. * src/RarestPieceSelector.cc
  3803. * src/RarestPieceSelector.h
  3804. * test/RarestPieceSelectorTest.cc
  3805. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Updated usage doc for --bt-tracker-interval option.
  3807. * src/usage_text.h
  3808. * doc/aria2c.1.txt
  3809. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Documented --bt-tracker-interval option in man page.
  3811. * doc/aria2c.1.txt
  3812. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Added an option to specify the interval between tracker requests.
  3814. If non-zero value is specified, aria2 uses it and ignores the
  3815. interval value in the response of tracker. If zero is specified,
  3816. aria2 determines the inteval value based on the tarcker response
  3817. and download progress.
  3818. * src/DefaultBtAnnounce.cc
  3819. * src/DefaultBtAnnounce.h
  3820. * src/OptionHandlerFactory.cc
  3821. * src/RequestGroup.cc
  3822. * src/prefs.cc
  3823. * src/prefs.h
  3824. * src/usage_text.h
  3825. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Added operator+=, operator-=, operator-
  3827. * src/TransferStat.cc
  3828. * src/TransferStat.h
  3829. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Refactored RarestPieceSelector to reduce CPU load, especially for
  3831. addPieceStats.
  3832. * src/RarestPieceSelector.cc
  3833. * src/RarestPieceSelector.h
  3834. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3835. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3836. getAllMissingBlockIndexes to reduce a call to
  3837. array_function_base::operator[].
  3838. * src/BitfieldMan.cc
  3839. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3840. Cached TransferStat/download speed to avoid to sum them up in each
  3841. call.
  3842. * src/DefaultPeerStorage.cc
  3843. * src/DefaultPeerStorage.h
  3844. * src/SegmentMan.cc
  3845. * src/SegmentMan.h
  3846. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Typedefed cuid_t as int32_t in Command.h
  3848. * src/CUIDCounter.h
  3849. * src/Command.cc
  3850. * src/Command.h
  3851. * src/DownloadEngine.cc
  3852. * src/DownloadEngine.h
  3853. * src/PeerStat.h
  3854. * src/SegmentMan.cc
  3855. * src/SegmentMan.h
  3856. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Reduced the number of calls to PeerStorage::calculateStat() and
  3858. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3859. transfer rate.
  3860. * src/DefaultBtInteractive.cc
  3861. * src/DefaultBtMessageDispatcher.cc
  3862. * src/DefaultPeerStorage.cc
  3863. * src/DefaultPeerStorage.h
  3864. * src/DownloadCommand.cc
  3865. * src/DownloadEngine.cc
  3866. * src/PeerStorage.h
  3867. * src/SegmentMan.cc
  3868. * src/SegmentMan.h
  3869. * test/MockPeerStorage.h
  3870. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3871. Prepended _dir+"/" after joining path elements in torrent file.
  3872. * src/DefaultBtContext.cc
  3873. * test/DefaultBtContextTest.cc
  3874. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Added missing IndexBtMessageValidator.h
  3876. * src/Makefile.am
  3877. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3879. Chinese translations. Thank you for contributing our project.
  3880. * po/id.po
  3881. * po/it.po
  3882. * po/ru.po
  3883. * po/uk.po
  3884. * po/zh_CN.po
  3885. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3886. Updated README
  3887. * README
  3888. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. Bump up version number to 1.3.0
  3890. * configure.ac
  3891. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Updated doc
  3893. * src/DefaultBtContext.h
  3894. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Slice/joinPath for name of single torrent.
  3896. * src/DefaultBtContext.cc
  3897. * test/DefaultBtContextTest.cc
  3898. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Updated man page: Documented --dry-run and --index-out
  3900. options. Changed the default value of --uri-selector and
  3901. --http-auth-challenge options. Removed --direct-file-mapping
  3902. option. Added example for --index-out
  3903. * doc/aria2c.1.txt
  3904. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3905. Updated TEXT_DRY_RUN
  3906. * src/usage_text.h
  3907. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Changed the default value of --uri-selector option from 'inorder'
  3909. to 'feedback'
  3910. * src/OptionHandlerFactory.cc
  3911. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Included current URI in exception message.
  3913. * src/AbstractCommand.cc
  3914. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Renamed ServerStatURISelector as FeedbackURISelector.
  3916. * src/FeedbackURISelector.cc
  3917. * src/FeedbackURISelector.h
  3918. * src/Makefile.am
  3919. * src/RequestGroupMan.cc
  3920. * src/ServerStatURISelector.cc
  3921. * src/ServerStatURISelector.h
  3922. * test/FeedbackURISelectorTest.cc
  3923. * test/Makefile.am
  3924. * test/ServerStatURISelectorTest.cc
  3925. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3927. all URIs are tested and their timeout is not reached.
  3928. * src/AdaptiveURISelector.cc
  3929. * src/AdaptiveURISelector.h
  3930. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Changed the default value of --http-auth-challenge option to false.
  3932. * src/OptionHandlerFactory.cc
  3933. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Reuse URIs when all unused URIs run out.
  3935. * src/OptionHandlerFactory.cc
  3936. * src/RequestGroup.cc
  3937. * src/prefs.cc
  3938. * src/prefs.h
  3939. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3941. and BtRejectMessage are derived from RangeBtMessage class.
  3942. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3943. derived from IndexBtMessage class. BtChokeMessage,
  3944. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3945. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3946. ZeroBtMessage class.
  3947. * src/AbstractBtMessage.cc
  3948. * src/AbstractBtMessage.h
  3949. * src/BtAllowedFastMessage.cc
  3950. * src/BtAllowedFastMessage.h
  3951. * src/BtAllowedFastMessageValidator.h: Removed
  3952. * src/BtBitfieldMessage.cc
  3953. * src/BtBitfieldMessage.h
  3954. * src/BtCancelMessage.cc
  3955. * src/BtCancelMessage.h
  3956. * src/BtCancelMessageValidator.h: Removed
  3957. * src/BtChokeMessage.cc
  3958. * src/BtChokeMessage.h
  3959. * src/BtExtendedMessage.cc
  3960. * src/BtExtendedMessage.h
  3961. * src/BtHandshakeMessage.cc
  3962. * src/BtHandshakeMessage.h
  3963. * src/BtHaveAllMessage.cc
  3964. * src/BtHaveAllMessage.h
  3965. * src/BtHaveMessage.cc
  3966. * src/BtHaveMessage.h
  3967. * src/BtHaveMessageValidator.h: Removed
  3968. * src/BtHaveNoneMessage.cc
  3969. * src/BtHaveNoneMessage.h
  3970. * src/BtInterestedMessage.cc
  3971. * src/BtInterestedMessage.h
  3972. * src/BtKeepAliveMessage.cc
  3973. * src/BtKeepAliveMessage.h
  3974. * src/BtNotInterestedMessage.cc
  3975. * src/BtNotInterestedMessage.h
  3976. * src/BtPieceMessage.cc
  3977. * src/BtPieceMessage.h
  3978. * src/BtPortMessage.cc
  3979. * src/BtPortMessage.h
  3980. * src/BtRejectMessage.cc
  3981. * src/BtRejectMessage.h
  3982. * src/BtRejectMessageValidator.h: Removed
  3983. * src/BtRequestMessage.cc
  3984. * src/BtRequestMessage.h
  3985. * src/BtRequestMessageValidator.h: Removed
  3986. * src/BtSuggestPieceMessage.cc
  3987. * src/BtSuggestPieceMessage.h
  3988. * src/BtSuggestPieceMessageValidator.h: Removed
  3989. * src/BtUnchokeMessage.cc
  3990. * src/BtUnchokeMessage.h
  3991. * src/DefaultBtMessageFactory.cc
  3992. * src/IndexBtMessage.cc
  3993. * src/IndexBtMessage.h
  3994. * src/IndexBtMessageValidator.h
  3995. * src/Makefile.am
  3996. * src/PeerMessageUtil.cc
  3997. * src/PeerMessageUtil.h
  3998. * src/RangeBtMessage.cc
  3999. * src/RangeBtMessage.h
  4000. * src/RangeBtMessageValidator.h
  4001. * src/SimpleBtMessage.cc
  4002. * src/SimpleBtMessage.h
  4003. * src/ZeroBtMessage.cc
  4004. * src/ZeroBtMessage.h
  4005. * test/BtRequestMessageTest.cc
  4006. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Reverted usage_text.h to r1093 to avoid to lose translated
  4008. messages.
  4009. * src/usage_text.h
  4010. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4012. declared as non-const previously is now const and defined in class
  4013. definition.
  4014. * src/AbstractBtMessage.cc
  4015. * src/AbstractBtMessage.h
  4016. * src/BtAllowedFastMessage.cc
  4017. * src/BtAllowedFastMessage.h
  4018. * src/BtBitfieldMessage.h
  4019. * src/BtCancelMessage.cc
  4020. * src/BtCancelMessage.h
  4021. * src/BtChokeMessage.cc
  4022. * src/BtChokeMessage.h
  4023. * src/BtExtendedMessage.cc
  4024. * src/BtExtendedMessage.h
  4025. * src/BtHandshakeMessage.cc
  4026. * src/BtHandshakeMessage.h
  4027. * src/BtHaveAllMessage.cc
  4028. * src/BtHaveAllMessage.h
  4029. * src/BtHaveMessage.cc
  4030. * src/BtHaveMessage.h
  4031. * src/BtHaveNoneMessage.cc
  4032. * src/BtHaveNoneMessage.h
  4033. * src/BtInterestedMessage.cc
  4034. * src/BtInterestedMessage.h
  4035. * src/BtKeepAliveMessage.cc
  4036. * src/BtKeepAliveMessage.h
  4037. * src/BtMessage.h
  4038. * src/BtNotInterestedMessage.cc
  4039. * src/BtNotInterestedMessage.h
  4040. * src/BtPieceMessage.h
  4041. * src/BtPortMessage.cc
  4042. * src/BtPortMessage.h
  4043. * src/BtRejectMessage.cc
  4044. * src/BtRejectMessage.h
  4045. * src/BtRequestMessage.cc
  4046. * src/BtRequestMessage.h
  4047. * src/BtSuggestPieceMessage.cc
  4048. * src/BtSuggestPieceMessage.h
  4049. * src/BtUnchokeMessage.cc
  4050. * src/BtUnchokeMessage.h
  4051. * src/SimpleBtMessage.cc
  4052. * src/SimpleBtMessage.h
  4053. * test/MockBtMessage.h
  4054. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Use FileEntry::exists()
  4056. * src/MultiDiskAdaptor.cc
  4057. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Added exists()
  4059. * src/FileEntry.cc
  4060. * src/FileEntry.h
  4061. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. Added missing prefix dir.
  4063. * src/download_helper.cc
  4064. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4065. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4066. * src/CopyDiskAdaptor.cc: Removed
  4067. * src/CopyDiskAdaptor.h: Removed
  4068. * src/DefaultPieceStorage.cc
  4069. * src/Makefile.am
  4070. * src/OptionHandlerFactory.cc
  4071. * src/prefs.cc
  4072. * src/prefs.h
  4073. * src/usage_text.h
  4074. * test/CopyDiskAdaptorTest.cc: Removed
  4075. * test/Makefile.am
  4076. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4077. Rewritten isSameFileBeingDownloaded()
  4078. * src/RequestGroupMan.cc
  4079. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4080. Removed getName() from DownloadContext. getName() is declared in
  4081. BtContext.
  4082. * src/BtContext.h
  4083. * src/DownloadContext.h
  4084. * src/SingleFileDownloadContext.cc
  4085. * src/SingleFileDownloadContext.h
  4086. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4087. in AbstractSingleDiskAdaptor.
  4088. * src/AbstractSingleDiskAdaptor.h
  4089. * src/DiskAdaptor.h
  4090. * src/MultiDiskAdaptor.h
  4091. * src/RequestGroup.cc
  4092. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4093. MultiDiskAdaptor.
  4094. * src/DefaultPieceStorage.cc
  4095. * src/MultiDiskAdaptor.cc
  4096. * src/MultiDiskAdaptor.h
  4097. * test/MultiDiskAdaptorTest.cc
  4098. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. FileEntry::getPath() contains store(top level) directory to
  4100. simplify path handling operation. In the previous implementation,
  4101. store directory is concatenated to FileEntry::getPath() in
  4102. DownloadContext.
  4103. * src/BtDependency.cc
  4104. * src/BtPostDownloadHandler.cc
  4105. * src/CopyDiskAdaptor.cc
  4106. * src/DefaultBtContext.cc
  4107. * src/DirectDiskAdaptor.cc
  4108. * src/FileEntry.cc
  4109. * src/FileEntry.h
  4110. * src/FtpNegotiationCommand.cc
  4111. * src/HttpResponse.cc
  4112. * src/HttpResponseCommand.cc
  4113. * src/Metalink2RequestGroup.cc
  4114. * src/MultiDiskAdaptor.cc
  4115. * src/MultiDiskAdaptor.h
  4116. * src/MultiFileAllocationIterator.cc
  4117. * src/RequestGroup.cc
  4118. * src/SingleFileDownloadContext.cc
  4119. * src/SingleFileDownloadContext.h
  4120. * src/download_helper.cc
  4121. * test/BtDependencyTest.cc
  4122. * test/CopyDiskAdaptorTest.cc
  4123. * test/DefaultBtContextTest.cc
  4124. * test/DefaultBtProgressInfoFileTest.cc
  4125. * test/DirectDiskAdaptorTest.cc
  4126. * test/DownloadHelperTest.cc
  4127. * test/FileEntryTest.cc
  4128. * test/MultiDiskAdaptorTest.cc
  4129. * test/MultiFileAllocationIteratorTest.cc
  4130. * test/RequestGroupTest.cc
  4131. * test/SingleFileDownloadContextTest.cc
  4132. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Fixed compiler warning
  4134. * src/download_helper.cc
  4135. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4136. Throw exception if same infohash torrent is now downloading.
  4137. * src/RequestGroup.cc
  4138. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4139. Added --dry-run option. In this mode, aria2 just checks whether
  4140. the remote file is available and doesn't download data. This
  4141. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4142. are canceled in this mode.
  4143. * src/FtpNegotiationCommand.cc
  4144. * src/HttpResponseCommand.cc
  4145. * src/HttpResponseCommand.h
  4146. * src/OptionHandlerFactory.cc
  4147. * src/RequestGroup.cc
  4148. * src/RequestGroupMan.cc
  4149. * src/prefs.cc
  4150. * src/prefs.h
  4151. * src/usage_text.h
  4152. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Fixed compiler waring
  4154. * test/UriListParserTest.cc
  4155. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Parse options in -i list using OptionParser.
  4157. * src/UriListParser.cc
  4158. * src/UriListParser.h
  4159. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. Don't reset URI in retry to avoid additional round trips because
  4161. of redirects.
  4162. * src/AbstractCommand.cc
  4163. * src/OptionHandlerFactory.cc
  4164. * src/prefs.cc
  4165. * src/prefs.h
  4166. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Declared hide() in OptionHandler.
  4168. * src/NameMatchOptionHandler.h
  4169. * src/OptionHandler.h
  4170. * src/OptionHandlerImpl.h
  4171. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4172. Updated doc
  4173. * src/Peer.h
  4174. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4175. Added log message in setStatusInternal()
  4176. * src/ServerStat.cc
  4177. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4179. effectively exclude failed server.
  4180. * src/AbstractCommand.cc
  4181. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. Added --index-out option to specify each file path for torrent.
  4183. Here index shown in --show-files option is used to specify which
  4184. file path should be altered. For example, to change the file path
  4185. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4186. option multiple times: --index-out=1=aria2.tar.bz2
  4187. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4188. available. This option can be specified in -i list.
  4189. * src/DefaultBtContext.cc
  4190. * src/DefaultBtContext.h
  4191. * src/MultiDiskAdaptor.cc
  4192. * src/MultiDiskAdaptor.h
  4193. * src/MultiFileAllocationIterator.cc
  4194. * src/OptionHandlerFactory.cc
  4195. * src/OptionHandlerImpl.h
  4196. * src/Util.cc
  4197. * src/Util.h
  4198. * src/download_helper.cc
  4199. * src/prefs.cc
  4200. * src/prefs.h
  4201. * src/usage_text.h
  4202. * test/DefaultBtContextTest.cc
  4203. * test/MultiDiskAdaptorTest.cc
  4204. * test/MultiFileAllocationIteratorTest.cc
  4205. * test/UtilTest.cc
  4206. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Use Util::pathJoin()
  4208. * src/MetalinkParserController.cc
  4209. * test/test.xml
  4210. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. Use Util::pathJoin()
  4212. * src/DefaultBtContext.cc
  4213. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Added Util::pathJoin()
  4215. * src/Util.h
  4216. * test/UtilTest.cc
  4217. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Applied basename function to remove directory element in
  4219. content-disposition value.
  4220. Return empty string if content-disposition value is ".." or ".".
  4221. * src/Util.cc
  4222. * test/UtilTest.cc
  4223. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4224. Added --max-overall-download-limit in man page.
  4225. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4226. * doc/aria2c.1.txt
  4227. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4228. Added --max-overall-download-limit option. Now --max-upload-limit
  4229. option is not ignored when --max-overall-upload-limit option has
  4230. non-zero value. aria2 checks download(upload) speed in the order:
  4231. first checks overall speed limit and if it is not exceeded, then
  4232. checks speed limit per download. Thus you can specify both
  4233. value. For example, set --max-overall-download-limit=1M and
  4234. --max-download-limit=500K to prevent from one download from eating
  4235. all overall speed limit.
  4236. * src/DefaultBtInteractive.cc
  4237. * src/DefaultBtInteractive.h
  4238. * src/DefaultBtMessageDispatcher.cc
  4239. * src/DefaultBtMessageDispatcher.h
  4240. * src/DownloadCommand.cc
  4241. * src/DownloadCommand.h
  4242. * src/FtpNegotiationCommand.cc
  4243. * src/HttpResponseCommand.cc
  4244. * src/OptionHandlerFactory.cc
  4245. * src/PeerInteractionCommand.cc
  4246. * src/RequestGroup.cc
  4247. * src/RequestGroup.h
  4248. * src/RequestGroupMan.cc
  4249. * src/RequestGroupMan.h
  4250. * src/prefs.cc
  4251. * src/prefs.h
  4252. * src/usage_text.h
  4253. * test/DefaultBtMessageDispatcherTest.cc
  4254. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Documented select-file option in Input File section.
  4256. Documented --http-auth-challenge option.
  4257. * doc/aria2c.1.txt
  4258. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Now select-file can be specified in the uri list(-i list).
  4260. * src/BtContext.cc
  4261. * src/BtContext.h
  4262. * src/RequestGroup.cc
  4263. * src/Sequence.h
  4264. * src/download_helper.cc
  4265. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4266. Made the upper value of --max-concurrent-downloads options unlimited.
  4267. * src/OptionHandlerFactory.cc
  4268. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4269. Fixed the bug that disk writer is not created even if it shares
  4270. same piece with the preceding file if the length of previous file
  4271. is 0.
  4272. * src/MultiDiskAdaptor.cc
  4273. * test/MultiDiskAdaptorTest.cc
  4274. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. In BitTorrent, Open files in read-only mode for hash check. After
  4276. that, re-open file in read/write mode only when the download is
  4277. not finished.
  4278. * src/AbstractDiskWriter.cc
  4279. * src/AbstractDiskWriter.h
  4280. * src/AbstractSingleDiskAdaptor.cc
  4281. * src/AbstractSingleDiskAdaptor.h
  4282. * src/BtCheckIntegrityEntry.cc
  4283. * src/DiskAdaptor.h
  4284. * src/DiskWriter.h
  4285. * src/MultiDiskAdaptor.cc
  4286. * src/MultiDiskAdaptor.h
  4287. * src/RequestGroup.cc
  4288. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4289. Added --http-auth-challenge option. If it is set to true(by
  4290. default), aria2 sends HTTP authorization header only when it is
  4291. requested by the server. If false is set, then authorization
  4292. header is always sent to the server. This is useful for servers
  4293. that don't respond 401 code when authentication is required.
  4294. There is an exception: if username and password are embedded in
  4295. URI, authorization header is always sent to the server regardless
  4296. of this option.
  4297. * src/AuthConfigFactory.cc
  4298. * src/HttpSkipResponseCommand.cc
  4299. * src/OptionHandlerFactory.cc
  4300. * src/prefs.cc
  4301. * src/prefs.h
  4302. * src/usage_text.h
  4303. * test/AuthConfigFactoryTest.cc
  4304. * test/HttpRequestTest.cc
  4305. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. * Release 1.2.0
  4307. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4308. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4309. Thanks to all translators.
  4310. * po/es.po
  4311. * po/ja.po
  4312. * po/ru.po
  4313. * po/uk.po
  4314. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Call deleteSocketForReadCheck() before socket is closed.
  4316. * src/HttpListenCommand.cc
  4317. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4318. Defined virtual destructor for BObject.
  4319. * src/bencode.h
  4320. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4321. Rewritten BDE to make it efficient.
  4322. * src/bencode.cc
  4323. * src/bencode.h
  4324. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Removed function throw list.
  4326. * src/bencode.cc
  4327. * src/bencode.h
  4328. * test/BencodeTest.cc
  4329. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4330. Enclosed all URLs in double quotes in command-line examples.
  4331. * doc/aria2c.1.txt
  4332. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4333. Updated reference/see also section.
  4334. * README
  4335. * doc/aria2c.1.txt
  4336. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Reorganized man page based on man man-pages.
  4338. * doc/aria2c.1.txt
  4339. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4340. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4341. because same documents are available in man page. Added
  4342. References section.
  4343. * README
  4344. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4346. PERFORMANCE PROFILE section.
  4347. * doc/aria2c.1.txt
  4348. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Rewritten the section for configuration file.
  4350. * README
  4351. * doc/aria2c.1.txt
  4352. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4353. Fixed the segmentation fault during execution of choking algorithm
  4354. in leecher state because of broken compare operator
  4355. implementation.
  4356. * src/BtLeecherStateChoke.cc
  4357. * src/BtLeecherStateChoke.h
  4358. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4359. Open file in binary mode.
  4360. * src/CookieStorage.cc
  4361. * src/DHTSetup.cc
  4362. * src/DHTUtil.cc
  4363. * src/Netrc.cc
  4364. * src/NsCookieParser.cc
  4365. * src/ProtocolDetector.cc
  4366. * src/RequestGroupMan.cc
  4367. * src/Signature.cc
  4368. * src/bencode.cc
  4369. * src/download_helper.cc
  4370. * src/option_processing.cc
  4371. * test/CookieParserTest.cc
  4372. * test/DefaultBtProgressInfoFileTest.cc
  4373. * test/FileTest.cc
  4374. * test/GZipDecoderTest.cc
  4375. * test/RequestGroupManTest.cc
  4376. * test/SignatureTest.cc
  4377. * test/SingleFileAllocationIteratorTest.cc
  4378. * test/UriListParserTest.cc
  4379. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Removed operator[] because it is ambiguous with built-in []
  4381. operator.
  4382. * src/array_fun.h
  4383. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4384. Fixed compile error
  4385. * src/OptionParser.cc
  4386. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4387. Added missing call to arrayWrapperConst
  4388. * test/array_funTest.cc
  4389. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Use array_wrapper instead of array_ptr.
  4391. * src/DHTRoutingTableDeserializer.cc
  4392. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4393. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4394. * src/array_fun.h
  4395. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Added array_wrapper template.
  4397. * src/array_fun.h
  4398. * test/array_funTest.cc
  4399. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Use operator T* of array_ptr.
  4401. * src/OptionParser.cc
  4402. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4403. Use localhost instead of 127.0.0.1
  4404. * test/FtpConnectionTest.cc
  4405. * test/MSEHandshakeTest.cc
  4406. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Added operator T*
  4408. * src/array_fun.h
  4409. * test/array_funTest.cc
  4410. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Use dynamically allocated char array to detect memory access
  4412. violation.
  4413. * src/DHTRoutingTableDeserializer.cc
  4414. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4415. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4416. defined.
  4417. * src/PeerMessageUtil.cc
  4418. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4419. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4420. * configure.ac
  4421. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. Added a check to see struct sockaddr_in has sin_len member.
  4423. * configure.ac
  4424. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Fixed buffer overrun.
  4426. * src/DHTRoutingTableDeserializer.cc
  4427. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Added LL for long long int constant.
  4429. * test/FtpConnectionTest.cc
  4430. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Casted to unsigned int to suppress compiler warning on netbsd.
  4432. * src/BtRuntime.h
  4433. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4435. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4436. type time_t.
  4437. * src/SimpleLogger.cc
  4438. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4439. Added test for FtpConnection::receiveSizeResponse().
  4440. * test/FtpConnectionTest.cc
  4441. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Fix epoll error on the old kernel 2.6.8 or ealier.
  4443. * src/EpollEventPoll.cc
  4444. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Use Util::parseLLInt instead of sscanf for portability. The
  4446. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4447. * src/FtpConnection.cc
  4448. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4449. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4450. block. It should not filter anything.
  4451. * src/BitfieldMan.cc
  4452. * src/ConsoleStatCalc.cc
  4453. * test/BitfieldManTest.cc
  4454. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4455. Fixed the bug that the boolean options that don't take arguments
  4456. don't work.
  4457. * src/OptionHandlerImpl.h
  4458. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Fixed broken selected file BitTorrent download.
  4460. * src/MultiDiskAdaptor.cc
  4461. * test/MultiDiskAdaptorTest.cc
  4462. * test/MultiFileAllocationIteratorTest.cc
  4463. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4464. Fixed #define guard for EpollEventPoll
  4465. * src/EpollEventPoll.h
  4466. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4467. Wait 2 seconds. 1 second is sometimes not enough.
  4468. * test/TimeSeedCriteriaTest.cc
  4469. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. Use localhost instead of 127.0.0.1.
  4471. * test/DHTConnectionImplTest.cc
  4472. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Suppressed compiler warning.
  4474. * src/AdaptiveURISelector.cc
  4475. * src/DefaultPieceStorage.cc
  4476. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4477. Defined virtual destructor.
  4478. * src/MetalinkParserState.h
  4479. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Give NULL for second argument of getaddrinfo instead of "0".
  4481. * src/NameResolver.cc
  4482. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4483. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4484. included strptime doesn't parse data for this format.
  4485. * src/FtpConnection.cc
  4486. * test/FtpConnectionTest.cc
  4487. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Removed tests giving -1 for unsigned argument.
  4489. * test/SingleFileDownloadContextTest.cc
  4490. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Don't use sha256 in tests because it might not be supported by the
  4492. SSL library.
  4493. * test/MetalinkProcessorTest.cc
  4494. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Removed tests giving -1 for unsigned argument.
  4496. * test/AlphaNumberDecoratorTest
  4497. * test/BitfieldManTest.cc
  4498. * test/DefaultBtContextTest.cc
  4499. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4500. Fixed compile error without libcares when epoll is available.
  4501. * src/EpollEventPoll.cc
  4502. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4503. Included fstream instead of iostream.
  4504. * test/SignatureTest.cc
  4505. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4506. Removed #include <algorithm>
  4507. * test/RequestGroupTest.cc
  4508. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4509. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4510. using RequestGroup::extractURIResult().
  4511. * src/AdaptiveURISelector.cc
  4512. * src/RequestGroup.cc
  4513. * src/RequestGroup.h
  4514. * test/RequestGroupTest.cc
  4515. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Added tests for array_ptr.
  4517. * test/array_funTest.cc
  4518. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Don't send ip parameter to a tracker if ip parameter is empty
  4520. string.
  4521. * src/DefaultBtAnnounce.cc
  4522. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Adjusted line feed.
  4524. * src/version_usage.cc
  4525. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. Print tags, possible values when OptionHandlerException is caught.
  4527. * src/option_processing.cc
  4528. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4529. Changed the message for FatalException.
  4530. * src/OptionParser.cc
  4531. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4532. Documented --bt-external-ip option in man page. Updated man pages
  4533. for --proxy-method option.
  4534. * doc/aria2c.1.txt
  4535. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Use GET method for FTP via HTTP proxy.
  4537. * src/FtpInitiateConnectionCommand.cc
  4538. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Changed the default value of --proxy-method option from 'tunnel'
  4540. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4541. option.
  4542. * src/AbstractCommand.cc
  4543. * src/AbstractCommand.h
  4544. * src/FtpInitiateConnectionCommand.cc
  4545. * src/HttpDownloadCommand.cc
  4546. * src/HttpInitiateConnectionCommand.cc
  4547. * src/HttpInitiateConnectionCommand.h
  4548. * src/OptionHandlerFactory.cc
  4549. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4550. Initialized _logger
  4551. * src/SelectEventPoll.cc
  4552. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Defined a copy constructor for the same type.
  4554. * src/SharedHandle.h
  4555. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Added OptionParser::parseArg() which internally uses getopt_long
  4557. to parse command-line options. All command-line options are now
  4558. configured by OptionHandler. No manual editing of struct option*
  4559. is required any more.
  4560. * src/NameMatchOptionHandler.h
  4561. * src/OptionHandler.h
  4562. * src/OptionHandlerFactory.cc
  4563. * src/OptionHandlerImpl.h
  4564. * src/OptionParser.cc
  4565. * src/OptionParser.h
  4566. * src/array_fun.h
  4567. * src/main.cc
  4568. * src/option_processing.cc
  4569. * test/OptionHandlerTest.cc
  4570. * test/OptionParserTest.cc
  4571. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4572. Fixed configure error with --disable-epoll
  4573. * configure.ac
  4574. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4575. Fixed compile error when HAVE_EPOLL is not defined.
  4576. Fixed linker error on bigendian systems.
  4577. * src/SocketCore.cc
  4578. * src/SocketCore.h
  4579. * test/DefaultBtProgressInfoFileTest.cc
  4580. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Added --bt-external-ip option. You can specify the external IP
  4582. address to report to a BitTorrent tracker. Although this function
  4583. is named 'external', it can accept any kind of IP addresses.
  4584. * src/DefaultBtAnnounce.cc
  4585. * src/OptionHandlerFactory.cc
  4586. * src/option_processing.cc
  4587. * src/prefs.cc
  4588. * src/prefs.h
  4589. * src/usage_text.h
  4590. * test/DefaultBtAnnounceTest.cc
  4591. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. Extracted the algorithm to find the longest incremental sequence
  4593. as max_sequence template.
  4594. * src/LongestSequencePieceSelector.cc
  4595. * src/a2algo.h
  4596. * test/Makefile.am
  4597. * test/a2algoTest.cc
  4598. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4600. * src/usage_text.h
  4601. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4602. Updated doc for --uri-selector, --http-server-listen-port and
  4603. --enable-http-server option. Documented --event-poll option.
  4604. * doc/aria2c.1.txt
  4605. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. Updated doc for --enable-http-server.
  4607. * src/usage_text.h
  4608. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4609. Documented --http-server-listen-port and --enable-http-server in
  4610. man page.
  4611. * doc/aria2c.1.txt
  4612. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4614. translations. Thanks to all translators.
  4615. * po/es.po
  4616. * po/id.po
  4617. * po/it.po
  4618. * po/ru.po
  4619. * po/uk.po
  4620. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Bump up version number to 1.2.0
  4622. * configure.ac
  4623. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4624. BtContext::getAnnounceTiers() now returns const reference.
  4625. * src/BtContext.h
  4626. * src/DefaultBtContext.cc
  4627. * src/DefaultBtContext.h
  4628. * test/MockBtContext.h
  4629. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Change the number of retries for tracker request based on the
  4631. number of available tracker in a torrent file.
  4632. * src/TrackerWatcherCommand.cc
  4633. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4634. Added _maxTries property to RequestGroup and assign the option
  4635. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4636. RequestGroup::getMaxTries() instead of
  4637. Option::getAsInt(PREF_MAX_TRIES).
  4638. * src/AbstractCommand.cc
  4639. * src/RequestGroup.cc
  4640. * src/RequestGroup.h
  4641. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4642. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4643. Mandriva. I modified the patch: make RequestGroup have the
  4644. timeout value and AdaptiveURISelector directly modifies that
  4645. value.
  4646. * src/AbstractCommand.cc
  4647. * src/AdaptiveURISelector.cc
  4648. * src/AdaptiveURISelector.h
  4649. * src/FtpNegotiationCommand.cc
  4650. * src/RequestGroup.cc
  4651. * src/RequestGroup.h
  4652. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4653. Fixed compiler warning
  4654. * test/IteratableChecksumValidatorTest.cc
  4655. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4657. integrated downloads. This PieceSelector subclass finds the
  4658. longest continuous sequence in the available missing pieces and
  4659. selects the last index of such sequence. This makes HTTP/FTP
  4660. connections less interrupted by the pieces obtained by BitTorrent
  4661. peers.
  4662. * src/DefaultPieceStorage.cc
  4663. * src/DefaultPieceStorage.h
  4664. * src/LongestSequencePieceSelector.cc
  4665. * src/LongestSequencePieceSelector.h
  4666. * src/Makefile.am
  4667. * src/PieceSelector.h
  4668. * src/RarestPieceSelector.h
  4669. * src/RequestGroup.cc
  4670. * test/BtDependencyTest.cc
  4671. * test/DefaultPieceStorageTest.cc
  4672. * test/IteratableChecksumValidatorTest.cc
  4673. * test/LongestSequencePieceSelectorTest.cc
  4674. * test/Makefile.am
  4675. * test/SegmentManTest.cc
  4676. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Fixed the bug that the average speed is wrong in
  4678. http/ftp/BitTorrent integrated download. Only the download bytes
  4679. in BitTorrent were considered.
  4680. * src/RequestGroup.cc
  4681. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. Choose port for BitTorrent/DHT randomly from the specified range.
  4683. * src/DHTConnectionImpl.cc
  4684. * src/PeerListenCommand.cc
  4685. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Send HTTP Authorization header only if it is requested by the
  4687. server(response 401). There are some exceptions. The authorization
  4688. header for proxy is always sent if it is available without request
  4689. by the server. If username/password is specified in the URI, it
  4690. is immediately sent to the server without request by the server.
  4691. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4692. SharedHandle<AuthConfig>().
  4693. NetrcAuthResolver::resolveAuthConfig() returns
  4694. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4695. * src/AbstractAuthResolver.cc
  4696. * src/AbstractProxyRequestCommand.cc
  4697. * src/AuthConfigFactory.cc
  4698. * src/AuthConfigFactory.h
  4699. * src/HttpConnection.cc
  4700. * src/HttpRequest.cc
  4701. * src/HttpRequest.h
  4702. * src/HttpResponse.cc
  4703. * src/HttpResponseCommand.cc
  4704. * src/HttpSkipResponseCommand.cc
  4705. * test/AuthConfigFactoryTest.cc
  4706. * test/HttpRequestTest.cc
  4707. * test/HttpResponseTest.cc
  4708. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Remove leading "--" from help keyword and a substring after "="
  4710. from help keyword, so that one can query options by '-h--max-' or
  4711. '-hmax-peers=10'.
  4712. * src/option_processing.cc
  4713. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4714. Rewritten PStringVisitor and its implementation.
  4715. * src/PStringBuildVisitor.cc
  4716. * src/PStringBuildVisitor.h
  4717. * src/PStringDatum.h
  4718. * src/PStringNumLoop.h
  4719. * src/PStringSegment.cc
  4720. * src/PStringSegment.h
  4721. * src/PStringSelect.h
  4722. * src/PStringVisitor.h
  4723. * src/download_helper.cc
  4724. * test/PStringBuildVisitorTest.cc
  4725. * test/ParameterizedStringParserTest.cc
  4726. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4727. Persist connection between the built-in HTTP server and a client
  4728. if a client supports keep-alive. Fixed the bug that aria2 exits
  4729. when the HTTP server receives EOF from a client.
  4730. * src/HttpServer.cc
  4731. * src/HttpServer.h
  4732. * src/HttpServerCommand.cc
  4733. * src/HttpServerCommand.h
  4734. * src/HttpServerResponseCommand.cc
  4735. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Added experimental built-in HTTP server. Currently, when a client
  4737. accesses to the server, it responds with the current download
  4738. progress. By default, it is disabled. To enable the server, give
  4739. --enable-http-server option. To change the default port number
  4740. for the server to listen to, use --http-server-listen-port option.
  4741. The response HTML is very simple and refreshes it self each 1
  4742. second. Because of this refresh, you see flicker in normal web
  4743. browser such as Firefox. I recommend to use console-based browser
  4744. such as elinks, w3m. To connect to the server, run 'elinks
  4745. http://localhost:6800/' while running aria2. Please replace port
  4746. number '6800'(which is default) with your preference.
  4747. * src/DownloadEngineFactory.cc
  4748. * src/HttpHeader.cc
  4749. * src/HttpHeader.h
  4750. * src/HttpHeaderProcessor.cc
  4751. * src/HttpHeaderProcessor.h
  4752. * src/HttpListenCommand.cc
  4753. * src/HttpListenCommand.h
  4754. * src/HttpServer.cc
  4755. * src/HttpServer.h
  4756. * src/HttpServerCommand.cc
  4757. * src/HttpServerCommand.h
  4758. * src/HttpServerResponseCommand.cc
  4759. * src/HttpServerResponseCommand.h
  4760. * src/Makefile.am
  4761. * src/OptionHandlerFactory.cc
  4762. * src/Util.cc
  4763. * src/Util.h
  4764. * src/help_tags.h
  4765. * src/option_processing.cc
  4766. * src/prefs.cc
  4767. * src/prefs.h
  4768. * src/usage_text.h
  4769. * test/HttpHeaderProcessorTest.cc
  4770. * test/UtilTest.cc
  4771. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4772. Removed.
  4773. * src/CheckIntegrityMan.cc
  4774. * src/FileAllocationMan.cc
  4775. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Made (piece) hash check sequential for each RequestGroup because
  4777. simultaneous hash check is slower than sequential execution.
  4778. * src/CheckIntegrityCommand.cc
  4779. * src/CheckIntegrityDispatcherCommand.cc
  4780. * src/CheckIntegrityDispatcherCommand.h
  4781. * src/CheckIntegrityMan.h
  4782. * src/ConsoleStatCalc.cc
  4783. * src/DownloadCommand.cc
  4784. * src/DownloadEngine.cc
  4785. * src/DownloadEngine.h
  4786. * src/DownloadEngineFactory.cc
  4787. * src/Makefile.am
  4788. * src/Makefile.in
  4789. * src/RequestGroup.cc
  4790. * src/StatCalc.h
  4791. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4792. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4793. SequentialDispatcherCommand.
  4794. * src/FileAllocationDispatcherCommand.cc
  4795. * src/SequentialDispatcherCommand.h
  4796. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4797. Rewritten FileAllocationDispatcherCommand using brand new
  4798. SequentialDispatcherCommand.
  4799. * src/DownloadEngineFactory.cc
  4800. * src/FileAllocationCommand.cc
  4801. * src/FileAllocationDispatcherCommand.cc
  4802. * src/FileAllocationDispatcherCommand.h
  4803. * src/Makefile.am
  4804. * src/SequentialDispatcherCommand.h
  4805. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4806. Replaced FileAllocationMan with
  4807. SequentialPicker<FileAllocationEntry>.
  4808. * src/BtCheckIntegrityEntry.cc
  4809. * src/ConsoleStatCalc.cc
  4810. * src/DownloadEngine.cc
  4811. * src/DownloadEngine.h
  4812. * src/DownloadEngineFactory.cc
  4813. * src/FileAllocationCommand.cc
  4814. * src/FileAllocationDispatcherCommand.cc
  4815. * src/FileAllocationMan.h
  4816. * src/Makefile.am
  4817. * src/SequentialPicker.h
  4818. * src/StatCalc.h
  4819. * src/StreamCheckIntegrityEntry.cc
  4820. * test/Makefile.am
  4821. * test/SequentialPickerTest.cc
  4822. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Added doc for adaptive URI selector.
  4824. * doc/aria2c.1.txt
  4825. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4826. Added doc for adaptive URI selector.
  4827. * src/usage_text.h
  4828. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4829. Added doc for --bt-max-peers option.
  4830. * doc/aria2c.1.txt
  4831. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4832. Added doc for --bt-hash-check-seed option.
  4833. * doc/aria2c.1.txt
  4834. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4835. Documented exit codes.
  4836. * doc/aria2c.1.txt
  4837. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4838. Added --bt-max-peers option to specify the maximum number of peers
  4839. per torrent. 0 means unlimited number of peers.
  4840. * src/ActivePeerConnectionCommand.cc
  4841. * src/BtRuntime.h
  4842. * src/DefaultPeerStorage.cc
  4843. * src/DefaultPeerStorage.h
  4844. * src/OptionHandlerFactory.cc
  4845. * src/RequestGroup.cc
  4846. * src/option_processing.cc
  4847. * src/prefs.cc
  4848. * src/prefs.h
  4849. * src/usage_text.h
  4850. * test/DefaultPeerStorageTest.cc
  4851. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4852. Added --bt-hash-check-seed option. If true is given to this
  4853. option, after hash check using --check-integrity option and file
  4854. is complete, continue to seed file. If you want to check file and
  4855. download it only when it is damaged or incomplete, set this option
  4856. to false. This option has effect only on BitTorrent download.
  4857. The default value is true(This is the same behavior with the
  4858. previous release).
  4859. * src/BtCheckIntegrityEntry.cc
  4860. * src/OptionHandlerFactory.cc
  4861. * src/option_processing.cc
  4862. * src/prefs.cc
  4863. * src/prefs.h
  4864. * src/usage_text.h
  4865. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4866. Updated copyright year.
  4867. * src/version_usage.cc
  4868. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4869. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4870. * doc/aria2c.1.txt
  4871. * src/usage_text.h
  4872. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4873. Made the max value of split option unlimited.
  4874. * doc/aria2c.1.txt
  4875. * src/OptionHandlerFactory.cc
  4876. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Fixed compile warning/error.
  4878. * src/DownloadResult.h
  4879. * src/HttpDownloadCommand.cc
  4880. * src/ServerStat.cc
  4881. * test/RequestGroupTest.cc
  4882. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4883. Added --event-poll option to select the method for polling events.
  4884. The available methods are "select" and "epoll". "epoll" is
  4885. available on Linux only. The earlier release has the compile
  4886. option to choose from these methods.
  4887. * configure.ac
  4888. * src/RequestGroupMan.cc
  4889. * src/OptionHandlerFactory.cc
  4890. * src/EpollEventPoll.h
  4891. * src/StreamFileAllocationEntry.cc
  4892. * src/a2io.h
  4893. * src/SelectEventPoll.h
  4894. * src/option_processing.cc
  4895. * src/prefs.h
  4896. * src/EpollEventPoll.cc
  4897. * src/EventPoll.h
  4898. * src/SocketCore.h
  4899. * src/Makefile.am
  4900. * src/main.cc
  4901. * src/DownloadEngine.h
  4902. * src/SelectEventPoll.cc
  4903. * src/DownloadEngine.cc
  4904. * src/SocketCore.cc
  4905. * src/DownloadEngineFactory.cc
  4906. * src/Makefile.in
  4907. * src/prefs.cc
  4908. * src/usage_text.h
  4909. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4910. Included RecoverableException.h from main.cc
  4911. * src/main.cc
  4912. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4913. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4914. now returns last error encountered in the HTTP/FTP downloads as a
  4915. exit status value. If all downloads finished successfully, aria2
  4916. returns 0. The error code is defined in src/DownloadResult.h.
  4917. The error occurred in the download currently in progress is not
  4918. reported as a last error. If no error has encountered but there
  4919. are in progress or waiting downloads, aria2 returns 7.
  4920. * src/AbstractCommand.cc
  4921. * src/DlAbortEx.h
  4922. * src/DlRetryEx.h
  4923. * src/DownloadCommand.cc
  4924. * src/DownloadFailureException.h
  4925. * src/DownloadResult.h
  4926. * src/FtpNegotiationCommand.cc
  4927. * src/HttpSkipResponseCommand.cc
  4928. * src/Makefile.am
  4929. * src/MultiUrlRequestInfo.cc
  4930. * src/MultiUrlRequestInfo.h
  4931. * src/RecoverableException.h
  4932. * src/RequestGroup.cc
  4933. * src/RequestGroup.h
  4934. * src/RequestGroupMan.cc
  4935. * src/RequestGroupMan.h
  4936. * src/URIResult.cc
  4937. * src/URIResult.h
  4938. * src/main.cc
  4939. * src/option_processing.cc
  4940. * test/RequestGroupTest.cc
  4941. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4943. patch adds AdaptiveURISelector, which selects one of the bests
  4944. mirrors for first and reserved connections. For supplementary
  4945. ones, it returns mirrors which has not been tested yet, and if
  4946. each of them already tested, returns mirrors which has to be
  4947. tested again. Otherwise, it doesn't return anymore mirrors.
  4948. * src/AdaptiveURISelector.cc
  4949. * src/AdaptiveURISelector.h
  4950. * src/FtpNegotiationCommand.cc
  4951. * src/HttpResponseCommand.cc
  4952. * src/Makefile.am
  4953. * src/Makefile.in
  4954. * src/OptionHandlerFactory.cc
  4955. * src/RequestGroup.cc
  4956. * src/RequestGroup.h
  4957. * src/RequestGroupMan.cc
  4958. * src/ServerStat.cc
  4959. * src/ServerStat.h
  4960. * src/ServerStatMan.cc
  4961. * src/SpeedCalc.cc
  4962. * src/URISelector.h
  4963. * src/prefs.cc
  4964. * src/prefs.h
  4965. * test/RequestGroupManTest.cc
  4966. * test/ServerStatManTest.cc
  4967. * test/ServerStatTest.cc
  4968. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4969. Fixed unit test error.
  4970. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4971. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4972. * Release 1.1.2
  4973. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Updated Russian translation. Thanks to the translators.
  4975. * po/ru.po
  4976. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4977. Added the description of --use-head option to man page.
  4978. * doc/aria2c.1.txt
  4979. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4980. Bump up version number to 1.1.2
  4981. * configure.ac
  4982. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Added --use-head option to toggle whether HEAD method should be
  4984. used in the first HTTP request. By default aria2 uses HEAD method
  4985. as the first request. When the server doesn't recognize HEAD, then
  4986. give aria2 --use-head=false to force aria2 to use GET method
  4987. instead.
  4988. * src/OptionHandlerFactory.cc
  4989. * src/RequestGroupMan.cc
  4990. * src/option_processing.cc
  4991. * src/prefs.cc
  4992. * src/prefs.h
  4993. * src/usage_text.h
  4994. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4996. message is received before CHOKE message. The old implementation
  4997. doen't clear the use-bit of the piece when recieved REJECT
  4998. message.
  4999. * src/DefaultBtMessageDispatcher.cc
  5000. * test/DefaultBtMessageDispatcherTest.cc
  5001. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. * Release 1.1.1
  5003. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5004. Bump up version number to 1.1.1.
  5005. * configure.ac
  5006. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5007. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5008. is printed repeatedly.
  5009. * src/ConsoleStatCalc.cc
  5010. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5011. * Release 1.1.0
  5012. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5013. Added ifdef clause for conditional compilation.
  5014. * src/main.cc
  5015. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5016. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5017. translations. Thanks to all translators.
  5018. * po/ja.po
  5019. * po/ru.po
  5020. * po/uk.po
  5021. * po/zh_CN.po
  5022. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5023. Added the preceding ">>> " before the message "Printing the
  5024. contents of file..." to make the output more readable.
  5025. * src/main.cc
  5026. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Added try-catch block in the loop in showFiles() to continue the
  5028. operation even if the exception occurred in one file.
  5029. * src/main.cc (showFiles)
  5030. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5031. Made messages in showFiles() translatable.
  5032. * po/aria2.pot
  5033. * src/main.cc
  5034. * src/message.h
  5035. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5036. Print the contents of Torrent/Metalink files are printed without
  5037. -T/-M options.
  5038. * src/main.cc
  5039. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5040. Escaped '--' with '\--'
  5041. * README
  5042. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Updated "How to build" section in README. Mentioned about
  5044. --with-ca-bundle compile option.
  5045. * README
  5046. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5047. Bump up version number to 1.1.0.
  5048. * configure.ac
  5049. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Added a note for --dht-listen-port option.
  5051. * doc/aria2c.1.txt
  5052. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Update doc for --realtime-chunk-checksum option.
  5054. * doc/aria2c.1.txt
  5055. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Update doc for --realtime-chunk-checksum option.
  5057. * src/usage_text.h
  5058. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. Updated French, Japanese, Russian and Ukrainian translations.
  5060. Thanks to all translators.
  5061. * po/fr.po
  5062. * po/ja.po
  5063. * po/ru.po
  5064. * po/uk.po
  5065. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Renamed aria2c.pot to aria2.pot
  5067. * po/aria2.pot
  5068. * po/aria2c.pot: Removed.
  5069. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5070. Removed MetaEntry.h
  5071. * src/Makefile.am
  5072. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5073. Rename file by appending digits if a local file exists and its
  5074. file size is larger than that of remote file with --continue
  5075. option. The old implementation just throws exception in such case.
  5076. * src/RequestGroup.cc
  5077. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Fixed the bug that download progress summary is not printed in the
  5079. interval specified by the option.
  5080. * src/ConsoleStatCalc.cc
  5081. * src/ConsoleStatCalc.h
  5082. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Fixed compiler warning
  5084. * src/Cookie.cc
  5085. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5086. Fixed the cookie implementation based on RFC2965.
  5087. Now if a value in domain field is not started with dot, then
  5088. prepend dot. That means a cookie with domain=sf.net is sent to
  5089. wiki.sf.net.
  5090. * src/Cookie.cc
  5091. * test/CookieParserTest.cc
  5092. * test/CookieStorageTest.cc
  5093. * test/CookieTest.cc
  5094. * test/NsCookieParserTest.cc
  5095. * test/Sqlite3MozCookieParserTest.cc
  5096. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5097. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5098. is enabled and the server doesn't support keep-alive.
  5099. * src/AbstractCommand.cc
  5100. * src/DownloadCommand.cc
  5101. * src/HttpDownloadCommand.cc
  5102. * src/HttpDownloadCommand.h
  5103. * src/HttpResponseCommand.cc
  5104. * src/Request.cc
  5105. * src/Request.h
  5106. * test/RequestTest.cc
  5107. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5108. Removed Dictionary/List/Data and its related classes.
  5109. * src/BencodeVisitor.cc: Removed.
  5110. * src/BencodeVisitor.h: Removed.
  5111. * src/Data.cc: Removed.
  5112. * src/Data.h: Removed.
  5113. * src/Dictionary.cc: Removed.
  5114. * src/Dictionary.h: Removed.
  5115. * src/List.cc: Removed.
  5116. * src/List.h: Removed.
  5117. * src/Makefile.am
  5118. * src/MetaEntry.h: Removed.
  5119. * src/MetaEntryVisitor.h: Removed.
  5120. * src/MetaFileUtil.cc: Removed.
  5121. * src/MetaFileUtil.h: Removed.
  5122. * test/BencodeVisitorTest.cc: Removed.
  5123. * test/DataTest.cc: Removed.
  5124. * test/DictionaryTest.cc: Removed.
  5125. * test/ListTest.cc: Removed.
  5126. * test/Makefile.am
  5127. * test/MetaFileUtilTest.cc: Removed.
  5128. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5129. Removed include of MetaEntry.h
  5130. * test/DHTMessageTrackerEntryTest.cc
  5131. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5132. Use BDE instead of Dictionary/List/Data.
  5133. * src/AnnounceList.cc
  5134. * src/AnnounceList.h
  5135. * test/AnnounceListTest.cc
  5136. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5137. Use BDE instead of Dictionary/List/Data.
  5138. * src/DHTAbstractMessage.cc
  5139. * src/DHTAbstractMessage.h
  5140. * src/DHTAnnouncePeerMessage.cc
  5141. * src/DHTAnnouncePeerMessage.h
  5142. * src/DHTAnnouncePeerReplyMessage.cc
  5143. * src/DHTAnnouncePeerReplyMessage.h
  5144. * src/DHTFindNodeMessage.cc
  5145. * src/DHTFindNodeMessage.h
  5146. * src/DHTFindNodeReplyMessage.cc
  5147. * src/DHTFindNodeReplyMessage.h
  5148. * src/DHTGetPeersMessage.cc
  5149. * src/DHTGetPeersMessage.h
  5150. * src/DHTGetPeersReplyMessage.cc
  5151. * src/DHTGetPeersReplyMessage.h
  5152. * src/DHTMessageFactory.h
  5153. * src/DHTMessageFactoryImpl.cc
  5154. * src/DHTMessageFactoryImpl.h
  5155. * src/DHTMessageReceiver.cc
  5156. * src/DHTMessageTracker.cc
  5157. * src/DHTMessageTracker.h
  5158. * src/DHTPingMessage.cc
  5159. * src/DHTPingMessage.h
  5160. * src/DHTPingReplyMessage.cc
  5161. * src/DHTPingReplyMessage.h
  5162. * src/DHTQueryMessage.cc
  5163. * src/DHTQueryMessage.h
  5164. * src/DHTResponseMessage.cc
  5165. * src/DHTResponseMessage.h
  5166. * test/DHTAnnouncePeerMessageTest.cc
  5167. * test/DHTAnnouncePeerReplyMessageTest.cc
  5168. * test/DHTFindNodeMessageTest.cc
  5169. * test/DHTFindNodeReplyMessageTest.cc
  5170. * test/DHTGetPeersMessageTest.cc
  5171. * test/DHTGetPeersReplyMessageTest.cc
  5172. * test/DHTMessageFactoryImplTest.cc
  5173. * test/DHTMessageTrackerTest.cc
  5174. * test/DHTPingMessageTest.cc
  5175. * test/DHTPingReplyMessageTest.cc
  5176. * test/MockDHTMessageFactory.h
  5177. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5178. Added tests the case where length < 0 is specified.
  5179. * test/BencodeTest.cc
  5180. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5181. Fixed memory leak in decoderawstring()
  5182. * src/bencode.cc
  5183. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. Added missing #ifdef guard. Added uc() function for String and
  5185. removeKey() for Dict.
  5186. * src/bencode.cc
  5187. * src/bencode.h
  5188. * test/BencodeTest.cc
  5189. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5190. Use BDE instead of Dictionary/List/Data.
  5191. * src/HandshakeExtensionMessage.cc
  5192. * src/HandshakeExtensionMessage.h
  5193. * test/HandshakeExtensionMessageTest.cc
  5194. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5195. Added --max-overall-upload-limit option. This option limits the
  5196. overall upload speed. Stated in help message that the existing
  5197. --max-upload-limit option limits the upload speed per each
  5198. torrent. Man page is also updated.
  5199. * doc/aria2c.1.txt
  5200. * src/DefaultBtMessageDispatcher.cc
  5201. * src/DefaultBtMessageDispatcher.h
  5202. * src/OptionHandlerFactory.cc
  5203. * src/PeerInteractionCommand.cc
  5204. * src/option_processing.cc
  5205. * src/prefs.cc
  5206. * src/prefs.h
  5207. * src/usage_text.h
  5208. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Use BDE instead of Dictionary/List/Data classes.
  5210. * src/CompactPeerListProcessor.cc
  5211. * src/CompactPeerListProcessor.h
  5212. * src/DefaultBtAnnounce.cc
  5213. * src/DefaultBtContext.cc
  5214. * src/DefaultBtContext.h
  5215. * src/DefaultPeerListProcessor.cc
  5216. * src/DefaultPeerListProcessor.h
  5217. * src/DelegatingPeerListProcessor.cc
  5218. * src/DelegatingPeerListProcessor.h
  5219. * src/PeerListProcessor.h
  5220. * src/UTPexExtensionMessage.cc
  5221. * src/Util.h
  5222. * src/message.h
  5223. * test/DefaultBtContextTest.cc
  5224. * test/DefaultPeerListProcessorTest.cc
  5225. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Added bencode helper functions and BDE class.
  5227. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5228. * src/Makefile.am
  5229. * src/bencode.cc
  5230. * src/bencode.h
  5231. * test/BencodeTest.cc
  5232. * test/Makefile.am
  5233. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5234. Fixed the bug that bad URI is sent to the tracker when the announe
  5235. URI in torrent file includes query.
  5236. * src/DefaultBtAnnounce.cc
  5237. * test/DefaultBtAnnounceTest.cc
  5238. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5239. Added Option::blank().
  5240. Use !Option::blank(name) instead of Option::defined(name) for
  5241. the options that take filename.
  5242. * src/MultiUrlRequestInfo.cc
  5243. * src/Option.cc
  5244. * src/Option.h
  5245. * src/main.cc
  5246. * src/option_processing.cc
  5247. * test/OptionTest.cc
  5248. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5249. Documented the default value of --check-certificate option in man
  5250. page.
  5251. * doc/aria2c.1.txt
  5252. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Enabled --check-certificate by default. Added compile
  5254. time(configure) option --with-ca-bundle to specify CA bundle.
  5255. Warn if --check-certificate=true and --ca-certificate is not
  5256. specified or loading CA certificate is failed.
  5257. * configure.ac
  5258. * src/MultiUrlRequestInfo.cc
  5259. * src/OptionHandlerFactory.cc
  5260. * src/message.h
  5261. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5262. Mentioned https tag in help option.
  5263. * doc/aria2c.1.txt
  5264. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5265. Added `https' tag to help option category. Added https tag to
  5266. --ca-certificate, --certificate, --check-certificate and
  5267. --private-key option.
  5268. * src/OptionHandlerFactory.cc
  5269. * src/help_tags.h
  5270. * src/option_processing.cc
  5271. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Changed the package name from `aria2c' to `aria2' in order to fix
  5273. the packaging issue in Debian and Fedora. The name of the
  5274. executable is not changed.
  5275. * configure.ac
  5276. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. Fixed typos
  5278. * src/usage_text.h
  5279. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5280. Fixed typos and updated doc.
  5281. * README
  5282. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Fixed typos
  5284. * doc/aria2c.1.txt
  5285. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5286. Fixed typos
  5287. * src/usage_text.h
  5288. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5289. Print a message when no files to download.
  5290. * src/download_helper.cc
  5291. * src/main.cc
  5292. * src/message.h
  5293. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5294. RFC3986 complied Percent-Encoding(urlencode).
  5295. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5296. ones.
  5297. * src/Request.cc
  5298. * src/Util.cc
  5299. * src/Util.h
  5300. * test/BtHandshakeMessageTest.cc
  5301. * test/DefaultBtAnnounceTest.cc
  5302. * test/DefaultBtContextTest.cc
  5303. * test/RequestTest.cc
  5304. * test/UtilTest.cc
  5305. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5306. Fixed the bug that prevents aria2 from downloading 0-length files
  5307. via HTTP/FTP.
  5308. * src/DefaultBtContext.cc
  5309. * src/DefaultBtContext.h
  5310. * src/DownloadContext.h
  5311. * src/FtpNegotiationCommand.cc
  5312. * src/HttpResponseCommand.cc
  5313. * src/HttpResponseCommand.h
  5314. * src/RequestGroup.cc
  5315. * src/SingleFileDownloadContext.cc
  5316. * src/SingleFileDownloadContext.h
  5317. * test/BtPostDownloadHandlerTest.cc
  5318. * test/MetalinkPostDownloadHandlerTest.cc
  5319. * test/MockBtContext.h
  5320. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5322. * src/option_processing.cc
  5323. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Applied aria2-1.0.1-mingw.patch.
  5325. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5326. mingw.
  5327. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5328. * src/SocketCore.cc
  5329. * src/a2netcompat.h
  5330. * test/SocketCoreTest.cc
  5331. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5332. * Release 1.0.1
  5333. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5334. Updated Ukrainian and Norwegian Nynorsk translations.
  5335. Thanks to all translators.
  5336. * po/nn.po
  5337. * po/uk.po
  5338. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Don't show download result when -S option is used.
  5340. * src/main.cc
  5341. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5342. Bump up version number to 1.0.1
  5343. * configure.ac
  5344. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5345. Closed files after the test cases in MultiDiskWriterTest::
  5346. testResetDiskWriterEntries(). This will fix the unit test error
  5347. in mingw32 build.
  5348. * test/MultiDiskWriterTest.cc
  5349. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5350. Use HEAD method to get file size from HTTP server for segmented
  5351. downloading.
  5352. The request to the BitTorrent Tracker always uses GET method because
  5353. the response of the tracker is small and it doesn't need segmented
  5354. download.
  5355. * src/FtpNegotiationCommand.cc
  5356. * src/HttpRequest.cc
  5357. * src/HttpResponseCommand.cc
  5358. * src/HttpSkipResponseCommand.cc
  5359. * src/RequestGroup.cc
  5360. * src/RequestGroup.h
  5361. * src/TrackerWatcherCommand.cc
  5362. * test/HttpRequestTest.cc
  5363. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5364. Fixed the bug that causes floating exception when -T option is used and
  5365. no URIs are given.
  5366. * src/download_helper.cc
  5367. * test/DownloadHelperTest.cc
  5368. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5369. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5370. errors in MinGW:
  5371. Closed file after saving server stats (RequestGroupMan.cc)
  5372. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5373. Ignored case & handled 2-digit years (strptime.c)
  5374. Added missing suseconds_t definition (a2time.h)
  5375. Fixed socket CLOSE() define (SocketCore.cc)
  5376. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5377. Changed utime() test values from x000 to x00000 as MinGW failed on
  5378. values less than timezone offset from Unix epoch
  5379. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5380. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5381. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5382. handle negative dates (CookieParserTest.cc)
  5383. * src/a2time.h
  5384. * src/FtpConnection.cc
  5385. * src/RequestGroupMan.cc
  5386. * src/SocketCore.cc
  5387. * src/strptime.c
  5388. * test/CookieParserTest.cc
  5389. * test/CopyDiskAdaptorTest.cc
  5390. * test/FileTest.cc
  5391. * test/FtpConnectionTest.cc
  5392. * test/MultiDiskAdaptorTest.cc
  5393. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5394. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5395. * doc/aria2c.1.txt
  5396. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. * Release 1.0.0
  5398. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Added '~' to reserved characters.
  5400. * src/Util.cc
  5401. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Do not urlencode Request::url in setUrl() because we want unmodified
  5403. URL using Request::getUrl()
  5404. * src/Request.cc
  5405. * src/Request.h
  5406. * test/RequestTest.cc
  5407. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5408. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5409. Thanks to all translators.
  5410. * po/bg.po
  5411. * po/fr.po
  5412. * po/ja.po
  5413. * po/ru.po
  5414. * po/uk.po
  5415. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. Bump up version number to 1.0.0
  5417. * configure.ac
  5418. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Added nosqlite3 build to build_test.sh.
  5420. Renamed noxml as expat.
  5421. * build_test.sh
  5422. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Updated INPUT FILE section.
  5424. * doc/aria2c.1.txt
  5425. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5427. on big endian systems because test .aria2 files are made for little
  5428. endian systems.
  5429. * test/DefaultBtProgressInfoFileTest.cc
  5430. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5431. Dropped ares support.
  5432. * README
  5433. * configure.ac
  5434. * m4/libares.m4: Removed.
  5435. * src/AsyncNameResolver.cc
  5436. * src/Makefile.am
  5437. * test/Makefile.am
  5438. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5439. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5440. Removed const qualifier from DiskWriter::size().
  5441. * src/AbstractDiskWriter.cc
  5442. * src/AbstractDiskWriter.h
  5443. * src/ByteArrayDiskWriter.cc
  5444. * src/ByteArrayDiskWriter.h
  5445. * src/DiskWriter.h
  5446. * test/ByteArrayDiskWriterTest.cc
  5447. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. Fixed the bug that causes segmentation fault/bus error during executing
  5449. choking algorithm while seeding. This is caused by improper
  5450. implementation of compare function which returns inconsistent results
  5451. depending on the timing of last unchoke.
  5452. * src/BtSeederStateChoke.cc
  5453. * src/BtSeederStateChoke.h
  5454. * src/DefaultPeerStorage.cc
  5455. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5456. Removed TODO
  5457. * TODO
  5458. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Added a section that explains how to pass argument to options that
  5460. takes optional arguments with its short form.
  5461. * doc/aria2c.1.txt
  5462. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5463. Added -u for the short form of --max-upload-limit option.
  5464. * doc/aria2c.1.txt
  5465. * src/option_processing.cc
  5466. * src/usage_text.h
  5467. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5468. Added -V for the short form of --check-integrity option.
  5469. Now the argument of --check-integrity option is optional:
  5470. if it is omitted, it is evaluated as true.
  5471. * doc/aria2c.1.txt
  5472. * src/option_processing.cc
  5473. * src/usage_text.h
  5474. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5475. Made the default value of --ftp-pasv option set to true and it can take
  5476. true/false values.
  5477. * src/OptionHandlerFactory.cc
  5478. * src/option_processing.cc
  5479. * src/usage_text.h
  5480. * doc/aria2c.1.txt
  5481. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5482. Given custom random number generator to std::random_shuffle.
  5483. * src/AnnounceList.cc
  5484. * src/BtLeecherStateChoke.cc
  5485. * src/BtSeederStateChoke.cc
  5486. * src/DefaultBtRequestFactory.cc
  5487. * src/MetalinkEntry.cc
  5488. * src/RarestPieceSelector.cc
  5489. * src/SimpleRandomizer.cc
  5490. * src/SimpleRandomizer.h
  5491. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5492. Now the default value of --enable-direct-io is true.
  5493. * src/OptionHandlerFactory.cc
  5494. * doc/aria2c.1.txt
  5495. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Erase peer before executing onReturningPeer and onErasingPeer
  5497. because choking algorithm called from onReturningPeer doesn't
  5498. like erasing peer in the active peer list.
  5499. * src/DefaultPeerStorage.cc
  5500. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5501. Instead of creating special filename in createDownloadResult() if
  5502. inMemoryDownload() is true, now it is done in getFilePath().
  5503. * src/RequestGroup.cc
  5504. * test/RequestGroupTest.cc
  5505. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5506. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5507. processed in memory. This is the fix for previous comment out.
  5508. * src/MemoryBufferPreDownloadHandler.cc
  5509. * src/RequestGroup.cc
  5510. * src/RequestGroup.h
  5511. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5512. Commented out the code which sets virtual directory path "[MEMORY]"
  5513. propagate directory to store to following RequestGroup.
  5514. * src/MemoryBufferPreDownloadHandler.cc
  5515. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Bump up version number to 1.0.0b
  5517. * configure.ac
  5518. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5519. Added input_uris.txt to EXTRA_DIST
  5520. * test/Makefile.am
  5521. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Removed PeerObject.h from Makefile.am
  5523. * src/Makefile.am
  5524. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5525. Avoid slow seeding
  5526. * src/PeerInteractionCommand.cc
  5527. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5528. Updated usage for -i option.
  5529. * src/usage_text.h (TEXT_INPUT_FILE)
  5530. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5531. Added INPUT FILE section to man page.
  5532. Escaped fake URLs.
  5533. * doc/aria2c.1.txt
  5534. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Fixed wrong note position for -o option.
  5536. * doc/aria2c.1.txt
  5537. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5538. Fixed compile error without SSL/XML library.
  5539. * src/DefaultBtProgressInfoFile.cc
  5540. * src/DefaultBtProgressInfoFile.h
  5541. * src/FileMetalinkParserState.cc
  5542. * src/RequestGroup.h
  5543. * src/SocketCore.cc
  5544. * src/SocketCore.h
  5545. * src/VerificationMetalinkParserState.cc
  5546. * src/download_helper.h
  5547. * src/main.cc
  5548. * test/DefaultBtProgressInfoFileTest.cc
  5549. * test/DownloadHelperTest.cc
  5550. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5551. Rewritten URI handling functions. They are now provided as a testable
  5552. functions.
  5553. * src/Makefile.am
  5554. * src/RequestGroup.cc
  5555. * src/RequestGroup.h
  5556. * src/download_helper.cc
  5557. * src/download_helper.h
  5558. * src/main.cc
  5559. * test/DownloadHelperTest.cc
  5560. * test/Makefile.am
  5561. * test/input_uris.txt
  5562. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5563. Quickly terminate commands when ctrl-c is pressed.
  5564. * src/DownloadEngine.cc
  5565. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Quickly terminate idle commands when download finished.
  5567. * src/AbstractCommand.cc
  5568. * src/DownloadCommand.cc
  5569. * src/DownloadEngine.cc
  5570. * src/DownloadEngine.h
  5571. * src/SleepCommand.cc
  5572. * src/SleepCommand.h
  5573. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5574. Added the ability to specify output filename and directory in input
  5575. file.
  5576. Additional parameters are added in the following line of URIs
  5577. with proceeding white space(s), 1 parameter in 1 line.
  5578. The parameter names are the same with the command-line option name
  5579. without proceeding "--". Not all the options are available here:
  5580. at the moment, 'dir' and 'out' options are avialable.
  5581. Please note that out option has no effect against Metalink or BitTorrent
  5582. downloads.
  5583. Example input file:
  5584. http://host/foo-1.1.tar.bz2
  5585. out=foo.tar.bz2
  5586. dir=/tmp/downloads
  5587. http://host/thundermonkey-2.0.tar.bz2
  5588. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5589. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5590. thundermonkey-2.0.tar.bz2 is saved as
  5591. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5592. * src/BtPostDownloadHandler.cc
  5593. * src/Metalink2RequestGroup.cc
  5594. * src/Metalink2RequestGroup.h
  5595. * src/MetalinkPostDownloadHandler.cc
  5596. * src/UriListParser.cc
  5597. * src/UriListParser.h
  5598. * src/main.cc
  5599. * test/Metalink2RequestGroupTest.cc
  5600. * test/UriListParserTest.cc
  5601. * test/filelist1.txt
  5602. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5603. Fixed error when SSL library is not found.
  5604. * configure.ac
  5605. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5606. Cross referenced among -s, -C and -j options.
  5607. Updated usage of -C and -s options.
  5608. * src/usage_text.h
  5609. * doc/aria2c.1.txt
  5610. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. Fixed bad cast in 32bit platforms.
  5612. * test/DefaultPieceStorageTest.cc
  5613. (DefaultPieceStorageTest::testGetCompletedLength)
  5614. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5615. Fixed unit test fails on 32bit platforms.
  5616. * test/CookieParserTest.cc
  5617. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. Show an average download speed in Download results.
  5619. * src/BtFileAllocationEntry.cc
  5620. * src/DefaultPieceStorage.cc
  5621. * src/DownloadContext.cc
  5622. * src/DownloadContext.h
  5623. * src/DownloadResult.h
  5624. * src/RequestGroup.cc
  5625. * src/RequestGroupMan.cc
  5626. * src/StreamFileAllocationEntry.cc
  5627. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5628. Fixed the bug that metalink file is not processed if Content-Type
  5629. field has a paramter.
  5630. * src/HttpResponse.cc
  5631. * src/HttpResponse.h
  5632. * test/HttpResponseTest.cc
  5633. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5634. Removed unused code.
  5635. * src/DefaultBtAnnounce.cc
  5636. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5637. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5638. the value larger than DefaultPieceStorage::getTotalLength() when
  5639. in flight pieces are involved.
  5640. * src/DefaultPieceStorage.cc
  5641. * test/DefaultPieceStorageTest.cc
  5642. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5643. Bump up version number to 1.0.0a.
  5644. * configure.ac
  5645. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5646. Updated configure.ac
  5647. * configure.ac
  5648. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5649. Added usege for proxy.
  5650. * doc/aria2c.1.txt
  5651. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Added usage for --ca-certificate, --certificate, --private-key and
  5653. --check-certificate options.
  5654. * doc/aria2c.1.txt
  5655. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5656. Updated man page
  5657. * doc/aria2c.1.txt
  5658. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5659. Added --no-proxy option. It receives comman separated hostname or
  5660. domains to which proxy should not be used.
  5661. aria2 honors the environment variable no_proxy to override no-proxy
  5662. value in configuration file. The user can override the environment
  5663. variable no_proxy with --no-proxy command-line option.
  5664. * src/AbstractCommand.cc
  5665. * src/OptionHandlerFactory.cc
  5666. * src/option_processing.cc
  5667. * src/prefs.cc
  5668. * src/prefs.h
  5669. * src/usage_text.h
  5670. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5671. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5672. The CA certificates are specified in --ca-certificate option.
  5673. By default, the verification is disabled. Use --check-certificate
  5674. option to enable it.
  5675. * src/HttpRequestCommand.cc
  5676. * src/LibgnutlsTLSContext.cc
  5677. * src/LibgnutlsTLSContext.h
  5678. * src/LibsslTLSContext.cc
  5679. * src/LibsslTLSContext.h
  5680. * src/MultiUrlRequestInfo.cc
  5681. * src/OptionHandlerFactory.cc
  5682. * src/SocketCore.cc
  5683. * src/SocketCore.h
  5684. * src/a2functional.h
  5685. * src/message.h
  5686. * src/option_processing.cc
  5687. * src/prefs.cc
  5688. * src/prefs.h
  5689. * src/usage_text.h
  5690. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5691. Added client certificate authentication for SSL/TLS.
  5692. Currently a private key must be decrypted for use with aria2.
  5693. If a user accidentally gives encrypted file to aria2 then following
  5694. thing happens:
  5695. If encrypted private key is given to aria2, it behaves differently
  5696. depending on the ssl library it uses. If aria2 built with openssl then
  5697. openssl prompts the user for password. If aria2 build with gnutls then
  5698. aria2 exists with error at start up.
  5699. * src/DownloadEngineFactory.cc
  5700. * src/MultiUrlRequestInfo.cc
  5701. * src/OptionHandlerFactory.cc
  5702. * src/option_processing.cc
  5703. * src/prefs.cc
  5704. * src/prefs.h
  5705. * src/usage_text.h
  5706. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Introduced TLSContext that holds TLS related data that can be shared
  5708. with multiple SSL connections.
  5709. * src/DownloadEngineFactory.cc
  5710. * src/LibgnutlsTLSContext.cc
  5711. * src/LibgnutlsTLSContext.h
  5712. * src/LibsslTLSContext.cc
  5713. * src/LibsslTLSContext.h
  5714. * src/Makefile.am
  5715. * src/SocketCore.cc
  5716. * src/SocketCore.h
  5717. * src/TLSContext.h
  5718. * src/message.h
  5719. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5720. Fixed the bug that the DiskWriter of the first FileEntry whose
  5721. `needsFileAllocation' property is false is not created
  5722. even if it shares a piece with next FileEntry which `requested' property
  5723. is true.
  5724. Fixed the bug that zero-length file is not created if pre file
  5725. allocation is not done.
  5726. * src/MultiDiskAdaptor.cc
  5727. * src/MultiDiskAdaptor.h
  5728. * test/MultiDiskAdaptorTest.cc
  5729. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5730. Added the ability to pool proxy connection.
  5731. The conneciton in FTP with proxy-method=GET is not pooled.
  5732. Proxy-Connection header will not be sent when sending CONNECT method.
  5733. * src/DownloadEngine.cc
  5734. * src/DownloadEngine.h
  5735. * src/FtpFinishDownloadCommand.cc
  5736. * src/FtpInitiateConnectionCommand.cc
  5737. * src/FtpNegotiationCommand.cc
  5738. * src/HttpDownloadCommand.cc
  5739. * src/HttpInitiateConnectionCommand.cc
  5740. * src/HttpRequest.cc
  5741. * src/HttpRequest.h
  5742. * src/HttpResponse.cc
  5743. * src/HttpSkipResponseCommand.cc
  5744. * test/HttpRequestTest.cc
  5745. * test/HttpResponseTest.cc
  5746. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Handle date before epoch.
  5748. To create *bad* Time object, call Time::null().
  5749. * src/CookieParser.cc
  5750. * src/FtpConnection.cc
  5751. * src/FtpConnection.h
  5752. * src/FtpNegotiationCommand.cc
  5753. * src/RequestGroup.cc
  5754. * src/TimeA2.cc
  5755. * src/TimeA2.h
  5756. * test/CookieParserTest.cc
  5757. * test/FtpConnectionTest.cc
  5758. * test/TimeTest.cc
  5759. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Added support for following envrionment variables: http_proxy,
  5761. https_proxy, ftp_proxy and all_proxy.
  5762. Each variable is equivalent to the aria2 option whose name is the
  5763. variable name with '_' replaced with '-'.
  5764. They overrides options specified in aria2.conf file.
  5765. The envrionment variables can be overrode using command-line option.
  5766. * src/option_processing.cc
  5767. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Renamed --http-proxy-method as --proxy-method.
  5769. * src/AbstractCommand.cc
  5770. * src/FtpInitiateConnectionCommand.cc
  5771. * src/HttpInitiateConnectionCommand.cc
  5772. * src/OptionHandlerFactory.cc
  5773. * src/option_processing.cc
  5774. * src/prefs.cc
  5775. * src/prefs.h
  5776. * src/usage_text.h
  5777. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5779. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5780. Above 3 options and --http-proxy option can handle proxy in URL format
  5781. like: http://user:passwd@host:port.
  5782. If a proxy requires user/password, they must be specified in a URL.
  5783. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5784. instead.
  5785. * src/AbstractCommand.cc
  5786. * src/AbstractCommand.h
  5787. * src/AbstractProxyRequestCommand.cc
  5788. * src/AbstractProxyRequestCommand.h
  5789. * src/AuthConfigFactory.cc
  5790. * src/AuthConfigFactory.h
  5791. * src/FtpFinishDownloadCommand.cc
  5792. * src/FtpInitiateConnectionCommand.cc
  5793. * src/FtpInitiateConnectionCommand.h
  5794. * src/FtpNegotiationCommand.cc
  5795. * src/FtpTunnelRequestCommand.cc
  5796. * src/FtpTunnelRequestCommand.h
  5797. * src/HttpDownloadCommand.cc
  5798. * src/HttpInitiateConnectionCommand.cc
  5799. * src/HttpInitiateConnectionCommand.h
  5800. * src/HttpProxyRequestCommand.cc
  5801. * src/HttpProxyRequestCommand.h
  5802. * src/HttpRequest.cc
  5803. * src/HttpRequest.h
  5804. * src/HttpRequestCommand.cc
  5805. * src/HttpRequestCommand.h
  5806. * src/HttpSkipResponseCommand.cc
  5807. * src/InitiateConnectionCommand.cc
  5808. * src/InitiateConnectionCommand.h
  5809. * src/OptionHandlerFactory.cc
  5810. * src/OptionHandlerImpl.h
  5811. * src/Request.cc
  5812. * src/option_processing.cc
  5813. * src/prefs.cc
  5814. * src/prefs.h
  5815. * src/usage_text.h
  5816. * test/AuthConfigFactoryTest.cc
  5817. * test/HttpRequestTest.cc
  5818. * test/OptionHandlerTest.cc
  5819. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Execute choking algorithm when unchoked and interested peer is
  5821. disconected.
  5822. * src/DefaultPeerStorage.cc
  5823. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Added testcase for BtNotInterestedMessage from unchoked peer.
  5825. * test/BtNotInterestedMessageTest.cc
  5826. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Execute choking algorithm when BtInterestedMessage arrives from
  5828. unchoked peer.
  5829. * src/BtInterestedMessage.cc
  5830. * src/BtInterestedMessage.h
  5831. * src/DefaultBtMessageFactory.cc
  5832. * test/BtInterestedMessageTest.cc
  5833. * test/MockPeerStorage.h
  5834. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. AuthConfigFactory is now part of DownloadEngine.
  5836. * src/AbstractProxyRequestCommand.cc
  5837. * src/AuthConfigFactory.h
  5838. * src/DownloadEngine.cc
  5839. * src/DownloadEngine.h
  5840. * src/FtpConnection.cc
  5841. * src/FtpConnection.h
  5842. * src/FtpNegotiationCommand.cc
  5843. * src/HttpConnection.cc
  5844. * src/HttpRequest.cc
  5845. * src/HttpRequest.h
  5846. * src/HttpRequestCommand.cc
  5847. * src/HttpResponse.cc
  5848. * src/HttpResponseCommand.cc
  5849. * src/HttpSkipResponseCommand.cc
  5850. * src/MultiUrlRequestInfo.cc
  5851. * src/main.cc
  5852. * test/FtpConnectionTest.cc
  5853. * test/HttpRequestTest.cc
  5854. * test/HttpResponseTest.cc
  5855. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Corrected catched exception type.
  5857. * src/ServerStatMan.cc
  5858. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. DNSCache is now part of DownloadEngine.
  5860. * src/DNSCache.h
  5861. * src/DownloadEngine.cc
  5862. * src/DownloadEngine.h
  5863. * src/InitiateConnectionCommand.cc
  5864. * src/MultiUrlRequestInfo.cc
  5865. * test/Makefile.am
  5866. * test/Makefile.in
  5867. * test/SimpleDNSCacheTest.cc
  5868. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5870. DownloadEngine.
  5871. * src/ActivePeerConnectionCommand.cc
  5872. * src/BtSetup.cc
  5873. * src/CUIDCounter.h
  5874. * src/DHTSetup.cc
  5875. * src/DownloadCommand.cc
  5876. * src/DownloadEngine.cc
  5877. * src/DownloadEngine.h
  5878. * src/DownloadEngineFactory.cc
  5879. * src/FileAllocationDispatcherCommand.cc
  5880. * src/InitiatorMSEHandshakeCommand.cc
  5881. * src/PeerInitiateConnectionCommand.cc
  5882. * src/PeerInteractionCommand.cc
  5883. * src/PeerListenCommand.cc
  5884. * src/RequestGroup.cc
  5885. * src/StreamFileAllocationEntry.cc
  5886. * src/TrackerWatcherCommand.cc
  5887. * src/main.cc
  5888. * test/RequestGroupManTest.cc
  5889. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Implemented commented code in BtSeederStateChoke
  5891. * src/BtSeederStateChoke.cc
  5892. * src/Peer.cc
  5893. * src/Peer.h
  5894. * src/PeerInteractionCommand.cc
  5895. * src/PeerSessionResource.cc
  5896. * src/PeerSessionResource.h
  5897. * test/MockBtMessageDispatcher.h
  5898. * test/PeerSessionResourceTest.cc
  5899. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5901. its object.
  5902. * src/AbstractBtMessage.cc
  5903. * src/ActivePeerConnectionCommand.cc
  5904. * src/ActivePeerConnectionCommand.h
  5905. * src/BtContextAwareCommand.cc
  5906. * src/BtContextAwareCommand.h
  5907. * src/BtExtendedMessage.cc
  5908. * src/BtExtendedMessage.h
  5909. * src/BtInterestedMessage.cc
  5910. * src/BtInterestedMessage.h
  5911. * src/BtNotInterestedMessage.cc
  5912. * src/BtNotInterestedMessage.h
  5913. * src/BtRegistry.cc
  5914. * src/BtRegistry.h
  5915. * src/BtSeederStateChoke.cc
  5916. * src/BtSetup.cc
  5917. * src/DHTGetPeersCommand.cc
  5918. * src/DHTGetPeersCommand.h
  5919. * src/DHTPeerAnnounceEntry.cc
  5920. * src/DHTPeerAnnounceEntry.h
  5921. * src/DHTPeerAnnounceStorage.cc
  5922. * src/DHTPeerAnnounceStorage.h
  5923. * src/DHTPeerLookupTask.cc
  5924. * src/DHTPeerLookupTask.h
  5925. * src/DHTSetup.cc
  5926. * src/DHTSetup.h
  5927. * src/DHTTaskFactory.h
  5928. * src/DHTTaskFactoryImpl.cc
  5929. * src/DHTTaskFactoryImpl.h
  5930. * src/DefaultBtAnnounce.cc
  5931. * src/DefaultBtInteractive.cc
  5932. * src/DefaultBtInteractive.h
  5933. * src/DefaultBtMessageDispatcher.cc
  5934. * src/DefaultBtMessageDispatcher.h
  5935. * src/DefaultBtMessageFactory.cc
  5936. * src/DefaultBtMessageFactory.h
  5937. * src/DefaultBtMessageReceiver.cc
  5938. * src/DefaultBtProgressInfoFile.cc
  5939. * src/DefaultBtProgressInfoFile.h
  5940. * src/DefaultBtRequestFactory.cc
  5941. * src/DefaultBtRequestFactory.h
  5942. * src/DefaultExtensionMessageFactory.cc
  5943. * src/DefaultExtensionMessageFactory.h
  5944. * src/DefaultPeerStorage.cc
  5945. * src/DefaultPeerStorage.h
  5946. * src/DownloadEngine.cc
  5947. * src/DownloadEngine.h
  5948. * src/InitiatorMSEHandshakeCommand.cc
  5949. * src/InitiatorMSEHandshakeCommand.h
  5950. * src/MSEHandshake.cc
  5951. * src/MSEHandshake.h
  5952. * src/Makefile.am
  5953. * src/Makefile.in
  5954. * src/PeerChokeCommand.cc
  5955. * src/PeerChokeCommand.h
  5956. * src/PeerInitiateConnectionCommand.cc
  5957. * src/PeerInitiateConnectionCommand.h
  5958. * src/PeerInteractionCommand.cc
  5959. * src/PeerInteractionCommand.h
  5960. * src/PeerObject.h
  5961. * src/PeerReceiveHandshakeCommand.cc
  5962. * src/PeerReceiveHandshakeCommand.h
  5963. * src/ReceiverMSEHandshakeCommand.cc
  5964. * src/RequestGroup.cc
  5965. * src/RequestGroup.h
  5966. * src/RequestGroupMan.cc
  5967. * src/RequestGroupMan.h
  5968. * src/SeedCheckCommand.cc
  5969. * src/SeedCheckCommand.h
  5970. * src/ShareRatioSeedCriteria.h
  5971. * src/SimpleBtMessage.cc
  5972. * src/TrackerWatcherCommand.cc
  5973. * src/TrackerWatcherCommand.h
  5974. * src/UTPexExtensionMessage.cc
  5975. * src/UTPexExtensionMessage.h
  5976. * test/BtCancelMessageTest.cc
  5977. * test/BtChokeMessageTest.cc
  5978. * test/BtExtendedMessageTest.cc
  5979. * test/BtInterestedMessageTest.cc
  5980. * test/BtNotInterestedMessageTest.cc
  5981. * test/BtPieceMessageTest.cc
  5982. * test/BtPortMessageTest.cc
  5983. * test/BtRegistryTest.cc
  5984. * test/BtRejectMessageTest.cc
  5985. * test/BtRequestMessageTest.cc
  5986. * test/DHTPeerAnnounceEntryTest.cc
  5987. * test/DHTPeerAnnounceStorageTest.cc
  5988. * test/DefaultBtMessageDispatcherTest.cc
  5989. * test/DefaultBtMessageFactoryTest.cc
  5990. * test/DefaultBtProgressInfoFileTest.cc
  5991. * test/DefaultBtRequestFactoryTest.cc
  5992. * test/DefaultExtensionMessageFactoryTest.cc
  5993. * test/MSEHandshakeTest.cc
  5994. * test/MockDHTTaskFactory.h
  5995. * test/ShareRatioSeedCriteriaTest.cc
  5996. * test/UTPexExtensionMessageTest.cc
  5997. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5998. Fixed compiler warning.
  5999. * test/UtilTest.cc
  6000. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Treat Cookie object as session cookie if expiry = 0 is given.
  6002. With this change, you can specify session scoped cookies in an external
  6003. file setting expiry value to 0.
  6004. * src/Cookie.cc
  6005. * src/Cookie.h
  6006. * test/CookieParserTest.cc
  6007. * test/CookieStorageTest.cc
  6008. * test/CookieTest.cc
  6009. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6010. Changed signature of DHTMessageFactory::createResponseMessage().
  6011. Removed unused validateIDMatch.
  6012. * src/DHTMessageFactory.h
  6013. * src/DHTMessageFactoryImpl.cc
  6014. * src/DHTMessageFactoryImpl.h
  6015. * src/DHTMessageTracker.cc
  6016. * test/DHTMessageFactoryImplTest.cc
  6017. * test/MockDHTMessageFactory.h
  6018. Dropped DHT message coming from same ID of localhost.
  6019. * src/DHTMessageReceiver.cc
  6020. Rejected adding node whose ID is the same as localhost's.
  6021. * src/DHTRoutingTable.cc
  6022. * test/BtPortMessageTest.cc
  6023. * test/DHTRoutingTableTest.cc
  6024. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Pool connection when redirection occurs with Content-Length = 0.
  6026. * src/HttpSkipResponseCommand.cc
  6027. * src/HttpSkipResponseCommand.h
  6028. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Fixed the bug that causes time out when redirection occurs with
  6030. content-length 0.
  6031. * src/HttpResponseCommand.cc
  6032. * src/HttpSkipResponseCommand.cc
  6033. * src/HttpSkipResponseCommand.h
  6034. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Now each status legends is shown only when it appears in Download
  6036. Result. If Download Result has no item, then status legend will not
  6037. be printed.
  6038. * src/RequestGroupMan.cc
  6039. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Removed duplicate creation of OptionHandlers.
  6041. * src/option_processing.cc
  6042. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Fixed the bug that causes segmentation fault when accessing files which
  6044. don't exist or are not included in --select-file option while
  6045. validating chunk checksum.
  6046. * src/MultiDiskAdaptor.cc
  6047. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Fixed compiler warning.
  6049. * test/UtilTest.cc
  6050. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6052. * src/IteratableChecksumValidator.cc
  6053. * src/IteratableChunkChecksumValidator.cc
  6054. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. * Release 0.16.2
  6056. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Added Serbian translation. Updated Ukrainian translation.
  6058. Thanks to all translators.
  6059. * po/sr.po
  6060. * po/uk.po
  6061. * po/LINGUAS
  6062. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Bump up version number to 0.16.2
  6064. * configure.ac
  6065. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Added length equality test to operator== to drop a piece message
  6067. whose length does not match to the requested one.
  6068. * src/RequestSlot.cc
  6069. * test/DefaultBtMessageDispatcherTest.cc
  6070. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6072. recieved.
  6073. In this fix, if a request larger than 16KiB length is received, aria2
  6074. disconnects the peer.
  6075. * src/BtConstants.h
  6076. * src/PeerMessageUtil.cc
  6077. * src/PeerMessageUtil.h
  6078. * test/BtRequestMessageTest.cc
  6079. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. * Release 0.16.1
  6081. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6083. * doc/aria2c.1.txt
  6084. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6085. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6086. Updated French, Simplified Chinese and Japanese translations.
  6087. Thanks to all translators.
  6088. en@quot and en@boldquot are also added.
  6089. * po/LINGUAS
  6090. * po/fr.po
  6091. * po/ja.po
  6092. * po/uk.po
  6093. * po/vi.po
  6094. * po/zh_CN.po
  6095. * po/zh_TW.po
  6096. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Bump up version number to 0.16.1.
  6098. * configure.ac
  6099. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Updated README.
  6101. * README
  6102. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6104. not to replace '--' with em dash character.
  6105. * doc/aria2c.1.txt
  6106. * doc/makeman
  6107. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6109. every SEC seconds.
  6110. * src/DownloadEngineFactory.cc
  6111. * src/OptionHandlerFactory.cc
  6112. * src/option_processing.cc
  6113. * src/usage_text.h
  6114. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Fixed compile warning on linux-amd64
  6116. * src/FtpConnection.cc
  6117. * src/IteratableChunkChecksumValidator.cc
  6118. * src/MultiDiskAdaptor.cc
  6119. Fixed the bug that unit test fails on linux-amd64
  6120. * test/UtilTest.cc
  6121. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Added --dht-file-path option to change the path to dht.dat, which is a
  6123. serialized DHT routing table.
  6124. * src/OptionHandlerFactory.cc
  6125. * src/option_processing.cc
  6126. * src/usage_text.h
  6127. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Fixed possible underflow.
  6129. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6130. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Fixed the bug that last character in URI is not encoded.
  6132. * src/Request.cc
  6133. * test/RequestTest.cc
  6134. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Fixed the bug that referer header field contains fragment.
  6136. Now Request class removes fragment part of URI and encodes it
  6137. in Request::setUri() and setReferer().
  6138. * src/Request.h
  6139. * src/Request.cc
  6140. * test/RequestTest.cc
  6141. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Added missing m4 macros.
  6143. * m4/cppunit.m4
  6144. * m4/libgcrypt.m4
  6145. * m4/libgnutls-extra.m4
  6146. * m4/libgnutls.m4
  6147. * m4/libxml2.m4
  6148. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6149. Fixed compile error with gcc-4.4(snapshot)
  6150. * src/File.cc
  6151. * src/FtpConnection.cc
  6152. * src/OptionHandlerImpl.h
  6153. * src/Util.cc
  6154. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Removed assert()
  6156. * src/SocketBuffer.cc (SocketBuffer::send)
  6157. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Changed the type of _numNewConnection to unsigned int.
  6159. * src/ActivePeerConnectionCommand.cc
  6160. * src/ActivePeerConnectionCommand.h
  6161. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. * Release 0.16.0
  6163. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Updated doc
  6165. * README
  6166. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6167. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6168. translations. Thanks to all translators.
  6169. * po/bg.po
  6170. * po/de.po
  6171. * po/fr.po
  6172. * po/ja.po
  6173. * po/zh_CN.po
  6174. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. Bump up version number to 0.16.0.
  6176. * configure.ac
  6177. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6179. int32_t.
  6180. Changed the type of count to int32_t.
  6181. * src/Metalink2RequestGroup.cc
  6182. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6183. Added test for Time::elapsed(time_t).
  6184. * test/TimeTest.cc
  6185. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6187. Util::difftv() should be used instead.
  6188. * src/TimeA2.cc
  6189. * src/TimeA2.h
  6190. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Made socket for dht connections non-blocking
  6192. * src/DHTAbstractMessage.cc
  6193. * src/DHTAbstractMessage.h
  6194. * src/DHTConnection.h
  6195. * src/DHTConnectionImpl.cc
  6196. * src/DHTConnectionImpl.h
  6197. * src/DHTMessage.h
  6198. * src/DHTMessageDispatcherImpl.cc
  6199. * src/DHTMessageDispatcherImpl.h
  6200. * src/DHTUnknownMessage.cc
  6201. * src/DHTUnknownMessage.h
  6202. * src/SocketCore.cc
  6203. * src/SocketCore.h
  6204. * test/MockDHTMessage.h
  6205. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Changed the type of offset to int.
  6207. * src/ParameterizedStringParser.cc
  6208. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Made getAsInt() return int32_t
  6210. * src/Option.h
  6211. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6213. build.
  6214. * configure.ac
  6215. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Use sqlite3_open if sqlite3_open_v2 is not available.
  6217. * src/Sqlite3MozCookieParser.cc
  6218. * src/Sqlite3MozCookieParser.h
  6219. * m4/sqlite3.m4
  6220. * test/Sqlite3MozCookieParserTest.cc
  6221. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6223. * src/BtPieceMessage.cc
  6224. * src/DHTPeerAnnounceStorage.cc
  6225. * src/DefaultPieceStorage.cc
  6226. * src/DownloadCommand.cc
  6227. * src/DownloadEngine.cc
  6228. * src/FtpConnection.cc
  6229. * src/PeerConnection.cc
  6230. * src/PeerMessageUtil.cc
  6231. * src/RequestGroup.cc
  6232. * src/RequestGroupMan.cc
  6233. * src/SimpleBtMessage.cc
  6234. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6235. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6236. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6237. * src/AbstractDiskWriter.cc
  6238. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Don't set Request::supportsPersistentConnection() in HttpConnection
  6240. since this code is also used in AbstractProxyResponseCommand.
  6241. Moved those code to HttpResponse.
  6242. * src/HttpResponse.cc
  6243. * src/HttpResponse.h
  6244. * src/HttpConnection.cc
  6245. * src/HttpConnection.h
  6246. * src/HttpResponseCommand.cc
  6247. * test/HttpResponseTest.cc
  6248. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6249. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6250. The configuration is minimum: no torrent, no metalink, so there may be
  6251. other compile error on their code.
  6252. * src/a2netcompat.h
  6253. * src/File.cc
  6254. * src/File.h
  6255. * src/SocketCore.cc
  6256. * src/SocketCore.h
  6257. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6258. Made a socket of incoming peer non-blocking.
  6259. * src/PeerListenCommand.cc
  6260. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6261. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6262. whole message data is not sent in one send() call.
  6263. * src/BtPieceMessage.cc
  6264. * src/BtPieceMessage.h
  6265. * src/PeerConnection.cc
  6266. * src/PeerConnection.h
  6267. * src/SimpleBtMessage.cc
  6268. * src/SimpleBtMessage.h
  6269. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Fixed the bug that aria2 downloads faster than max-download-limit when
  6271. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6272. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6273. , instead of sum of them.
  6274. * src/ActivePeerConnectionCommand.cc
  6275. * src/DefaultBtInteractive.cc
  6276. * src/DownloadCommand.cc
  6277. * src/PeerInteractionCommand.cc
  6278. * src/PeerReceiveHandshakeCommand.cc
  6279. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6280. Fixed the bug that HTTPS download fails.
  6281. * src/AbstractCommand.cc
  6282. * src/AbstractCommand.h
  6283. * src/DownloadCommand.cc
  6284. * src/FtpConnection.cc
  6285. * src/HttpConnection.cc
  6286. * src/HttpRequestCommand.cc
  6287. * src/HttpResponseCommand.cc
  6288. * src/HttpSkipResponseCommand.cc
  6289. * src/MSEHandshake.cc
  6290. * src/PeerConnection.cc
  6291. * src/SocketCore.cc
  6292. * src/SocketCore.h
  6293. Fixed the bug that aria2 doesn't download whole content body and cannot
  6294. reuse connection if chunked transfer encoding and gzip content encoding
  6295. are set.
  6296. * src/DownloadCommand.cc
  6297. * src/HttpSkipResponseCommand.cc
  6298. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Updated man page.
  6300. * doc/aria2c.1.txt
  6301. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. When error occurred while aria2 was parsing an .aria2.conf file, print
  6303. the usage of the option that caused error.
  6304. * src/option_processing.cc
  6305. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Fixed compile error on OptionHandlerException
  6307. * src/Makefile.am
  6308. * src/OptionHandlerException.cc
  6309. * src/OptionHandlerException.h
  6310. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6311. Moved message of the error to OptionHandlerException.h
  6312. * src/NameMatchOptionHandler.h
  6313. * src/OptionHandlerException.h
  6314. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. When error occurs while aria2 is parsing an command-line option, print
  6316. the usage of the option.
  6317. * src/Makefile.am
  6318. * src/NameMatchOptionHandler.h
  6319. * src/OptionHandlerException.h
  6320. * src/option_processing.cc
  6321. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Reverted previous change.
  6323. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6324. username is not in URI.
  6325. * src/HttpRequest.cc
  6326. * src/Request.cc
  6327. * test/HttpRequestTest.cc
  6328. * test/RequestTest.cc
  6329. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. Now colon is required for username and password in FTP URL, like:
  6331. ftp://username:password@host.
  6332. If colon is not there, aria2 don't parse it as a username. For example,
  6333. aria2 don't retrieve username from ftp://username@host.
  6334. This fix was made in order to login FTP server via non-transparent ftp
  6335. proxy.
  6336. * src/Request.cc
  6337. * test/RequestTest.cc
  6338. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Use netrc for HTTP.
  6340. Now FTP user/password is sent in Authorization header when
  6341. --ftp-via-http-proxy=get is given.
  6342. * src/AuthConfigFactory.cc
  6343. * src/HttpRequest.cc
  6344. * src/HttpRequest.h
  6345. * src/NetrcAuthResolver.cc
  6346. * src/NetrcAuthResolver.h
  6347. * src/OptionHandlerFactory.cc
  6348. * src/option_processing.cc
  6349. * src/prefs.cc
  6350. * src/prefs.h
  6351. * test/AuthConfigFactoryTest.cc
  6352. * test/HttpRequestTest.cc
  6353. * test/NetrcAuthResolverTest.cc
  6354. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Issue PWD command first and get working directory and use it as a prefix
  6356. for CWD command.
  6357. * src/DownloadEngine.cc
  6358. * src/DownloadEngine.h
  6359. * src/FtpConnection.cc
  6360. * src/FtpConnection.h
  6361. * src/FtpFinishDownloadCommand.cc
  6362. * src/FtpInitiateConnectionCommand.cc
  6363. * src/FtpNegotiationCommand.cc
  6364. * src/FtpNegotiationCommand.h
  6365. * test/FtpConnectionTest.cc
  6366. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Removed default user/pass for FTP user/pass, since it should not have
  6368. precedence over netrc configuration by default.
  6369. * src/OptionHandlerFactory.cc
  6370. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Added debug log for socket event.
  6372. * src/AbstractCommand.cc
  6373. * src/PeerAbstractCommand.cc
  6374. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. Log microseconds.
  6376. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6377. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Replaced HelpItem.cc with OptionHandler.cc.
  6379. * po/POTFILES.in
  6380. Updated po files with 'make update-po'
  6381. * po/aria2c.pot
  6382. * po/*.po
  6383. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Removed possible values from the text.
  6385. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6386. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Removed unused preferences:
  6388. PREF_NO_PREALLOCATION
  6389. PREF_STDOUT_LOG
  6390. PREF_TRACKER_MAX_TRIES
  6391. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6392. PREF_MIN_SEGMENT_SIZE
  6393. * src/option_processing.cc
  6394. * src/prefs.cc
  6395. * src/prefs.h
  6396. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Integrated HelpItem into OptionParser to ease the workload for adding
  6398. new options. Removed default value from usage text.
  6399. * src/HelpItem.cc: Removed.
  6400. * src/HelpItem.h: Removed.
  6401. * src/HelpItemFactory.cc: Removed.
  6402. * src/HelpItemFactory.h: Removed.
  6403. * src/Makefile.am
  6404. * src/Makefile.in
  6405. * src/NameMatchOptionHandler.h
  6406. * src/OptionHandler.cc
  6407. * src/OptionHandler.h
  6408. * src/OptionHandlerFactory.cc
  6409. * src/OptionHandlerImpl.h
  6410. * src/OptionParser.cc
  6411. * src/OptionParser.h
  6412. * src/TagContainer.cc: Removed.
  6413. * src/TagContainer.h: Removed.
  6414. * src/TaggedItem.cc: Removed.
  6415. * src/TaggedItem.h: Removed.
  6416. * src/main.cc
  6417. * src/option_processing.cc
  6418. * src/usage_text.h
  6419. * src/version_usage.cc
  6420. * test/HelpItemTest.cc: Removed.
  6421. * test/Makefile.am
  6422. * test/Makefile.in
  6423. * test/OptionHandlerTest.cc
  6424. * test/OptionParserTest.cc
  6425. * test/TagContainerTest.cc: Removed.
  6426. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Moved `TransferStat stat = ...' to inside the `if' clause.
  6428. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6429. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. Fixed the bug that a block in a piece is requested when same block is
  6431. already requested to the same peer in end game mode.
  6432. * src/BtRequestFactory.h
  6433. * src/DefaultBtInteractive.cc
  6434. * src/DefaultBtRequestFactory.cc
  6435. * src/DefaultBtRequestFactory.h
  6436. * src/DefaultPieceStorage.cc
  6437. * src/DefaultPieceStorage.h
  6438. * src/PieceStorage.h
  6439. * src/UnknownLengthPieceStorage.cc
  6440. * src/UnknownLengthPieceStorage.h
  6441. * test/DefaultBtRequestFactoryTest.cc
  6442. * test/DefaultPieceStorageTest.cc
  6443. * test/MockBtRequestFactory.h
  6444. * test/MockPieceStorage.h
  6445. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Removed _uploadLength and _downloadLength from PeerSessionResource
  6447. and use PeerStat::_sessionUploadLength and
  6448. PeerStat::_sessionDownloadLength.
  6449. * src/PeerSessionResource.cc
  6450. * src/PeerSessionResource.h
  6451. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Fixed the bug that prefixLength of split bucket which doesn't include
  6453. local node ID is incremented.
  6454. * src/DHTBucket.cc
  6455. * src/DHTBucket.h
  6456. * test/DHTBucketTest.cc
  6457. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Added cookies.sqlite to EXTRA_DIST
  6459. * test/Makefile.am
  6460. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Added Turkish translation. Updated French, German, Russian and
  6462. Simplified Chinese translations. Thanks to all translators.
  6463. * po/LINGUAS
  6464. * po/de.po
  6465. * po/fr.po
  6466. * po/ru.po
  6467. * po/tr.po
  6468. * po/zh_CN.po
  6469. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Added deliminating text to the beginning of the log so that one can find
  6471. where the log starts easily.
  6472. * src/main.cc
  6473. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6474. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6475. to fix compile error when async DNS is not enabled by configuration.
  6476. * src/AbstractCommand.cc
  6477. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. If establishing conneciton to a server is failed, then mark error on
  6479. its ServerStat.
  6480. Added the cause of error to log when error event occurred.
  6481. Moved message string to message.h for translation.
  6482. * src/AbstractCommand.cc
  6483. * src/AbstractCommand.h
  6484. * src/FtpNegotiationCommand.cc
  6485. * src/HttpRequestCommand.cc
  6486. * src/PeerAbstractCommand.cc
  6487. * src/message.h
  6488. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Added the function to get error message from socket.
  6490. * src/SocketCore.cc
  6491. * src/SocketCore.h
  6492. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6493. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6494. * src/RequestGroupMan.cc
  6495. * src/RequestGroupMan.h
  6496. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6497. If error event is received in epoll, then abort download immediately.
  6498. * src/AbstractCommand.cc
  6499. * src/Command.cc
  6500. * src/Command.h
  6501. * src/DownloadEngine.cc
  6502. * src/PeerAbstractCommand.cc
  6503. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. Added usage message for --uri-selector, --server-stat-of,
  6505. --server-stat-in, --server-stat-timeout options.
  6506. * src/HelpItemFactory.cc
  6507. * src/usage_text.h
  6508. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Added upper limit of FTP response buffer. The current implementation
  6510. uses 4096bytes as a limit.
  6511. * src/FtpConnection.cc
  6512. * src/FtpConnection.h
  6513. * test/FtpConnectionTest.cc
  6514. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. Use non-blocking socket for TCP communication to avoid possible
  6516. blocking due to buffer full.
  6517. * src/AbstractProxyRequestCommand.cc
  6518. * src/FtpConnection.cc
  6519. * src/FtpConnection.h
  6520. * src/FtpNegotiationCommand.cc
  6521. * src/FtpNegotiationCommand.h
  6522. * src/HttpConnection.cc
  6523. * src/HttpConnection.h
  6524. * src/HttpRequestCommand.cc
  6525. * src/InitiatorMSEHandshakeCommand.cc
  6526. * src/InitiatorMSEHandshakeCommand.h
  6527. * src/MSEHandshake.cc
  6528. * src/MSEHandshake.h
  6529. * src/Makefile.am
  6530. * src/PeerConnection.cc
  6531. * src/PeerConnection.h
  6532. * src/PeerInteractionCommand.cc
  6533. * src/PeerListenCommand.cc
  6534. * src/ReceiverMSEHandshakeCommand.cc
  6535. * src/ReceiverMSEHandshakeCommand.h
  6536. * src/SocketBuffer.cc
  6537. * src/SocketBuffer.h
  6538. * src/SocketCore.cc
  6539. * src/SocketCore.h
  6540. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Call setStatusRealtime() in constructor.
  6542. * src/RealtimeCommand.cc
  6543. * src/RealtimeCommand.h
  6544. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Call Download::setNoWait(true) to execute newly created command without
  6546. a pause.
  6547. * src/AbstractCommand.cc
  6548. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6550. found' error from HTTP/FTP server NUM times without getting single
  6551. bytes of data, then force the download to fail.
  6552. Basically aria2 tris all URIs available. So if long list of URIs are
  6553. specified in Metalink, then aria2 will take a long time to fail
  6554. eventually if all URIs are outdated. This option eases this situation
  6555. to limit the number of servers to try.
  6556. * src/FtpNegotiationCommand.cc
  6557. * src/HelpItemFactory.cc
  6558. * src/HttpResponseCommand.cc
  6559. * src/OptionHandlerFactory.cc
  6560. * src/PeerStat.h
  6561. * src/RequestGroup.cc
  6562. * src/RequestGroup.h
  6563. * src/SegmentMan.cc
  6564. * src/SegmentMan.h
  6565. * src/option_processing.cc
  6566. * src/prefs.cc
  6567. * src/prefs.h
  6568. * src/usage_text.h
  6569. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6571. response even if more than one response is in it.
  6572. * src/FtpConnection.cc
  6573. * src/FtpConnection.h
  6574. * test/FtpConnectionTest.cc
  6575. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. Merged from stable-0.15
  6577. * m4/libcares.m4
  6578. Use pkg-config
  6579. * m4/sqlite3.m4
  6580. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Removed unnecessary if statement.
  6582. * src/DefaultPieceStorage.cc (initPieceStorage)
  6583. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Added --connect-timeout option to specify connect timeout in seconds.
  6585. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6586. connecting to BitTorrent peer is not controlled by this option.
  6587. * src/AbstractProxyRequestCommand.cc
  6588. * src/FtpNegotiationCommand.cc
  6589. * src/HelpItemFactory.cc
  6590. * src/HttpRequestCommand.cc
  6591. * src/OptionHandlerFactory.cc
  6592. * src/option_processing.cc
  6593. * src/prefs.cc
  6594. * src/prefs.h
  6595. * src/usage_text.h
  6596. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Added help message for -R option.
  6598. * src/HelpItemFactory.cc
  6599. * src/usage_text.h
  6600. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Added the message that the time is in local time zone.
  6602. * src/RequestGroup.cc
  6603. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Implemented the ability to get timestamp from remote FTP server using
  6605. MDTM command described in RFC3659.
  6606. * src/FtpConnection.cc
  6607. * src/FtpConnection.h
  6608. * src/FtpNegotiationCommand.cc
  6609. * src/FtpNegotiationCommand.h
  6610. * test/FtpConnectionTest.cc
  6611. * test/Makefile.am
  6612. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Implemented the ability to get timestamp from remote HTTP server and
  6614. apply it to local file. To enable this feature, --remote-time option
  6615. is added. No usage text has been written yet.
  6616. If several servers returns difference timestamp, then aria2 uses latest
  6617. one.
  6618. * src/CopyDiskAdaptor.cc
  6619. * src/CopyDiskAdaptor.h
  6620. * src/DirectDiskAdaptor.cc
  6621. * src/DirectDiskAdaptor.h
  6622. * src/DiskAdaptor.h
  6623. * src/File.cc
  6624. * src/File.h
  6625. * src/HttpHeader.cc
  6626. * src/HttpHeader.h
  6627. * src/HttpResponse.cc
  6628. * src/HttpResponse.h
  6629. * src/HttpResponseCommand.cc
  6630. * src/HttpResponseCommand.h
  6631. * src/MultiDiskAdaptor.cc
  6632. * src/MultiDiskAdaptor.h
  6633. * src/OptionHandlerFactory.cc
  6634. * src/RequestGroup.cc
  6635. * src/RequestGroup.h
  6636. * src/RequestGroupMan.cc
  6637. * src/option_processing.cc
  6638. * src/prefs.cc
  6639. * src/prefs.h
  6640. * test/CopyDiskAdaptorTest.cc
  6641. * test/FileTest.cc
  6642. * test/Makefile.am
  6643. * test/Makefile.in
  6644. * test/MultiDiskAdaptorTest.cc
  6645. * test/TestUtil.cc
  6646. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6647. Fixed the bug that DiskWriterEntry is not created when its
  6648. FileEntry.isRequested() is false and it doesn't share a piece with
  6649. other FileEntries that are requested. This bug causes segmentation fault
  6650. in the end.
  6651. * src/MultiDiskAdaptor.cc
  6652. * src/MultiDiskAdaptor.h
  6653. * src/MultiFileAllocationIterator.cc
  6654. * test/MultiDiskAdaptorTest.cc
  6655. * test/MultiFileAllocationIteratorTest.cc
  6656. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6658. called if the number of file entries are greater than max open files.
  6659. * src/AbstractSingleDiskAdaptor.cc
  6660. * src/AbstractSingleDiskAdaptor.h
  6661. * src/DiskAdaptor.h
  6662. * src/MultiDiskAdaptor.cc
  6663. * src/MultiDiskAdaptor.h
  6664. * test/MultiDiskAdaptorTest.cc
  6665. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Added a constuctor that receives struct timeval.
  6667. Added operator<.
  6668. * src/TimeA2.cc
  6669. * src/TimeA2.h
  6670. * test/TimeTest.cc
  6671. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6672. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6673. * src/CookieParser.cc
  6674. * test/CookieParserTest.cc
  6675. * test/HttpResponseTest.cc
  6676. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Implmented the functions to parse date.
  6678. * src/TimeA2.cc
  6679. * src/TimeA2.h
  6680. * test/TimeTest.cc
  6681. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Added "Firefox3 Cookie" feature to FeatureConfig
  6683. * src/FeatureConfig.cc
  6684. * src/FeatureConfig.h
  6685. * test/FeatureConfigTest.cc
  6686. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6687. Bump up version number to 0.16.0b
  6688. * configure.ac
  6689. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Use pkg-config if is is available.
  6691. * m4/openssl.m4
  6692. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6693. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6694. * src/BtAnnounce.h
  6695. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. If an error occurred with a URI, remove identical URI from remaining
  6697. URI list because it is likely that same error occurred in the end and it
  6698. is waste of time.
  6699. * src/AbstractCommand.cc
  6700. * src/RequestGroup.cc
  6701. * src/RequestGroup.h
  6702. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Removed wrong comment.
  6704. * src/DefaultPeerStorage.cc
  6705. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6707. Added return value of getpid() to argument of srand() to achieve more
  6708. randomized value.
  6709. * src/SimpleRandomizer.cc
  6710. * src/SimpleRandomizer.h
  6711. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Contact tracker frequently when the number of connections are 0 and
  6713. download is not finished yet.
  6714. * src/ActivePeerConnectionCommand.cc
  6715. * src/BtAnnounce.h
  6716. * src/DefaultBtAnnounce.cc
  6717. * src/DefaultBtAnnounce.h
  6718. * test/MockBtAnnounce.h
  6719. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Moved threshold values to UTPexExtensionMessage.
  6721. * src/DefaultBtInteractive.cc
  6722. * src/Peer.cc
  6723. * src/Peer.h
  6724. * src/UTPexExtensionMessage.cc
  6725. * src/UTPexExtensionMessage.h
  6726. * test/UTPexExtensionMessageTest.cc
  6727. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Added _incoming member to Peer class and made it true if the peer
  6729. initiated connection. Don't add those peer to UTPex message.
  6730. If extended handshake is received, assign _incoming to false.
  6731. * src/DefaultBtInteractive.cc
  6732. * src/HandshakeExtensionMessage.cc
  6733. * src/Peer.cc
  6734. * src/Peer.h
  6735. * src/PeerListenCommand.cc
  6736. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6738. Encoding Decoder. Removed size threshold for turning off on the fly
  6739. inflation because resulting file may or may not be inflated depending
  6740. on the file size and I think it is not expected by users.
  6741. This change fixes segmentation fault when Metalink file contains gzipped
  6742. file and its filesize is provided.
  6743. * src/HttpResponseCommand.cc
  6744. * src/HttpResponseCommand.h
  6745. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. Made Cookie immutable.
  6747. * src/Cookie.cc
  6748. * src/Cookie.h
  6749. * src/CookieParser.cc
  6750. * src/CookieParser.h
  6751. * src/CookieStorage.cc
  6752. * test/CookieParserTest.cc
  6753. * test/CookieStorageTest.cc
  6754. * test/NsCookieParserTest.cc
  6755. * test/Sqlite3MozCookieParserTest.cc
  6756. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Removed CookieBox, CookieBoxFactory.
  6758. * src/CookieBox.cc
  6759. * src/CookieBox.h
  6760. * src/CookieBoxFactory.cc
  6761. * src/CookieBoxFactory.h
  6762. * src/Makefile.am
  6763. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. Use CookieStorage class instead of CookieBox class.
  6765. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6766. * src/AbstractProxyRequestCommand.cc
  6767. * src/CookieStorage.cc
  6768. * src/DownloadEngine.cc
  6769. * src/DownloadEngine.h
  6770. * src/HttpConnection.cc
  6771. * src/HttpConnection.h
  6772. * src/HttpRequest.cc
  6773. * src/HttpRequest.h
  6774. * src/HttpRequestCommand.cc
  6775. * src/HttpResponse.cc
  6776. * src/HttpResponseCommand.cc
  6777. * src/HttpSkipResponseCommand.cc
  6778. * src/Makefile.am
  6779. * src/MultiUrlRequestInfo.cc
  6780. * src/Request.cc
  6781. * src/Request.h
  6782. * src/main.cc
  6783. * test/AllTest.cc
  6784. * test/CookieStorageTest.cc
  6785. * test/CookieTest.cc
  6786. * test/HttpRequestTest.cc
  6787. * test/HttpResponseTest.cc
  6788. * test/Makefile.am
  6789. * test/NsCookieParserTest.cc
  6790. * test/Sqlite3MozCookieParserTest.cc
  6791. * test/nscookietest.txt
  6792. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Updated
  6794. * test/Cookies.sqlite
  6795. * test/nscookietest.txt
  6796. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Added tests for CookieStorage::load()
  6798. * test/CookieStorageTest.cc
  6799. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6800. Added CookieStorage class which is based on RFC2109 and manages cookies
  6801. more strictly than CookieBox and CookieBoxFactory class.
  6802. * src/CookieStorage.cc
  6803. * src/CookieStorage.h
  6804. * src/Cookie.cc
  6805. * src/Cookie.h
  6806. * test/CookieStorageTest.cc
  6807. * test/CookieTest.cc
  6808. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Fixed the bug that commands are created more than the number of pieces.
  6810. * src/RequestGroup.cc
  6811. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. Fixed infinite loop bug in FTP when SIZE command failed.
  6813. * src/FtpNegotiationCommand.cc
  6814. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. Removed DirectDiskAdaptorTest.h
  6816. * test/Makefile.am
  6817. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Fixed chunk checksum validation cannot detect trailing garbage data.
  6819. BUG#2074141
  6820. * src/AbstractSingleDiskAdaptor.cc
  6821. * src/AbstractSingleDiskAdaptor.h
  6822. * src/CheckIntegrityEntry.cc
  6823. * src/CheckIntegrityEntry.h
  6824. * src/DiskAdaptor.h
  6825. * src/MultiDiskAdaptor.cc
  6826. * src/MultiDiskAdaptor.h
  6827. * src/RequestGroup.cc
  6828. * test/DirectDiskAdaptorTest.cc
  6829. * test/MultiDiskAdaptorTest.cc
  6830. * test/TestUtil.cc
  6831. * test/TestUtil.h
  6832. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Bump up version number of dht.dat file to 3. In version 3 format, time
  6834. is stored in 64bit, network byte order.
  6835. New build can load old format(version 2) but it saves the file in new
  6836. format. It means once you used new build, your dht.dat becomes
  6837. incompatible with older build.
  6838. * src/DHTRoutingTableDeserializer.cc
  6839. * src/DHTRoutingTableSerializer.cc
  6840. * test/DHTRoutingTableSerializerTest.cc
  6841. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6843. * test/Makefile.am
  6844. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Bump up version number of .aria2 control file to 0001.
  6846. New aria2 can still load version 0000 file but it saves the file in
  6847. version 0001 format. It means that new aria2 can resume download
  6848. started by old aria2 but the opposite is not true.
  6849. * src/DefaultBtProgressInfoFile.cc
  6850. * src/DefaultBtProgressInfoFile.h
  6851. * test/DefaultBtProgressInfoFileTest.cc
  6852. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. Added ntoh64 and hton64 as inline functions.
  6854. * src/Util.cc
  6855. * test/UtilTest.cc
  6856. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Added sqlite3 depenency and Firefox3 cookie support.
  6858. * README
  6859. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. State that firefox3 cookie is supported explicitly in the usage.
  6861. * src/usage_text.h
  6862. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Externalized message.
  6864. * src/RequestGroupMan.cc
  6865. * src/message.h
  6866. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Save temporary file first and rename to the destination on success.
  6868. Added test cases.
  6869. * src/RequestGroupMan.cc
  6870. * test/RequestGroupManTest.cc
  6871. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Fixed the bug that the number of connected peer is exceeding the limit
  6873. (55 by default) in seeding mode.
  6874. Multiplied 0.8 to _maxUploadSpeedLimit.
  6875. * src/ActivePeerConnectionCommand.cc
  6876. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6877. Clear table item.
  6878. * src/Dictionary.cc
  6879. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Fixed error handling of lseek.
  6881. * src/AbstractDiskWriter.cc
  6882. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6883. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6884. style cookie file.
  6885. * src/usage_text.h
  6886. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6888. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6889. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6890. * src/Util.cc
  6891. * src/Util.h
  6892. * src/CookieParser.cc
  6893. * test/UtilTest.cc
  6894. * test/CookieParserTest.cc
  6895. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Separate the implementation to load old mozilla format of cookie to
  6897. NsCookieParser class.
  6898. * src/CookieBoxFactory.cc
  6899. * src/CookieBoxFactory.h
  6900. * src/NsCookieParser.cc
  6901. * src/NsCookieParser.h
  6902. * test/NsCookieParserTest.cc
  6903. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Made parse() const
  6905. * src/Sqlite3MozCookieParser.cc
  6906. * src/Sqlite3MozCookieParser.h
  6907. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Added firefox3 cookie support based on the patch submitted by
  6909. tizianomueller.
  6910. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6911. this functionality.
  6912. * configure.ac
  6913. * m4/sqlite3.m4
  6914. * src/CookieBoxFactory.cc
  6915. * src/CookieBoxFactory.h
  6916. * src/Makefile.am
  6917. * src/Makefile.in
  6918. * src/Sqlite3MozCookieParser.cc
  6919. * src/Sqlite3MozCookieParser.h
  6920. * src/main.cc
  6921. * test/CookieBoxFactoryTest.cc
  6922. * test/Makefile.am
  6923. * test/Makefile.in
  6924. * test/Sqlite3MozCookieParserTest.cc
  6925. * test/badcookies.sqlite
  6926. * test/cookies.sqlite
  6927. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Added Danish and Greek translations.
  6929. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6930. Great thanks to all translators.
  6931. * po/LINGUAS
  6932. * po/el.po
  6933. * po/da.po
  6934. * po/es.po
  6935. * po/ca.po
  6936. * po/nn.po
  6937. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6938. Fixed man page: --follow-bittorrent should be --follow-torrent
  6939. * doc/aria2c.1.txt
  6940. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Fixed: numCommand is less than the value specified in -C option.
  6942. * src/RequestGroup.cc
  6943. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Fixed occasional assertion failure in PieceSegment.
  6945. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6946. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6947. creation of duplicate segments and one of the segment was finished then
  6948. assertion failure was caused.
  6949. * src/SegmentMan.cc
  6950. * test/SegmentManTest.cc
  6951. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Added options to load/save the server's performance/status to a file
  6953. and the timeout to drop their data.
  6954. --server-stat-of=FILE specifies the file to which performance data
  6955. is saved.
  6956. --server-stat-if=FILE specifies the file to read previously saved
  6957. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6958. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6959. TIMEOUT is specified in seconds and the default value is 24hours.
  6960. * src/MultiUrlRequestInfo.cc
  6961. * src/OptionHandlerFactory.cc
  6962. * src/RequestGroupMan.cc
  6963. * src/RequestGroupMan.h
  6964. * src/ServerStatMan.cc
  6965. * src/ServerStatMan.h
  6966. * src/option_processing.cc
  6967. * src/prefs.cc
  6968. * src/prefs.h
  6969. * test/ServerStatManTest.cc
  6970. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6972. * src/ServerStatMan.cc
  6973. * src/ServerStatMan.h
  6974. * test/ServerStatManTest.cc
  6975. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Implemented ServerStatMan::load(...) function and its test case.
  6977. * src/ServerStat.cc
  6978. * src/ServerStat.h
  6979. * src/ServerStatMan.cc
  6980. * test/ServerStatManTest.cc
  6981. * test/ServerStatTest.cc
  6982. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Use time_t instead of int32_t. Use int64_t where milli second is
  6984. expected.
  6985. * src/TimeA2.cc
  6986. * src/TimeA2.h
  6987. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Implemented ServerStatMan::save(...) function and its test case.
  6989. * src/ServerStat.cc
  6990. * src/ServerStat.h
  6991. * src/ServerStatMan.cc
  6992. * src/ServerStatMan.h
  6993. * test/ServerStatManTest.cc
  6994. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Now aria2 uses name attribute in Metalink as local filename in
  6996. BitTorrent downloads. BUG#2033999
  6997. * src/BtContext.h
  6998. * src/BtDependency.cc
  6999. * src/DefaultBtContext.cc
  7000. * src/DefaultBtContext.h
  7001. * src/SingleFileDownloadContext.cc
  7002. * src/SingleFileDownloadContext.h
  7003. * test/BtDependencyTest.cc
  7004. * test/DefaultBtContextTest.cc
  7005. * test/MockBtContext.h
  7006. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Added AC_C_BIGENDIAN
  7008. * src/configure.ac
  7009. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Limited numCommand less than or equal to the number of piece.
  7011. * src/RequestGroup.cc
  7012. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7014. directive.
  7015. * test/DefaultPieceStorageTest.cc
  7016. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Fixed memory leak in test code
  7018. * test/AnnounceListTest.cc
  7019. * test/DefaultPeerListProcessorTest.cc
  7020. * test/DefaultPeerStorageTest.cc
  7021. * test/MetaFileUtilTest.cc
  7022. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7024. * src/DefaultPieceStorage.cc
  7025. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7026. Initialized _directIOAllowed
  7027. * src/MultiDiskAdaptor.cc
  7028. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7029. Fixed memory leak
  7030. * src/GZipDecoder.cc
  7031. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Fixed memory leak
  7033. * src/MetalinkParserStateMachine.cc
  7034. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Fixed memory leak
  7036. * src/Dictionary.cc
  7037. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7038. Fixed memory leak
  7039. * src/IteratableChunkChecksumValidator.h
  7040. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Fixed unmatched malloc/free.
  7042. * src/IteratableChunkChecksumValidator.cc
  7043. * src/IteratableChecksumValidator.cc
  7044. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7045. Removed max chunk size check. This change fixes BUG#2040169
  7046. * src/ChunkedDecoder.cc
  7047. * src/ChunkedDecoder.h
  7048. * test/ChunkedDecoderTest.cc
  7049. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Implemented download speed based URI selection algorithm.
  7051. Introduced new option --uri-selector.
  7052. If --uri-selector=feedback is given, aria2 uses download speed observed
  7053. in the previous downloads and chooses fastest server in the URI list.
  7054. Currently at most 10 URIs are considered to introduce randomeness for
  7055. finding better servers. The speed is average download speed in the
  7056. downloads.
  7057. On the other hand, if --uri-selector=inorder is given, which is default,
  7058. URI is tried in order in URI list.
  7059. The usage text for the new option has not been written yet.
  7060. * src/AbstractCommand.cc
  7061. * src/DownloadCommand.cc
  7062. * src/DownloadEngine.cc
  7063. * src/DownloadEngineFactory.cc
  7064. * src/InOrderURISelector.cc
  7065. * src/InOrderURISelector.h
  7066. * src/OptionHandlerFactory.cc
  7067. * src/PeerStat.h
  7068. * src/RequestGroup.cc
  7069. * src/RequestGroup.h
  7070. * src/RequestGroupMan.cc
  7071. * src/RequestGroupMan.h
  7072. * src/SegmentMan.cc
  7073. * src/SegmentMan.h
  7074. * src/ServerStat.cc
  7075. * src/ServerStat.h
  7076. * src/ServerStatMan.cc
  7077. * src/ServerStatMan.h
  7078. * src/ServerStatURISelector.cc
  7079. * src/ServerStatURISelector.h
  7080. * src/URISelector.h
  7081. * src/option_processing.cc
  7082. * src/prefs.cc
  7083. * src/prefs.h
  7084. * test/InOrderURISelectorTest.cc
  7085. * test/RequestGroupManTest.cc
  7086. * test/ServerStatManTest.cc
  7087. * test/ServerStatURISelectorTest.cc
  7088. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. * Release 0.15.1+2
  7090. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Bump up version number to 0.15.1+2
  7092. * configure.ac
  7093. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7094. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7095. * m4/aria2_arg.m4
  7096. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. * Release 0.15.1+1
  7098. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Bump up version number to 0.15.1+1
  7100. * configure.ac
  7101. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Fixed the bug that causes segmentaion fault when resuming download
  7103. using metalink without size tag. Reproducible only using HTTP URI.
  7104. * src/HttpResponseCommand.cc
  7105. * src/FtpNegotiationCommand.cc
  7106. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. * Release 0.15.1
  7108. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Updated Bulgarian and French translations, thanks to all translators.
  7110. * po/bg.po
  7111. * po/fr.po
  7112. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Bump up version number to 0.15.1
  7114. * configure.ac
  7115. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Avoid repeated call of gettimeofday() when calculating speed.
  7117. * src/SpeedCalc.cc
  7118. * src/SpeedCalc.h
  7119. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Removed writable check when socket's send buffer is full in BitTorrent
  7121. downloads to lower CPU usage.
  7122. * src/PeerInteractionCommand.cc
  7123. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7124. Fixed broken gzip inflation.
  7125. Turn off segmented downloading if gzip content is smaller than or equal
  7126. to 1MiB and inflate the data on the fly, because HTTP response header
  7127. doesn't contain the length of inflated file we can't determin where
  7128. the chunk of data should be written.
  7129. On the other hand, if gzip content is larger than 1MB, then turn off
  7130. on the fly inflation, because some servers returns "content-type: gzip"
  7131. for *.tgz, *.gz files.
  7132. * src/DownloadCommand.cc
  7133. * src/HttpResponseCommand.cc
  7134. * src/HttpResponseCommand.h
  7135. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Applied tizianomueller's patch to fix compile error.
  7137. * test/BitfieldManTest.cc
  7138. * test/BtRequestMessageTest.cc
  7139. * test/DefaultBtContextTest.cc
  7140. * test/DefaultDiskWriterTest.cc
  7141. * test/DefaultPieceStorageTest.cc
  7142. * test/HttpHeaderProcessorTest.cc
  7143. * test/HttpResponseTest.cc
  7144. * test/Metalink2RequestGroupTest.cc
  7145. * test/MetalinkParserControllerTest.cc
  7146. * test/MetalinkProcessorTest.cc
  7147. * test/PeerSessionResourceTest.cc
  7148. * test/UtilTest.cc
  7149. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. * Release 0.15.0
  7151. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7152. Reordered src files in POTFILES.in so that usage text appears first.
  7153. * po/POTFILES.in
  7154. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. Bump up version number to 0.15.0
  7156. * configure.ac
  7157. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7158. Added Bulgarian translation.
  7159. Updated Catalan, Spanish, French and Japanese translations.
  7160. Thanks to all translators.
  7161. * po/LINGUAS
  7162. * po/bg.po
  7163. * po/ca.po
  7164. * po/es.po
  7165. * po/fr.po
  7166. * po/ja.po
  7167. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Updated feature list. Added libz for dependency section.
  7169. Added a description about unit testing using CppUnit.
  7170. * README
  7171. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. Added a test for libz. Quoted where it is necessary.
  7173. * build_test.sh
  7174. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7175. Added GZip to `Enabled Features' list.
  7176. * src/FeatureConfig.cc
  7177. * src/FeatureConfig.h
  7178. * test/FeatureConfigTest.cc
  7179. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7181. the transfer has not yet started.
  7182. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7183. * src/SegmentMan.cc
  7184. * src/SegmentMan.h
  7185. * test/SegmentManTest.cc
  7186. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Cache last calculated average download/upload speed.
  7188. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7189. cached value.
  7190. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7191. * src/PeerStat.h
  7192. * src/SpeedCalc.cc
  7193. * src/SpeedCalc.h
  7194. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Call parseUrl directly.
  7196. * src/Request.cc (resetUrl)
  7197. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Supported absolute/relative path in Location header field.
  7199. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7200. * src/HttpHeader.cc
  7201. * src/HttpHeader.h
  7202. * src/HttpResponse.cc
  7203. * src/HttpSkipResponseCommand.cc
  7204. * src/Request.cc
  7205. * test/HttpHeaderTest.cc
  7206. * test/HttpResponseTest.cc
  7207. * test/RequestTest.cc
  7208. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Changed help text for --load-cookie option.
  7210. * doc/aria2c.1.txt
  7211. * src/usage_text.h
  7212. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Regenerated test/Makefile.in to remove stale ChangeLog.
  7214. * test/Makefile.in
  7215. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Updated po files.
  7217. * po/aria2c.pot
  7218. * po/*.po
  7219. * po/*.gmo
  7220. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7221. Bump up version number to 0.15.0b
  7222. * configure.ac
  7223. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. Externalize messages.
  7225. * src/RequestGroupMan.cc
  7226. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7227. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Use File::exists() instead of File::isFile() to allow non-regular file
  7229. such as block special files.
  7230. * src/AbstractDiskWriter.cc
  7231. * src/MultiDiskWriter.cc
  7232. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7234. * src/gai_strerror.h
  7235. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Fixed compile error. Thanks gknauf for the patch.
  7237. * src/asctime_r.c
  7238. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Included asctime_r.h from a2time.h.
  7240. * src/a2time.h
  7241. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Added a message "aria2 doesn't verify signature" to log message when
  7243. signature file is saved.
  7244. * src/RequestGroupMan.cc
  7245. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Added the ability to save signature when download is completed if
  7247. signature is available. The filename of signature file is the path to
  7248. download file followed by ".sig". If it already exists, then signature
  7249. will not be saved.
  7250. * src/RequestGroupMan.cc
  7251. * src/Signature.cc
  7252. * test/SignatureTest.cc
  7253. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Updated the descriptions for --bt-seed-unverified.
  7255. * doc/aria2c.1
  7256. * doc/aria2c.1.html
  7257. * doc/aria2c.1.txt
  7258. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7260. that this is not going to verify files using piece hashes.
  7261. * src/HelpItemFactory.cc
  7262. * src/OptionHandlerFactory.cc
  7263. * src/RequestGroup.cc
  7264. * src/option_processing.cc
  7265. * src/prefs.cc
  7266. * src/prefs.h
  7267. * src/usage_text.h
  7268. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Added the ability to retrieve signature from Metalink file.
  7270. A retrieved signature is stored in Signature class and it is held by
  7271. DownloadContext class. Note that aria2 doesn't verify signature.
  7272. * src/DownloadContext.cc
  7273. * src/DownloadContext.h
  7274. * src/Makefile.am
  7275. * src/Makefile.in
  7276. * src/Metalink2RequestGroup.cc
  7277. * src/MetalinkEntry.cc
  7278. * src/MetalinkEntry.h
  7279. * src/MetalinkParserController.cc
  7280. * src/MetalinkParserController.h
  7281. * src/MetalinkParserStateMachine.cc
  7282. * src/MetalinkParserStateMachine.h
  7283. * src/Signature.cc
  7284. * src/Signature.h
  7285. * src/SignatureMetalinkParserState.cc
  7286. * src/SignatureMetalinkParserState.h
  7287. * src/VerificationMetalinkParserState.cc
  7288. * src/VerificationMetalinkParserState.h
  7289. * test/Metalink2RequestGroupTest.cc
  7290. * test/MetalinkParserControllerTest.cc
  7291. * test/MetalinkProcessorTest.cc
  7292. * test/test.xml
  7293. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Close DiskAdaptor after renaming file.
  7295. * src/RequestGroup.cc
  7296. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Corrected indentation
  7298. * src/DefaultBtProgressInfoFile.cc
  7299. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Moved the calls of std::ios::exceptions() inside of try-catch block
  7301. because if an error occurred in constructor of std::fstream, then
  7302. exception is thrown immediately when std::ios::exceptions() is called
  7303. which results unhandled exception and aria2c aborts.
  7304. * src/DefaultBtProgressInfoFile.cc
  7305. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Added the test for the previous change in DefaultBtContext.cc
  7307. * test/DefaultBtContextTest.cc
  7308. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Fixed the bug that causes infinite loop when the number of pieces are
  7310. fewer than allowed fast set size which is 10 by default.
  7311. * src/DefaultBtContext.cc
  7312. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Updated the descriptions for -j, -s. Added --bt-seed.
  7314. * doc/aria2c.1
  7315. * doc/aria2c.1.html
  7316. * doc/aria2c.1.txt
  7317. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7318. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7319. aria2 seeds previously downloaded files without validating piece hashs.
  7320. * src/HelpItemFactory.cc
  7321. * src/OptionHandlerFactory.cc
  7322. * src/RequestGroup.cc
  7323. * src/option_processing.cc
  7324. * src/prefs.cc
  7325. * src/prefs.h
  7326. * src/usage_text.h
  7327. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. Updated DESCRIPTION of man page.
  7329. * doc/aria2c.1
  7330. * doc/aria2c.1.html
  7331. * doc/aria2c.1.txt
  7332. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7333. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7334. Don't define `struct addrinfo' when __sun is defined.
  7335. * src/getaddrinfo.h
  7336. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7338. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7339. second argument is of type `struct _stati64'. Otherwise it is defined as
  7340. `struct stat'.
  7341. * src/AbstractDiskWriter.cc
  7342. * src/File.cc
  7343. * src/File.h
  7344. * src/a2io.h
  7345. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Fixed the compile error in hurd-i386
  7347. See the original bug report:
  7348. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7349. * src/a2io.h
  7350. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Code cleanup.
  7352. * src/PeerAbstractCommand.cc
  7353. * src/PeerAbstractCommand.h
  7354. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Removed TransferEncoding.
  7356. * src/DownloadCommand.cc
  7357. * src/DownloadCommand.h
  7358. * src/HttpResponseCommand.cc
  7359. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Updated po files.
  7361. * po/aria2c.pot
  7362. * po/*.po
  7363. * po/*.gmo
  7364. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7366. * src/A2STR.cc
  7367. * src/A2STR.h
  7368. * src/ChunkedDecoder.cc
  7369. * src/ChunkedDecoder.h
  7370. * src/ChunkedEncoding.cc: Removed
  7371. * src/ChunkedEncoding.h: Removed
  7372. * src/DownloadCommand.cc
  7373. * src/DownloadCommand.h
  7374. * src/HttpDownloadCommand.cc
  7375. * src/HttpResponse.cc
  7376. * src/HttpResponse.h
  7377. * src/HttpResponseCommand.cc
  7378. * src/HttpSkipResponseCommand.cc
  7379. * src/HttpSkipResponseCommand.h
  7380. * src/Makefile.am
  7381. * src/TransferEncoding.h: Removed
  7382. * test/ChunkedDecoderTest.cc
  7383. * test/ChunkedEncodingTest.cc: Removed
  7384. * test/HttpResponseTest.cc
  7385. * test/Makefile.am
  7386. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Use append instead of insert.
  7388. * src/GZipDecoder.cc
  7389. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Updated doc
  7391. * src/Decoder.h
  7392. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Updated usage text for -s option.
  7394. * src/usage_text.h
  7395. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7397. * src/Request.cc
  7398. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Cleaned up configure.ac.
  7400. * configure.ac
  7401. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7403. AC_ARG_ENABLE.
  7404. * configure.ac
  7405. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7407. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7408. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7409. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7410. fly and writes decoded data to a local disk.
  7411. * README
  7412. * README.html
  7413. * configure.ac
  7414. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7415. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7416. * m4/libz.m4
  7417. * src/Decoder.h
  7418. * src/DownloadCommand.cc
  7419. * src/DownloadCommand.h
  7420. * src/Exception.h
  7421. * src/GZipDecoder.cc
  7422. * src/GZipDecoder.h
  7423. * src/HttpHeader.cc
  7424. * src/HttpHeader.h
  7425. * src/HttpRequest.cc
  7426. * src/HttpRequest.h
  7427. * src/HttpResponse.cc
  7428. * src/HttpResponse.h
  7429. * src/HttpResponseCommand.cc
  7430. * src/Makefile.am
  7431. * test/GZipDecoderTest.cc
  7432. * test/HttpRequestTest.cc
  7433. * test/HttpResponseTest.cc
  7434. * test/Makefile.am
  7435. * test/Makefile.in
  7436. * test/gzip_decode_test.gz
  7437. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Clarified usage of -j option.
  7439. * src/usage_text.h
  7440. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Disabled getting size from the response of RETR.
  7442. If SIZE command failed, then disable resuming and segmented downloading.
  7443. * src/FtpConnection.cc
  7444. * src/FtpConnection.h
  7445. * src/FtpNegotiationCommand.cc
  7446. * src/FtpNegotiationCommand.h
  7447. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Use digits to find first byte of file size, which makes the intention
  7449. of the code clearer.
  7450. * src/FtpConnection.cc
  7451. Don't call validateTotalLength() when size is 0.
  7452. * src/FtpNegotiationCommand.cc
  7453. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. Updated po files.
  7455. * po/aria2c.pot
  7456. * po/*.gmo
  7457. * po/*.po
  7458. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Clarified usage text for --split option.
  7460. * src/usage_text.h
  7461. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Bump up version number to 0.15.0dev. "dev" means "development"
  7463. version, which means I started the development of the next release!
  7464. * src/configure.ac
  7465. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. If FTP server returns negative response with REST raw command and
  7467. requested range is not 0, throw exception. If requested range is 0,
  7468. continue download a file from 0 byte.
  7469. * src/FtpNegotiationCommand.cc
  7470. * src/FtpNegotiationCommand.h
  7471. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Supported FTP server which don't recognize SIZE raw command.
  7473. If SIZE raw command is failed, aria2 will try to get file size
  7474. from the response of RETR raw command. If both attempts are failed,
  7475. then resuming and segmented downloading are disabled.
  7476. * src/FtpConnection.cc
  7477. * src/FtpConnection.h
  7478. * src/FtpNegotiationCommand.cc
  7479. * src/FtpNegotiationCommand.h
  7480. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. * Release 0.14.0+1
  7482. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Bump up version number to 0.14.0+1
  7484. * src/configure.ac
  7485. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Fixed the code that refers static member variable from non-static
  7487. context.
  7488. * src/DefaultPeerStorage.cc
  7489. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. * Release 0.14.0
  7491. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Added build test script
  7493. * build_test.sh
  7494. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Updated ja.po
  7496. * src/ja.po
  7497. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Bump up version number to 0.14.0
  7499. * src/configure.ac
  7500. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Updated ja.po and fr.po. Great thanks for french translators and
  7502. Sebastien WILLEMIJNS.
  7503. * po/fr.po
  7504. * po/ja.po
  7505. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Added configure option to enable/disable epoll support.
  7507. * configure.ac
  7508. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Updated man page.
  7510. * doc/aria2c.1.txt
  7511. * doc/aria2c.1
  7512. * doc/aria2c.1.html
  7513. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Added missing default value '5' to the usage of --split option.
  7515. * src/HelpItemFactory.cc
  7516. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Filled up pieces based on the number of missing blocks, rather than
  7518. simplay the number of piece * block length.
  7519. * src/BtRequestFactory.h
  7520. * src/DefaultBtInteractive.cc
  7521. * src/DefaultBtInteractive.h
  7522. * src/DefaultBtRequestFactory.cc
  7523. * src/DefaultBtRequestFactory.h
  7524. * src/Piece.cc
  7525. * src/Piece.h
  7526. * test/BitfieldManTest.cc
  7527. * test/DefaultBtRequestFactoryTest.cc
  7528. * test/MockBtRequestFactory.h
  7529. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Made _epEvents a member variable.
  7531. * src/DownloadEngine.cc
  7532. * src/DownloadEngine.h
  7533. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7534. Cancel download if http redirect is bounded more than 20 times.
  7535. * src/AbstractCommand.cc
  7536. * src/HttpSkipResponseCommand.cc
  7537. * src/Request.cc
  7538. * src/Request.h
  7539. * test/RequestTest.cc
  7540. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. Fixed unhandled exception(removed keyword `new').
  7542. * src/SocketCore.cc (initEPOLL)
  7543. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Removed visit(const MetaEntry*)
  7545. * src/MetaEntryVisitor.h:
  7546. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7547. and made them virtual.
  7548. * src/BencodeVisitor.h
  7549. * src/BencodeVisitor.cc
  7550. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Updated po files.
  7552. * po/aria2c.pot
  7553. * po/*.po
  7554. * po/*.gmo
  7555. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7556. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7557. the number of socket to watch out.
  7558. * src/PeerInteractionCommand.cc
  7559. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. When there is not enough space in disk when writing a chunk of data,
  7561. aria2 now prints the message to the console to warn user and aborts
  7562. its download. Not all downloads are canceled because some downloads
  7563. may use another disk or partition. BUG#1640332
  7564. * src/AbstractDiskWriter.cc
  7565. * src/PeerAbstractCommand.cc
  7566. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7567. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7568. setHaltRequested(true) to cancel download.
  7569. * src/PeerInteractionCommand.h
  7570. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7572. socket from int to sock_t as sockets are unsigned in Windows.
  7573. For AsyncNameResolver, DownloadEngine, I did additional modification
  7574. for the portion of the code changed according to epoll support.
  7575. I defined sock_t in a2netcompat.h to use sock_t without including
  7576. SocketCore.h.
  7577. * src/AsyncNameResolver.cc
  7578. * src/AsyncNameResolver.h
  7579. * src/DownloadEngine.cc
  7580. * src/DownloadEngine.h
  7581. * src/SocketCore.cc
  7582. * src/SocketCore.h
  7583. * src/a2netcompat.h
  7584. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7585. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7586. changes in the patch were applied.
  7587. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7588. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7589. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7590. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7592. a2io.h and common.h were modified.
  7593. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7594. MinGW.
  7595. * src/common.h: Changed off_t to 64 bit in MinGW.
  7596. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7598. only a2netcompat.h is modified.
  7599. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7600. directives.
  7601. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7603. only gai_strerror.h is modified.
  7604. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7605. winsock errors in MinGW.
  7606. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7608. follow sources are applied.
  7609. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7610. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7611. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7612. I included locale.h from Platform.cc.
  7613. * src/main.cc: Moved common setup/teardown code to Platform class.
  7614. * test/AllTest.cc: Use Platform class.
  7615. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7616. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7618. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7619. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7620. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7622. aria2-0.13.2+1-mingw-2.patch.
  7623. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7624. systems which don't have termious.h. I moved the directive inside of
  7625. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7626. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7627. anyway.
  7628. * src/asctime_r.h
  7629. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7630. I added 2nd argument to the prototype declaration.
  7631. * src/StringFormat.cc: Get rid of vasprintf.
  7632. * src/getaddrinfo.h: Fixed constants.
  7633. * configure.ac: Added the check for asctime_r function.
  7634. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7635. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Added writable test for Socket when the sending message is in progress.
  7637. Usually the sending message is piece message. Without wriable check,
  7638. upload latency is dropped to more than 1sec.
  7639. * src/PeerInteractionCommand.cc
  7640. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. Create only requested files and files which shares a piece with
  7642. requested file in multi-torrent downloads. Directory structures are
  7643. also created in the same rule.
  7644. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7645. DiskWriterEntry as in the previous implementation.
  7646. * src/MultiDiskWriter.cc
  7647. * src/MultiFileAllocationIterator.cc
  7648. * src/MultiFileAllocationIterator.h
  7649. * test/MultiFileAllocationIteratorTest.cc
  7650. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Commented out -lprofiler
  7652. * src/Makefile.am
  7653. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Bump up version number to 0.14.0b.
  7655. * src/configure.ac
  7656. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Actively establish connection to peers in seeding, when peer cache
  7658. is not full and max upload speed limit is not reached.
  7659. * src/ActivePeerConnectionCommand.cc
  7660. * src/ActivePeerConnectionCommand.h
  7661. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7663. to make room more fleshy, recently found peers.
  7664. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7665. it.
  7666. * src/DefaultPeerStorage.cc
  7667. * test/DefaultPeerStorageTest.cc
  7668. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Returns cached data only when the previous receiveHandshake() is called
  7670. with peek = true.
  7671. * src/PeerConnection.cc (receiveHandshake)
  7672. * src/PeerConnection.h (receiveHandshake)
  7673. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Changed default value of -s option from 1 to 5.
  7675. Also max value of -s option is changed from 5 to 16.
  7676. * src/HelpItemFactory.cc
  7677. * src/OptionHandlerFactory.cc
  7678. * src/option_processing.cc
  7679. * src/usage_text.h
  7680. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Changed -s options behavior. Now it means the number of connections
  7682. made simultaneously in each http/ftp download.
  7683. If 1 URL is specified, the behavior is the same with old implementation.
  7684. If -s N is given and more than N URLs are specified, first N URLs are
  7685. used and remaining URLs are used for backup. If less than N URLs are
  7686. specified, some of URLs are used more than once so that totally N
  7687. connections are made simultaneously.
  7688. * src/main.cc
  7689. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Included missing iosfwd or ostream header.
  7691. * src/RequestGroupMan.cc
  7692. * src/TaggedItem.cc
  7693. * src/TaggedItem.h
  7694. * src/Util.cc
  7695. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7697. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7698. * src/HttpConnection.cc: Included missing sstream.
  7699. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Added --bt-max-open-files option.
  7701. * src/DefaultPieceStorage.cc
  7702. * src/HelpItemFactory.cc
  7703. * src/MultiDiskAdaptor.cc
  7704. * src/MultiDiskAdaptor.h
  7705. * src/OptionHandlerFactory.cc
  7706. * src/option_processing.cc
  7707. * src/prefs.cc
  7708. * src/prefs.h
  7709. * src/usage_text.h
  7710. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Fixed the bug that aria2 aborts when a path to a directory is given
  7712. in command-line.
  7713. * src/ProtocolDetector.cc
  7714. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7715. Limited the number files opened in each BitTorrent download. The default
  7716. value is 100. The option to change this value will be added.
  7717. * src/MultiDiskAdaptor.cc
  7718. * src/MultiDiskAdaptor.h
  7719. * src/MultiFileAllocationIterator.cc
  7720. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Fixed the bug that HTTP downloads don't start with old libraries.
  7722. * src/HttpHeaderProcessor.cc
  7723. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Use empty() instead of size() > 0.
  7725. * src/HttpConnection.cc
  7726. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Drop connection if the incoming peer ID is the same with localhost's
  7728. one. The previous implementation drops connection when incoming peer's
  7729. IP address is the same with localhost's one.
  7730. * src/PeerListenCommand.cc
  7731. * src/DefaultBtInteractive.cc
  7732. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Returns cached data without checking whether socket is readable
  7734. if the cache is available.
  7735. * src/PeerConnection.cc (receiveHandshake)
  7736. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Included stdint.h
  7738. * src/common.h
  7739. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. Removed duplicate HAVE_GETTIMEOFDAY
  7741. * src/Makefile.am
  7742. * src/Makefile.in
  7743. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. Use interval as a minInterval when minInterval is not supplied.
  7745. * src/DefaultBtAnnounce.cc
  7746. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7748. attempt is failed, then 2nd attempt get kicked out more quickly.
  7749. And it is now static const member of DefaultBtAnnounce.
  7750. * src/DefaultBtAnnounce.h
  7751. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7753. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7754. * src/ActivePeerConnectionCommand.cc
  7755. * src/BtConstants.h
  7756. * src/BtRuntime.h
  7757. * src/DHTGetPeersCommand.cc
  7758. * src/DefaultBtAnnounce.cc
  7759. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7760. BtRuntime::MAX_PEERS.
  7761. * src/DefaultPeerStorage.h
  7762. * src/InitiatorMSEHandshakeCommand.cc
  7763. * src/PeerInitiateConnectionCommand.cc
  7764. * src/PeerInteractionCommand.cc
  7765. * src/PeerReceiveHandshakeCommand.cc
  7766. * src/TrackerWatcherCommand.cc
  7767. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. Always Connect to _numNewConnection
  7769. * src/ActivePeerConnectionCommand.cc
  7770. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7771. Made `begin' unsigned int.
  7772. * src/GrowSegment.h
  7773. * src/Piece.cc
  7774. * src/Piece.h
  7775. * src/PiecedSegment.cc
  7776. * src/PiecedSegment.h
  7777. * src/Segment.h
  7778. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Calculate piece hash when data is arrived if the data is arrived in
  7780. order. This removes additional read operation for hash calculation.
  7781. If the data is arrived in out of order, the hash is calucated when the
  7782. piece is completed. This is the same behavior as the old implementation.
  7783. * src/BtPieceMessage.cc
  7784. * src/DefaultBtProgressInfoFile.cc
  7785. * src/DefaultPieceStorage.cc
  7786. * src/DownloadCommand.cc
  7787. * src/DownloadCommand.h
  7788. * src/DownloadEngine.cc
  7789. * src/GrowSegment.cc
  7790. * src/GrowSegment.h
  7791. * src/Piece.cc
  7792. * src/Piece.h
  7793. * src/PiecedSegment.cc
  7794. * src/PiecedSegment.h
  7795. * src/Segment.h
  7796. * test/PieceTest.cc
  7797. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Try to keep the ordering of outgoing piece message.
  7799. * src/DefaultBtMessageDispatcher.cc
  7800. (DefaultBtMessageDispatcher::sendMessages)
  7801. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Fixed busy loop when error/hup epoll events occur.
  7803. * src/AbstractCommand.cc
  7804. * src/PeerAbstractCommand.cc
  7805. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Added --bt-request-peer-speed-limit option, which was a constant
  7807. SLOW_SPEED_THRESHOLD.
  7808. * src/ActivePeerConnectionCommand.cc
  7809. * src/ActivePeerConnectionCommand.h
  7810. * src/BtConstants.h
  7811. * src/HelpItemFactory.cc
  7812. * src/OptionHandlerFactory.cc
  7813. * src/PeerReceiveHandshakeCommand.cc
  7814. * src/option_processing.cc
  7815. * src/prefs.cc
  7816. * src/prefs.h
  7817. * src/usage_text.h
  7818. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Removed repeated call of getTopDirPath(). Instead, call it once and
  7820. cache the result.
  7821. * src/MultiDiskAdaptor.cc
  7822. * src/MultiDiskAdaptor.h
  7823. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7824. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Fixed compile error on debian etch.
  7826. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7827. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7828. it is undefined.
  7829. * src/Util.cc (ULLONG_MAX)
  7830. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Added epoll support. Use epoll if it is available. If not, use select.
  7832. When async dns is enabled in compile time, epoll support is enabled
  7833. only when aria2 is built with c-ares. This condition statement is
  7834. defined in a2io.h.
  7835. Currently aria2 supports both c-ares and ares, but ares is maintained
  7836. for quite a while and debian already has c-ares package, ares support
  7837. will be dropped in the future version.
  7838. * configure.ac
  7839. * src/AbstractCommand.cc
  7840. * src/AsyncNameResolver.cc
  7841. * src/AsyncNameResolver.h
  7842. * src/Command.cc
  7843. * src/Command.h
  7844. * src/DownloadEngine.cc
  7845. * src/DownloadEngine.h
  7846. * src/PeerAbstractCommand.cc
  7847. * src/SocketCore.cc
  7848. * src/SocketCore.h
  7849. * src/a2io.h
  7850. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7852. directive.
  7853. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Do not do write operation to /dev/null file.
  7855. * src/LogFactory.cc
  7856. * src/SimpleLogger.cc
  7857. Replaced vasprintf with vsnprintf
  7858. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7859. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. * src/BtRequestMessage.cc
  7861. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7862. for segmentation fault caused by previous commit.
  7863. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Reduced the usage of gettimeofday().
  7865. * src/DefaultBtMessageDispatcher.cc
  7866. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7867. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7868. * src/RequestSlot.cc
  7869. * src/RequestSlot.h
  7870. (RequestSlot::isTimeout)
  7871. Made RequestSlot have a reference to Piece object to avoid find
  7872. Piece repeatedly.
  7873. * src/DefaultBtMessageDispatcher.cc
  7874. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7875. * src/RequestSlot.cc
  7876. * src/RequestSlot.h
  7877. (RequestSlot::getPiece)
  7878. * test/DefaultBtMessageDispatcherTest.cc
  7879. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. * src/TimeA2.cc
  7881. * src/TimeA2.h
  7882. (Time::difference): New function.
  7883. (Time::elapsed): Done optimization.
  7884. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7886. directive.
  7887. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7888. * src/option_processing.cc: Added missing `defined' keyword to #if
  7889. directive.
  7890. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Bump up version number to 0.13.2+1
  7892. * src/configure.ac
  7893. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Refactored broken outstanding piece handling.
  7895. * src/DefaultPieceStorage.cc
  7896. * src/DefaultPieceStorage.h
  7897. * src/Piece.cc
  7898. * src/Piece.h
  7899. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7901. name collision of static variable and predefined macro.
  7902. * src/BtContext.cc
  7903. * src/BtContext.h
  7904. * src/CookieBoxFactory.cc
  7905. * src/CookieBoxFactory.h
  7906. * src/CookieParser.cc
  7907. * src/CookieParser.h
  7908. * src/DefaultBtContext.cc
  7909. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. * src/RequestGroup.cc
  7911. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7912. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7913. * Release 0.13.2
  7914. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7916. * po/fr.po
  7917. * po/ja.po
  7918. * po/aria2c.pot
  7919. * po/*.po
  7920. * po/*.gmo
  7921. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Bump up version number to 0.13.2
  7923. * src/configure.ac
  7924. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Refactord.
  7926. * src/RequestGroupMan.cc
  7927. (removeStoppedGroup)
  7928. (fillRequestGroupFromReserver)
  7929. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Fixed compile error on Ubuntu.
  7931. * src/BtPieceMessage.cc
  7932. * src/MessageDigestHelper.cc
  7933. * src/Util.cc
  7934. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Fixed compile error when configured with --disable-bittorrent
  7936. * test/DownloadHandlerFactoryTest.cc
  7937. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Done make update-po
  7939. * po/aria2c.pot
  7940. * po/*.po
  7941. * po/*.gmo
  7942. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7943. Bump up version number to 0.13.2rc.
  7944. * src/configure.ac
  7945. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Made option name bold. Updated SYNOPSIS to make it more readable.
  7947. * doc/aria2c.1.txt
  7948. * doc/aria2c.1
  7949. * doc/aria2c.1.html
  7950. * src/version_usage.cc
  7951. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. Refactored. Use std::string instead of size and char*.
  7953. * Data.cc
  7954. * Data.h
  7955. * test/Data.cc
  7956. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Added trimSelf(). Rewritten trim() to use trimSelf().
  7958. * Util.cc
  7959. * Util.h
  7960. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7961. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7962. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Fixed compile error when configured with --disable-metalink.
  7964. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7965. * test/FeatureConfigTest.cc
  7966. * test/DownloadHandlerFactoryTest.cc
  7967. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Fixed compile error when configured with --without-gnutls
  7969. --without-openssl
  7970. * src/main.cc
  7971. * test/DefaultBtProgressInfoFileTest.cc
  7972. * test/SegmentManTest.cc
  7973. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Fixed compile error with OpenSSL.
  7975. * src/IteratableChunkChecksumValidator.cc
  7976. * src/LibsslDHKeyExchange.h
  7977. * src/MessageDigestHelper.cc
  7978. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7979. Revert the default value of --max-concurrent-downloads to 5.
  7980. Revert the default value of --metalink-servers to 5.
  7981. Man pages was also updated.
  7982. * src/option_processing.cc
  7983. * doc/aria2c.1.txt
  7984. * doc/aria2c.1.html
  7985. * doc/aria2c.1
  7986. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Returns const reference:
  7988. DownloadContext::getPieceHash, DownloadContext::getName,
  7989. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7990. BtContext::getInfoHashAsString,
  7991. * src/BtContext.h
  7992. * src/DefaultBtContext.cc
  7993. * src/DefaultBtContext.h
  7994. * src/DownloadContext.h
  7995. * src/SingleFileDownloadContext.h
  7996. * test/MockBtContext.h
  7997. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. * src/RequestGroup.h (getDir): Removed.
  7999. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Returns const reference. The internal urlencode function was optimized
  8001. a little bit.
  8002. * src/Request.cc
  8003. * src/Request.h
  8004. * src/HttpRequest.cc
  8005. * src/HttpRequest.h
  8006. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Defined option name and possible values as std::string to reduce
  8008. temporary string object creation in runtime.
  8009. * src/HelpItemFactory.cc
  8010. * src/LogFactory.cc
  8011. * src/Option.cc
  8012. * src/OptionHandlerFactory.cc
  8013. * src/option_processing.cc
  8014. * src/prefs.cc
  8015. * src/prefs.h
  8016. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Return const reference.
  8018. * src/DownloadHandlerConstants.cc
  8019. * src/DownloadHandlerConstants.h
  8020. (getMetalinkExtensions)
  8021. (getMetalinkContentTypes)
  8022. (getBtExtensions)
  8023. (getBtContentTypes)
  8024. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. * src/HttpHeader.cc (get): Rewritten.
  8026. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8027. Make HttpHeader::getFirst(...) return const reference.
  8028. * src/HttpHeader.cc
  8029. * src/HttpHeader.h
  8030. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8031. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8032. it with V_TRUE.
  8033. * src/DefaultPieceStorage.cc
  8034. * src/DownloadCommand.cc
  8035. * src/FtpNegotiationCommand.cc
  8036. * src/HttpRequest.cc
  8037. * src/InitiateConnectionCommand.cc
  8038. * src/RequestGroup.cc
  8039. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Made Option::get(...) return const reference of std::string.
  8041. * src/Option.cc
  8042. * src/Option.h
  8043. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Replaced std:copy with insert.
  8045. * src/DefaultBtMessageDispatcher.cc
  8046. * src/DefaultPieceStorage.cc
  8047. * src/DownloadEngineFactory.cc
  8048. * src/RequestGroup.cc
  8049. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Included SocketCore.h to fix compiler warning.
  8051. * src/InitiateConnectionCommand.cc
  8052. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Put piece selection strategy algorithm to RarestPieceSelector class,
  8054. Added a switch to choose whether randomized selection so that unit
  8055. tests emit same results in, possibly, win32.
  8056. * src/DefaultPieceStorage.cc
  8057. * src/DefaultPieceStorage.h
  8058. * src/RarestPieceSelector.cc
  8059. * src/RarestPieceSelector.h
  8060. * test/DefaultPieceStorageTest.cc
  8061. * test/RarestPieceSelectorTest.cc
  8062. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8063. Don't pool connection if HTTP proxy is enabled.
  8064. * src/FtpFinishDownloadCommand.cc
  8065. * src/FtpNegotiationCommand.cc
  8066. * src/HttpSkipResponseCommand.cc
  8067. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8068. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8069. * src/AbstractCommand.cc
  8070. * src/AbstractCommand.h
  8071. * src/ActivePeerConnectionCommand.cc
  8072. * src/FtpInitiateConnectionCommand.cc
  8073. * src/HttpInitiateConnectionCommand.cc
  8074. * src/InitiateConnectionCommandFactory.cc
  8075. * src/PeerAbstractCommand.cc
  8076. * src/PeerAbstractCommand.h
  8077. * src/PeerInitiateConnectionCommand.cc
  8078. * src/TrackerWatcherCommand.cc
  8079. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Sort RequestSlot in ascending order and manipulate them using
  8081. lower_bound.
  8082. * src/DefaultBtMessageDispatcher.cc
  8083. * src/DefaultBtMessageDispatcher.h
  8084. (getMessageQueue): Added const qualifier.
  8085. (getRequestSlots): Added const qualifier.
  8086. (sendMessages): Use empty() instead of size().
  8087. (doCancelSendingPieceAction): Use HandleEvent object.
  8088. (doAbortOutstandingRequestAction): Rewritten.
  8089. (doChokedAction): Rewritten.
  8090. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8091. (isOutstandingRequest): Rewritten.
  8092. (getOutstandingRequest): Rewritten.
  8093. (removeOutstandingRequest): Rewritten.
  8094. (addOutstandingRequest): Rewritten.
  8095. * src/RequestSlot.cc
  8096. * src/RequestSlot.h
  8097. (operator=): Rewritten.
  8098. (operator!=): New function.
  8099. (operator<): New function.
  8100. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. * src/DefaultBtRequestFactory.cc
  8102. (doChokedAction): Rewritten.
  8103. (removeCompletedPiece): Rewritten.
  8104. (removeTargetPiece): Rewritten.
  8105. (createRequestMessages): Added the debug log.
  8106. (createRequestMessagesOnEndGame: Added the debug log.
  8107. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Added the debug log message.
  8109. * src/BtPieceMessage.cc (doReceivedAction)
  8110. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8112. used lower_bound to process them rather than linear search.
  8113. * src/DHTPeerAnnounceStorage.cc
  8114. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8116. peer has at least one completed piece.
  8117. * src/Peer.cc
  8118. * src/Peer.h
  8119. * src/PeerInteractionCommand.cc
  8120. * src/PeerSessionResource.cc
  8121. * src/PeerSessionResource.h
  8122. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Removed unnecessary sorting
  8124. * src/DefaultPieceStorage (DefaultPieceStorage)
  8125. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Rewritten the portion of the code that mangaes allowed fast indexes.
  8127. * src/PeerSessionResource.cc
  8128. * src/PeerSessionResource.h
  8129. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Removed the invalid string including '\r' from ru.po and
  8131. did make update-po.
  8132. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Added --log-level and --summary-interval to man page.
  8134. * doc/aria2c.1.txt
  8135. * doc/aria2c.1.html
  8136. * doc/aria2c.1
  8137. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Added --log-level option to specify log level. Log messages under
  8139. the specified level are not output. Default value is `debug'.
  8140. * src/HelpItemFactory.cc
  8141. * src/LogFactory.cc
  8142. * src/LogFactory.h
  8143. * src/Logger.h
  8144. * src/OptionHandlerFactory.cc
  8145. * src/SimpleLogger.cc
  8146. * src/SimpleLogger.h
  8147. * src/main.cc
  8148. * src/option_processing.cc
  8149. * src/prefs.h
  8150. * src/usage_text.h
  8151. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8152. Print download progress summary of all parallel downloads in specified
  8153. interval, default 60 secs. While aria2 could download several files
  8154. in parallel (see -j option), it displayed just first download progress,
  8155. and the other downloads are hidden from the users. This new feature
  8156. prints all downloads currently in-progress to the console so that you
  8157. can check the status of all downloads. The interval can be adjusted
  8158. by --summary-interval option.
  8159. The progress readout is now cut so that all fits in the one line of
  8160. console.
  8161. * src/ConsoleStatCalc.cc
  8162. * src/ConsoleStatCalc.h
  8163. * src/HelpItemFactory.cc
  8164. * src/OptionHandlerFactory.cc
  8165. * src/RequestGroupMan.cc
  8166. * src/RequestGroupMan.h
  8167. * src/main.cc
  8168. * src/option_processing.cc
  8169. * src/prefs.h
  8170. * src/usage_text.h
  8171. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8173. * src/DownloadEngine.cc (DownloadEngine)
  8174. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8176. defined.
  8177. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8178. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Use erase+lower_bound+insert instead of sort.
  8180. * src/DefaultPieceStorage.cc (addPieceStats)
  8181. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8183. * src/A2STR.cc
  8184. * src/A2STR.h
  8185. * src/OptionParser.cc (parse)
  8186. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Defined fake filename `[tracker.announce]' as static const std::string.
  8188. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8189. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Defined default filename `index.html' as static const std::string
  8191. * src/SingleFileDownloadContext.cc
  8192. * src/SingleFileDownloadContext.h
  8193. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Defined "[MEMORY]" as static const std::string.
  8195. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8196. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. Defined control file's version number as static const std::string.
  8198. * src/DefaultBtProgressInfoFile.cc
  8199. * src/DefaultBtProgressInfoFile.h
  8200. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Use Request::METHOD_GET
  8202. * src/RequestGroup.cc (createNextCommandWithAdj)
  8203. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Defined "OK", "ERR", "INPR" as static const std::string
  8205. * src/RequestGroupMan.cc (showDownloadResults)
  8206. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Defined default client used in extended handshake as static const
  8208. std::string
  8209. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8210. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8212. * src/HttpConnection.cc (eraseConfidentialInfo)
  8213. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Defined default ftp user and password as static const std::string
  8215. * src/AuthConfigFactory.cc
  8216. * src/AuthConfigFactory.h
  8217. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Defined strings used in netrc as static const std::string
  8219. * src/Netrc.cc
  8220. * src/Netrc.h
  8221. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Defined HTTP status as static const std::string
  8223. * src/AbstractProxyResponseCommand.cc
  8224. * src/HttpHeader.cc
  8225. * src/HttpHeader.h
  8226. * src/HttpResponse.cc
  8227. * src/HttpResponseCommand.cc
  8228. * src/HttpSkipResponseCommand.cc
  8229. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Defined "\r\n", "A", "I" as static const std::string
  8231. * src/A2STR.cc
  8232. * src/A2STR.h
  8233. * src/FtpConnection.cc
  8234. * src/FtpConnection.h
  8235. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Added COLON_C(".") and used it in Request::parseUrl()
  8237. * src/A2STR.cc
  8238. * src/A2STR.h
  8239. * src/Request.cc (parseUrl)
  8240. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Changed the type of padName from `const std::string&' to `const char*'.
  8242. * src/MSEHandshake.cc (verifyPadLength)
  8243. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Defined "sha1" as static const std::string.
  8245. * src/MetalinkParserController.cc
  8246. * src/MetalinkParserController.h
  8247. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Defined message digest algorithm name as static const std::string
  8249. * src/DHTTokenTracker.cc
  8250. * src/DHTUtil.cc
  8251. * src/DefaultBtContext.cc
  8252. * src/MSEHandshake.cc
  8253. * src/MessageDigestHelper.cc
  8254. * src/Peer.cc
  8255. * src/messageDigest.cc
  8256. * src/messageDigest.h
  8257. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. Made string literals used in SAX parser static const std::string.
  8259. * src/FileMetalinkParserState.cc
  8260. * src/FileMetalinkParserState.h
  8261. * src/FilesMetalinkParserState.cc
  8262. * src/FilesMetalinkParserState.h
  8263. * src/InitialMetalinkParserState.cc
  8264. * src/InitialMetalinkParserState.h
  8265. * src/MetalinkMetalinkParserState.cc
  8266. * src/MetalinkMetalinkParserState.h
  8267. * src/PiecesMetalinkParserState.cc
  8268. * src/PiecesMetalinkParserState.h
  8269. * src/ResourcesMetalinkParserState.cc
  8270. * src/ResourcesMetalinkParserState.h
  8271. * src/VerificationMetalinkParserState.cc
  8272. * src/VerificationMetalinkParserState.h
  8273. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8275. * src/A2STR.cc
  8276. * src/A2STR.h
  8277. * src/File.cc
  8278. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Defined static const std::string IP("ip"), PORT("port") and use them
  8280. instead of string literals.
  8281. * src/DefaultPeerListProcessor.cc
  8282. * src/DefaultPeerListProcessor.h
  8283. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Made string literals for torrent file processing static const
  8285. std::string.
  8286. * src/BtContext.cc
  8287. * src/BtContext.h
  8288. * src/DefaultBtContext.cc
  8289. * src/DefaultBtContext.h
  8290. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Made string literal for tracker response static const std::string
  8292. * src/BtAnnounce.cc
  8293. * src/BtAnnounce.h
  8294. * src/DefaultBtAnnounce.cc
  8295. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. Use DHTMessage::T instead of "t".
  8297. * src/DHTMessageTracker.cc (messageArrived)
  8298. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Made keyName static const. Made trimmed charset static const
  8300. std::string.
  8301. * src/Util.cc (getContentDispositionFilename)
  8302. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Made USER_AGENT const. Made "/" static const std::string.
  8304. * src/A2STR.cc
  8305. * src/A2STR.h
  8306. * src/HttpRequest.cc
  8307. * src/HttpRequest.h
  8308. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Made string listeral to static const std::string:
  8310. "Content-Range", "Content-Length"
  8311. * src/HttpHeader.cc
  8312. * src/HttpHeader.h
  8313. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8314. Made string listeral to static const std::string.
  8315. * src/HttpConnection.cc
  8316. * src/HttpHeader.cc
  8317. * src/HttpHeader.h
  8318. * src/HttpResponse.cc
  8319. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Made string listeral to static const std::string.
  8321. * src/A2STR.cc
  8322. * src/A2STR.h
  8323. * src/SimpleLogger.cc
  8324. * src/SimpleLogger.h
  8325. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Made string literal to static const std::string.
  8327. Rewritten CookieParser::setField.
  8328. * src/A2STR.cc
  8329. * src/A2STR.h
  8330. * src/CookieBoxFactory.cc
  8331. * src/CookieBoxFactory.h
  8332. * src/CookieParser.cc
  8333. * src/CookieParser.h
  8334. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. Made string literal to static const std::string
  8336. * src/DHTAbstractMessage.cc
  8337. * src/DHTAnnouncePeerMessage.cc
  8338. * src/DHTAnnouncePeerMessage.h
  8339. * src/DHTAnnouncePeerReplyMessage.cc
  8340. * src/DHTAnnouncePeerReplyMessage.h
  8341. * src/DHTFindNodeMessage.cc
  8342. * src/DHTFindNodeMessage.h
  8343. * src/DHTFindNodeReplyMessage.cc
  8344. * src/DHTFindNodeReplyMessage.h
  8345. * src/DHTGetPeersMessage.cc
  8346. * src/DHTGetPeersMessage.h
  8347. * src/DHTGetPeersReplyMessage.cc
  8348. * src/DHTGetPeersReplyMessage.h
  8349. * src/DHTMessage.cc
  8350. * src/DHTMessage.h
  8351. * src/DHTMessageFactoryImpl.cc
  8352. * src/DHTMessageReceiver.cc
  8353. * src/DHTPingMessage.cc
  8354. * src/DHTPingMessage.h
  8355. * src/DHTPingReplyMessage.cc
  8356. * src/DHTPingReplyMessage.h
  8357. * src/DHTQueryMessage.cc
  8358. * src/DHTQueryMessage.h
  8359. * src/DHTResponseMessage.cc
  8360. * src/DHTResponseMessage.h
  8361. * src/DHTUnknownMessage.cc
  8362. * src/DHTUnknownMessage.h
  8363. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Made string literal to static const std::string
  8365. * src/BtChokeMessage.cc (toString)
  8366. * src/BtHaveAllMessage.cc (toString)
  8367. * src/BtHaveNoneMessage.cc (toString)
  8368. * src/BtInterestedMessage.cc (toString)
  8369. * src/BtNotInterestedMessage.cc (toString)
  8370. * src/BtUnchokeMessage.cc (toString)
  8371. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. Replaced "" with static const variable A2STR::NIL.
  8373. Replaced string comparison against "" with std::string::empty().
  8374. Added PROTO_* to Request class and use them as a protocol string
  8375. constant.
  8376. Made "started", "stopped", "completed" static const variable in
  8377. AnnounceList class.
  8378. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Updated translations. Great thanks to translators.
  8380. * po/ca.po
  8381. * po/de.po
  8382. * po/fr.po
  8383. * po/it.po
  8384. * po/ja.po
  8385. * po/ru.po
  8386. * po/zh_CN.po
  8387. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Updated man page; categorized options and fixed typo.
  8389. * doc/aria2c.1.txt
  8390. * doc/aria2c.1.html
  8391. * doc/aria2c.1
  8392. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Removed const ref
  8394. * src/MetalinkEntry.cc (AddProtocolPreference)
  8395. * src/RequestGroup.cc (FindServerHostByHostname)
  8396. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Rewritten Accept-Features handling.
  8398. * src/HttpRequestCommand.cc (createHttpRequest)
  8399. * src/a2functional.h
  8400. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Changed method signature:
  8402. DHTAbstractNodeLookupTask::toEntries
  8403. * src/DHTAbstractNodeLookupTask.cc
  8404. * src/DHTAbstractNodeLookupTask.h
  8405. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Changed method signature:
  8407. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8408. * src/BtContext.h
  8409. * src/DefaultBtContext.cc
  8410. * src/DefaultBtContext.h
  8411. * src/DefaultBtInteractive.cc
  8412. * test/DefaultBtContextTest.cc
  8413. * test/MockBtContext.h
  8414. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Changed method signature:
  8416. MultiFileAllocationIterator::makeDiskWriterEntries
  8417. * src/MultiFileAllocationIterator.cc
  8418. * src/MultiFileAllocationIterator.h
  8419. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Changed method sinature:
  8421. MetalinkEntry::toFileEntry,
  8422. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8423. Metalinker::queryEntry
  8424. * src/Metalink2RequestGroup.cc
  8425. * src/MetalinkEntry.cc
  8426. * src/MetalinkEntry.h
  8427. * src/MetalinkHelper.cc
  8428. * src/MetalinkHelper.h
  8429. * src/Metalinker.cc
  8430. * src/Metalinker.h
  8431. * src/main.cc
  8432. * test/MetalinkHelperTest.cc
  8433. * test/MetalinkerTest.cc
  8434. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Changed method sinature:
  8436. RequestGroup::getURIs
  8437. * src/RequestGroup.cc
  8438. * src/RequestGroup.h
  8439. * test/Metalink2RequestGroupTest.cc
  8440. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Changed method signature:
  8442. PeerListProcessor::extractPeer
  8443. * src/CompactPeerListProcessor.cc
  8444. * src/CompactPeerListProcessor.h
  8445. * src/DefaultBtAnnounce.cc
  8446. * src/DefaultPeerListProcessor.cc
  8447. * src/DefaultPeerListProcessor.h
  8448. * src/DelegatingPeerListProcessor.cc
  8449. * src/DelegatingPeerListProcessor.h
  8450. * src/PeerListProcessor.h
  8451. * src/UTPexExtensionMessage.cc
  8452. * test/DefaultPeerListProcessorTest.cc
  8453. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Changed method signature:
  8455. BtRequestFactory::createRequestMessages,
  8456. BtRequestFactory::createRequestMessagesOnEndGame
  8457. * src/BtRequestFactory.h
  8458. * src/DefaultBtInteractive.cc
  8459. * src/DefaultBtRequestFactory.cc
  8460. * src/DefaultBtRequestFactory.h
  8461. * test/DefaultBtRequestFactoryTest.cc
  8462. * test/MockBtRequestFactory.h
  8463. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Changed method signature:
  8465. PieceStorage::getInFlightPieces
  8466. * src/DefaultBtProgressInfoFile.cc
  8467. * src/DefaultPieceStorage.cc
  8468. * src/DefaultPieceStorage.h
  8469. * src/PieceStorage.h
  8470. * src/UnknownLengthPieceStorage.cc
  8471. * src/UnknownLengthPieceStorage.h
  8472. * test/DefaultBtProgressInfoFileTest.cc
  8473. * test/MockPieceStorage.h
  8474. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Changed method signature:
  8476. PostDownloadHandler::getNextRequestGroups
  8477. Metalink2RequestGroup::generate
  8478. RequestGroup::postDownloadProcessing
  8479. * src/BtPostDownloadHandler.cc
  8480. * src/BtPostDownloadHandler.h
  8481. * src/Metalink2RequestGroup.cc
  8482. * src/Metalink2RequestGroup.h
  8483. * src/MetalinkPostDownloadHandler.cc
  8484. * src/MetalinkPostDownloadHandler.h
  8485. * src/PostDownloadHandler.h
  8486. * src/RequestGroup.cc
  8487. * src/RequestGroup.h
  8488. * src/RequestGroupMan.cc
  8489. * src/main.cc
  8490. * test/BtPostDownloadHandlerTest.cc
  8491. * test/Metalink2RequestGroupTest.cc
  8492. * test/MetalinkPostDownloadHandlerTest.cc
  8493. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Rewritten AccRequestGroup
  8495. * src/main.cc
  8496. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Rewritten.
  8498. * src/TaggedItem.cc (toTagString)
  8499. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Rewritten Accept-Features handling.
  8501. * src/HttpRequestCommand.cc (createHttpRequest)
  8502. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Rewritten accept types handling.
  8504. * HttpRequest.cc (createRequest)
  8505. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Rewritten
  8507. * src/FeatureConfig.cc (featureSummary)
  8508. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Changed method signature:
  8510. PeerStorage::getActivePeers
  8511. * src/DHTPeerAnnounceEntry.cc
  8512. * src/DefaultPeerStorage.cc
  8513. * src/DefaultPeerStorage.h
  8514. * src/PeerStorage.h
  8515. * test/DefaultPeerStorageTest.cc
  8516. * test/MockPeerStorage.h
  8517. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. Changed method signature:
  8519. DHTPeerAnnounceStorage::getPeers,
  8520. DHTPeerAnnounceEntry::getPeers
  8521. * src/DHTGetPeersMessage.cc
  8522. * src/DHTPeerAnnounceEntry.cc
  8523. * src/DHTPeerAnnounceEntry.h
  8524. * src/DHTPeerAnnounceStorage.cc
  8525. * src/DHTPeerAnnounceStorage.h
  8526. * test/DHTAnnouncePeerMessageTest.cc
  8527. * test/DHTPeerAnnounceEntryTest.cc
  8528. * test/DHTPeerAnnounceStorageTest.cc
  8529. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Changed method signature:
  8531. NameResolver::resolve
  8532. * src/DHTEntryPointNameResolveCommand.cc
  8533. * src/InitiateConnectionCommand.cc
  8534. * src/NameResolver.cc
  8535. * src/NameResolver.h
  8536. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Changed method signature:
  8538. PieceStorage::getAdvertisedPieceIndexes
  8539. * src/DefaultBtInteractive.cc
  8540. * src/DefaultPieceStorage.cc
  8541. * src/DefaultPieceStorage.h
  8542. * src/PieceStorage.h
  8543. * src/UnknownLengthPieceStorage.h
  8544. * test/MockPieceStorage.h
  8545. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Changed method signature:
  8547. SegmentMan::getInFlightSegment
  8548. * src/AbstractCommand.cc
  8549. * src/SegmentMan.cc
  8550. * src/SegmentMan.h
  8551. * test/SegmentManTest.cc
  8552. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Changed method signature:
  8554. DHTAbstractNodeLookupTask::getNodesFromMessage
  8555. * src/DHTAbstractNodeLookupTask.cc
  8556. * src/DHTAbstractNodeLookupTask.h
  8557. * src/DHTNodeLookupTask.cc
  8558. * src/DHTNodeLookupTask.h
  8559. * src/DHTPeerLookupTask.cc
  8560. * src/DHTPeerLookupTask.h
  8561. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8563. * src/AbstractCommand.cc
  8564. * src/BtCheckIntegrityEntry.cc
  8565. * src/BtCheckIntegrityEntry.h
  8566. * src/BtFileAllocationEntry.cc
  8567. * src/BtFileAllocationEntry.h
  8568. * src/BtSetup.cc
  8569. * src/BtSetup.h
  8570. * src/CheckIntegrityCommand.cc
  8571. * src/CheckIntegrityEntry.h
  8572. * src/ChecksumCheckIntegrityEntry.cc
  8573. * src/ChecksumCheckIntegrityEntry.h
  8574. * src/DHTSetup.cc
  8575. * src/DHTSetup.h
  8576. * src/DownloadEngine.cc
  8577. * src/FileAllocationCommand.cc
  8578. * src/FileAllocationEntry.h
  8579. * src/RequestGroup.cc
  8580. * src/RequestGroup.h
  8581. * src/RequestGroupMan.cc
  8582. * src/RequestGroupMan.h
  8583. * src/StreamCheckIntegrityEntry.cc
  8584. * src/StreamCheckIntegrityEntry.h
  8585. * src/StreamFileAllocationEntry.cc
  8586. * src/StreamFileAllocationEntry.h
  8587. * src/TrackerWatcherCommand.cc
  8588. * src/a2functional.h
  8589. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Changed method signature:
  8591. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8592. DHTBucket::getGoodNodes,
  8593. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8594. * src/BNode.cc
  8595. * src/BNode.h
  8596. * src/DHTAbstractNodeLookupTask.cc
  8597. * src/DHTAutoSaveCommand.cc
  8598. * src/DHTBucket.cc
  8599. * src/DHTBucket.h
  8600. * src/DHTBucketRefreshTask.cc
  8601. * src/DHTFindNodeMessage.cc
  8602. * src/DHTGetPeersMessage.cc
  8603. * src/DHTRoutingTable.cc
  8604. * src/DHTRoutingTable.h
  8605. * test/BNodeTest.cc
  8606. * test/DHTBucketTest.cc
  8607. * test/DHTRoutingTableTest.cc
  8608. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. In piece selection functions, Pass std::deque<...> by reference rather
  8610. than returning it.
  8611. * src/BitfieldMan.cc
  8612. * src/BitfieldMan.h
  8613. * src/DefaultBtRequestFactory.cc
  8614. * src/DefaultPieceStorage.cc
  8615. * src/Piece.cc
  8616. * src/Piece.h
  8617. * test/BitfieldManTest.cc
  8618. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Implemented rarest piece first piece selection strategy.
  8620. * src/AbstractBtMessage.cc
  8621. * src/AbstractBtMessage.h
  8622. * src/BitfieldMan.cc
  8623. * src/BitfieldMan.h
  8624. * src/BtBitfieldMessage.cc
  8625. * src/BtHaveAllMessage.cc
  8626. * src/BtHaveMessage.cc
  8627. * src/DefaultPieceStorage.cc
  8628. * src/DefaultPieceStorage.h
  8629. * src/PeerInteractionCommand.cc
  8630. * src/PieceStorage.h
  8631. * src/UnknownLengthPieceStorage.h
  8632. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Rewritten readData and writeData.
  8634. * src/MultiDiskAdaptor.cc
  8635. * src/MultiDiskAdaptor.h
  8636. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Move \n out of the message "Usage: ...".
  8638. * src/version_usage.cc
  8639. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Bump up version number to 0.13.2b.
  8641. * configure.ac
  8642. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Added const qualifier to argument Exception& e.
  8644. * src/Logger.h
  8645. * src/SimpleLogger.cc
  8646. * src/SimpleLogger.h
  8647. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Pool connection when CWD, SIZE command fails.
  8649. * src/FtpNegotiationCommand.cc
  8650. * src/FtpNegotiationCommand.h
  8651. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8653. * src/HttpResponseCommand.cc
  8654. * src/HttpSkipResponseCommand.cc
  8655. * src/HttpSkipResponseCommand.h
  8656. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Pool connection when a server returns 4xx, 5xx responses.
  8658. * src/HttpNullDownloadCommand.cc
  8659. * src/HttpNullDownloadCommand.h
  8660. * src/HttpResponse.cc
  8661. * src/HttpResponse.h
  8662. * src/HttpResponseCommand.cc
  8663. * src/HttpResponseCommand.h
  8664. * test/HttpResponseTest.cc
  8665. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Print usage when no URL is specifed or bad command-line option is
  8667. specified.
  8668. * src/HelpItemFactory.cc
  8669. * src/help_tags.h
  8670. * src/option_processing.cc
  8671. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8672. Removed duplicate log message.
  8673. * src/AbstractCommand.cc (asyncResolveHostname)
  8674. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8676. Changed -j option's default value from 5 to 1.
  8677. Added new examples using protocol auto detection feature.
  8678. Removed -T, -M usage where it can be omitted.
  8679. * doc/aria2c.1.txt
  8680. * doc/aria2c.1.html
  8681. * doc/aria2c.1.txt
  8682. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Updated command-line usage text, so that it tells users that they
  8684. can specify any number of torrent files and metalink files in
  8685. command-line.
  8686. * src/version_usage.cc
  8687. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Changed the default value of -j option to 1.
  8689. * src/HelpItemFactory.cc
  8690. * src/option_processing.cc
  8691. * src/usage_text.h
  8692. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Added the ability to reuse connection in FTP and it is enabled by
  8694. default. It can be disabled by --ftp-reuse-connection=false option.
  8695. * src/Command.cc
  8696. * src/DownloadCommand.cc
  8697. * src/FtpDownloadCommand.cc
  8698. * src/FtpDownloadCommand.h
  8699. * src/FtpFinishDownloadCommand.cc
  8700. * src/FtpFinishDownloadCommand.h
  8701. * src/FtpInitiateConnectionCommand.cc
  8702. * src/FtpNegotiationCommand.cc
  8703. * src/FtpNegotiationCommand.h
  8704. * src/HelpItemFactory.cc
  8705. * src/Makefile.am
  8706. * src/Makefile.in
  8707. * src/OptionHandlerFactory.cc
  8708. * src/option_processing.cc
  8709. * src/prefs.h
  8710. * src/usage_text.h
  8711. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Call Command::transitStatus() before calling Command::execute(),
  8713. so that the status change made in execute() is not cleared.
  8714. * src/DownloadEngine.cc
  8715. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Removed forward declaration of SocketCore class.
  8717. * src/HttpDownloadCommand.h
  8718. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8720. in InitiateConnectionCommandFactory. They should be set only when
  8721. the protocol is HTTP or HTTPS.
  8722. * src/InitiateConnectionCommandFactory.cc
  8723. * src/RequestGroup.cc
  8724. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8725. Fixed infinite loop in checksum checking.
  8726. * src/IteratableChecksumValidator.cc
  8727. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Set _supportsPersistentConnection to true by default.
  8729. * src/Request.cc
  8730. * src/RequestGroup.cc
  8731. * test/HttpRequestTest.cc
  8732. * test/RequestTest.cc
  8733. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Added timeout to socket pool. The default timeout is 15 seconds,
  8735. which is the same value Apache uses.
  8736. * src/DownloadEngine.cc
  8737. * src/DownloadEngine.h
  8738. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Fixed misuse of multimap::find()
  8740. * src/HttpHeader.cc
  8741. * test/HttpHeaderTest.cc
  8742. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8744. option.
  8745. The asynchronous DNS is not capable of IPv6 yet.
  8746. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8747. least for HTTP download.
  8748. * src/AbstractCommand.cc
  8749. * src/AbstractCommand.h
  8750. * src/AsyncNameResolver.cc
  8751. * src/AsyncNameResolver.h
  8752. * src/DHTEntryPointNameResolveCommand.cc
  8753. * src/DHTEntryPointNameResolveCommand.h
  8754. * src/DownloadEngine.cc
  8755. * src/DownloadEngine.h
  8756. * src/FtpInitiateConnectionCommand.cc
  8757. * src/FtpInitiateConnectionCommand.h
  8758. * src/HelpItemFactory.cc
  8759. * src/HttpInitiateConnectionCommand.cc
  8760. * src/HttpInitiateConnectionCommand.h
  8761. * src/InitiateConnectionCommand.cc
  8762. * src/InitiateConnectionCommand.h
  8763. * src/Makefile.am
  8764. * src/Makefile.in
  8765. * src/NameResolver.cc
  8766. * src/NameResolver.h
  8767. * src/OptionHandlerFactory.cc
  8768. * src/SocketCore.cc
  8769. * src/SocketCore.h
  8770. * src/Util.cc
  8771. * src/Util.h
  8772. * src/option_processing.cc
  8773. * src/prefs.h
  8774. * src/usage_text.h
  8775. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Updated man page: --quiet, --header were added.
  8777. --metalink-servers and --enable-http-keep-alive option were updated.
  8778. * doc/aria2c.1
  8779. * doc/aria2c.1.html
  8780. * doc/aria2c.1.txt
  8781. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Enable HTTP keep-alive by default.
  8783. * src/HelpItemFactory.cc
  8784. * src/option_processing.cc
  8785. * src/usage_text.h
  8786. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Disable http keep-alive if the remote server is not HTTP/1.1.
  8788. * src/HttpConnection.cc
  8789. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Receive content body of 302 response so that the connection can be
  8791. reused later when http keep-alive is enabled.
  8792. * src/HttpNullDownloadCommand.cc
  8793. * src/HttpNullDownloadCommand.h
  8794. * src/HttpResponseCommand.cc
  8795. * src/HttpResponseCommand.h
  8796. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. const SharedHandle<Request> -> const SharedHandle<Request>&
  8798. * src/FtpDowndloadCommand.cc
  8799. * src/FtpDowndloadCommand.h
  8800. * src/HttpDownloadCommand.cc
  8801. * src/HttpDownloadCommand.h
  8802. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Fixed the bug that the control file(.aria2 file) is not renamed
  8804. according to tryAutoFileRenaming().
  8805. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8806. its control file exist, use them and continue download.
  8807. The old implementation didn't take into account of control file's
  8808. existence, so basically you couldn't continue download of renamed file.
  8809. * src/BtProgressInfoFile.h
  8810. * src/DefaultBtProgressInfoFile.cc
  8811. * src/DefaultBtProgressInfoFile.h
  8812. * src/NullProgressInfoFile.h
  8813. * src/RequestGroup.cc
  8814. * test/DefaultBtProgressInfoFileTest.cc
  8815. * test/MockBtProgressInfoFile.h
  8816. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Change the default value of --metalink-servers option from `5' to `1'.
  8818. * src/HelpItemFactory.cc
  8819. * src/option_processing.cc
  8820. * src/usage_text.h
  8821. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Reimplemented transparent metalink using Accept request header.
  8823. * src/HttpRequest.cc
  8824. * src/HttpRequest.h
  8825. * src/HttpRequestCommand.cc
  8826. * src/Metalink2RequestGroup.cc
  8827. * src/RequestGroup.cc
  8828. * src/RequestGroup.h
  8829. * test/HttpRequestTest.cc
  8830. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Bump up version number to 0.13.2a
  8832. * configure.ac
  8833. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Updated configure.ac using the result of autoscan.
  8835. * configure.ac
  8836. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. Fixed compilation error without gcrypt/openssl.
  8838. * src/DownloadCommand.cc
  8839. * src/DownloadCommand.h
  8840. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Reorganized version information so that it can be displayed in a
  8842. standard terminal screen without scrolling.
  8843. Removed http, ftp from Configuration section, because they are always
  8844. enabled.
  8845. * src/FeatureConfig.cc
  8846. * src/FeatureConfig.h
  8847. * src/main.cc
  8848. * src/messageDigest.cc
  8849. * src/messageDigest.h
  8850. * src/version_usage.cc
  8851. * test/FeatureConfigTest.cc
  8852. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Masked user ID in log.
  8854. * src/FtpConnection.cc (sendUser)
  8855. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Removed query part from filename in HTTP download. The query part means
  8857. the substring after "?" in URL. Firefox seems do the same thing.
  8858. A query part is sometimes very long and not suitable to filename,
  8859. so I think it is better to remove it from filename.
  8860. * src/HttpRequest.cc
  8861. * src/HttpRequest.h
  8862. * src/Request.cc
  8863. * src/Request.h
  8864. * test/HttpRequestTest.cc
  8865. * test/RequestTest.cc
  8866. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Rewritten Exception class. Throw exception object, not its pointer and
  8868. catch by reference, so that remove problematic delete operator for
  8869. catched exception.
  8870. * src/Exception.cc
  8871. * src/Exception.h
  8872. * test/ExceptionTest.cc
  8873. * src/*: All files throwing/catching exception.
  8874. * test/*: All files throwing/catching exception.
  8875. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Now auto protocol detection is enabled without -Z option.
  8877. But there is a important difference between with/without -Z optoin.
  8878. For example, if you type:
  8879. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8880. then, aria2 interprets there are 3 request groups:
  8881. (1) http://host/file, http://mirror/file <-- multi-source download
  8882. (2) file1.torrent
  8883. (3) file2.metalink
  8884. On the other hand, if you invoke above command with -Z option, it is
  8885. interpreted as 4 request groups:
  8886. (1) http://host/file
  8887. (2) file1.torrent
  8888. (3) file2.metalink
  8889. (4) http://mirror/file
  8890. I think usually user don't mix multi-source URLs and torrent files, so
  8891. there is no big problem here.
  8892. * src/main.cc
  8893. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Fixed the bug that causes segmentaion fault when reading XML containing
  8895. unescapsed character like '&'.
  8896. Also a modification was made which avoids adding unnecessary
  8897. characters stack and appending unused string.
  8898. * src/ExpatMetalinkProcessor.cc
  8899. * src/FileMetalinkParserState.h
  8900. * src/FilesMetalinkParserState.h
  8901. * src/FinMetalinkParserState.h
  8902. * src/HashMetalinkParserState.h
  8903. * src/InitialMetalinkParserState.h
  8904. * src/LanguageMetalinkParserState.h
  8905. * src/MetalinkMetalinkParserState.h
  8906. * src/MetalinkParserState.h
  8907. * src/MetalinkParserStateMachine.cc
  8908. * src/MetalinkParserStateMachine.h
  8909. * src/OSMetalinkParserState.h
  8910. * src/PieceHashMetalinkParserState.h
  8911. * src/PiecesMetalinkParserState.h
  8912. * src/ResourcesMetalinkParserState.h
  8913. * src/SizeMetalinkParserState.h
  8914. * src/SkipTagMetalinkParserState.h
  8915. * src/URLMetalinkParserState.h
  8916. * src/VerificationMetalinkParserState.h
  8917. * src/VersionMetalinkParserState.h
  8918. * src/XML2SAXMetalinkProcessor.cc
  8919. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Added StringFormat class, which internally calls vasprintf.
  8921. operator<< is defined for this class, so it can be used with iostream
  8922. classes nicely. SimpleLogger and following functions are rewritten
  8923. using StringFormat class.
  8924. Besides, now Logger class's methods are non-const, many classes
  8925. that has a const Logger* as a member variable are modified to remove
  8926. const qualifier from the variable declaration.
  8927. * src/HelpItemFactory.cc
  8928. * src/Request.cc
  8929. * src/SimpleLogger.cc
  8930. * src/StringFormat.cc
  8931. * src/StringFormat.h
  8932. * src/Util.cc
  8933. * src/option_processing.cc
  8934. * src/version_usage.cc
  8935. * test/StringFormatTest.cc
  8936. * src/*.h: The classes that has const Logger* as a member variable.
  8937. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8939. failed. Also fixed memory link when exception is thrown there.
  8940. * src/main.cc (AccRequestGroup)
  8941. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Added build-in "Accept-Features" support. For now only "metalink" is
  8943. used in this header field.
  8944. This "metalink" value is removed from the list when connecting URLs
  8945. fed by metalink file to avoid loop in "transparent" metlaink.
  8946. * src/HttpRequest.cc
  8947. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8948. header is also held in this variable. Also renamed setUserHeaders as
  8949. addHeader and it was rewritten to add header not just to clear the old
  8950. value.
  8951. * src/HttpRequestCommand.cc
  8952. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8953. from "Accept-Features" list.
  8954. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8955. default.
  8956. * src/RequestGroup.h
  8957. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8958. * src/a2functional.h: Included <string> because Concat class depends on
  8959. it.
  8960. * test/HttpRequestTest.cc
  8961. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Added comment
  8963. * src/RequestGroup.cc (createNextCommand)
  8964. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Capitalized METHOD_GET and METHOD_HEAD
  8966. * src/Request.cc
  8967. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Added getDownloadResults() method
  8969. * src/RequestGroupMan.cc
  8970. * src/RequestGroupMan.h
  8971. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8972. Fixed the bug that aria2 exits when commands is empty() but
  8973. _routineCommands are not.
  8974. * src/DownloadEngine.cc
  8975. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Use the default value pulled from Option object in HelpItemFactory.
  8977. except options whose defualt value is embedded in a usage text.
  8978. * src/HelpItemFactory.cc
  8979. * src/HelpItemFactory.h
  8980. * src/option_processing.cc
  8981. * src/version_usage.cc
  8982. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Added --quiet option to make aria2 quiet (no console output).
  8984. --quiet option is tagged with ADVANCED.
  8985. * src/HelpItemFactory.cc
  8986. * src/LogFactory.cc
  8987. * src/LogFactory.h
  8988. * src/MultiUrlRequestInfo.cc
  8989. * src/MultiUrlRequestInfo.h
  8990. * src/NullStatCalc.h: New class. This class prints nothing.
  8991. * src/OptionHandlerFactory.cc
  8992. * src/main.cc
  8993. * src/option_processing.cc
  8994. * src/prefs.h
  8995. * src/usage_text.h
  8996. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8998. * src/HelpItemFactory.cc (createHelpItems):
  8999. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Fixed compilation error in ExpatMetalinkProcessor.cc
  9001. * src/ExpatMetalinkProcessor.cc
  9002. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Reuse socket if the origin server supports HTTP keep-alive and
  9004. --enable-http-keep-alive or --enable-http-pipelining is given.
  9005. The current implementation doesn't reuse the connections established
  9006. against proxy server.
  9007. * src/AbstractCommand.cc
  9008. * src/DownloadEngine.cc
  9009. * src/DownloadEngine.h
  9010. * src/HttpDownloadCommand.cc
  9011. * src/HttpInitiateConnectionCommand.cc
  9012. * src/HttpResponseCommand.cc
  9013. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Rewritten HTTP keep-alive and pipelining routine.
  9015. * src/AbstractCommand.cc
  9016. * src/HttpConnection.cc
  9017. * src/HttpDownloadCommand.cc
  9018. * src/HttpRequest.cc
  9019. * src/HttpRequestCommand.cc
  9020. * src/HttpResponseCommand.cc
  9021. * src/Request.cc
  9022. * src/Request.h
  9023. * src/RequestGroup.cc
  9024. * test/HttpRequestTest.cc
  9025. * test/HttpResponseTest.cc
  9026. * test/RequestTest.cc
  9027. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Added missing setUserHeaders call
  9029. * src/HttpRequestCommand.cc
  9030. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9032. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9033. waste of time because it is more likey false.
  9034. * src/FileAllocationDispatcherCommand.cc (execute)
  9035. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. Now HTTP status and version are a member variable of HttpHeader.
  9037. HTTP status is processed as a string, not integer.
  9038. * src/AbstractProxyResponseCommand.cc
  9039. * src/HttpConnection.cc
  9040. * src/HttpHeader.cc
  9041. * src/HttpHeader.h
  9042. * src/HttpHeaderProcessor.cc
  9043. * src/HttpHeaderProcessor.h
  9044. * src/HttpResponse.cc
  9045. * src/HttpResponse.h
  9046. * test/HttpHeaderProcessorTest.cc
  9047. * test/HttpResponseTest.cc
  9048. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9049. Added --header option. You can specify any number of additional HTTP headers
  9050. like:
  9051. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9052. Unlike other commad-line option, you can use --header option multiple times.
  9053. * src/HelpItemFactory.cc
  9054. * src/HttpRequest.{cc, h}
  9055. * src/HttpRequestCommand.cc
  9056. * src/OptionHandlerFactory.cc
  9057. * src/OptionHandlerImpl.h
  9058. * src/option_processing.cc
  9059. * src/prefs.h
  9060. * src/usage_text.h
  9061. * test/HttpRequestTest.cc (testUserHeaders)
  9062. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Eliminates the time lag between sequential downloads and commands in
  9064. the same RequestGroup.
  9065. In old implementation, aria2 occasionally waits 1 seconds before
  9066. executing next command or RequestGroup.
  9067. This is really a waste of time, and new implementation eliminates
  9068. this unnecessary time lag.
  9069. * src/AbstractCommand.cc
  9070. * src/AutoSaveCommand.cc
  9071. * src/CheckIntegrityCommand.cc
  9072. * src/Command.{cc, h}
  9073. * src/DownloadEngine.{cc, h}
  9074. * src/DownloadEngineFactory.cc
  9075. * src/FileAllocationCommand.cc
  9076. * src/FileAllocationDispatcherCommand.cc
  9077. * src/FillRequestGroupCommand.cc
  9078. * src/FtpInitiateConnectionCommand.cc
  9079. * src/HaveEraseCommand.cc
  9080. * src/HttpInitiateConnectionCommand.cc
  9081. * src/HttpResponseCommand.cc
  9082. * src/RealtimeCommand.cc
  9083. * src/RequestGroup.cc
  9084. * src/RequestGroupMan.cc
  9085. * src/StreamFileAllocationEntry.cc
  9086. * src/TimeBasedCommand.{cc, h}
  9087. * src/TimedHaltCommand.cc
  9088. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9090. keyword explicit and SharedHandle's default constructor initializes
  9091. its internal obj to null, old implementation initializes it using
  9092. obj's default constructor.
  9093. To assign null, write SharedHandle<T> x(...); x.reset();
  9094. TODO: test/SharedHandleTest.cc needs more tests.
  9095. * src/SharedHandle.h
  9096. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Fixed type in man page.
  9098. * doc/aria2c.1.txt
  9099. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9101. * src/SimpleLogger.{cc, h}
  9102. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Implemented auto protocol detection.
  9104. Now you can do:
  9105. aria2c -Z http://host/file file1.torrent file2.metalink
  9106. (Note: -Z option is required for auto protcol detection.)
  9107. Then aria2c downloads 3 files simultaneously:
  9108. 1. http://host/file
  9109. 2. file1.torrent <-- read local torrent file
  9110. 3. file2.metalink <-- read local Metalink file.
  9111. Same thing goes with -i option. Assume your uris.txt contans:
  9112. http://host/file
  9113. file1.torrent
  9114. file2.metalink
  9115. Then you can do: aria2c -i uris.txt
  9116. (Note: -Z option is not needed if -i option is given.)
  9117. * src/main.cc
  9118. * src/ProtocolDetector.{cc, h}
  9119. * test/ProtocolDetectorTest.cc
  9120. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9122. installed
  9123. * src/ARC4Encryptor.h
  9124. * src/ARC4Decryptor.h
  9125. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Renamed argument from 'errno' to 'err', since errno is confused with
  9127. errno defined in errno.h.
  9128. * src/LibgcryptARC4Decryptor.h
  9129. * src/LibgcryptARC4Context.h
  9130. * src/LibgcryptDHKeyExchange.h
  9131. * src/LibgcryptARC4Encryptor.h
  9132. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Rewritten choking algorithm.
  9134. * src/PeerChokeCommand.{cc, h}
  9135. * src/BtInterestedMessage.cc
  9136. * src/PeerSessionResource.{cc, h}
  9137. * src/DefaultPeerStorage.{cc, h}
  9138. * src/BtNotInterestedMessage.cc
  9139. * src/DefaultBtMessageDispatcher.{cc, h}
  9140. * src/BtMessageDispatcher.h
  9141. * src/Peer.{cc, h}
  9142. * src/BtLeecherStateChoke.{cc, h}
  9143. * src/BtSetup.cc
  9144. * src/BtSeederStateChoke.{cc, h}
  9145. * src/PeerStorage.h
  9146. * test/MockPeerStorage.h
  9147. * test/MockBtMessageDispatcher.h
  9148. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Fixed compilation error on x84-64 platform.
  9150. * src/AuthConfig.cc: Included ostream.
  9151. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Rewritten getBasename() and getDirname(), without standard library
  9153. basename(), dirname().
  9154. * src/File.cc
  9155. * test/FileTest.cc
  9156. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Added Simplified Chinese translation. Also updated the following
  9158. translations: Polish, Dutch, German. Great thanks to all translators.
  9159. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Suppress content-range error when 'Content-Range' response header
  9161. doesn't contains bytes-unit specifier 'bytes'
  9162. * src/HttpHeader.cc (getRange)
  9163. * test/HttpHeaderTest.cc
  9164. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Fixed compilation error with g++-4.3
  9166. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Added missing include files for MinGW
  9168. * test/HttpHeaderProcessorTest.cc
  9169. * test/DHTRoutingTableSerializerTest.cc
  9170. * test/DHTRoutingTableDeserializerTest.cc
  9171. * test/UriListParserTest.cc
  9172. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9173. Now download line is printed nicely with no garbage at the end of
  9174. line. I use ioctl to get the columns of terminal.
  9175. If stdout is redirected to another device, instead of carriage return,
  9176. end of line '\n' character is used. This is feature request#1909659
  9177. * src/ConsoleStatCalc.cc (calculateStat)
  9178. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Included a2time.h
  9180. * src/DHTMessageDispatcher.h
  9181. * src/DHTMessageEntry.h
  9182. * src/DHTReplaceNodeTask.h
  9183. * src/DHTMessageTracker.h
  9184. * src/Util.h
  9185. * src/CookieBox.h
  9186. * src/SocketCore.h
  9187. * src/DefaultBtMessageDispatcher.h
  9188. * src/SocketCore.cc
  9189. * src/Util.cc
  9190. * src/DHTPingTask.h
  9191. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Fixed high memory footprint when DHT is enabled.
  9193. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9194. queued than it is processed and the queue is getting longer. As a
  9195. consequence, momory usage is increased.
  9196. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9197. replacement cache in DHTBucket which is described in Kademlia paper.
  9198. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9199. DHTReplaceNodeTask.
  9200. * src/DHTBucket.{h, cc}
  9201. (cacheNode): New function.
  9202. (getCachedNodes): New function.
  9203. (dropNode): Push back cached node to _nodes.
  9204. * test/DHTBucketTest.cc
  9205. (testCacheNode): New test
  9206. (testDropNode): New test
  9207. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9209. the unused 4KB memory when ssl is not used.
  9210. * src/SocketCore.cc
  9211. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Added summary log for peer announce storage.
  9213. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9214. Removed cast
  9215. * src/DefaultPeerStorage.cc (addPeer)
  9216. Log exception message
  9217. * src/DHTMessageTracker.cc (handleTimeout)
  9218. Fixed casting
  9219. * test/HttpRequestTest.cc
  9220. * test/MetalinkProcessorTest.cc
  9221. * test/PieceTest.cc
  9222. * test/MetalinkEntryTest.cc
  9223. * test/SequenceTest.cc
  9224. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. * src/ParameterizedStringParser.cc (createLoop):
  9226. Removed unused variable sstep.
  9227. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9228. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9229. * src/Util.{h, cc}
  9230. (parseUInt): New function.
  9231. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9232. The actual range is uint32_t.
  9233. * test/UtilTest.cc
  9234. * src/ParameterizedStringParser.cc:
  9235. Use Util::parseUInt() for loop variables.
  9236. * test/ParameterizedStringParserTest.cc
  9237. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9238. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. Rewritten the functions for binding port.
  9240. * src/DHTConnectionImpl.{h, cc}
  9241. * src/PeerListenCommand.{h, cc}
  9242. * src/DHTSetup.cc
  9243. * src/BtSetup.cc
  9244. * test/DHTConnectionImplTest.cc
  9245. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. type cleanup for allmost all remaining files.
  9247. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Type clarification
  9249. * src/PeerSessionResource.{h, cc}
  9250. * src/DefaultPieceStorage.{h, cc}
  9251. * src/Peer.{h, cc}
  9252. * test/PeerSessionResourceTest.cc
  9253. Use div function
  9254. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9255. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Type clarification
  9257. * src/DefaultPeerStorage.{h, cc}
  9258. * test/DefaultPeerStorageTest.cc
  9259. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Type clarification: size_t for length or size, uint64_t for file
  9261. length, off_t for file offset.
  9262. * src/DefaultBtProgressInfoFile.cc
  9263. * src/DefaultBtContext.{h, cc}
  9264. * src/DefaultBtInteractive.cc
  9265. * src/DownloadCommand.{h, cc}
  9266. * src/IteratableChunkChecksumValidator.{h, cc}
  9267. * src/SegmentMan.{h, cc}
  9268. * src/SingleFileDownloadContext.{h, cc}
  9269. * src/IteratableChecksumValidator.{h, cc}
  9270. * src/BtContext.h
  9271. * src/IteratableValidator.h
  9272. * src/DownloadContext.h
  9273. * test/SingleFileDownloadContextTest.cc
  9274. * test/DefaultBtContextTest.cc
  9275. * test/MockBtContext.h
  9276. * test/Metalink2RequestGroupTest.cc
  9277. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Type clarification: size_t for length or size, uint64_t for file
  9279. length, off_t for file offset.
  9280. * src/PiecedSegment.cc
  9281. * src/GrowSegment.h
  9282. * src/DefaultBtRequestFactory.h
  9283. * src/DefaultBtProgressInfoFile.cc
  9284. * src/UnknownLengthPieceStorage.h
  9285. * src/DefaultPieceStorage.cc
  9286. * src/UnknownLengthPieceStorage.cc
  9287. * src/DefaultBtInteractive.cc
  9288. * src/GrowSegment.cc
  9289. * src/BitfieldMan.h
  9290. * src/DownloadCommand.cc
  9291. * src/BtRequestFactory.h
  9292. * src/PiecedSegment.h
  9293. * src/DefaultPieceStorage.h
  9294. * src/Piece.cc
  9295. * src/DefaultBtRequestFactory.cc
  9296. * src/PieceStorage.h
  9297. * src/Segment.h
  9298. * src/Piece.h
  9299. * src/BitfieldMan.cc
  9300. * src/Util.cc
  9301. * test/DefaultBtProgressInfoFileTest.cc
  9302. * test/DefaultPieceStorageTest.cc
  9303. * test/MockPieceStorage.h
  9304. * test/BtRequestMessageTest.cc
  9305. * test/DefaultBtMessageDispatcherTest.cc
  9306. * test/BitfieldManTest.cc
  9307. * test/GrowSegmentTest.cc
  9308. * test/PieceTest.cc
  9309. * test/SegmentTest.cc
  9310. * test/SegmentManTest.cc
  9311. * test/DefaultBtRequestFactoryTest.cc
  9312. * test/MockBtRequestFactory.h
  9313. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Fixed compilation error with --disable-nls
  9315. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9316. in gettext.h causes the problem.
  9317. * src/common.h
  9318. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Removed subPiece related functions.
  9320. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9321. * src/DefaultPieceStorage.{h, cc}
  9322. * test/PieceTest.cc
  9323. * test/DefaultPieceStorageTest.cc
  9324. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Use unsigned char for data store.
  9326. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Bump up version number to 0.13.0+1
  9328. * configure.ac
  9329. * Release 0.13.0+1
  9330. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Changed inactive connection timeout to 120.
  9332. To accept more mulually interested peers, disconnect peer when there
  9333. is no interest between us after certain time passed.
  9334. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9335. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9337. when compiled with async DNS support.
  9338. * src/DownloadEngine.cc
  9339. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9340. value '10' will be a little bit short when some DNS servers are
  9341. offline and several DNS servers are tried. It should be configured
  9342. by command-line option.
  9343. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Merged Ross's mingw patch.
  9345. * src/DHTRoutingTableDeserializer.cc
  9346. * src/DHTRoutingTableSerializer.cc
  9347. * src/Platform.{h, cc}
  9348. * src/timegm.h
  9349. * src/gettimeofday.h
  9350. * src/getaddrinfo.h
  9351. * src/SocketCore.h
  9352. * src/common.h
  9353. * src/inet_aton.h
  9354. * src/DownloadEngine.h
  9355. * src/gai_strerror.h
  9356. * src/a2netcompat.h
  9357. * configure.ac
  9358. * configure
  9359. * aclocal.m4
  9360. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Included missing iostream.
  9362. * test/AllTest.cc
  9363. * test/BtDependencyTest.cc
  9364. * test/BtExtendedMessageTest.cc
  9365. * test/DHTConnectionImplTest.cc
  9366. * test/DHTMessageFactoryImplTest.cc
  9367. * test/DHTMessageTrackerEntryTest.cc
  9368. * test/DHTNodeTest.cc
  9369. * test/DHTRoutingTableSerializerTest.cc
  9370. * test/DefaultBtAnnounceTest.cc
  9371. * test/DefaultBtContextTest.cc
  9372. * test/DefaultBtMessageFactoryTest.cc
  9373. * test/DefaultExtensionMessageFactoryTest.cc
  9374. * test/HandshakeExtensionMessageTest.cc
  9375. * test/HttpResponseTest.cc
  9376. * test/MetalinkProcessorTest.cc
  9377. * test/MultiFileAllocationIteratorTest.cc
  9378. * test/SocketCoreTest.cc
  9379. * test/UTPexExtensionMessageTest.cc
  9380. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Reorganized includes.
  9382. * src/NameResolver.cc
  9383. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Fixed compilation error without ares/c-ares
  9385. * src/NameResolver.h:
  9386. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Added a test for large file.
  9388. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9389. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Fixed the bug that file size is ignored if size > INT32_MAX
  9391. * src/SizeMetalinkParserState.cc (endElement):
  9392. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Bump up version number to 0.13.0
  9394. * configure.ac
  9395. * Release 0.13.0
  9396. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. Updated Makfefile.am to make 'make dist' work.
  9398. Now packaged filename is aria2c-VERSION.tar.bz2.
  9399. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9400. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9401. Large file support is now configured by configure script.
  9402. * configure.ac
  9403. Removed unsused source files
  9404. * src/
  9405. * test/
  9406. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9407. Peer.h and BtContext.h respectively.
  9408. * src/Peer.h
  9409. * src/BtContext.h
  9410. Updated translations.
  9411. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9412. translations. Great thanks to all translators!;)
  9413. * po/*.{po, gmo}
  9414. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9416. statically declared sha1 MessageDigestContext.
  9417. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9418. initialization of short-lived MessageDigestContext.
  9419. * src/MessageDigestHelper.{h, cc}
  9420. * src/main.cc
  9421. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9422. the initialization of MessageDigestContext every time in validating
  9423. chunk checksum.
  9424. * src/DownloadCommand.{h, cc}
  9425. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Add a file descriptor which connected to fast peer(latency<1500) to
  9427. select(). This change reduced CPU load.
  9428. * src/PeerInteractionCommand.cc
  9429. * src/DefaultBtInteractive.{h, cc}
  9430. * src/BtInteractive.h
  9431. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. Fixed the previous insufficient fix for possible busy loop.
  9433. * src/MSEHandshake.cc (identifyHandshakeType)
  9434. Removed unused functions.
  9435. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9436. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Fixed possible busy loop if first 20 bytes are not received for a few
  9438. minutes.
  9439. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9440. * src/ReceiverMSEHandshakeCommand.cc
  9441. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Fixed compilation error
  9443. * src/ExpatMetalinkProcessor.cc
  9444. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9446. * src/DHTBucket.cc
  9447. Removed unnecessary cast.
  9448. * src/HandshakeExtensionMessage.cc
  9449. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9451. is missing.
  9452. * src/OptionHandlerFactory.cc
  9453. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Fixed the bug that HAVE message is not sent for a piece they are
  9455. downloaded fom http/ftp server before any BitTorrent handshake is done
  9456. with peers.
  9457. * src/DefaultBtInteractive.cc
  9458. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9460. * src/Makefile.am
  9461. * src/Makefile.in
  9462. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Updated README. Added html version of README and man page.
  9464. * README
  9465. * README.html
  9466. * readme2html: Shell script to generate README.html from README using
  9467. asciidoc.
  9468. * doc/aria2c.1.html
  9469. * doc/makeman: Added the line to generate aria2c.1.html
  9470. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Fixed offset calculation.
  9472. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9473. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Rewritten itos and uitos using template. llitos and ullitos are
  9475. replaced with itos and uitos respectively.
  9476. * src/Util.{h, cc}
  9477. * test/UtilTest.cc
  9478. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9480. of the number of bytes required for storing public key and shared
  9481. secret.
  9482. * src/LibgcryptDHKeyExchange.h
  9483. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9484. * src/MSEHandshake.cc
  9485. * test/DHKeyExchangeTest.cc
  9486. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Removed since they are not used.
  9488. * src/Xml2MetalinkProcessor.{h, cc}
  9489. * src/Socket.cc
  9490. * src/SegmentSplitter.{h, cc}
  9491. * test/Xml2MetalinkProcessorTest.cc
  9492. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Fixed the bug that prevents aria2 from stopping other than by pressing
  9494. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9495. option. aria2 doesn't stop even after --seed-time is satisfied and
  9496. continues to output blank lines in the console.
  9497. * src/ReceiverMSEHandshakeCommand.cc
  9498. * src/PeerReceiveHandshakeCommand.cc
  9499. * src/PeerListenCommand.cc
  9500. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Bump up version number to 0.13.0rc
  9502. * configure.ac
  9503. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Updated man page and some usage text.
  9505. * doc/aria2c.1.txt
  9506. * src/usage_text.h
  9507. * po/*.{po, gmo}
  9508. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Updated translations. Added Finnish and Hebrew translations.
  9510. Great thanks to all translators!
  9511. * po/*.{po, gmo}
  9512. * po/LINGUAS
  9513. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Log more detailed information about each message.
  9515. * src/DHTQueryMessage.{h, cc}
  9516. * src/DHTGetPeersMessage.{h, cc}
  9517. * src/DHTFindNodeReplyMessage.{h, cc}
  9518. * src/DHTGetPeersReplyMessage.{h, cc}
  9519. * src/DHTAnnouncePeerMessage.{h, cc}
  9520. * src/DHTResponseMessage.{h, cc}
  9521. * src/DHTFindNodeMessage.{h, cc}
  9522. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Use constants defined in prefs.h
  9524. * src/option_processing.cc
  9525. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9527. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Make room for future enchancements for IPv6 addresses.
  9529. Bump up version number of dht.dat file format to 2.
  9530. Not compatible with previous version.
  9531. * src/DHTRoutingTableSerializer.cc
  9532. * src/DHTRoutingTableDeserializer.cc
  9533. * test/DHTRoutingTableSerializerTest.cc
  9534. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Added handling for the return values from
  9536. PeerMessageUtil::createcompact().
  9537. * src/DefaultBtContext.cc (computeFastSet):
  9538. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Fixed abort when peer's ip address is IPv4-mapped address.
  9540. * src/DefaultBtContext.cc (computeFastSet)
  9541. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9542. cannot handle IPv4-mapped addresses.
  9543. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9544. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Proper return value handling for OpenSSL functions.
  9546. * src/LibsslDHKeyExchange.h
  9547. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Random bytes generation using libgcrypt and OpenSSL.
  9549. * src/DHTUtil.{h, cc}
  9550. * test/DHTUtilTest.cc
  9551. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9553. received.
  9554. * src/DHTMessageReceiver.cc (receiveMessage)
  9555. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9556. Fixed the bug that a return code is always 0. BUG#1897704
  9557. If error occurred during the download or there exist unfinished
  9558. downloads, aria2 returns with code 1.
  9559. * src/RequestGroupMan.{h, cc}
  9560. * src/MultiUrlRequestInfo.{h, cc}
  9561. * src/main.cc
  9562. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. IPv6 support for SocketCore class.
  9564. TODO: In SocketCore::establishConnection(), this is insufficient to
  9565. determin the failure of connect() here because the socket is
  9566. non-blocking state. The next addresses should be tried after select().
  9567. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9568. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9569. instead which address family independent.
  9570. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9571. information in a compact peer format which is for IPv4 only.
  9572. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9573. this is a spec of BitTorrent protocol.
  9574. * src/SocketCore.{h, cc}
  9575. * src/PeerMessageUtil.cc
  9576. * test/SocketCoreTest.cc
  9577. * test/PeerMessageUtilTest.cc
  9578. * test/DHTConnectionImplTest.cc
  9579. Handle IPv4-mapped addresses.
  9580. * src/DHTNode.cc: Now identity is determined by node id.
  9581. * src/DHTMessageTrackerEntry.cc
  9582. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9583. should handle it.
  9584. * src/DHTRoutingTableDeserializer.cc
  9585. * src/DHTMessageFactoryImpl.cc
  9586. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9587. Change the unit of --stop option from a minute to a second.
  9588. * src/usage_text.h
  9589. * src/DownloadEngineFactory.cc
  9590. * src/OptionHandlerFactory.cc
  9591. * src/message.h
  9592. * src/TimedHaltCommand.cc
  9593. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Make listening socket non-block mode.
  9595. * src/FtpConnection.cc
  9596. * src/FtpNegotiationCommand.{h, cc}
  9597. * src/PeerListenCommand.cc
  9598. Fixed the bug that cause slow ftp negotiation.
  9599. * src/FtpNegotiationCommand.{h, cc}
  9600. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9601. Added basic tag to --enable-dht, --dht-listen-port option.
  9602. * src/HelpItemFactory.cc (createHelpItems)
  9603. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. Updated text.
  9605. * src/usage_text.h
  9606. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9608. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Determin _threadtholdSpeed in each constructor for
  9610. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9611. * src/ActivePeerConnectionCommand.{h, cc}
  9612. * src/PeerReceiveHandshakeCommand.{h, cc}
  9613. * src/BtSetup.cc
  9614. * src/BtConstants.h
  9615. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Added --bt-min-crypto-level and --bt-require-crypto options.
  9617. * src/OptionHandlerFactory.cc
  9618. * src/MSEHandshake.cc
  9619. * src/HelpItemFactory.cc
  9620. * src/option_processing.cc
  9621. * src/ReceiverMSEHandshakeCommand.cc
  9622. * src/prefs.h
  9623. * src/DefaultBtAnnounce.cc
  9624. * src/InitiatorMSEHandshakeCommand.cc
  9625. * src/usage_text.h
  9626. * test/MSEHandshakeTest.cc
  9627. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9628. Bump version number to 0.13.0b
  9629. * configure.ac
  9630. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. Updated doc.
  9632. * src/MessageDigestHelper.h:
  9633. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Use raw message digest as a token instead of its hexadecimal
  9635. representation.
  9636. * src/DHTTokenTracker.cc (generateToken)
  9637. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Added Message Stream Encryption(MSE) support.
  9639. Currently, aria2 accepts incoming connections with Obfuscation Header
  9640. and legacy BitTorrent Header and establishes connections with
  9641. Obfuscation Header first and if failed then retry with legacy
  9642. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9643. choose ARC4. The new option to change the default behavior is planned.
  9644. For tracker extension, "supportcrypto=1" is added statically.
  9645. * src/PeerInitiateConnectionCommand.{h, cc}
  9646. * src/PeerConnection.{h, cc}
  9647. * src/HandleRegistry.h
  9648. * src/SocketCore.h
  9649. * src/PeerReceiveHandshakeCommand.{h, cc}
  9650. * src/BtRegistry.{h, cc}
  9651. * src/PeerListenCommand.cc
  9652. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9653. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9654. * src/MSEHandshake.{h, cc}
  9655. * src/ARC4Encryptor.h
  9656. * src/ARC4Decryptor.h
  9657. * src/LibgcryptARC4Encryptor.h
  9658. * src/LibgcryptARC4Decryptor.h
  9659. * src/LibgcryptARC4Context.h
  9660. * src/LibsslARC4Encryptor.h
  9661. * src/LibsslARC4Decryptor.h
  9662. * src/LibsslARC4Context.h
  9663. * src/DHKeyExchange.h
  9664. * src/LibgcryptDHKeyExchange.h
  9665. * src/LibsslDHKeyExchange.h
  9666. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9667. * test/DefaultBtAnnounceTest.cc
  9668. * test/ARC4Test.cc
  9669. * test/DHKeyExchangeTest.cc
  9670. Removed prepareForRetry() because it is not used.
  9671. * src/PeerAbstractCommand.{h, cc}
  9672. * src/PeerInteractionCommand.{h, cc}
  9673. * src/PeerInitiateConnectionCommand.{h, cc}
  9674. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. Added the ability to load nodes from torrent file. These nodes are
  9676. added to the routing table when downloading that torrent.
  9677. * src/BtContext.h
  9678. * src/DefaultBtContext.{h, cc}
  9679. * src/DHTSetup.cc
  9680. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9681. hostname and port pair, and resolves all of them.
  9682. * src/NameResolver.{h, cc}: Added reset().
  9683. * src/RequestGroup.cc
  9684. * test/DefaultBtContextTest.cc
  9685. * test/MockBtContext.h
  9686. Removed assert() from DefaultBtContext and throw exception instead.
  9687. * src/DefaultBtContext.cc
  9688. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Fixed segmentation fault bug when exiting if dht is disabled.
  9690. * src/RequestGroup.cc
  9691. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Fixed typo in log message and define the message in message.h
  9693. * src/TimedHaltCommand.cc
  9694. * src/message.h
  9695. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Included RecoverableException.h to fix compilation error.
  9697. * test/DHTMessageFactoryImplTest.cc
  9698. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9700. * test/DHTPingMessageTest.cc
  9701. * test/DHTGetPeersMessageTest.cc
  9702. * test/DHTFindNodeMessageTest.cc
  9703. * test/DHTAnnouncePeerMessageTest.cc
  9704. * test/MockDHTMessage.h
  9705. * test/MockDHTMessageFactory.h
  9706. * test/MockDHTMessageDispatcher.h: New class.
  9707. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9709. virtual.
  9710. * src/DHTMessageDispatcher.h
  9711. * src/DHTMessageDispatcherImpl.{h, cc}
  9712. * src/DHTSetup.cc
  9713. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9714. Adding handling of DHT error message. Just log error message and
  9715. throw exception.
  9716. * src/DHTMessageFactoryImpl.cc
  9717. * test/DHTMessageFactoryImplTest.cc
  9718. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9719. Added handling of dynamic cast failure.
  9720. * src/DHTNodeLookupTask.cc
  9721. * src/DHTPeerLookupTask.cc
  9722. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9723. Added the ability to stop aria2 itself when given time has passed
  9724. from start. Use --stop option to specify time in minutes.
  9725. When 0 is given, this feature is disabled.
  9726. * src/OptionHandlerFactory.cc
  9727. * src/TimeBasedCommand.h: Make _interval protected scope.
  9728. * src/HelpItemFactory.cc
  9729. * src/option_processing.cc
  9730. * src/prefs.h
  9731. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9732. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9733. Without this modification, the result list shows "ERR" when aria2 is
  9734. stopped by --stop option. It should be "INPR".
  9735. * src/DownloadEngine.{h, cc}
  9736. * src/DownloadEngineFactory.cc
  9737. * src/usage_text.h
  9738. * src/TimedHaltCommand.{h, cc}: New class.
  9739. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Bootstrap through node added by port message.
  9741. Currently bootstrap is executed if the number of buckets in routing
  9742. table is 1.
  9743. * src/BtPortMessage.{h, cc}
  9744. * src/DefaultBtMessageFactory.{h, cc}
  9745. * src/PeerInteractionCommand.cc
  9746. * test/BtPortMessageTest.cc
  9747. * test/MockDHTTask.h
  9748. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Extract the Peer class's member variables, which are only needed after
  9750. PeerInteractionCommand, into PeerSessionResource class.
  9751. This class is instantiated in PeerInteractionCommand class's ctor and
  9752. released in its dtor.
  9753. This will make Peer class lightweight and uses less memory for peers
  9754. which are not connected and wait in the queue.
  9755. * src/PeerChokeCommand.cc
  9756. * src/PeerSessionResource.{h, cc}
  9757. * src/PeerInteractionCommand.cc
  9758. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9759. * src/DefaultBtInteractive.cc
  9760. * src/BtPieceMessage.cc
  9761. * src/BtInterestedMessage.cc
  9762. * src/BtUnchokeMessage.cc
  9763. * src/DefaultPeerStorage.{h, cc}
  9764. * src/PeerInitiateConnectionCommand.cc
  9765. * src/ActivePeerConnectionCommand.cc
  9766. * src/BtNotInterestedMessage.cc
  9767. * src/DefaultBtMessageDispatcher.cc
  9768. * src/BtChokeMessage.cc
  9769. * src/BtRequestMessage.cc
  9770. * src/Peer.{h, cc}
  9771. * src/BtRegistry.h
  9772. * src/TrackerWatcherCommand.cc
  9773. * src/PeerReceiveHandshakeCommand.cc
  9774. * test/BtExtendedMessageTest.cc
  9775. * test/BtAllowedFastMessageTest.cc
  9776. * test/BtCancelMessageTest.cc
  9777. * test/DefaultPieceStorageTest.cc
  9778. * test/BtBitfieldMessageTest.cc
  9779. * test/BtHaveMessageTest.cc
  9780. * test/BtNotInterestedMessageTest.cc
  9781. * test/BtRequestMessageTest.cc
  9782. * test/PeerSessionResourceTest.cc
  9783. * test/DefaultBtMessageDispatcherTest.cc
  9784. * test/PeerTest.cc
  9785. * test/BtInterestedMessageTest.cc
  9786. * test/BtRejectMessageTest.cc
  9787. * test/BtChokeMessageTest.cc
  9788. * test/DefaultPeerStorageTest.cc
  9789. * test/BtHaveNoneMessageTest.cc
  9790. * test/BtHaveAllMessageTest.cc
  9791. * test/DefaultExtensionMessageFactoryTest.cc
  9792. * test/BtUnchokeMessageTest.cc
  9793. * test/DefaultBtMessageFactoryTest.cc
  9794. * test/HandshakeExtensionMessageTest.cc
  9795. * test/UTPexExtensionMessageTest.cc
  9796. * test/DefaultBtRequestFactoryTest.cc
  9797. * test/BtPieceMessageTest.cc
  9798. Removed typedef PeerStats.
  9799. * src/PeerStat.h
  9800. * src/SegmentMan.cc
  9801. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Added std namespace to copy, remove_copy, back_inserter,
  9803. front_inserter.
  9804. * src/RequestGroupMan.cc
  9805. * src/DefaultPieceStorage.cc
  9806. * src/StreamFileAllocationEntry.cc
  9807. * src/BtFileAllocationEntry.cc
  9808. * src/RequestGroup.cc
  9809. * src/MetalinkEntry.cc
  9810. * src/DelegatingPeerListProcessor.cc
  9811. * src/DefaultBtRequestFactory.cc
  9812. * src/DefaultBtMessageDispatcher.cc
  9813. * src/version_usage.cc: Included <algorithm>
  9814. * src/main.cc
  9815. * src/MetalinkParserController.cc
  9816. * src/DefaultBtContext.cc
  9817. * src/DownloadEngineFactory.cc
  9818. * src/a2algo.h
  9819. Removed.
  9820. * test/StreamUriListParserTest.cc
  9821. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9822. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9823. ActivePeerConnectionCommand when it is given and
  9824. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9825. * src/ActivePeerConnectionCommand.{h, cc}
  9826. * src/BtSetup.cc
  9827. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9828. Only add socket to DownloadEngine's select routine when peer or
  9829. localhost is unchoked and interested. This lowers CPU usage a
  9830. little bit.
  9831. * src/PeerInteractionCommand.cc
  9832. * src/PeerAbstractCommand.{h, cc}
  9833. * src/BtInteractive.h
  9834. * src/DefaultBtInteractive.{h, cc}
  9835. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. Revert previous change because get_peers message is needed for
  9837. announce_peer anyway.
  9838. * src/DHTGetPeersCommand.cc
  9839. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9840. Request peers thought DHT only when download hasn't finished.
  9841. * src/DHTGetPeersCommand.cc
  9842. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9844. * src/DHTBucketRefreshTask.{h, cc}
  9845. * src/DHTSetup.cc
  9846. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9848. standard classes.
  9849. Included string.h where mem* function are used.
  9850. Added namespace aria2.
  9851. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9852. Create directory before saving DHT routing table.
  9853. Now ios::failure is now handled properly.
  9854. * src/DHTAutoSaveCommand.cc
  9855. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Removed unnecessary cerr.
  9857. * src/DownloadEngine.cc
  9858. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Catch exception inside DHTMessageReceiver::receiveMessage().
  9860. Log unknown message.
  9861. * src/DHTMessageReceiver.{h, cc}
  9862. * src/DHTMessageFactory.h
  9863. * src/DHTMessageFactoryImpl.{h, cc}
  9864. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9865. * src/DHTInteractionCommand.cc
  9866. * src/DHTUnknownMessage.{h, cc}
  9867. * test/DHTUnknownMessageTest.cc
  9868. * test/MockDHTMessageFactory.h
  9869. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Commented out ip address comparison because a host can have multiple
  9871. ip addresses and it is hard to predict the hostname is resolved into
  9872. which one.
  9873. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9874. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. * po/Makefile.in: Removed since this is generated by configure.
  9876. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Fixed compiler warning about redefinition of SIZE_MAX.
  9878. Use common.h instead of config.h directly here.
  9879. * src/Platform.{h, cc}
  9880. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9881. here.
  9882. * common.h
  9883. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9884. Updated gettext related files.
  9885. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9886. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9887. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. Added DHT functionality, compatible with mainline.
  9889. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9890. You may need to specify entry point to DHT network using
  9891. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9892. Use --dht-listen-port to specify port number. Make sure that your
  9893. firewall configuration can pass through UDP traffic to the port.
  9894. The routing table is saved in $HOME/.aria2/dht.dat.
  9895. * src/DHT*
  9896. * src/BNode.{h, cc}
  9897. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9898. particular torrent.
  9899. * src/Data.cc: Rewritten ctor.
  9900. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9901. --dht-entry-point.
  9902. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9903. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9904. ends, remove BtContext from DHTPeerAnnounceStorage.
  9905. * src/BtPortMessage.{h, cc}: Rewritten.
  9906. * src/message.h
  9907. * src/OptionHandlerImpl.cc
  9908. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9909. --dht-entry-point.
  9910. * src/Dictionary.{h, cc} (remove): New function.
  9911. * src/prefs.h
  9912. * src/DefaultBtMessageFactory.h
  9913. * src/BtHandshakeMessage.cc
  9914. * src/ActivePeerConnectionCommand.cc
  9915. * src/SocketCore.{h, cc}: Added datagram socket support.
  9916. * src/DefaultBtMessageFactory.cc
  9917. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9918. Create DHT commands.
  9919. * src/BtMessageFactory.h
  9920. * src/PeerMessageUtil.{h, cc}
  9921. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9922. Fixed the bug that log file is not written when configuration file doesn't exist.
  9923. This is caused by using Logger class before LogFactory is not configured.
  9924. BUG #1875079
  9925. * src/option_processing.cc
  9926. Warning message "configuration doesn't exist" is only printed when --conf is
  9927. given.
  9928. * src/option_processing.cc
  9929. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9931. ShaVisitor is now deprecated and slated to be removed.
  9932. * src/DefaultBtContext.cc
  9933. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Externalize message to message.h
  9935. * src/Platform.cc
  9936. * src/message.h
  9937. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. Set default domain and default path to cookie.
  9939. * src/HttpResponse.cc
  9940. * src/CookieBox.{h, cc}
  9941. * src/CookieParser.{h, cc}
  9942. * test/CookieParserTest.cc
  9943. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Added --no-conf and --conf-path command-line option.
  9945. --no-conf option disables loading aria2.conf file.
  9946. --conf-path option changes the configuration file path. The default
  9947. file path is $HOME/.aria2/aria2.conf
  9948. Added a warning message when the configuration file is not found.
  9949. * src/HelpItemFactory.cc
  9950. * src/option_processing.cc
  9951. * src/prefs.h
  9952. * src/usage_text.h
  9953. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Added the message to inform users that other help categories are
  9955. available in -h option.
  9956. * src/version_usage.cc
  9957. * src/TagContainer.{h, cc}
  9958. * test/TagContainerTest.cc
  9959. * src/TaggedItem.{h, cc}
  9960. * test/TaggedItemTest.cc
  9961. * src/HelpItem.h
  9962. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9963. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9964. from PiecedSegment's ctor.
  9965. Previously Piece::getAllMissingBlockIndexes() is called from
  9966. PiecedSegment() but it is rather expensive since only first element is
  9967. used.
  9968. * src/PiecedSegment.cc
  9969. * src/Piece.{h, cc}
  9970. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9972. each time these functions are called.
  9973. * src/BitfieldMan.{h, cc}
  9974. * test/BitfieldManTest.cc
  9975. * src/array_fun.h
  9976. * test/array_funTest.cc
  9977. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9978. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9979. filtered. Removed unnecessary cast to int32_t.
  9980. * src/BitfieldMan.{h, cc}
  9981. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9983. payload length(4bytes) are received. This happens because lenbufLength
  9984. is not updated in this particular case and successive call of
  9985. receiveMessage() overwrites payload length with bytes recieved which
  9986. are payload body.
  9987. * src/PeerConnection.{h, cc}
  9988. * src/message.h
  9989. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9991. peer if there are peers that have same ipaddr and port.
  9992. I've experiened segmentation fault and "pure virtual function was
  9993. called" error.
  9994. * src/Peer.h
  9995. * test/PeerTest.cc
  9996. * src/DefaultPeerStorage.cc
  9997. * test/DefaultPeerStorageTest.cc
  9998. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Removed a call to isPowerOf() because it is no longer necessary here
  10000. and a request block is not always power of 2.
  10001. BUG#1866924
  10002. * src/PeerMessageUtil.cc (checkLength)
  10003. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Fixed the bug that always first found Segment is removed from
  10005. usedSegmentEntries. Removed unused functions.
  10006. * src/SegmentMan.{h, cc}
  10007. * test/SegmentManTest.cc
  10008. Fixed the bug that ServerHost is not removed.
  10009. * src/RequestGroup.cc
  10010. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Fixed the bug that SegmentMan::completeSegment() is not called
  10012. even if Segment is complete when --lowest-speed-limit is enabled.
  10013. BUG#1864525
  10014. * src/DownloadCommand.{h, cc}
  10015. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10016. Fixed: hash algorithm 'sha1' is always used.
  10017. * src/DownloadCommand.cc (validatePieceHash)
  10018. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Added --enable-peer-exchange command-line option.
  10020. * src/OptionHandlerFactory.cc
  10021. * src/HelpItemFactory.cc
  10022. * src/option_processing.cc
  10023. * src/usage_text.h
  10024. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10025. Move extension from BtRuntime to ExtensionMessageFactory, because
  10026. extension can be specified per peer, not per torrent.
  10027. * src/DefaultBtInteractive.cc
  10028. * src/BtRuntime.h
  10029. * src/ExtendedMessagingAware.h
  10030. * src/ExtensionMessageFactory.h
  10031. * src/DefaultExtensionMessageFactory.cc
  10032. * test/DefaultExtensionMessageFactoryTest.cc
  10033. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10034. Added categorized option help. Specify category using --help option.
  10035. Also added the ability to search options in forward match.
  10036. * src/HelpItem.{h, cc}
  10037. * test/HelpItemTest.cc
  10038. * src/HelpItemFactory.{h, cc}
  10039. * src/TagContainer.{h, cc}
  10040. * test/TagContainerTest.cc
  10041. * src/option_processing.cc
  10042. * src/prefs.h
  10043. * src/TaggedItem.{h, cc}
  10044. * test/TaggedItemTest.cc
  10045. * src/version_usage.cc
  10046. * src/help_tags.h
  10047. * src/usage_text.h
  10048. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. Fixed segmentation fault when bad torrent metainfo is parsed.
  10050. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10051. and then throw exception or skip it.
  10052. * src/DefaultBtContext.{h, cc}
  10053. * test/DefaultBtContextTest.cc
  10054. * src/AnnounceList.cc
  10055. * src/CompactPeerListProcessor.cc
  10056. * src/message.h
  10057. * src/DefaultBtAnnounce.{h, cc}
  10058. * test/DefaultBtAnnounceTest.cc
  10059. * src/BencodeVisitor.cc
  10060. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Added missing "B"(=Byte). So now the message looks like this:
  10062. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10063. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10064. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10065. Show the seed ratio after torrent downloads.
  10066. For example, after torrent download completed and --seed-time and
  10067. --seed-ratio conditions are fulfilled, following message is printed
  10068. right after "Download complete: .....":
  10069. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10070. * src/RequestGroupMan.cc
  10071. * src/RequestGroup.{h, cc}
  10072. * src/message.h
  10073. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Remove a defunct control file. A defunct control file means that while
  10075. it exists, but the corresponding download file is missing.
  10076. After its removal, a download restarts from the beginning.
  10077. * src/RequestGroup.cc
  10078. * src/message.h
  10079. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10080. Allocate bitfield in Peer when it is really used. More specifically,
  10081. bitfield in Peer is allocated after the connection is established and
  10082. deallocated when the connection is dropped.
  10083. Since 2 parameters(piece length and total length) was removed from the
  10084. constructor of Peer class, many test classes were modified accordingly.
  10085. See svn log for more detailed information.
  10086. * src/PeerInteractionCommand.cc
  10087. * src/CompactPeerListProcessor.cc
  10088. * src/Peer.cc
  10089. * src/DefaultPeerListProcessor.cc
  10090. * src/PeerListenCommand.cc
  10091. * src/PeerReceiveHandshakeCommand.cc
  10092. Fixed memory leak
  10093. * src/Piece.cc
  10094. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10095. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10096. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10097. command-line options.
  10098. * src/option_processing.cc
  10099. * src/ActivePeerConnectionCommand.cc
  10100. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Send have message to peer if it already has the piece.
  10102. * src/BtHaveMessage.{h, cc}
  10103. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10105. port.
  10106. * src/DefaultPeerStorage.{h, cc}
  10107. * test/DefaultPeerStorageTest.cc
  10108. * src/HandshakeExtensionMessage.cc
  10109. * test/HandshakeExtensionMessageTest.cc
  10110. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10111. * src/PeerStorage.h
  10112. * test/MockPeerStorage.h
  10113. * src/PeerListenCommand.cc
  10114. * src/PeerReceiveHandshakeCommand.cc
  10115. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Added --metalink-enable-unique-protocol option.
  10117. * src/Metalink2RequestGroup.cc
  10118. * src/option_processing.cc
  10119. * src/prefs.h
  10120. * src/version_usage.cc
  10121. * doc/aria2c.1.txt
  10122. * doc/aria2c.1
  10123. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. Allow a peer in incomingPeer to be added peers.
  10125. * src/DefaultPeerStorage.cc
  10126. * test/DefaultPeerStorageTest.cc
  10127. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10129. I could reproduce this bug in following procedure:
  10130. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10131. 2. Restart aria2.
  10132. 3. You see the download stopped around 99%.
  10133. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10134. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10135. If timeout is reached, then _nextCommand is unused and it may contains
  10136. segments and they won't be canceled. Actually, timeout is not needed
  10137. here because if the server dropped connection, then retry is made.
  10138. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Added uTorrent compatible Peer Exchange.
  10140. * src/BencodeVisitor.{h, cc}
  10141. * test/BencodeVisitorTest.cc
  10142. * src/BtConstants.h
  10143. * src/BtContext.h: Added 'private' flag.
  10144. * src/BtExtendedMessage.{h, cc}
  10145. * test/BtExtendedMessageTest.cc
  10146. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10147. reserved field.
  10148. * test/BtHandshakeMessageTest.cc
  10149. * src/BtMessageFactory.h
  10150. * src/BtRegistry.h
  10151. * src/BtRuntime.h: This class holds default extension message IDs for
  10152. aria2. By default, aria2 uses ID 8 for ut_pex.
  10153. * src/DefaultBtContext.cc
  10154. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10155. When it is true, aria2 enables ut_pex. This value is set by
  10156. PeerInteractionCommand.
  10157. * src/DefaultBtMessageFactory.{h, cc}
  10158. * test/DefaultBtMessageFactoryTest.cc
  10159. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10160. handling to DefaultBtInteractive class.
  10161. * src/DefaultExtensionMessageFactory.{h, cc}
  10162. * test/DefaultExtensionMessageFactoryTest.cc
  10163. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10164. the container(peers and incomingPeers. The equality is determined by
  10165. Peer::id).
  10166. * test/DefaultPeerStorageTest.cc
  10167. * src/ExtensionMessage.h
  10168. * test/MockExtensionMessage.h
  10169. * src/ExtensionMessageFactory.h
  10170. * test/MockExtensionMessageFactory.h
  10171. * src/HandshakeExtensionMessage.{h, cc}
  10172. * test/HandshakeExtensionMessageTest.cc
  10173. * src/MetaEntry.h
  10174. * src/Peer.{h, cc}
  10175. * src/PeerInteractionCommand.cc
  10176. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10177. addIncomingPeer.
  10178. * src/PeerMessageUtil.{h, cc}
  10179. * src/PeerObject.h
  10180. * src/UTPexExtensionMessage.{h, cc}
  10181. * test/UTPexExtensionMessageTest.cc
  10182. * src/message.h
  10183. * src/prefs.h
  10184. Fixed the bug that returns incomplete data when it contains null
  10185. character. A convenient constructor was also added.
  10186. * src/Data.{h, cc}
  10187. Rewritten.
  10188. * src/CompactPeerListProcessor.cc
  10189. Fixed typos.
  10190. * src/message.h
  10191. * src/MetaFileUtil.cc
  10192. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. Added "Status Legend" label to the explanation text of 'stat' in
  10194. download result and moved it to the last. BUG#1848214
  10195. * src/RequestGroupMan.cc
  10196. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10197. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10198. * src/Makefie.am
  10199. * test/Makefile.am
  10200. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Fixed the bug that prevents aria2 from loading cookie file when expire
  10202. value is greater than 2^31-1. BUG#1851066
  10203. * src/CookieBoxFactory.cc
  10204. * test/CookieBoxFactoryTest.cc
  10205. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Fixed possible memory leak when an exception is thrown.
  10207. * src/XML2SAXMetalinkProcessor.cc
  10208. Added Expat support. If both libxml2 and Expat are installed, then
  10209. libxml2 is used by default.
  10210. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10211. ExpatMetalinkProcessor according to the configuration.
  10212. * src/ExpatMetalinkProcessor.{h, cc}
  10213. * src/main.cc: Removed libxml2 specific header and init/free function.
  10214. * src/MetalinkProcessorFactory.{h, cc}
  10215. * src/MetalinkHelper.cc
  10216. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10217. * src/MetalinkProcessor.h
  10218. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10219. MetalinkProcessorTest is used instead.
  10220. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10221. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10222. MetalinkProcessorFactory::newInstance().
  10223. * m4/libexpat.m4
  10224. * configure.ac: Added configuration options for libexpat.
  10225. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. Disabled -s option in metalink download.
  10227. * src/Metalink2RequestGroup.cc
  10228. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. If several protocols are available for a mirror in metalink file,
  10230. aria2 now use one of them. --metalink-preferred-protocol option was
  10231. added to specify the preference of protocol.
  10232. * src/AbstractCommand.cc
  10233. * src/OptionHandlerFactory.cc
  10234. * src/ServerHost.{h, cc}
  10235. * src/Metalink2RequestGroup.cc
  10236. * src/RequestGroup.{h, cc}
  10237. * test/RequestGroupTest.cc
  10238. * src/option_processing.cc
  10239. * src/prefs.h
  10240. * src/HttpResponseCommand.cc
  10241. * src/MetalinkResource.{h, cc}
  10242. * src/FtpNegotiationCommand.cc
  10243. * src/MetalinkEntry.{h, cc}
  10244. * src/MetalinkEntryTest.cc
  10245. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Code cleanup and added debug log.
  10247. * src/PeerConnection.cc
  10248. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. Compiler error fix: applied the patch by Tiziano Mueller
  10250. * src/RequestGroup.cc
  10251. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10253. in stopped and completed event.
  10254. * src/AnnounceList.{h, cc}
  10255. * test/AnnounceListTest.cc
  10256. * src/DefaultBtAnnounce.cc
  10257. * test/DefaultBtAnnounceTest.cc
  10258. Sorted URLs.
  10259. * test/Metalink2RequestGroupTest.cc
  10260. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10261. Removed unnecessary string copy. Updated doc and corrected indentation.
  10262. * src/Base64.cc
  10263. Fixed compilation warnings
  10264. * test/DataTest.cc
  10265. * test/HttpRequestTest.cc
  10266. * test/MetaFileUtilTest.cc
  10267. * test/RequestTest.cc
  10268. * Release 0.12.0
  10269. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10270. Updated translations
  10271. * po/{de,fr,ja,nl,ru}.po
  10272. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10273. translations. Many thanks to translators.
  10274. * po/{ca,es,it,pt_BR,sv}.po
  10275. * po/LINGUAS
  10276. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Added a notice about URL
  10278. * src/version_usage.cc
  10279. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10280. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10281. aria2 repeatedly sends stopped request when tracker returns error code.
  10282. * src/AnnounceList.cc
  10283. * test/AnnounceListTest.cc
  10284. * src/AnnounceTier.h
  10285. Added a message when ctrl-c is hit.
  10286. Now second ctrl-c is also handled in signal handler.
  10287. * src/RequestGroupMan.{h, cc}
  10288. * src/RequestGroup.{h, cc}
  10289. * src/MultiUrlRequestInfo.cc
  10290. * src/DownloadEngine.cc
  10291. * src/TrackerWatcherCommand.cc
  10292. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10293. Code cleanup
  10294. * src/Base64.cc (encode)
  10295. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10296. Changed Direct/IO enable/disable procesure in file allocation routine.
  10297. * src/SingleFileAllocationIterator.cc
  10298. (SingleFileAllocationIterator):
  10299. Disable directIO if offset is not multiple of 512.
  10300. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10301. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10302. Enable created SingleFileAllocationIterator's directIO.
  10303. * src/FileAllocationEntry.cc
  10304. (FileAllocationEntry): Enable directIO here.
  10305. (~FileAllocationEntry): Disable directIO here.
  10306. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10308. * src/Peer.{h, cc}
  10309. * src/DefaultPieceStorage.cc
  10310. * test/DefaultPieceStorageTest.cc
  10311. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10312. Rewritten direct I/O support routine
  10313. * src/SingleFileAllocationIterator.cc
  10314. * src/MultiDiskAdaptor.{h, cc}
  10315. * src/ByteArrayDiskWriter.h
  10316. * src/AbstractSingleDiskAdaptor.h
  10317. * src/AbstractDiskWriter.cc
  10318. * src/DefaultPieceStorage.cc
  10319. * src/DiskWriter.h
  10320. * src/BinaryStream.h
  10321. * src/IteratableChunkChecksumValidator.cc
  10322. * src/IteratableChecksumValidator.cc
  10323. * src/CheckIntegrityEntry.cc
  10324. * src/FileAllocationEntry.cc
  10325. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Fixed typo
  10327. * src/version_usage.cc
  10328. Updated doc
  10329. * doc/aria2c.1.txt
  10330. * doc/aria2c.1
  10331. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10332. Fixed compile error without message digest support.
  10333. * src/FileMetalinkParserState.cc
  10334. * src/MetalinkParserController.{h, cc}
  10335. * test/XML2SAXMetalinkProcessorTest.cc
  10336. * test/MetalinkParserControllerTest.cc
  10337. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Enable direct I/O support in checksum checking.
  10339. * src/IteratableChunkChecksumValidator.{h, cc}
  10340. * test/IteratableChunkChecksumValidatorTest.cc
  10341. * src/CheckIntegrityEntry.cc
  10342. * src/PieceHashCheckIntegrityEntry.cc
  10343. * src/IteratableChecksumValidator.{h, cc}
  10344. * src/BtCheckIntegrityEntry.cc: Added doc.
  10345. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10346. Added --allow-piece-length-change option.
  10347. * src/DefaultBtProgressInfoFile.cc
  10348. * test/DefaultBtProgressInfoFileTest.cc
  10349. * src/OptionHandlerFactory.cc
  10350. * src/option_processing.cc
  10351. * src/prefs.h
  10352. * src/version_usage.cc
  10353. * doc/aria2c.1.txt
  10354. * doc/aria2c.1
  10355. Fixed: duplicated result entry appears when exception is thrown in
  10356. RequestGroup::createInitiateConnectionCommand().
  10357. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10358. Add RequestGroup to _requestGroup after RequetGroup::
  10359. createInitiateConnectionCommand() succeeds.
  10360. Externalized message
  10361. * src/XML2SAXMetalinkProcessor.cc
  10362. * src/message.h
  10363. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Forced download abort when received negative response from http/ftp
  10365. server.
  10366. * src/HttpResponseCommand.cc
  10367. * src/FtpNegotiationCommand.cc
  10368. * src/HttpResponse.cc
  10369. * src/FtpConnection.cc
  10370. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10371. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10372. the predecessor, Xml2MetalinkParser class.
  10373. I tested them against 94KB metalink file with 1234 chunk checksums.
  10374. The new one parsed it in 22msec, while it took 6000msec with old one.
  10375. * src/XML2SAXMetalinkProcessor.{h, cc}
  10376. * test/XML2SAXMetalinkProcessorTest.cc
  10377. * src/MetalinkParserController.{h, cc}
  10378. * test/MetalinkParserControllerTest.cc
  10379. * src/MetalinkParserState.h: Also added 16 subclasses.
  10380. * src/main.cc
  10381. * src/Metalink2RequestGroup.cc
  10382. * src/MetalinkHelper.cc
  10383. * src/MetalinkEntry.cc
  10384. * src/ChunkChecksum.h
  10385. Rewritten Base64 class for better performance.
  10386. * src/Base64.{h, cc}
  10387. * test/Base64Test.cc
  10388. * src/HttpRequest.cc
  10389. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10390. Fixed the bug#1841757: aria2 will connect to server to only get
  10391. file size.
  10392. * src/StreamFileAllocationEntry.cc
  10393. * src/option_processing.cc
  10394. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10395. downloads.
  10396. * src/FtpNegotiationCommand.cc
  10397. Suppressed wrong message when finding PreDownloadHandler
  10398. * src/RequestGroup.cc
  10399. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Updated usage
  10401. * src/version_usage.cc
  10402. Updated man page
  10403. * doc/aria2c.1.txt
  10404. * doc/aria2c.1
  10405. Updated po files
  10406. * po/aria2c.pot
  10407. * po/*.po
  10408. * po/*.gmo
  10409. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Eliminated g++-4.2 warning
  10411. * src/DownloadHandlerConstants.{h, cc}
  10412. * src/Util.cc
  10413. * test/MetaFileUtilTest.cc
  10414. * test/PStringBuildVisitorTest.cc
  10415. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10416. * src/RequestGroup.cc
  10417. * src/BtCheckIntegrityEntry.cc
  10418. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. Fixed a2io.h
  10420. * src/a2io.h
  10421. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Added direct I/O support. The current implementation uses O_DIRECT,
  10423. which is not posix standard and is tested on linux 2.6.21.
  10424. Currently only file allocation uses direct I/O.
  10425. * src/SingleFileAllocationIterator.{h, cc}
  10426. * test/SingleFileAllocationIteratorTest.cc
  10427. * src/MultiFileAllocationIterator.{h, cc}
  10428. * test/MultiFileAllocationIteratorTest.cc
  10429. * src/BinaryStream.h
  10430. * src/DiskWriter.h
  10431. * src/AbstractDiskWriter.{h, cc}
  10432. * src/ByteArrayDiskWriter.h
  10433. * src/DiskAdaptor.h
  10434. * src/AbstractSingleDiskAdaptor.{h, cc}
  10435. * src/MultiDiskAdaptor.{h, cc}
  10436. * src/FileAllocationEntry.cc
  10437. * src/Util.{h, cc}
  10438. * src/OptionHandlerFactory.cc
  10439. * src/prefs.h
  10440. * src/version_usage.cc
  10441. * src/option_processing.cc
  10442. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10443. handleException.
  10444. * src/MultiFileAllocationIterator.cc
  10445. Added EINTR handling
  10446. * src/SocketCore.cc
  10447. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Updated usage
  10449. * src/version_usage.cc
  10450. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Applied Ross's patch for MinGW port.
  10452. * src/DownloadEngine.h
  10453. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10454. Set Content-Type to SingleFileDownloadContext when http response is
  10455. received.
  10456. * src/HttpResponseCommand.cc
  10457. * src/HttpResponse.{h, cc}
  10458. * test/HttpResponseTest.cc
  10459. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. Rewritten to add content-type support.
  10461. * src/DownloadHandler.{h, cc}
  10462. * src/BtPostDownloadHandler.{h, cc}
  10463. * test/BtPostDownloadHandlerTest.cc
  10464. * src/MetalinkPostDownloadHandler.{h, cc}
  10465. * test/MetalinkPostDownloadHandlerTest.cc
  10466. * src/PostDownloadHandler.{h, cc}
  10467. * src/DownloadHandlerConstants.{h, cc}
  10468. * src/RequestGroup.cc
  10469. * src/HttpResponseCommand.cc
  10470. * src/FtpNegotiationCommand.cc
  10471. * src/SingleFileDownloadContext.{h, cc}
  10472. * src/RequestGroup.h
  10473. * src/RequestGroupCriteria.h
  10474. * src/ContentTypeRequestGroupCriteria.h
  10475. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10476. If it is give, metalink/torrent file is not written to the disk, but
  10477. just is kept in memory. Parsing is occurred on memory.
  10478. * src/MetalinkHelper.{h, cc}
  10479. * src/MetalinkProcessor.h
  10480. * src/Xml2MetalinkProcessor.{h, cc}
  10481. * test/Xml2MetalinkProcessorTest.cc
  10482. * src/DownloadHandlerFactory.{h, cc}
  10483. * test/DownloadHandlerFactoryTest.cc
  10484. * src/PreDownloadHandler.{h, cc}
  10485. * src/OptionHandlerFactory.cc
  10486. * src/DefaultBtContext.{h, cc}
  10487. * test/DefaultBtContextTest.cc
  10488. * src/version_usage.cc
  10489. * src/Metalink2RequestGroup.{h, cc}
  10490. * src/RequestGroup.{h, cc}
  10491. * src/a2functional.h
  10492. * test/a2functionalTest.cc
  10493. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10494. * src/OptionHandlerImpl.h
  10495. * src/prefs.h
  10496. * src/Util.{h, cc}
  10497. * test/UtilTest.cc
  10498. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10499. memory usage.
  10500. * src/RequestGroupMan.{h, cc}
  10501. * src/DownloadEngine.cc
  10502. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10503. WeakHandle to SharedHandle because WeakHandle could be null.
  10504. * src/RequestGroup.{h, cc}
  10505. * src/DownloadEngineFactory.cc
  10506. * src/DownloadResult.h
  10507. Set totalLength after download finished
  10508. * src/UnknownLengthPieceStorage.{h, cc}
  10509. Keep torrent file specified in metalink in memory.
  10510. * src/Metalink2RequestGroup.cc
  10511. * src/BtDependency.cc
  10512. * src/TrueRequestGroupCriteria.h
  10513. Fixed the bug: seekg is used where seekp should be used.
  10514. * src/ByteArrayDiskWriter.cc
  10515. * test/ByteArraydiskWriterTest.cc
  10516. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10517. Fixed syntax error
  10518. * test/SequenceTest.cc
  10519. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10521. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10522. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10523. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10524. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10525. Added the check to see whether ares_host_callback accepts timeouts
  10526. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10527. * src/NameResolver.{h, cc}
  10528. * m4/libcares.m4
  10529. * configure.ac: Set C++ for language choice.
  10530. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10531. Fixed: compilation fails without c-ares/ares
  10532. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10533. Generate http/ftp commands only when download is incomplete.
  10534. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10535. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10536. Corrected typo. Examples are removed since they are available in man
  10537. page.
  10538. * src/version_usage.cc
  10539. Updated man page.
  10540. * doc/aria2c.1
  10541. * doc/aria2c.1.txt
  10542. * doc/makeman: Commented out sed command.
  10543. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Throw DlAbortEx when a remote file is not found.
  10545. * src/HttpResponse.cc
  10546. * src/FtpNegotiationCommand.cc
  10547. * src/message.h
  10548. Overwrite an existing file if --allow-overwrite=true is given.
  10549. * src/RequestGroup.cc
  10550. Removed unused functions
  10551. * src/AbstractCommand.h
  10552. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10553. Removed 'extern' from 'extern typedef ...' in src/*.h
  10554. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10555. Updated usage
  10556. * src/version_usage.cc
  10557. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10558. Trim announce URL
  10559. * src/DefaultBtContext.cc
  10560. * test/ShaVisitorTest.cc
  10561. Trim argument s. Give trimed s to exception constructor.
  10562. * src/Util.cc (parseInt)(parseLLInt)
  10563. * test/UtilTest.cc
  10564. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Set precision back to 1.
  10566. * src/ConsoleStatCalc.cc (calculateStat)
  10567. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Replaced strtol with Util::parseInt
  10569. * src/ChunkedEncoding.cc
  10570. * src/HttpConnection.cc
  10571. * src/CookieBoxFactory.cc
  10572. * src/ParameterizedStringParser.cc
  10573. * src/Util.cc
  10574. * test/UtilTest.cc
  10575. * test/OptionHandlerTest.cc
  10576. * src/Request.cc
  10577. Throw exception when empty string is given. The message for exception
  10578. changed.
  10579. * src/Util.cc (parseInt)(parseLLInt)
  10580. * src/message.h
  10581. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10583. set to 1.
  10584. * src/ConsoleStatCalc.cc (calculateStat)
  10585. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10586. Preallocate non-requested file which is adjacent forward to requested
  10587. file('requested' files means the files given in --select-file option)
  10588. if they share a same piece.
  10589. This fixes long pause in the file system which doesn't support sparse
  10590. files like FAT32 while downloading.
  10591. * src/MultiFileAllocationIterator.{h, cc}
  10592. * test/MultiFileAllocationIteratorTest.cc
  10593. * src/FileEntry.{h, cc}
  10594. Removed unused _option.
  10595. * src/MultiDiskAdaptor.h
  10596. * test/MultiDiskAdaptorTest.cc
  10597. * src/DefaultPieceStorage.cc
  10598. Set the default value of --seed-ratio to 1.0.
  10599. If 0.0 is given, then seeding continues regardless of share ratio.
  10600. * src/version_usage.cc
  10601. * src/option_processing.cc
  10602. * src/BtSetup.cc
  10603. * doc/aria2c.1.txt
  10604. * doc/aria2c.1
  10605. Fixed: Selective download is not working in BitTorrent
  10606. * src/RequestGroup.cc
  10607. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10608. * src/PieceStorage.h
  10609. * test/MockPieceStorage.h
  10610. * src/UnknownLengthPieceStorage.h
  10611. * src/DefaultPieceStorage.{h, cc}
  10612. * src/Metalink2RequestGroup.cc
  10613. * src/RequestGroup.cc
  10614. * src/Sequence.h
  10615. * test/SequenceTest.cc
  10616. * src/IntSequence.h
  10617. * src/message.h
  10618. * src/Util.{h, cc}
  10619. * test/UtilTest.cc
  10620. Added new function 'parse' to catch exception thrown by subclass's
  10621. parseArg
  10622. * src/OptionHandler.h
  10623. * src/OptionParser.cc
  10624. * src/NameMatchOptionHandler.h
  10625. * src/OptionHandlerImpl.h
  10626. * test/OptionHandlerTest.cc
  10627. Added IntegerRangeOptionHandler. Used for --listen-port and
  10628. --select-file. Now --listen-port accepts range of port.
  10629. * src/OptionHandlerFactory.cc
  10630. * src/version_usage.cc
  10631. * src/OptionHandlerImpl.h
  10632. * src/option_processing.cc
  10633. * src/BtSetup.cc
  10634. * src/PeerListenCommand.{h, cc}
  10635. * doc/aria2c.1.txt
  10636. * doc/aria2c.1
  10637. Implemented operator< for Exception class to provide easy way to print
  10638. exception stack trace.
  10639. * src/Exception.{h, cc}
  10640. * src/main.cc
  10641. * src/option_processing.cc
  10642. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. * src/version_usage.cc
  10644. (showVersion): Reworked.
  10645. (showUsage): Added examples.
  10646. Removed Hint for total length and file name.
  10647. * src/Metalink2RequestGroup.cc
  10648. * src/RequestGroup.{h, cc}
  10649. * src/HttpResponseCommand.cc
  10650. * src/FtpNegotiationCommand.cc
  10651. Now --follow-torrent and --follow-metalink option work properly.
  10652. * src/RequestGroup.cc
  10653. Updated man page
  10654. * doc/aria2c.1.txt
  10655. * doc/aria2c.1
  10656. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10657. Removed.
  10658. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10659. Use Segment::operator==()
  10660. * src/HttpConnection.cc
  10661. * src/Segment.h
  10662. Updated usage
  10663. * src/version_usage.cc
  10664. Added EINTR treatment.
  10665. * src/SocketCore.cc
  10666. * src/AbstractDiskWriter.cc
  10667. Rewritten.
  10668. * src/Util.cc (rangedFileCopy)
  10669. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10670. Fixed typo.
  10671. * src/version_usage.cc
  10672. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10673. Implemented. Now -c option works fine.
  10674. * src/DefaultPieceStorage.cc (markPiecesDone)
  10675. * test/DefaultPieceStorageTest.cc
  10676. Removed.
  10677. * src/SegmentMan.{h, cc}
  10678. (markAllPiecesDone)
  10679. (markPieceDone)
  10680. Synchronized po files with
  10681. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10682. * src/fr.po
  10683. * src/ru.po
  10684. * src/de.po
  10685. * src/ja.po
  10686. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Added ifdef and some modifications to compile without BitTorrent,
  10688. Metalink, MessageDigest
  10689. support.
  10690. * src/PieceHashCheckIntegrityEntry.cc
  10691. * src/MetalinkEntry.h
  10692. * src/version_usage.cc
  10693. * src/main.cc
  10694. * src/DownloadEngine.{h, cc}
  10695. * src/Metalink2RequestGroup.cc
  10696. * src/Peer.cc
  10697. * src/RequestGroup.cc
  10698. * src/MetalinkHelper.cc
  10699. * test/DefaultPieceStorageTest.cc
  10700. * test/MetalinkPostDownloadHandlerTest.cc
  10701. * test/Metalink2RequestGroupTest.cc
  10702. Hide TOTAL SPD when all downloads complete.
  10703. * src/ConsoleStatCalc.cc
  10704. Log target system information.
  10705. * src/main.cc
  10706. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10707. Now --metalink-location accepts a comma-deliminated list of locations.
  10708. * src/MetalinkEntry.{h, cc}
  10709. * test/MetalinkEntryTest.cc
  10710. * src/version_usage.cc
  10711. * src/Metalink2RequestGroup.cc
  10712. * src/Xml2MetalinkProcessor.cc
  10713. * test/Xml2MetalinkProcessorTest.cc
  10714. * doc/aria2c.1.txt
  10715. * doc/aria2c.1
  10716. * src/Util.cc (toUpper)(toLower): Rewritten.
  10717. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Added the ability to detect duplicate download entry which is about to
  10719. download the same file other RequestGroup is downloading.
  10720. * src/RequestGroup.cc
  10721. * src/HttpResponseCommand.cc
  10722. * src/FtpNegotiationCommand.cc
  10723. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. Recalculates download progress when loading a control file,
  10725. if the piece length of DownloadContext is different from the one saved
  10726. in the control file. Currently in-flight pieces are ignored.
  10727. * src/DefaultBtProgressInfoFile.cc
  10728. * test/DefaultBtProgressInfoFileTest.cc
  10729. * src/Util.{h, cc}
  10730. * test/UtilTest.cc
  10731. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10732. Do not rotate tiers in announce-list.
  10733. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10734. AnnounceList::allTiersFailed() used instead to detect whether all
  10735. tiers are tried and failed.
  10736. * test/DefaultBtAnnounceTest.cc
  10737. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10738. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10739. * test/AnnounceListTest.cc
  10740. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10741. clause. Catch RecoverableException instead of DlRetryEx instead.
  10742. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10743. Implemented checksum validation feature(1 checksum for each file)
  10744. The validation takes place after the download.
  10745. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10746. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10747. * src/CheckIntegrityCommand.cc: Changed log message.
  10748. * src/Metalink2RequestGroup.cc: Set checksum to
  10749. SingleFileDownloadContext.
  10750. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10751. PieceHashCheckIntegrity class.
  10752. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10753. PieceHashCheckIntegrity class.
  10754. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10755. * src/IteratableValidator.h: New class.
  10756. * src/message.h
  10757. * src/CheckIntegrityEntry.{h, cc}
  10758. * src/IteratableChunkChecksumValidator.{h, cc}
  10759. * src/SingleFileDownloadContext.h
  10760. * src/DownloadCommand.cc
  10761. --allow-overwrite=true is no longer needed to check file integrity
  10762. before download in BitTorrent download.
  10763. * src/RequestGroup.cc (getInitialCommand)
  10764. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10765. throws exception.
  10766. * src/RequestGroupMan.cc (getInitialCommands)
  10767. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10768. urlencode the given url inside Request::parseUrl(...)
  10769. * src/Request.{h, cc}
  10770. * src/Util.{h, cc}
  10771. * test/RequestTest.cc
  10772. Removed #!metalink3! notation support because it is deleted from
  10773. the metalink specification.
  10774. * src/Request.{h, cc}
  10775. * test/RequestTest.cc
  10776. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10777. Don't connect server before checking file integrity at startup, if
  10778. filesize and output file path are known.
  10779. * src/AbstractCommand.cc
  10780. * src/StreamFileAllocationEntry.cc
  10781. * src/Metalink2RequestGroup.cc
  10782. * src/RequestGroup.{h, cc}
  10783. * src/HttpResponseCommand.cc
  10784. * src/FtpNegotiationCommand.cc
  10785. Added DownloadFailureException. If it is thrown, RequestGroup should
  10786. halt.
  10787. * src/AbstractCommand.cc
  10788. * src/DownloadFailureException.h
  10789. * src/RequestGroup.cc
  10790. Catch RecoverableException, instead of DlAbortEx.
  10791. * src/RequestGroupMan.cc
  10792. * src/FillRequestGroupCommand.cc
  10793. * src/MetaFileUtil.cc
  10794. * src/IteratableChunkChecksumValidator.cc
  10795. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10796. getGID())
  10797. * src/CheckIntegrityCommand.cc
  10798. * src/message.h
  10799. Print gid instead of idx.
  10800. * src/RequestGroupMan.cc
  10801. Removed exception throwers declaration.
  10802. * src/DirectDiskAdaptor.{h, cc}
  10803. * src/SocketCore.{h, cc}
  10804. * src/MultiDiskAdaptor.{h, cc}
  10805. * src/HttpConnection.{h, cc}
  10806. * src/HttpResponse.{h, cc}
  10807. * src/DiskAdaptor.{h, cc}
  10808. * src/CopyDiskAdaptor.{h, cc}
  10809. * src/MultiDiskAdaptor.{h, cc}
  10810. * src/HttpHeaderProcessor.{h, cc}
  10811. * src/AbstractSingleDiskAdaptor.{h, cc}
  10812. * src/Util.{h, cc}
  10813. * test/UtilTest.cc
  10814. * src/DefaultDiskWriter.{h, cc}
  10815. * src/FtpConnection.{h, cc}
  10816. * src/AbstractDiskWriter.{h, cc}
  10817. Removed duplicate code.
  10818. * src/StreamCheckIntegrityEntry.cc
  10819. Removed unnecessary include.
  10820. * src/DiskWriter.h
  10821. Included Exception.h
  10822. * src/option_processing.cc
  10823. Included 2 files and added doc
  10824. * src/TrackerWatcherCommand.cc
  10825. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10826. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. Changed CheckIntegrityEntry interface so that it can define
  10828. the action when all the chunk checksums are valid.
  10829. * src/CheckIntegrityEntry.h
  10830. * src/StreamCheckIntegrityEntry.{h, cc}
  10831. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10832. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10833. to exit rather than doing seeding. So, it would be good to toggle this
  10834. behavior.
  10835. * src/CheckIntegrityCommand.cc
  10836. * src/AbstractCommand.cc
  10837. * src/RequestGroup.cc
  10838. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10839. Reflect the download length of in-flight pieces.
  10840. It makes the download length readout more precise.
  10841. * src/DefaultPieceStorage.{h, cc}
  10842. * test/DefaultPieceStorageTest.cc
  10843. * src/a2functional.h
  10844. * test/a2functionalTest.cc
  10845. Lower CPU load when --max-download-limit is used.
  10846. There is up and down in speed indicator when enabling
  10847. http-pipelining but a download goes well. I think the problem is that
  10848. because http-pipelining is enabled, DownloadCommand is created for
  10849. each segment and in its constructor, PeerStat::downloadStart() is
  10850. called. In PeerStat::downloadStart(), speed calculation object is
  10851. reseted, which makes download speed zero.
  10852. * src/DownloadCommand.cc
  10853. Rewritten using accumulate.
  10854. * src/RequestGroupMan.cc (calculateStat)
  10855. Code clearnup.
  10856. * src/FtpNegotiationCommand.cc
  10857. * src/HttpResponseCommand.cc
  10858. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Fixed: Can not resume: aria2 reports download already finished.
  10860. * src/AbstractCommand.{h, cc}
  10861. * src/HttpResponseCommand.cc
  10862. * src/FtpNegotiateCommand.cc
  10863. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. Now a file is stored in the directory specified in .metalnk file
  10865. (file[@name]).
  10866. * src/Metalink2RequestGroup.cc
  10867. Create the directory structure when opening the file if it doesn't
  10868. exist.
  10869. * src/AbstractDiskWriter.cc
  10870. * src/Util.{h, cc}
  10871. * src/File.h
  10872. * test/UtilTest.cc
  10873. Removed file name comparison
  10874. * src/Metalink2RequestGroup.cc
  10875. * src/HttpResponseCommand.cc
  10876. Rewritten using Util::mkdirs()
  10877. * src/FileEntry.cc (setupDir)
  10878. * test/FileEntryTest.cc
  10879. Updated doc
  10880. * src/SingleFileDownloadContext.h
  10881. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. Now SleepCommand dispatches nextCommand when halt is requested.
  10883. It avoids a possible long wait after hitting CTRL-C.
  10884. * src/SleepCommand.{h, cc}
  10885. * src/RequestGroupAware.{h, cc}
  10886. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10888. to open listen port, then remove the port number from the tracker
  10889. request.
  10890. * src/DefaultBtAnnounce.cc
  10891. * test/DefaultBtAnnounceTest.cc
  10892. * test/MockPieceStorage.h
  10893. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10894. them more testable.
  10895. * src/DefaultBtAnnounce.{h, cc}
  10896. * src/DefaultBtContext.{h, cc}
  10897. * src/Util.{h, cc}
  10898. * test/DefaultBtAnnounceTest.cc
  10899. * test/DefaultBtContextTest.cc
  10900. * test/UtilTest.cc
  10901. Added 'B' to upload bytes readout.
  10902. * src/ConsoleStatCalc.cc
  10903. Now the listen port for BitTorrent download is opened when it is
  10904. needed.
  10905. * src/DownloadEngineFactory.cc
  10906. * src/BtSetup.{h, cc}
  10907. * src/PeerListenCommand.{h, cc}
  10908. Now an exception thrown while parsing tracker response is now logged.
  10909. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10910. called, which means no retry is made in this case, assuming a tracker
  10911. has a problem.
  10912. * src/TrackerWatcherCommand.cc
  10913. Fixed: downloading a file whose length is unkown fails.
  10914. * src/DownloadCommand.cc
  10915. Simplified prepareForNextSegment()
  10916. * src/DownloadCommand.cc
  10917. Updated
  10918. * po/POTFILES.in
  10919. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10920. Re-implemented a file listing for Metalink, which was dropped while
  10921. http/ftp/torrent integration was being implemented.
  10922. * src/MetalinkHelper.{h, cc}: New class.
  10923. * test/MetalinkHelperTest.cc
  10924. * src/main.cc
  10925. * src/Metalink2RequestGroup.cc
  10926. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. Added the ability to display the detailed torrent file information.
  10928. Now -S option gives not only a file listing, but also total download
  10929. length, info hash, announce URI, piece length, the number of pieces,
  10930. and mode(single or multi-torrent).
  10931. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10932. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10933. KiB)
  10934. * test/UtilTest.cc
  10935. * src/main.cc
  10936. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10937. Added ftp://USER:PASSWD@Servername automatic parsing.
  10938. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10939. _password. Recognize username and password in URI.
  10940. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10941. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10942. * src/RequestFactory.{h, cc}: Removed.
  10943. * src/AuthConfigFactory.{h, cc}: New class.
  10944. * src/FtpConnection.cc: Use AuthConfigFactory.
  10945. * src/HttpRequest.cc: Use AuthConfigFactory.
  10946. * test/HttpRequestTest.cc: Updated.
  10947. * test/RequestTest.cc: Updated.
  10948. * test/AuthConfigFactoryTest.cc: New class.
  10949. * test/RequestFactoryTest.cc: Removed.
  10950. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. Use RequestGroup::allDownloadFinished() to decide whether the control
  10952. file should be removed or saved.
  10953. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10954. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10955. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10956. Use File::renameTo()
  10957. * src/DefaultBtProgressInfoFile.cc
  10958. Added --no-file-allocation-limit command-line option.
  10959. * src/version_usage.cc
  10960. * src/option_processing.cc
  10961. * src/OptionHandlerFactory.cc
  10962. * src/RequestGroup.{h, cc}
  10963. * src/BtCheckIntegrityEntry.cc
  10964. * src/StreamCheckIntegrityEntry.cc
  10965. * src/prefs.h
  10966. * doc/aria2c.1.txt
  10967. * doc/aria2c.1
  10968. Now prealloc is the default value for --file-allocation option.
  10969. * src/version_usage.cc
  10970. * src/option_processing.cc
  10971. * doc/aria2c.1.txt
  10972. * doc/aria2c.1
  10973. Don't URL-encode user-agent.
  10974. * src/HttpRequest.cc
  10975. Updated translations
  10976. * po/LINGUAS: Added nl for Dutch translation.
  10977. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10978. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10979. * po/POTFILES.in: Updated.
  10980. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10981. Added the ability to recognize url-list in a torrent file.
  10982. The retrieved URLs are attached to the corresponding FileEntry.
  10983. * src/DefaultBtContext.{h, cc}
  10984. * src/FileEntry.{h, cc}
  10985. * test/DefaultBtContextTest.cc
  10986. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10988. after the download finishes.
  10989. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10990. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10991. the data smaller than block length.
  10992. A block length can be specified by constructor's argument.
  10993. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10994. Get a missing piece in the range of given FileEntry. This function is
  10995. not used in the program yet.
  10996. * src/Util.h: Added some macros.
  10997. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10998. Added HTTP/1.1 keep alive and pipelining support.
  10999. See --enable-http-keep-alive and --enable-http-pipelining option.
  11000. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11001. Segment.
  11002. * src/HttpDownloadCommand.{h, cc}
  11003. * src/OptionHandlerFactory.cc
  11004. * src/HttpConnection.{h, cc}
  11005. * src/version_usage.cc
  11006. * src/HttpInitiateConnectionCommand.cc
  11007. * src/FtpInitiateConnectionCommand.cc
  11008. * src/Segment.h
  11009. * src/HttpRequestCommand.{h, cc}
  11010. * src/option_processing.cc
  11011. * src/prefs.h
  11012. * src/HttpResponseCommand.cc
  11013. * src/SegmentMan.{h, cc}
  11014. * src/FtpNegotiateCommand.cc
  11015. * src/HttpProxyResponseCommand.cc
  11016. * src/Request.cc
  11017. * src/HttpRequest.cc
  11018. * src/DownloadCommand.cc
  11019. * test/HttpRequestTest.cc
  11020. * test/RequestTest.cc
  11021. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11022. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11023. finished.
  11024. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11025. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11026. catching it inside the method.
  11027. When no file entry is found in a metalink without querying user
  11028. preferences, throw the exception with the error message that suggests
  11029. metalink file is probably broken.
  11030. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11031. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11033. processed.
  11034. * src/RequestGroupMan.cc (removeStoppedGroup)
  11035. Added debug message.
  11036. * src/BtPostDownloadHandler.cc
  11037. * src/MetalinkPostDownloadHandler.cc
  11038. * src/PostDownloadHandler.{h, cc}
  11039. * src/RequestGroup.cc
  11040. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11041. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11042. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11043. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11044. stops and there are any unfinished or in-progress downloads.
  11045. Added the legend of "stat".
  11046. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11047. Throw exception when chunck checksum verification fails.
  11048. * src/DownloadCommand.cc (validatePieceHash): New function.
  11049. * src/PiecedSegment.{h, cc} (clear): New function.
  11050. * src/GrowSegment.{h, cc} (clear): New function.
  11051. * src/Segment.h (clear): New function.
  11052. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11053. * test/SegmentTest.cc
  11054. * test/GrowSegmentTest.cc
  11055. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11056. Do not send referer when redirected.
  11057. * src/Request.cc (redirectUrl)
  11058. * test/RequestTest.cc
  11059. * test/HttpRequestTest.cc
  11060. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11061. Implemented BitTorrent/http/ftp integrated download.
  11062. I've rewritten lots of files and now some headers have forward
  11063. class declarations to reduce compile time.
  11064. The implementation is extremely alpha stage, I recommend to use this
  11065. for testing purpose only.
  11066. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11067. Fixed the compilation error on 64bit platform.
  11068. * test/HttpHeaderProcessorTest.cc
  11069. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. Merged Ross's patch that fixes compilation problem in MinGW
  11071. * test/DefaultBtProgressInfoFileTest.cc
  11072. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. Updated fr.po by sebone
  11074. * po/fr.po
  11075. Updated man page.
  11076. * doc/aria2c.1.txt
  11077. * Release 0.11.3
  11078. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11080. failure in Metalink.
  11081. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11082. Automatically save *.aria2 control file of http/ftp download in every
  11083. 60 seconds.
  11084. * src/AutoSaveCommand.{h, cc}: New class.
  11085. * src/TimeBasedCommand.{h, cc}: New class.
  11086. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11087. Disable parameterized URI support by default. Added -P option to
  11088. enable the feature.
  11089. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11090. * src/OptionHandlerFactory.cc
  11091. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11092. Updated Japanese translation.
  11093. * po/ja.po
  11094. Updated man page.
  11095. * doc/aria2c.1.txt
  11096. * Release 0.11.3-rc
  11097. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11098. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11099. it is successful, then renamed to *.aria2.
  11100. This prevents *.aria2 file from being truncated or corrupted when
  11101. file system becomes out of space.
  11102. * src/DefaultBtProgressInfoFile.cc (save)
  11103. * src/SegmentMan.cc (save)
  11104. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11105. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11106. Reduced the fragmentation of bitfield in http/ftp download.
  11107. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11108. * test/BitfieldManTest.cc
  11109. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11110. Added the ability to disable segmented download in .metalink.
  11111. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11112. 'url' tag.
  11113. * src/MetalinkEntry.{h, cc}
  11114. * src/RequestResource.{h, cc}
  11115. * src/MetalinkRequestInfo.cc
  11116. * src/Xml2MetalinkProcessor.cc
  11117. * test/Xml2MetalinkProcessorTest.cc
  11118. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11119. Added parameterized URI support.
  11120. * src/main.cc: -Z option added.
  11121. * src/OptionHandlerFactory.cc
  11122. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11123. * src/PStringDatum.h: New class.
  11124. * src/PStringSegment.{h,cc}: New class.
  11125. * src/PStringNumLoop.h: New class.
  11126. * src/PStringSelect.h: New class.
  11127. * src/NumberDecorator.h: New class.
  11128. * src/FixedWidthNumberDecorator.h: New class.
  11129. * src/AlphaNumberDecorator.h: New class.
  11130. * src/PStringVisitor.h: New class.
  11131. * src/PStringBuildVisitor.{h,cc}: New class.
  11132. * src/ParameterizedStringParser.{h,cc}: New class.
  11133. * src/Util.{h,cc}
  11134. (isNumber): New function.
  11135. (isLowercase): New function.
  11136. (isUppercase): New function.
  11137. (alphaToNum): New function.
  11138. * test/ParameterizedStringParserTest.cc: New class.
  11139. * test/AlphaNumberDecoratorTest.cc: New class.
  11140. * test/PStringBuildVisitorTest.cc: New class.
  11141. * test/UtilTest.cc
  11142. (testIsNumber): New function.
  11143. (testIsLowercase): New function.
  11144. (testIsUppercase): New function.
  11145. (testAlphaToNum): New function.
  11146. Added '\n' after the error message
  11147. * src/RequestInfo.h (printDownloadAbortMessage)
  11148. Added auto file renaming feature in http(s)/ftp download.
  11149. * src/main.cc: Added --auto-file-renaming command-line option.
  11150. * src/OptionHandlerFactory.cc
  11151. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11152. * src/RequestGroup.{h, cc}
  11153. (shouldCancelDownloadForSafety): Rewritten
  11154. (tryAutoFileRenaming): New function.
  11155. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11156. * src/HttpResponseCommand.cc
  11157. (executeInternal): Removed the call to RequestGroupMan::
  11158. isSameFileBeingDownloaded()
  11159. * src/FtpNegotiateCommand.cc
  11160. (recvSize): Removed the call to RequestGroupMan::
  11161. isSameFileBeingDownloaded()
  11162. * test/RequestGroupTest.cc: New class.
  11163. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11164. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11165. IO.
  11166. * src/DefaultBtProgressInfoFile.cc
  11167. * src/MetaFileUtil.cc
  11168. * src/SimpleLogger.cc
  11169. * src/SegmentMan.cc
  11170. * src/Util.cc
  11171. * src/Platform.cc
  11172. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11174. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11175. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11176. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11177. Fixed the bug that prevents file allocation is not done when
  11178. dowloading multi-torrent file.
  11179. * src/AbstractDiskWriter.cc (openFile)
  11180. Increase the maximum number of -j option from 15 to 45.
  11181. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11182. Added fr.po, thanks to Charles Landemaine.
  11183. * po/fr.po
  11184. * po/LINGUAS
  11185. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11186. gcc 3.4.4 support:
  11187. * src/DefaultBtContext.cc: int32_t -> int
  11188. * src/main.cc: int -> int32_t, int32_t -> int
  11189. * src/messageDigest.h: uint32_t -> unsigned int
  11190. * src/NameResolver.h: int32_t -> int
  11191. * src/PeerConnection.cc: int -> int32_t
  11192. * src/SpeedCalc.cc: int32_t -> int
  11193. * src/TrackerUpdateCommand.h: int -> int32_t
  11194. * src/Util.cc: int32_t -> int
  11195. * src/Util.h: int32_t -> int
  11196. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11197. * test/AnnounceListTest.cc: int -> int32_t
  11198. * test/ChunkedEncodingTest.cc: int -> int32_t
  11199. * test/DataTest.cc: int -> int32_t
  11200. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11201. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11202. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11203. * test/FeatureConfigTest.cc: int -> int32_t
  11204. * test/MetalinkEntryTest.cc: int -> int32_t
  11205. * test/MockBtRequestFactory.h: int -> int32_t
  11206. * test/MockPieceStorage.h: int -> int32_t
  11207. * test/OptionTest.cc: int -> int32_t
  11208. * test/RequestTest.cc: int -> int32_t
  11209. * test/SegmentManTest.cc: int -> int32_t
  11210. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11211. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11212. Move sleep functions to Util class:
  11213. * src/Util.cc
  11214. (sleep): New function.
  11215. (usleep): New function.
  11216. * src/DownloadCommand.cc: sleep -> Util::sleep
  11217. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11218. MinGW build enhancements. The following files are added:
  11219. * src/timegm.{c,h}
  11220. Changes to support the above new files:
  11221. * configure.ac
  11222. * src/Makefile.am
  11223. * src/a2time.h
  11224. * src/Util.cc:
  11225. * src/strptime.c: Added support for %Z option.
  11226. Fixed MinGW non-blocking bug.
  11227. * src/SocketCore.cc
  11228. * src/HttpRequestCommand.cc
  11229. Miscellenous build fixes/enhancements.
  11230. * configure.ac: Added summary report.
  11231. * src/Platform.h: Tweaked #include's.
  11232. * src/a2netcompat.h: Tweaked #include's.
  11233. * src/strptime.h: Tweaked #include's.
  11234. * src/gai_strerror.c: Tweaked #include's.
  11235. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11236. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11237. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11238. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11239. Increased the initial connection size in BitTorrent download to 40.
  11240. * src/BtRuntime.h
  11241. Added the usage message of --peer-id-prefix option.
  11242. * src/main.cc
  11243. * Release 0.11.2
  11244. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11245. MessageDigestHelper is introduced in order to simplify the use
  11246. of message digest. Removed repeated code.
  11247. The message digest algorithm is now specified by string, like "sha1",
  11248. "md5".
  11249. * src/messageDigest.{h, cc}
  11250. * src/MessageDigestHelper.{h, cc}: New class.
  11251. * src/DefaultPieceStorage.cc
  11252. * src/DefaultBtContext.{h, cc}
  11253. (computeFastSet): New function.
  11254. (setInfoHash): Added for unit testing.
  11255. (setNumPieces): Added for unit testing.
  11256. * src/DefaultBtInteractive.cc
  11257. * src/BtPieceMessage.cc
  11258. * src/Peer.cc
  11259. * src/Checksum.h
  11260. * src/message.h
  11261. * src/IteratableChecksumValidator.h
  11262. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11263. inside it.
  11264. * src/SegmentMan.{h, cc}
  11265. (checkIntegrity): Removed.
  11266. * src/IteratableChunkChecksumValidator.{h, cc}
  11267. * src/Util.h
  11268. (sha1Sum): Removed.
  11269. (simpleMessageDigest): Removed.
  11270. (fileChecksum): Removed.
  11271. (computeFastSet): Removed.
  11272. * src/ShaVisitor.cc
  11273. * src/ChunkChecksum.h
  11274. * src/DownloadCommand.cc
  11275. Removed messageDigest virtual functions.
  11276. * src/MultiDiskAdaptor.{h, cc}
  11277. * src/DiskAdaptor.h
  11278. * src/ByteArrayDiskWriter.h
  11279. * src/DiskWriter.h
  11280. * src/DiskAdaptorWriter.h
  11281. * src/AbstractSingleDiskAdaptor.{h, cc}
  11282. * src/AbstractDiskWriter.{h, cc}
  11283. Fixed comilation error when message digest is disabled.
  11284. * src/MetalinkEntry.{h, cc}
  11285. * src/MetalinkRequestInfo.cc
  11286. Removed srandom and random.
  11287. * src/SimpleRandomizer.h
  11288. Added size() virtual function to DiskAdaptor
  11289. * src/MultiDiskAdaptor.h
  11290. Fixed the bug that causes that files are not opened correctly in
  11291. multi-file torrent.
  11292. * src/TorrentRequestInfo.cc
  11293. * src/MultiDiskAdaptor.cc
  11294. Added SHA256 support
  11295. * src/messageDigest.cc
  11296. * src/Xml2MetalinkProcessor.cc
  11297. Show supported message digest algorithms
  11298. * src/main.cc
  11299. Updated contact info.
  11300. * src/main.cc
  11301. Applied Ross's patch
  11302. * src/a2netcompat.h
  11303. * src/main.cc
  11304. Fixed the bug that prevents a remote metalink from not being processed
  11305. even if '-o foo.metalink' is specified.
  11306. * src/MetalinkRequestInfo.cc
  11307. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11308. Merged Dan's patch:
  11309. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11310. Use va_copy to avoid core dump on amd64:
  11311. * src/SimpleLogger.cc
  11312. Updated contact info.
  11313. * src/main.cc
  11314. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11315. digest is not available.
  11316. * src/MetalinkEntry.h
  11317. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. Make a2netcompat.h include a2io.h to fix compilation error:
  11319. * src/a2netcompat.h
  11320. * src/SocketCore.cc: Removed include of a2io.h
  11321. * src/Util.cc: Removed include of a2io.h
  11322. Gather time related functions to a2time.h:
  11323. * src/a2time.h: New file.
  11324. * src/DefaultPeerStorage.cc
  11325. * src/SimpleLogger.cc
  11326. * src/Util.{h, cc}
  11327. * src/SimpleRandomizer.h
  11328. * src/TimeA2.{h,cc}
  11329. * src/DownloadCommand.cc
  11330. * src/main.cc
  11331. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11332. a2netcompat.h:
  11333. * src/NameResolver.cc
  11334. Fixed compilation error without openssl:
  11335. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11336. Added default block to suppress compiler warnings:
  11337. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11338. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11339. MinGW build enhancements. The following files are added:
  11340. * src/gai_strerror.{c,h}
  11341. * src/gettimeofday.{c,h}
  11342. Changes to support the above new files:
  11343. * configure.ac
  11344. * src/Makefile.am
  11345. * src/a2netcompat.h
  11346. * src/TimeA2.cc
  11347. * src/DefaultPeerStorage.cc
  11348. * src/NameResolver.cc: removed mingw_strerror() function.
  11349. * src/SocketCore.cc: removed mingw_strerror() function.
  11350. Miscellaneous MinGW build fixes.
  11351. * src/a2io.h: Use _lseeki64() instead of lseek()
  11352. * src/common.h
  11353. * src/DefaultFileAllocator.cc
  11354. * src/GlowFileAllocator.cc
  11355. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11356. * src/NameResolver.cc
  11357. (callback): Changed int32_t to int.
  11358. (resolve): Changed int32_t to int.
  11359. * src/Platform.cc
  11360. * src/Platform.h
  11361. * test/MultiDiskWriterTest.cc
  11362. * test/PeerMessageUtilTest.cc
  11363. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11364. Other enhancements and fixes.
  11365. * src/HttpRequestCommand.cc
  11366. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11367. * src/SocketCore.cc:
  11368. (error): New function to abstract errno/WSAGetLastError().
  11369. (errorMsg): New function to abstract errno/WSAGetLastError().
  11370. (initiateSecureConnection): Added more detailed error reporting.
  11371. * src/SocketCore.h: Added private variable blocking, to allow
  11372. proper handling of OpenSSL psuedo-errors.
  11373. * src/message.h
  11374. (EX_SSL_INIT_FAILURE)
  11375. (EX_SSL_IO_ERROR)
  11376. (EX_SSL_PROTOCOL_ERROR)
  11377. (EX_SSL_UNKNOWN_ERROR)
  11378. (EX_SSL_CONNECT_ERROR)
  11379. (EX_SOCKET_BLOCKING)
  11380. (EX_SOCKET_NONBLOCKING)
  11381. (EX_SOCKET_UNKNOWN_ERROR)
  11382. * src/Util.cc
  11383. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11384. reserved name.
  11385. (httpGMT): Fixed typo.
  11386. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11387. Merged Ross's win32 patch(manually)
  11388. In the course of merging, following files are added.
  11389. * src/strptime.{h,c}
  11390. * src/libgen.{h,c}
  11391. * src/inet_aton.{h,c}
  11392. * src/Platform.{h,cc}
  11393. * src/localtime_r.{h,c}
  11394. * src/getaddrinfo.{h,c}
  11395. I've gethered network related things, and put them to following file:
  11396. * src/a2netcompat.h
  11397. Also io related things are put to following file:
  11398. * src/a2io.h
  11399. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11400. * src/message.h
  11401. (MSG_ALLOCATION_COMPLETED)
  11402. (EX_TOO_LARGE_FILE)
  11403. (EX_SIZE_MISMATCH)
  11404. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11405. (EX_INVALID_CHUNK_CHECKSUM)
  11406. (EX_INVALID_RANGE_HEADER)
  11407. * src/FileAllocationCommand.cc
  11408. * src/HttpResponse.cc
  11409. * src/RequestGroup.cc
  11410. * src/MultiDiskAdaptor.cc
  11411. * src/OptionHandlerImpl.h
  11412. * src/HttpResponseCommand.cc
  11413. * src/FtpNegotiateCommand.cc
  11414. * src/IteratableChecksumValidator.cc
  11415. * src/SegmentMan.cc
  11416. * src/ChunkChecksumValidator.cc
  11417. Added Randomizer::getRandomNumber(long int)
  11418. * src/Randomizer.h (getRandomNumber)
  11419. * src/SimpleRandomizer.h (getRandomNumber)
  11420. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11421. * src/Util.cc (randomAlpha): Use this new function.
  11422. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11423. Converted int's to in32_t. long long int's are also converted to
  11424. int64_t
  11425. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11426. Fixed the bug that prevents cookies from being sent to the server
  11427. if the domain of cookie is FQDN and starts with ".".
  11428. * src/Cookie.cc (match)
  11429. To add the ability to change peer id.
  11430. * src/DefaultBtContext.h
  11431. (_peerIdPrefix): New variable
  11432. (setPeerIdPrefix): New function.
  11433. * src/torrentRequestInfo.cc
  11434. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11435. DefaultBtContext.
  11436. * src/main.cc (main): Added peer-id-prefix command-line option.
  11437. The usage message is not added yet.
  11438. * src/DefaultBtContext.cc
  11439. (generatePeerId): Use _peerIdPrefix.
  11440. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11441. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11442. Fixed the bug that prevents filename in content-disposition from
  11443. being retrieved when filename is not quoted.
  11444. * src/Util.cc (getContentDispositionFilename)
  11445. Fixed the bug that causes infinate loop and memory leak when file open
  11446. operation failed.
  11447. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11448. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Fixed the bug that causes segfault when all URIs specified are
  11450. unsupported.
  11451. * src/RequestGroupMan.cc (getInitialCommands)
  11452. Check if RequestGroup::createNextCommand() returns empty list of
  11453. commands.
  11454. * src/RequestGroup.cc (createNextCommand)
  11455. Change log level from info to error so that users can notice that
  11456. an error occurred.
  11457. Fixed the bug that causes segfault when a zero-sized file is
  11458. downloaded.
  11459. * src/BitfieldMan.cc (isAllBitSet)
  11460. Return true if bitfieldLength is 0.
  11461. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11462. * src/main.cc
  11463. (showUsage): Added 3 usage examples for metalink download.
  11464. Replace MetalinkChunkChecksum with ChunkChecksum.
  11465. * src/MetalinkChunkChecksum.h: Removed.
  11466. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11467. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11468. * src/Xml2MetalinkProcessor.cc
  11469. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11470. * src/MetalinkRequestInfo.cc (execute)
  11471. * Release 0.11.1
  11472. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11473. Reads URIs from stdin when "-i -" is specified.
  11474. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11475. * src/UriListParser.h, src/UriListParser.cc: New class.
  11476. * src/StreamUriListParser.h: New class.
  11477. * src/FileUriListParser.h: New class.
  11478. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11479. instead of UriFileListParser.
  11480. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11481. Made console readout more readable.
  11482. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11483. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11484. Fix the bug that causes -s option not to work.
  11485. * src/main.cc (main)
  11486. * src/a2algo.h: New file.
  11487. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Create directory structure specified in metalink file.
  11489. * src/RequestGroup.h, src/RequestGroup.cc
  11490. (initAndOpenFile): Create a directory to store files if it does not
  11491. exist.
  11492. (getDir): New function.
  11493. Added ETA and download speed for an individual file to readout.
  11494. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11495. * src/RequestGroup.h
  11496. (calculateDownloadSpeed): New function.
  11497. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11498. Made -S option work with metalink file and provided selective download
  11499. to metalink.
  11500. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11501. (filename): Removed.
  11502. (file): New variable.
  11503. (size): Removed.
  11504. (operator=): Updated.
  11505. (getPath): New function.
  11506. (getLength): New function.
  11507. (toFileEntry): New function.
  11508. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11509. (execute): Use toStream.
  11510. (showFileEntry): Removed.
  11511. * src/MetalinkRequestInfo.h
  11512. (targetFiles): New variable.
  11513. (setTargetFiles): New variable.
  11514. * src/MetalinkRequestInfo.cc
  11515. (execute): Added the ability to print file information included in
  11516. a metalink file.
  11517. Added selective download mode to metalink.
  11518. * src/main.cc
  11519. (showUsage): Updated to denote that -S and --select-file options are
  11520. applicable to metalink.
  11521. * src/FileEntry.h
  11522. (operator=): New function.
  11523. (getBasename): New function.
  11524. (getDirname): New function.
  11525. * src/Util.h, src/Util.cc
  11526. (toStream): New function.
  11527. * src/Xml2MetalinkProcessor.cc: Updated.
  11528. Made aria2 work with metalink with directory structure.
  11529. * src/File.h, src/File.cc
  11530. (getBasename): New function.
  11531. (getDirname): New function.
  11532. * src/RequestGroup.h, src/RequestGroup.cc
  11533. (_topDir): New variable.
  11534. (setTopDir): New function.
  11535. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11536. Rewrote HTTP header parsing with stringstream.
  11537. * src/HttpConnection.h, src/HttpConnection.cc
  11538. (HttpRequestEntry): New class.
  11539. (headerBuf): Removed.
  11540. (headerBufLength): Removed.
  11541. (outstandingHttpRequests): Now its element type is
  11542. HttpRequestEntryHandle.
  11543. (findEndOfHeader): Removed.
  11544. (receiveResponse): Rewritten.
  11545. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11546. Updated doc for -j option to notice that it should be used with -i
  11547. option.
  11548. * src/main.cc (showUsage)
  11549. Removed unused classes.
  11550. * src/RequestInfo.h
  11551. (FileInfo): Removed.
  11552. (checksum): Removed.
  11553. (fileInfo): Removed.
  11554. (setChecksum): Removed.
  11555. (getChecksum): Removed.
  11556. (getFileInfo): Removed.
  11557. Use ISO units.
  11558. * src/ConsoleDownloadEngine.cc
  11559. * src/TorrentConsoleDownloadEngine.cc
  11560. * src/Util.cc (abbrevSize)
  11561. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11562. Added the default listening ports to the help message.
  11563. * src/main.cc (showUsage)
  11564. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11565. Reduce the number of calls to gettimeofday to lower CPU load.
  11566. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11567. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11568. * src/Peer.h (calculateUploadSpeed): New function.
  11569. (calculateDownloadSpeed): New function.
  11570. * src/DefaultPeerStorage.cc
  11571. (CalculateStat): Added _now variable.
  11572. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11573. and Peer::calculateUploadSpeed(const struct timeval&)
  11574. Drop connection if no request or piece message is exchanged in
  11575. a certain interval.
  11576. * src/DefaultBtInteractive.h
  11577. (btRuntime): New variable.
  11578. (inactiveCheckPoint): New variable.
  11579. (checkActiveInteraction): New function.
  11580. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11581. request or piece message is received.
  11582. (checkActiveInteraction): New function.
  11583. (doInteractionProcessing): Call checkActiveInteraction.
  11584. Fixed the bug that causes remote Metalink and Torrent files are not
  11585. processed.
  11586. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11587. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Changed format of log file.
  11589. * src/SimpleLogger.cc
  11590. * Release 0.11.0
  11591. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11592. * src/AbstractCommand.cc
  11593. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11594. MSG_MAX_TRY from error to info.
  11595. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11596. * src/message.h
  11597. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11598. (MSG_DOWNLOAD_ABORTED): Added %s.
  11599. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11600. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11601. * src/PeerAbstractCommand.cc
  11602. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11603. * src/Request.h
  11604. (cookieBox): Made ShardHandle.
  11605. * src/RequestGroup.h, src/RequestGroup.cc
  11606. (createNextCommandWithAdj): New function.
  11607. * src/FileAllocationCommand.cc
  11608. (executeInternal): Use createNextCommandWithAdj().
  11609. * src/CheckIntegrityCommand.cc
  11610. (executeInternal): Use createNextCommandWithAdj().
  11611. Added --load-cookies command-option.
  11612. * src/OptionHandlerFactory.cc
  11613. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11614. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11615. Now aria2 can handle cookie's expiration date.
  11616. * src/Cookie.h (expires): Changed its type to time_t.
  11617. * src/main.cc: Added --load-cookies command-line option.
  11618. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11619. * src/Util.h, src/Util.cc (httpGMT): New function.
  11620. * src/Request.cc (Request): Initialize cookieBox using
  11621. CookieBoxFactory.
  11622. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11623. * src/CookieParser.h, src/CookieParser.cc: New class.
  11624. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11625. * src/HttpResponseCommand.cc
  11626. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11627. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11628. download.
  11629. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11630. Added -j command-line option.
  11631. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11632. * src/main.cc
  11633. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11634. Rewritten using stringstream.
  11635. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11636. Rewritten using stringstream.
  11637. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11638. Make download size shown in MB, KB.
  11639. * src/ConsoleDownloadEngine.h (sendStatistics)
  11640. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11641. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11642. Accept incoming connections if download rate is low.
  11643. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11644. (_lowestSpeedLimit): New variable.
  11645. (setLowestSpeedLimit): New function.
  11646. (execute): Accept incoming connections if download rate is low.
  11647. MAX_PEERS is ignored in this case.
  11648. Disable PREF_OUT in multiple concurrent download:
  11649. * src/RequestGroup.h, src/RequestGroup.cc
  11650. (setUserDefinedFilename): New function.
  11651. * src/DownloadEngineFactory.cc
  11652. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11653. concurrent download.
  11654. * src/DefaultSegmentManFactory.cc
  11655. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11656. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11658. Added its overloaded method.
  11659. * src/RequestGroup.h
  11660. (_numConcurrentCommand): New variable.
  11661. (setNumConcurrentCommand): New function.
  11662. * src/RequestGroup.cc
  11663. Abort download if same file is being downloaded concurrently.
  11664. * src/RequestGroup.h, src/RequestGroupMan.cc
  11665. (isSameFileBeingDownloaded): New function.
  11666. * src/HttpResponseCommand.cc (executeInternal)
  11667. * src/FtpNegotiateCommand.cc (recvSize)
  11668. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11669. * main.cc: Added help message for -i option.
  11670. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11671. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11672. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11673. * src/MetalinkEntry.h
  11674. (checksum): Changed to ChecksumHandle
  11675. * src/MetalinkRequestInfo.cc
  11676. (checksum): Changed to ChecksumHandle
  11677. * src/File.cc
  11678. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11679. * src/common.h
  11680. (DIR_OPEN_MODE): New definition
  11681. * src/RequestGroup.cc
  11682. (prepareForNextAction): Added an argument.
  11683. * src/message.h
  11684. (MSG_GOOD_CHECKSUM): New definition
  11685. (MSG_BAD_CHECKSUM): New definition
  11686. * src/HttpResponseCommand.cc
  11687. (handleDefaultEncoding): Continue download sequence in new
  11688. non-segmented download.
  11689. * src/FileAllocationEntry.h
  11690. (_nextDownloadCommand): New variable.
  11691. * src/DownloadCommand.cc
  11692. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11693. available.
  11694. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11695. * src/IteratableChecksumValidator.h,
  11696. src/IteratableChecksumValidator.cc: New class.
  11697. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11698. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11699. Change file mode to 666:
  11700. * src/common.h (OPEN_MODE): New definition.
  11701. * src/File.cc
  11702. * src/Util.cc
  11703. * src/Directry.cc
  11704. * src/AbstractDiskWriter.cc
  11705. Change the level of log message "download aborted" to debug:
  11706. * src/PeerAbstractCommand.cc (execute)
  11707. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11708. * src/TrackerWatcherCommand.cc
  11709. (createCommand): Sleep some seconds after request failed.
  11710. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11711. then abort tracker request.
  11712. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11713. * Added the simultaneous download feature.
  11714. * src/main.cc: Print "Exception caught: " when exception is caught.
  11715. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11716. * src/ActivePeerConnectionCommand.cc
  11717. * src/PeerInteractionCommand.cc
  11718. * src/BtRuntime.h
  11719. (cuidCounter): Removed.
  11720. (getNewCuid): Removed.
  11721. * src/DownloadEngineFactory.cc
  11722. * src/PeerListenCommand.cc
  11723. * src/TrackerUpdateCommand.cc
  11724. * src/PeerInitiateConnectionCommand.cc
  11725. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11726. * src/PeerAbstractCommand.cc
  11727. (onAbort): Call PeerStorage::returnPeer()
  11728. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11729. (incomingPeers): New variable.
  11730. (addIncomingPeer): New function.
  11731. (returnPeer): New function.
  11732. (onErasingPeer): New function.
  11733. (addPeer): push_back -> push_front
  11734. (getActivePeers): Rewritten.
  11735. (calculateStat): Rewritten.
  11736. * src/PeerStorage.h
  11737. (TransferStat::copy): New function.
  11738. (TransferStat::TransferStat): New function.
  11739. (TransferStat::operator=): New function.
  11740. (addIncomingPeer): New function.
  11741. (returnPeer): New function.
  11742. * src/PeerListenCommand.cc
  11743. (execute): Use PeerStorage::addIncomingPeer() instead of
  11744. Peer::addPeer().
  11745. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11746. Connect to a peer actively when download speed is lower than specified
  11747. speed in torrent download:
  11748. * src/ActivePeerConnectionCommand.h: New class.
  11749. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11750. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11751. * src/main.cc: Fixed the bug that prevents download if .netrc
  11752. doesn't exist.
  11753. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11754. To cache resolved hostname:
  11755. * src/AbstractCommand.h, src/AbstractCommand.cc
  11756. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11757. Added dns cache.
  11758. * src/FtpInitiateConnectionCommand.cc
  11759. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11760. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11761. NameResolver working without ares.
  11762. * src/TorrentRequestInfo.cc
  11763. (execute): Don't cache dns in torrent download.
  11764. * src/HttpInitiateConnectionCommand.cc
  11765. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11766. * src/DNSCache.h: New class.
  11767. * src/UrlRequestInfo.cc
  11768. (execute): Use dns cache.
  11769. In http request, suppress port number in http request header if port
  11770. is 80 or 443:
  11771. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11772. request header if port is 80 or 443.
  11773. (createProxyRequest): Allways send port number.
  11774. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11775. To add the command-line option which disables netrc support:
  11776. * src/OptionHandlerFactory.cc
  11777. (createOptionHandlers): Added PREF_NO_NETRC.
  11778. * src/main.cc: Added -n option.
  11779. * src/prefs.h (PREF_NO_NETRC): New definition.
  11780. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11781. V_TRUE.
  11782. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11783. is V_FALSE. This may get configurable in the future release.
  11784. To clear peer's error status by time basis:
  11785. * src/PeerAbstractCommand.cc
  11786. (onAbort): Call Peer::startBadCondition().
  11787. * src/Peer.h, src/Peer.cc
  11788. (error): Removed.
  11789. (_badConditionStartTime): New variable.
  11790. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11791. (startBadCondition): New function.
  11792. (isGood): New function.
  11793. * src/DefaultPeerStorage.cc
  11794. (addPeer): Use Peer::isGood().
  11795. (FindFinePeer): Use Peer::isGood().
  11796. Always include port number in http request header:
  11797. * src/HttpRequest.cc (getHostText): Always include port number in
  11798. http request header.
  11799. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. To the ability to read options from a config file:
  11801. * src/main.cc: Command-line parameter validation is delegated to
  11802. OptionHandler class.
  11803. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11804. * src/Option.h, src/Option.cc (clear): New function.
  11805. * src/OptionParser.h, src/OptionParser.cc: New class.
  11806. * src/OptionHandler.h: New class.
  11807. * src/NameMatchOptionHandler.h: New class.
  11808. * src/OptionHandlerImpl.h: New classes.
  11809. * src/prefs.h: '_' -> '-'
  11810. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11811. (FTP_PASV): New definition.
  11812. * src/Util.h, src/Util.cc (getRealSize): New function.
  11813. To disable netrc support if .netrc file does not have correct
  11814. permissions:
  11815. * src/File.h, src/File.cc (mode): New function.
  11816. To prevent confidential information to be logged:
  11817. * src/HttpConnection.h, src/HttpConnection.cc
  11818. (eraseConfidentialInfo): New function.
  11819. (sendRequest): Call eraseConfidentialInfo().
  11820. (sendProxyRequest): Call eraseConfidentialInfo().
  11821. * src/main.cc: Validate permissions of .netrc file.
  11822. To add --user-agent command-line option:
  11823. * src/main.cc: Added new command line option: --user-agent
  11824. * src/prefs.h (PREF_USER_AGENT): New definition.
  11825. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11826. parameter to HttpRequest object.
  11827. * src/AbstractProxyRequestCommand.cc
  11828. (executeInternal): Set user-agent option parameter to HttpRequest
  11829. object.
  11830. Marged the patches from Dan Fandrich.
  11831. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11832. Use filename and size from Metalink file instead of sending HEAD
  11833. request:
  11834. * src/UrlRequestInfo.h
  11835. (_filename): New variable.
  11836. (_totalLength): New variable.
  11837. (setTotalLength): New variable.
  11838. (setFilename): New variable.
  11839. * src/MetalinkRequestInfo.cc
  11840. (execute): Set filename and size to UrlRequestInfo
  11841. * src/UrlRequestInfo.cc
  11842. (execute): Use filename and size from Metalink instead of seding
  11843. HEAD request to servers.
  11844. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11845. To add the ability to resume downloading a partially downloaded file
  11846. which is downloaded from the beginning:
  11847. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11848. takes this role.
  11849. * src/main.cc: Added -c option.
  11850. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11851. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11852. * src/prefs.h (PREF_CONTINUE): New definition.
  11853. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11854. * src/DefaultDiskWriter.cc
  11855. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11856. * src/AbstractDiskWriter.h
  11857. (glowFileAllocator): New variable.
  11858. * src/AbstractDiskWriter.cc
  11859. (openExistingFile): Now preallocate file space from the end of the
  11860. existing file if totalLength argument is specified and grater than 0.
  11861. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11862. to download exists in local, continue the download of the file.
  11863. --allow-overwrite=true is assumed in this context.
  11864. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11865. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11866. Throw exception if --check-integrity=true is specified but chunk
  11867. checksums are not provided:
  11868. * src/UrlRequestInfo.cc
  11869. Do not print URLs to stdout:
  11870. * src/UrlRequestInfo.cc
  11871. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. * src/Request.h: Use AuthResolver to get authentication information.
  11873. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11874. set to RequestFactory object.
  11875. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11876. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11877. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11878. create Request object.
  11879. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11880. To integrate Netrc into exsiting classes:
  11881. * src/Request.h
  11882. (_userDefinedAuthConfig): New variable.
  11883. (findNetrcAuthenticator): New function.
  11884. (segment): Removed.
  11885. (setUserDefinedAuthConfig): New function.
  11886. (resolveHttpAuthConfigItem): New function.
  11887. (resolveFtpAuthConfigItem): New function.
  11888. (resolveHttpProxyAuthConfigItem): New function.
  11889. * src/HttpRequest.h
  11890. (authConfig): Removed.
  11891. (proxyAuthConfig): Removed.
  11892. (setAuthConfig): Removed.
  11893. (setProxyAuthConfig): Removed.
  11894. * src/UrlRequest.h
  11895. (getHeadResult): Added a parameter: authConfigHandle
  11896. * src/common.h
  11897. (SingletonHolder.h): New include.
  11898. * src/main.cc
  11899. (Netrc.h): New include.
  11900. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11901. Added initial value of PREF_NETRC_PATH.
  11902. Added the initialization of netrc.
  11903. * src/AuthConfig.h: New class.
  11904. * src/prefs.h
  11905. (PREF_NETRC_PATH): New definition.
  11906. * src/HttpAuthConfig.h: Removed.
  11907. * src/Netrc.cc
  11908. (getRequiredNextToken): New function.
  11909. (skipMacdef): New function.
  11910. (parse): Rewritten.
  11911. * src/Netrc.h
  11912. (getRequiredNextToken): New function.
  11913. (skipMacdef): New function.
  11914. * src/Util.h, src/Util.cc
  11915. (getHomeDir): New function.
  11916. * src/TrackerWatcherComand.cc
  11917. (createRequestCommand): Use AuthConfig.
  11918. * src/FtpConnection.cc
  11919. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11920. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11921. * src/Request.cc
  11922. (findNetrcAuthenticator): New function.
  11923. (resolveHttpAuthConfigItem): New function.
  11924. (resolveFtpAuthConfigItem): New function.
  11925. (resolveHttpProxyAuthConfigItem): New function.
  11926. * src/UrlRequestInfo.cc: Use AuthConfig.
  11927. * src/HttpRequest.cc
  11928. (createRequest): Use authConfig.
  11929. (getProxyAuthString): Use authConfig.
  11930. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11931. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11932. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. To reduce overhead to find commands whose socket is either
  11934. readable or writable in the download engine loop:
  11935. * src/Command.h, src/Command.cc
  11936. (STATUS): New enum.
  11937. (status): New variable.
  11938. (statusMatch): New function.
  11939. (setStatusActive): New function.
  11940. (setStatusInactive): New function.
  11941. * src/DownloadEngine.h, src/DownloadEngine.cc
  11942. (executeCommand): New function.
  11943. (run): Simplified.
  11944. (waitData): Call Command::setStatusActive() when command's socket is
  11945. readable or writable.
  11946. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11947. To handle Segment as SegmentHandle:
  11948. * src/AbstractCommand.cc (execute): Rewritten.
  11949. * src/SegmentMan.h: Segment -> SegmentHandle
  11950. Introducded HttpResponse class, HttpRequest class to improve code
  11951. extensiveness and make it clear:
  11952. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11953. HttpResponse class.
  11954. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11955. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11956. * src/HttpConnection.cc: Contruction of http request were moved to
  11957. HttpRequest class.
  11958. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11959. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11960. * src/HttpAuthConfig.h: New class.
  11961. * src/Range.h: New class.
  11962. To make FtpTunnel{Request, Response}Command and
  11963. HttpProxy{Request, Response}Command derived from
  11964. AbstractProxy{Request, Response}Command:
  11965. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11966. Derived from AbstractProxyRequestCommand class.
  11967. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11968. Derived from AbstractProxyResponseCommand class.
  11969. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11970. Derived from AbstractProxyRequestCommand class.
  11971. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11972. Derived from AbstractProxyResponseCommand class.
  11973. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11974. : New class.
  11975. * src/AbstractProxyResponseCommand.h,
  11976. src/AbstractProxyResponseCommand.cc: New class.
  11977. To add netrc support:
  11978. * src/Netrc.h, src/Netrc.cc: New class.
  11979. * src/Util.h, src/Util.cc (split): New function.
  11980. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11981. "Content-Range" header instead of "Range" header.
  11982. * src/HttpHeader.h
  11983. (getStatus): Removed.
  11984. (setStatus): Removed.
  11985. * src/Segment.h
  11986. (getPositionToWrite): New function.
  11987. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11988. * src/HttpHeader.h
  11989. (Range.h): New include.
  11990. (status): New variable.
  11991. (HttpHeader): Initialized status with 0.
  11992. (getStatus): New function.
  11993. (setStatus): New function.
  11994. (getRange): New function.
  11995. (HttpHeaderHandle): New function.
  11996. * src/HttpHeader.cc
  11997. (getRange): New function.
  11998. * src/Request.h
  11999. (RequestWeakHandle): New definition.
  12000. * src/HttpConnection.h
  12001. (HttpConnectionHandle): New type definition.
  12002. * src/HttpConnection.cc
  12003. (receiveResponse): Set HTTP status to headers.
  12004. * src/main.cc
  12005. (showUsage): Fixed typo.
  12006. * src/Segment.h
  12007. (SegmentHandle): New type definition.
  12008. * src/BitfieldMan.h
  12009. (getMissingUnusedLength): New function.
  12010. * src/BitfieldMan.cc
  12011. (getMissingUnusedLength): New function.
  12012. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12013. To fix static initialization order problem:
  12014. * src/BitfieldManFactory.h
  12015. (defaultRandomizer): Removed.
  12016. (factory): New variable.
  12017. (getNewFactory): Removed.
  12018. (getFactoryInstance): New function.
  12019. (setDefaultRandomizer): Rewritten.
  12020. (getDefaultRandomizer): Rewritten.
  12021. * src/BitfieldManFactory.cc
  12022. (defaultRandomizer): Removed.
  12023. (factory): Initialized to 0.
  12024. (BitfieldManFactory): Initialized randomizer to 0.
  12025. * src/DefaultPieceStorage.cc
  12026. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12027. * src/Peer.cc
  12028. (Peer): getNewFactory() -> getFactoryInstance()
  12029. * src/SegmentMan.cc
  12030. (initBitfield): getNewFactory() -> getFactoryInstance()
  12031. * src/Piece.cc
  12032. (Piece): getNewFactory() -> getFactoryInstance()
  12033. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12034. To fix the bug that causes crash on Max OS X:
  12035. * src/SimpleRandomizer.h
  12036. (getInstance): Create new instance if the static variable is null.
  12037. * src/SimpleRandomizer.cc
  12038. (randomizer): Initialized to 0.
  12039. * src/BitfieldManFactory.h
  12040. (getNewFactory): Removed the call to setRandomizer().
  12041. To fix the miscalculation of the range of checksum:
  12042. * src/BitfieldMan.h
  12043. (isBitSetOffsetRange): New function.
  12044. * src/BitfieldMan.cc
  12045. (isBitSetOffsetRange): New function.
  12046. * src/SegmentMan.cc
  12047. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12048. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12049. * Release 0.10.1
  12050. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12051. To lower CPU usage in BitTorrent download when --max-upload-limit
  12052. command-line option specified:
  12053. * src/DefaultBtMessageDispatcher.cc
  12054. (sendMessages): Calculate uploading speed only when current message
  12055. is uploading data and is not sent yet.
  12056. * src/DefaultPeerStorage.h
  12057. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12058. * src/HttpResponseCommand.cc
  12059. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12060. This fixes compile error in Soralis 10.
  12061. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12062. To fix segfault in Metalink download:
  12063. * src/UrlRequestInfo.h
  12064. (filename): Removed.
  12065. (totalLength): Removed.
  12066. (setTotalLength): Removed.
  12067. (setFilename): Removed.
  12068. * src/MetalinkRequestInfo.cc
  12069. (execute): Do not set filename and totalLength to reqInfo.
  12070. Set chunk checksum to reqInfo if it is not null.
  12071. * src/HttpResponseCommand.cc
  12072. (executeInternal): Fixed filename in log.
  12073. (handleDefaultEncoding): Removed the call to initBitfield() and
  12074. markAllPiecesDone().
  12075. (handleOtherEncoding): Added HEAD method handling.
  12076. * src/FtpNegotiateCommand.cc
  12077. (executeInternal): Added SEQ_HEAD_OK handling.
  12078. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12079. return false.
  12080. * src/FtpNegotiateCommand.h
  12081. (SEQ_HEAD_OK): New definition.
  12082. * src/SegmentMan.cc
  12083. (initBitfield): Delete bitfield.
  12084. (isChunkChecksumValidationReady): Fixed the condition.
  12085. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12086. works fine.
  12087. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. * src/Xml2MetalinkProcessor.h
  12089. (xpathExists): New function.
  12090. * src/Xml2MetalinkProcessor.cc
  12091. (xpathExists): New function.
  12092. Not to send HEAD request if filename and size are available in Metalink
  12093. file:
  12094. * src/UrlRequestInfo.h
  12095. (filename): New variable.
  12096. (totalLength): New variable.
  12097. (setTotalLength): New function.
  12098. (setFilename): New function.
  12099. * src/MetalinkRequestInfo.cc
  12100. (execute): Set filename and size to UrlRequestInfo.
  12101. * src/MetalinkEntry.cc
  12102. (MetalinkEntry): Initialize size with 0.
  12103. * src/UrlRequestInfo.cc
  12104. (execute): Set filename and size to SegmentMan.
  12105. Not to download rest of the files after selected files are downloaded
  12106. in BitTorrent:
  12107. * src/PieceStorage.h
  12108. (allDownloadFinished): New function.
  12109. * src/DefaultBtAnnounce.cc
  12110. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12111. downloadFinished.
  12112. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12113. * src/DefaultPieceStorage.cc
  12114. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12115. Commented out the call to finishSelectiveDownloadingMode().
  12116. (downloadFinished): Call isFilteredAllBitSet() instead of
  12117. isAllBitSet().
  12118. (allDownloadFinished): New function.
  12119. * src/DefaultBtInteractive.cc
  12120. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12121. downloadFinished().
  12122. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12123. * src/TorrentDownloadEngine.cc
  12124. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12125. * src/BitfieldMan.h
  12126. (isFilteredAllBitSet): New function.
  12127. * src/ShareRatioSeedCriteria.h
  12128. (PieceStorage.h): New include.
  12129. (pieceStorage): New variable.
  12130. (evaluate):
  12131. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12132. * src/BitfieldMan.cc
  12133. (isFilteredAllBitSet): New function.
  12134. (isAllBitSet): Filter is not took into account.
  12135. Rename --force-truncate as --allow-overwrite:
  12136. * src/TorrentRequestInfo.cc
  12137. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12138. * src/main.cc
  12139. (showUsage): --force-truncate -> --allow-overwrite
  12140. * src/message.h
  12141. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12142. * src/prefs.h
  12143. (PREF_FORCE_TRUNCATE): Removed.
  12144. (PREF_ALLOW_OVERWRITE): New definition.
  12145. * src/SegmentMan.cc
  12146. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12147. * src/MetalinkRequestInfo.cc
  12148. (execute): Queueing message are now logged in info level.
  12149. * src/common.h
  12150. (LONG_LONG_MAX): Removed.
  12151. (LONG_LONG_MIN): Removed.
  12152. * src/HttpResponseCommand.cc
  12153. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12154. * src/FtpNegotiateCommand.cc
  12155. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12156. * src/main.cc
  12157. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12158. command-line option.
  12159. (main): Added --check-integriy and --realtime-chunk-checksum
  12160. command-line option.
  12161. --force-truncate -> --allow-overwrite
  12162. Set initial value of --check-integrity option to false.
  12163. Don't show usage when error occurs while persing command-line options.
  12164. Removed deprecated --upload-limit option.
  12165. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12166. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12167. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12168. * src/BtAllowedFastMessage.cc:
  12169. * src/BtBitfieldMessage.cc
  12170. * src/BtCancelMessage.cc
  12171. * src/BtChokeMessage.cc
  12172. * src/BtHaveAllMessage.cc
  12173. * src/BtHaveMessage.cc
  12174. * src/BtHaveNoneMessage.cc
  12175. * src/BtInterestedMessage.cc
  12176. * src/BtNotInterestedMessage.cc
  12177. * src/BtPieceMessage.cc
  12178. * src/BtPortMessage.cc
  12179. * src/BtRejectMessage.cc
  12180. * src/BtRequestMessage.cc
  12181. * src/BtSuggestPieceMessage.cc
  12182. * src/BtUnchokeMessage.cc
  12183. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12184. files are affected.
  12185. * src/ChunkChecksumValidator.cc
  12186. * src/SegmentMan.cc
  12187. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12188. To add chunk checksum validation:
  12189. * src/MetalinkEntry.h
  12190. (MetalinkChunkChecksum.h): New include.
  12191. (chunkChecksum): New variable.
  12192. * src/Request.h
  12193. (method): New variable.
  12194. (setMethod): New function.
  12195. (getMethod): New function.
  12196. (METHOD_GET): New static constant.
  12197. (METHOD_HEAD): New static constant.
  12198. * src/Xml2MetalinkProcessor.h
  12199. (getPieceHash): New function.
  12200. * src/PieceStorage.h
  12201. (markAllPiecesDone): New function.
  12202. (checkIntegrity): New function.
  12203. * src/FileAllocator.h
  12204. (NullFileAllocationMonitor.h): New include.
  12205. (FileAllocator): Initialize fileAllocationMonitor with new
  12206. NullFileAllocationMonitor().
  12207. * src/MultiDiskAdaptor.h
  12208. (messageDigest.h): Remove include.
  12209. (ctx): Removed.
  12210. (hashUpdate): Added ctx.
  12211. (MultiDiskAdaptor): Removed ctx.
  12212. (sha1Sum): Renamed as messageDigest.
  12213. (messageDigest): New function.
  12214. * src/UrlRequestInfo.h
  12215. (HeadResult): New class.
  12216. (digestAlgo): New variable.
  12217. (chunkChecksumLength): New variable.
  12218. (chunkChecksums): New variable.
  12219. (getHeadResult): New function.
  12220. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12221. (setDigestAlgo): New function.
  12222. (setChunkChecksumLength): New function.
  12223. (setChunkChecksums): New function.
  12224. * src/DefaultPieceStorage.cc
  12225. (DiskAdaptorWriter.h): New include.
  12226. (ChunkChecksumValidator.h): New include.
  12227. (markAllPiecesDone): New function.
  12228. (checkIntegrity): New function.
  12229. * src/DefaultBtContext.h
  12230. (getPieceHashes): New function.
  12231. * src/TorrentRequestInfo.cc
  12232. (execute): Try to validate chunk checksum if file already exists and
  12233. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12234. * src/messageDigest.h
  12235. (~MessageDigestContext): Added digestFree().
  12236. * src/MetalinkRequestInfo.cc
  12237. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12238. * src/DiskAdaptor.h
  12239. (messageDigest.h): New include.
  12240. (sha1Sum): Renamed as messageDigest.
  12241. (messageDigest): New function.
  12242. * src/DownloadCommand.h
  12243. (PeerStat.h): New include.
  12244. (maxDownloadSpeedLimit): New variable.
  12245. (startupIdleTime): New variable.
  12246. (lowestDownloadSpeedLimit): New variable.
  12247. (peerStat): New variable.
  12248. (setMaxDownloadSpeedLimit): New function.
  12249. (setStartupIdleTime): New function.
  12250. (setLowestDownloadSPeedLimit): New function.
  12251. * src/BtContext.h
  12252. (getPieceHashes): New function.
  12253. * src/main.cc
  12254. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12255. option to true for testing purpose.
  12256. * src/BtPieceMessage.cc
  12257. (checkPieceHash): Use messageDigest
  12258. * src/DownloadEngine.cc
  12259. (SetDescriptor): Removed.
  12260. (AccumulateActiveCommand): Removed.
  12261. (waitData): Rewritten.
  12262. (updateFdSet): Rewritten.
  12263. * src/MultiDiskAdaptor.cc
  12264. (hashUpdate): Added ctx.
  12265. (sha1Sum): Renamed as messageDigest.
  12266. (messageDigest): New function.
  12267. * src/BitfieldMan.h
  12268. (isBitRangeSet): New function.
  12269. (unsetBitRange): New function.
  12270. * src/ByteArrayDiskWriter.h
  12271. (sha1Sum): Renamed as messageDigest.
  12272. (messageDigest): New function.
  12273. * src/ConsoleDownloadEngine.cc
  12274. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12275. * src/DiskWriter.h
  12276. (messageDigest.h): New include.
  12277. (sha1Sum): Renamed as messageDigest.
  12278. (messageDigest): New function.
  12279. * src/ChunkChecksumValidator.h: New class.
  12280. * src/DiskAdaptorWriter.h: New class.
  12281. * src/prefs.h
  12282. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12283. (PREF_CHECK_INTEGRITY): New definition.
  12284. * src/HttpResponseCommand.cc
  12285. (handleDefaultEncoding): Added method "HEAD" handling.
  12286. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12287. (handleOtherEncoding):
  12288. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12289. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12290. startupIdleTime, lowestDownloadSpeedLimit to command.
  12291. * src/SegmentMan.h
  12292. (getSegmentEntryByIndex): New function.
  12293. (getSegmentEntryByCuid): New function.
  12294. (getSegmentEntryIteratorByCuid): New function.
  12295. (diskWriter): DiskWriter -> DiskWriterHandle
  12296. (pieceHashes): New variable.
  12297. (chunkHashLength): New variable.
  12298. (digestAlgo): New variable.
  12299. (FindPeerStat): Removed.
  12300. (getPeerStat): Rewritten.
  12301. (markAllPiecesDone): New function.
  12302. (checkIntegrity): New function.
  12303. (tryChunkChecksumValidation): New function.
  12304. (isChunkChecksumValidationReady): New function.
  12305. * src/BitfieldMan.cc
  12306. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12307. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12308. blocks to 0.
  12309. (isBitRangeSet): New function.
  12310. (unsetBitRange): New function.
  12311. * src/FtpNegotiateCommand.cc
  12312. (executeInternal): Set maxDownloadSpeedLimit,
  12313. startupIdleTime, lowestDownloadSpeedLimit to command.
  12314. (recvSize): Added method "HEAD" handling.
  12315. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12316. * src/AbstractSingleDiskAdaptor.cc
  12317. (sha1Sum): Renamed as messageDigest.
  12318. (messageDigest): New function.
  12319. * src/AbstractSingleDiskAdaptor.h
  12320. (sha1Sum): Renamed as messageDigest.
  12321. (messageDigest): New function.
  12322. * src/Util.h
  12323. (indexRange): New function.
  12324. * src/MetalinkEntry.cc
  12325. (MetalinkEntry): Initialized chunkChecksum to 0.
  12326. * src/ShaVisitor.cc
  12327. (~ShaVisitor): Removed the call to ctx.digestFree().
  12328. * src/SegmentMan.cc
  12329. (ChunkChecksumValidator.h): New include.
  12330. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12331. to DIGEST_ALGO_SHA1.
  12332. (~SegmentMan): Removed diskWriter.
  12333. (FindSegmentEntryByIndex): Removed.
  12334. (FindSegmentEntryByCuid): Removed.
  12335. (checkoutSegment): Rewritten.
  12336. (findSlowerSegmentEntry): Rewritten.
  12337. (getSegment): Rewritten.
  12338. (updateSegment): Rewritten.
  12339. (completeSegment): Rewritten.
  12340. (markAllPiecesDone): New function.
  12341. (checkIntegrity): New function.
  12342. (isChunkChecksumValidationReady): New function.
  12343. (tryChunkChecksumValidation): New function.
  12344. * src/Xml2MetalinkProcessor.cc
  12345. (getEntry): Get size and set it to entry.
  12346. Get chunk checksum and set it to entry.
  12347. (getPieceHash): New function.
  12348. * src/Util.cc
  12349. (sha1Sum): Removed ctx.digestFree()
  12350. (fileChecksum): Removed ctx.digestFree()
  12351. (indexRange): New function.
  12352. * src/Request.cc
  12353. (METHOD_GET): New variable.
  12354. (METHOD_HEAD): New variable.
  12355. (Request): Added method.
  12356. * src/UrlRequestInfo.cc
  12357. (FatalException.h): New include.
  12358. (message.h): New include.
  12359. (operator<<): Added operator<< for class HeadResult.
  12360. (getHeadResult): New function.
  12361. (execute): Get filename and size in separate download engine.
  12362. * src/ChunkChecksumValidator.cc: New class.
  12363. * src/DownloadCommand.cc:
  12364. (DownloadCommand): Added peerStat.
  12365. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12366. the value from Option.
  12367. The buffer size is now 16KB.
  12368. Use peerStat member instead of getting it from SegmentMan.
  12369. Use startupIdleTime member instead of gettingit from Option.
  12370. Added chunk checksum validation.
  12371. * src/AbstractDiskWriter.cc
  12372. (AbstractDiskWriter): Removed ctx.
  12373. (~AbstractDiskWriter): Removed ctx.digestFree()
  12374. (writeDataInternal): Returns the return value of write.
  12375. (readDataInternal): Returns the return value of read.
  12376. (sha1Sum): Renamed as messageDigest
  12377. (messageDigest): New function.
  12378. * src/AbstractDiwkWriter.h
  12379. (messageDigest.h): Removed include.
  12380. (ctx): Removed.
  12381. (sha1Sum): Renamed as messageDigest
  12382. (messageDigest): New function.
  12383. * src/DefaultPieceStorage.h
  12384. (markAllPiecesDone): New function.
  12385. (checkIntegrity): New function.
  12386. * src/NullFileAllocationMonitor.h: New class.
  12387. * src/MetalinkChunkChecksum.h: New class.
  12388. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12389. To decrease CPU usage in bittorrent download, calculation results in
  12390. BitfieldMan were cached and realtime fetching PeerObject was removed
  12391. with WeakHandle introduced. Option values are set to the objects
  12392. by setter before download begins.
  12393. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12394. * src/DefaultBtRequestFactory.h
  12395. (dispatcher): BtMessageDispatcherHandle ->
  12396. BtMessageDispatcherWeakHandle.
  12397. (messageFactory): New variable.
  12398. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12399. BtMessageDispatcherWeakHandle.
  12400. (setBtMessageFactory): New function.
  12401. * src/DefaultBtMessageDispatcher.cc:
  12402. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12403. from Option.
  12404. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12405. feating the value from Option.
  12406. Use messageFactory member.
  12407. * src/PeerInteractionCommand.cc
  12408. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12409. Add reverse dependencies to factory object.
  12410. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12411. dispatcher.
  12412. Set messageFactory to receiver.
  12413. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12414. btInteractive.
  12415. Set receiver to peerObject.
  12416. Set maxDownloadSpeedLimit to this.
  12417. (executeInternal): Use maxDownloadSpeedLimit member.
  12418. * src/BtChokeMessage.cc
  12419. (doReceivedAction): Use dispatcher, requestFactory member.
  12420. (onSendComplete): Use dispatcher member.
  12421. * src/PeerInteractionCommand.h
  12422. (maxDownloadSpeedLimit): New variable.
  12423. * src/DefaultBtMessageReceiver.h
  12424. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12425. (dispatcher):
  12426. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12427. (messageFactory): New variable.
  12428. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12429. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12430. (setDispatcher):
  12431. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12432. (setBtMessageFactory): New function.
  12433. * src/DefaultBtInteractive.cc
  12434. (initiateHandshake): Use messageFactory member.
  12435. (addBitfieldMessageToQueue): Use messageFactory member.
  12436. (addAllowedFastMessageToQueue): Use messageFactory member.
  12437. (decideChoking): Use messageFactory member.
  12438. (checkHave): Use messageFactory member.
  12439. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12440. (receiveMessages): Use maxDownloadSpeedLimit member.
  12441. (decideInterest): Use messageFactory member.
  12442. * src/BtRequestMessage.cc
  12443. (doReceivedAction): Use messageFactory, dispatcher member.
  12444. (onQueued): Use dispatcher member.
  12445. * src/BtPieceMessage.cc
  12446. (doReceivedAction): Use dispatcher member.
  12447. (send): Use peerConnection member.
  12448. (onWrongPiece): Use requestFactory member.
  12449. (handleChokingEvent): Use messageFactory, dispatcher member.
  12450. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12451. * src/BtMessageDispatcher.h
  12452. (BtMessageDispatcherWeakHandle): New type definition.
  12453. * src/SimpleBtMessage.cc
  12454. (send): Use peerConnection member.
  12455. * src/BtRejectMessage.cc
  12456. (doReceivedAction): Use dispatcher member.
  12457. * src/DefaultBtMessageDispatcher.h
  12458. (Option.h): Removed include.
  12459. (messageFactory): New variable.
  12460. (option): Removed.
  12461. (maxUploadSpeedLimit): New variable.
  12462. (requestTimeout): New variable.
  12463. (DefaultBtMessageDispatcher): Removed option.
  12464. Added maxUploadSpeedLimit, requestTimeout.
  12465. (setOption): Removed.
  12466. (getOption): Removed.
  12467. (setMaxUploadSpeedLimit): New function.
  12468. (setRequestTimeout): New function.
  12469. (setBtMessageFactory): New function.
  12470. * src/DefaultBtInteractive.h
  12471. (btMessageReceiver):
  12472. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12473. (dispatcher):
  12474. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12475. (btRequestFactory):
  12476. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12477. (peerConnection):
  12478. PeerConnectionHandle -> PeerConnectionWeakHandle
  12479. (messageFactory): New variable.
  12480. (option): Removed.
  12481. (keepAliveInterval): New variable.
  12482. (maxDownloadSpeedLimit): New variable.
  12483. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12484. (setBtMessageReceiver):
  12485. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12486. (setDispatcher):
  12487. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12488. (setBtRequestFactory):
  12489. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12490. (setPeerConnection):
  12491. PeerConnectionHandle -> PeerConnectionWeakHandle
  12492. (setOption): Removed.
  12493. (setKeepAliveInterval): New function.
  12494. (setMaxDownloadSpeedLimit): New function.
  12495. (setBtMessageFactory): New function.
  12496. * src/BitfieldMan.h
  12497. (cachedNumMissingBlock): New variable.
  12498. (cachedNumFilteredBlock): New variable.
  12499. (cachedCompletedLength): New variable.
  12500. (cachedFilteredComletedLength): New variable.
  12501. (cachedFilteredTotalLength): New variable.
  12502. (countMissingBlockNow): New function.
  12503. (countFilteredBlockNow): New function.
  12504. (getFilteredTotalLengthNow): New function.
  12505. (getCompletedLengthNow): New function.
  12506. (getFilteredCompletedLengthNow): New function.
  12507. (updateCache): New function.
  12508. * src/AbstractBtMessage.h
  12509. (BtMessageDispatcher.h): New include.
  12510. (PeerConnection.h): New include.
  12511. (BtRequestFactory.h): New include
  12512. (BtMessageFactory.h): New include.
  12513. (dispatcher): New variable.
  12514. (messageFactory): New variable.
  12515. (peerConnection: New variable.
  12516. (setBtMessageDispatcher): New function.
  12517. (setPeerConnection): New function.
  12518. (setBtMessageFactory): New function.
  12519. (setBtRequestFactory): New function.
  12520. * src/DefaultBtMessageFactory.cc
  12521. (setCommonProperty): Set dispatcher, requestFactory, this,
  12522. peerConnection to msg.
  12523. * src/BtRegistry.h
  12524. (BT_MESSAGE_RECEIVER): New macro.
  12525. * src/PeerConnection.h
  12526. (PeerConnectionWeakHandle): New type definition.
  12527. * src/BtMessageFactory.h
  12528. (BtMessageFactoryWeakHandle): New type definition.
  12529. * src/BitfieldMan.cc
  12530. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12531. cachedCompletedLength, cachedFilteredComletedLength,
  12532. cachedFilteredTotalLength.
  12533. Call updateCache().
  12534. (countMissingBlock): Return cachedNumMissingBlock.
  12535. (countMissingBlockNow): New function.
  12536. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12537. (countFilteredBlockNow): New function.
  12538. (setBit): Call updateCache().
  12539. (unsetBit): Call updateCache().
  12540. (setBitfield): Call updateCache().
  12541. (clearAllBit): Call updateCache().
  12542. (setAllBit): Use setBitInternal instead of setBit.
  12543. Call updateCache().
  12544. (addFilter): Call updateCache().
  12545. (enableFilter): Call updateCache().
  12546. (disableFilter): Call updateCache().
  12547. (clearFilter): Call updateCache().
  12548. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12549. (getFilteredTotalLengthNow): New function.
  12550. (getCompletedLength): Return cachedCompletedLength.
  12551. (getCompletedLengthNow): New function.
  12552. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12553. (getFilteredCompletedLengthNow): New function.
  12554. (updateCache): New function.
  12555. * src/BtMessageReceiver.h
  12556. (BtMessageReceiverWeakHandle): New type definition.
  12557. * src/DefaultBtMessageReceiver.cc
  12558. (receiveHandshake): Use messageFactory member.
  12559. (sendHandshake): Use messageFactory member.
  12560. (receiveMessage): Use messageFactory member.
  12561. * src/DefaultBtMessageFactory.h
  12562. (dispatcher): New variable.
  12563. (requestFactory): New variable.
  12564. (peerConnection): New variablle.
  12565. (setBtMessageDispatcher): New function.
  12566. (setBtRequestFactory): New function.
  12567. (setPeerConnection): New function.
  12568. * src/SharedHandle.h
  12569. (RefCount): New class.
  12570. (WeakHandle): New class.
  12571. * src/PeerObject.h
  12572. (BtMessageReceiver.h): New include.
  12573. (PeerObject): Added btMessageReceiver.
  12574. (btMessageReceiver): New variable.
  12575. * src/Util.cc
  12576. (countBit): Simplified.
  12577. * src/BtCancelMessage.cc
  12578. (doReceivedAction): Use dispatcher member.
  12579. * src/BtRequestFactory.h
  12580. (BtRequestFactoryWeakHandle): New type definition.
  12581. * src/PeerStorage.h
  12582. (downloadSpeed): int -> uint32_t
  12583. (uploadSpeed): int -> uint32_t
  12584. (sessionDownloadLength): long long int -> uint64_t
  12585. (sessionUploadLength): long long int -> uint64_t
  12586. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12587. To add RecoverableException, FatalException:
  12588. * src/AbstractCommand.cc
  12589. (onAbort): Exception -> RecoverableException
  12590. * src/PeerAbstractCommand.h
  12591. (RecoverableException.h): New include.
  12592. (onAbort): Exception -> RecoverableException.
  12593. * src/PeerInteractionCommand.cc
  12594. (onAbort): Exception -> RecoverableException.
  12595. * src/PeerAbstractCommand.cc
  12596. (execute): Exception -> RecoverableException.
  12597. (onAbort): Exception -> RecoverableException.
  12598. * src/TorrentRequestInfo.cc
  12599. (execute): Exception -> RecoverableException.
  12600. * src/MetalinkRequestInfo.cc
  12601. (execute): Exception -> RecoverableException.
  12602. * src/MetaFileUtil.cc: RecoverableException.
  12603. * src/AbstractCommand.h
  12604. (onAbort): Exception -> RecoverableException.
  12605. * src/DlRetryEx.h: Exception -> RecoverableException.
  12606. * src/DlAbortEx.h: Exception -> RecoverableException.
  12607. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12608. * src/Util.cc: Exception -> RecoverableException.
  12609. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12610. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12611. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12612. To make ID static const int
  12613. * src/BtInterestedMessage.h
  12614. (ID_t): Removed.
  12615. (ID): New variable.
  12616. (getId): Made non-const.
  12617. * src/BtPieceMessage.h
  12618. (ID_t): Removed.
  12619. (ID): New variable.
  12620. (getId): Made non-const.
  12621. * src/BtChokeMessage.h
  12622. (ID_t): Removed.
  12623. (ID): New variable.
  12624. (getId): Made non-const.
  12625. * src/BtHaveAllMessage.h
  12626. (ID_t): Removed.
  12627. (ID): New variable.
  12628. (getId): Made non-const.
  12629. * src/BtKeepAliveMessage.h
  12630. (ID_t): Removed.
  12631. (ID): New variable.
  12632. (getId): Made non-const.
  12633. * src/BtHandshakeMessage.h
  12634. (ID): New variable.
  12635. (getId): Made non-const.
  12636. * src/BtSuggestPieceMessage.h
  12637. (ID_t): Removed.
  12638. (ID): New variable.
  12639. (getId): Made non-const.
  12640. * src/BtPortMessage.h
  12641. (ID_t): Removed.
  12642. (ID): New variable.
  12643. (getId): Made non-const.
  12644. * src/AbstractBtMessage.h
  12645. (id): Removed.
  12646. (AbstractBtMessage): Removed id.
  12647. (getId): Removed.
  12648. * src/BtHaveMessage.h
  12649. (ID_t): Removed.
  12650. (ID): New variable.
  12651. (getId): Made non-const.
  12652. * src/BtAllowedFastMessage.h
  12653. (ID_t): Removed.
  12654. (ID): New variable.
  12655. (getId): Made non-const.
  12656. * src/BtCancelMessage.h
  12657. (ID_t): Removed.
  12658. (ID): New variable.
  12659. (getId): Made non-const.
  12660. * src/BtNotInterestedMessage.h
  12661. (ID_t): Removed.
  12662. (ID): New variable.
  12663. (getId): Made non-const.
  12664. * src/BtChokeMessage.h
  12665. (ID_t): Removed.
  12666. (ID): New variable.
  12667. (getId): Made non-const.
  12668. * src/BtRejectMessage.h
  12669. (ID_t): Removed.
  12670. (ID): New variable.
  12671. (getId): Made non-const.
  12672. * src/BtBitfieldMessage.h
  12673. (ID_t): Removed.
  12674. (ID): New variable.
  12675. (getId): Made non-const.
  12676. * src/BtUnchokeMessage.h
  12677. (ID_t): Removed.
  12678. (ID): New variable.
  12679. (getId): Made non-const.
  12680. * src/BtRequestMessage.h
  12681. (ID_t): Removed.
  12682. (ID): New variable.
  12683. (getId): Made non-const.
  12684. * src/BtHaveMessage.h
  12685. (ID_t): Removed.
  12686. (ID): New variable.
  12687. (getId): Made non-const.
  12688. To add --force-truncate command-line option and a check whether
  12689. the file already exists:
  12690. * src/DirectDiskAdaptor.h
  12691. (getFilePath): Made virtual public.
  12692. * src/MultiDiskAdaptor.h
  12693. (File.h): New include.
  12694. (DiskWriterEntry::fileEntry): Made private.
  12695. (DiskWriterEntry::fileExists): New function.
  12696. (DiskWriterEntry::getFileEntry): New function.
  12697. (fileExists): New function.
  12698. (getFilePath): New function.
  12699. * src/TorrentRequestInfo.cc
  12700. (FatalException.h): New include.
  12701. (message.h): New include.
  12702. (RecoverableException.h): New include.
  12703. (execute): Added a check whether file is already exists or not.
  12704. * src/DiskAdaptor.h
  12705. (fileExists): New function.
  12706. (getFilePath): New function.
  12707. * src/main.cc
  12708. (showUsage): Added an explanation of --force-truncate command-line
  12709. option.
  12710. (main): Added --force-truncate command-line option.
  12711. * src/Exception.h
  12712. (setMsg): buf[256] -> buf[1024]
  12713. * src/CopyDiskWriter.h
  12714. (getFilePath): Made public virtual.
  12715. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12716. (fileExists): New function.
  12717. * src/DownloadEngineFactory.cc
  12718. (newTorrentConsoleEngine): Don't open file here.
  12719. * src/message.h
  12720. (EX_FILE_ALREADY_EXISTS): New definition.
  12721. * src/prefs.h
  12722. (PREF_FOECE_TRUNCATE): New definition.
  12723. * src/HttpResponseCommand.cc
  12724. (handleDefaultEncoding): Added a check whether the file already exists.
  12725. * src/SegmentMan.h
  12726. (fileExists): New function.
  12727. (shouldCancelDownloadForSafety): New function.
  12728. * src/FtpNegotiateCommand.cc
  12729. (recvSize): Added a check whether the file already exists.
  12730. * src/AbstractSingleDiskAdaptor.cc
  12731. (File.h): New include.
  12732. (fileExists): New function.
  12733. * src/AbstractSingleDiskAdaptor.h
  12734. (getFilePath): Removed.
  12735. (fileExists): New function.
  12736. * src/SegmentMan.cc
  12737. (fileExists): New function.
  12738. (shouldCancelDownloadForSafety): New function.
  12739. To fix regression bug in torrent downloading:
  12740. * src/DefaultBtRequestFactory.cc
  12741. (doChokedAction): New function.
  12742. * src/DefaultBtRequestFactory.h
  12743. (doChokedAction): New function.
  12744. * src/DefaultBtMessageDispatcher.cc
  12745. (doChokedAction): Do not delete request if its target is in allowed
  12746. fast set.
  12747. * src/DefaultBtInteractive.cc
  12748. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12749. (sendKeepAlive): Send keep alive message even if the outgoing message
  12750. queue is not empty.
  12751. (decideInterest): Simplified the code.
  12752. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12753. it is already called when BtChokeMessage is received from a peer.
  12754. * src/BtRequestFactory.h
  12755. (doChokedAction): New function.
  12756. To clean up code:
  12757. * src/PeerInteractionCommand.h
  12758. (executeInternal): Added virtual keyword explicitly.
  12759. (prepareForRetry): Added virtual keyword explicitly.
  12760. (prepareForNextPeer): Added virtual keyword explicitly.
  12761. (onAbort): Added virtual keyword explicitly.
  12762. * src/RequestSlot.cc
  12763. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12764. * src/BtPieceMessage.cc
  12765. (doReceivedAction): Added a debug log of piece's bitfield.
  12766. * src/Piece.h
  12767. (getBitfieldLength): New function.
  12768. * src/ByteArrayDiskWriter.cc
  12769. (clear): Added buf = 0 to avoid double free corruption.
  12770. * src/FileAllocator.cc
  12771. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12772. Added cp.reset().
  12773. * src/BitfieldMan.h
  12774. (operator=): Rewritten.
  12775. * src/BitfieldMan.cc
  12776. (BitfieldMan): Initialized bitfield, useBitfield.
  12777. * src/PeerConnection.cc
  12778. (receiveMessage): Added a call to socket->readable() after getting
  12779. message length to avoid possible EOF.
  12780. * src/Util.cc
  12781. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12782. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12783. To add an ability to pre-allocate file space:
  12784. * src/DirectDiskAdaptor.h: Rewritten.
  12785. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12786. * src/MultiDiskAdaptor.h: Rewritten.
  12787. * src/DefaultPieceStorage.cc
  12788. (MultiDiskWriter.h): Removed include.
  12789. (PreAllocationDiskWriter.h): Removed include.
  12790. (FileAllocationMonitor.h): New include.
  12791. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12792. (initStorage): Rewritten.
  12793. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12794. * src/FileAllocator.h: New class.
  12795. * src/FileAllocator.cc: New class.
  12796. * src/FileAllocationMonitor.h: New class.
  12797. * src/FileAllocationMonitor.cc: New class.
  12798. * src/ConsoleFileAllocationMonitor.h: New class.
  12799. * src/ConsoleFileAllocationMonitor.cc: New class.
  12800. * src/AbstractSingleDiskAdaptor.h: New class.
  12801. * src/AbstractSingleDiskAdaptor.cc: New class.
  12802. * src/DiskAdaptor.h
  12803. (Directory.h): Removed include.
  12804. (DiskWriter.h): Removed include.
  12805. (FileEntry.h): Removed include.
  12806. (diskWriter): Removed.
  12807. (DiskAdaptor): Removed diskWriter.
  12808. (openFile): Made pure virtual.
  12809. (closeFile): Made pure virtual.
  12810. (openExistingFile): Made pure virtual.
  12811. (initAndOpenFile): Made pure virtual.
  12812. (writeData): Made pure virtual.
  12813. (readData): Made pure virtual.
  12814. (sha1Sum): Made pure virtual.
  12815. (getStoreDir): Returns const reference of storeDir.
  12816. (DiskAdaptorHandle): New type definition.
  12817. * src/main.cc
  12818. (ConsoleFileAllocationMonitor.h): New include.
  12819. (showUsage): Added default value description of -s option.
  12820. Added the description of --file-allocation option.
  12821. (main): Set default value of --file-allocation option to 'none'.
  12822. Added --file-allocation command-line option.
  12823. Setup FileAllocationMonitorFactory.
  12824. * src/FtpInitiateConnectionCommand.cc
  12825. (executeInternal): Removed diskWriter related processing, which was
  12826. moved to FtpNegotiationCommand.cc.
  12827. * src/DirectDiskAdaptor.cc
  12828. (getFilePath): Made non-const.
  12829. * src/CopyDiskAdaptor.h
  12830. (DiskAdaptor.h): Removed include.
  12831. (DiskWriter.h): Removed include.
  12832. (AbstractSingleDiskAdaptor.h): New include.
  12833. (getFilePath): Made non-const. Added virtual keyword.
  12834. (CopyDiskAdaptor): Removed diskWriter.
  12835. (getTempFile): Returns const reference.
  12836. (CopyDiskAdaptorHandle): New type definition.
  12837. * src/ByteArrayDiskWriter.cc
  12838. (clear): Simplified.
  12839. (initAndOpenFile): Rewritten.
  12840. (openFile): Call initAndOpenFile()
  12841. * src/MultiDiskAdaptor.cc: Rewritten.
  12842. * src/DownloadEngineFactory.cc
  12843. (FileAllocator.h): New include.
  12844. (FileAllocationMonitor.h): New include.
  12845. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12846. create DefaultDiskWriter with file allocator.
  12847. * src/DiskWriter.h
  12848. (initAndOpenFile): Added totalLength argument.
  12849. (openFile): Added totalLength argument.
  12850. * src/prefs.h
  12851. (PREF_FILE_ALLOCATION): New definition.
  12852. (V_PREALLOC): New definition.
  12853. (V_NONE): New definition.
  12854. * src/HttpResponseCommand.cc
  12855. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12856. size.
  12857. * src/FtpNegotiateCommand.cc
  12858. (Util.h): New include.
  12859. (recvSize): Open file here.
  12860. * src/Util.h
  12861. (ullitos): New function.
  12862. * src/CopyDiskWriter.h
  12863. (getFilePath): Made non-const.
  12864. * src/DefaultDiskWriter.h
  12865. (Option.h): New include.
  12866. (totalLength): Removed.
  12867. (DefaultDiskWriter): Removed totalLength.
  12868. (initAndOpenFile): Added totalLength argument.
  12869. (DefaultDiskWriterHandle): New type definition.
  12870. (createNewDiskWriter): New function.
  12871. * src/Util.cc
  12872. (ullitos): New function.
  12873. * src/DefaultDiskWriter.cc
  12874. (message.h): New include.
  12875. (FileAllocator.h): New include.
  12876. (prefs.h): New include.
  12877. (Util.h): New include.
  12878. (DefaultDiskWriter): Removed totalLength.
  12879. (initAndOpenFile): Added file allocation.
  12880. (createNewDiskWriter): New function. Just for temporary solution.
  12881. It will be rewritten later.
  12882. * src/DiskAdaptor.cc
  12883. (DiskAdaptor): Removed diskWriter.
  12884. * src/AbstractDiskWriter.cc
  12885. (LogFactory.h): New include.
  12886. (AbstractDiskWriter): Added fileAllocator, logger.
  12887. (openFile): Added totalLength argument.
  12888. * src/AbstractDiskWriter.h
  12889. (FileAllocator.h): New include.
  12890. (Logger.h): New include.
  12891. (fileAllocator): New variable.
  12892. (logger): New variable.
  12893. (openFile): Added totalLength argument. Added virtual keyword
  12894. explicitly.
  12895. (openExistingFile): Added totalLength argument. Added virtual keyword
  12896. explicitly.
  12897. (closeFile): Added virtual keyword explicitly.
  12898. (sha1Sum): Added virtual keyword explicitly.
  12899. (writeData): Added virtual keyword explicitly.
  12900. (readData): Added virtual keyword explicitly.
  12901. (setFileAllocator): New function.
  12902. * src/DefaultPieceStorage.h
  12903. (FileAllocator.h): New include.
  12904. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12905. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12906. * src/FileProgressMonitor.h: New class.
  12907. To compile aria2 on PC-BSD:
  12908. * src/DefaultBtContext.cc
  12909. (libgen.h): New include.
  12910. To fix memory leak:
  12911. * src/Exception.h
  12912. (~Exception): Delete cause. Fixed memory leak.
  12913. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12914. Rewritten a portion of bittorrent implementation:
  12915. * src/BtMessageValidator.h: New class.
  12916. * src/BtBitfieldMessageValidator.h: New class.
  12917. * src/BtHandshakeMessageValidator.h: New class.
  12918. * src/BtRequestMessageValidator.h: New class.
  12919. * src/BtSuggestPieceMessageValidator.h: New class.
  12920. * src/BtAllowedFastMessageValidator.h: New class.
  12921. * src/BtRejectMessageValidator.h: New class.
  12922. * src/BtCancelMessageValidator.h: New class.
  12923. * src/BtPieceMessageValidator.h: New class.
  12924. * src/BtHaveMessageValidator.h: New class.
  12925. * src/BtEventListener.h: New class.
  12926. * src/AbstractBtEventListener.h: New class.
  12927. * src/BtEvent.h: New class.
  12928. * src/BtChokingEvent.h: New class.
  12929. * src/BtChokedEvent.h: New class.
  12930. * src/BtCancelSendingPieceEvent.h: New class.
  12931. * src/BtAbortOutstandingRequestEvent.h: New class.
  12932. * src/Randomizer.h: New class.
  12933. * src/SimpleRandomizer.h: New class.
  12934. * src/BtMessage.h: New class.
  12935. * src/AbstractBtMessage.h: New class.
  12936. * src/SimpleBtMessage.h: New class.
  12937. * src/BtHaveMessage.h: New class.
  12938. * src/BtInterestedMessage.h: New class.
  12939. * src/BtAllowedFastMessage.h: New class.
  12940. * src/BtUnchokeMessage.h: New class.
  12941. * src/BtCancelMessage.h: New class.
  12942. * src/BtNotInterestedMessage.h: New class.
  12943. * src/BtChokeMessage.h: New class.
  12944. * src/BtHaveNoneMessage.h: New class.
  12945. * src/BtHandshakeMessage.h: New class.
  12946. * src/BtSuggestPieceMessage.h: New class.
  12947. * src/BtHaveMessage.h: New class.
  12948. * src/BtPieceMessage.h: New class.
  12949. * src/BtHaveAllMessage.h: New class.
  12950. * src/BtKeepAliveMessage.h: New class.
  12951. * src/BtPortMessage.h: New class.
  12952. * src/BtRejectMessage.h: New class.
  12953. * src/BtBitfieldMessage.h: New class.
  12954. * src/BtRequestMessage.h: New class.
  12955. * src/DefaultBtRequestFactory.h: New class.
  12956. * src/DefaultBtMessageReceiver.h: New class.
  12957. * src/BtInteractive.h: New class.
  12958. * src/BtMessageDispatcher.h: New class.
  12959. * src/DefaultBtMessageDispatcher.h: New class.
  12960. * src/DefaultBtInteractive.h: New class.
  12961. * src/BitfieldManFactory.h: New class.
  12962. * src/HandleRegistry.h: New class.
  12963. * src/BtMessageFactory.h: New class.
  12964. * src/BtMessageReceiver.h: New class.
  12965. * src/DefaultBtMessageFactory.h: New class.
  12966. * src/PeerObject.h: New class.
  12967. * src/BtRequestFactory.h: New class.
  12968. * src/SuggestPieceMessage.h: Removed.
  12969. * src/PortMessage.h: Removed.
  12970. * src/SuggestPieceMessage.h: Removed.
  12971. * src/KeepAliveMessage.h: Removed.
  12972. * src/HandshakeMessage.h: Removed.
  12973. * src/PeerInteraction.h: Removed.
  12974. * src/UnchokeMessage.h: Removed.
  12975. * src/PieceMessage.h: Removed.
  12976. * src/RequestMessage.h: Removed.
  12977. * src/InterestedMessage.h: Removed.
  12978. * src/HaveMessage.h: Removed.
  12979. * src/CancelMessage.h: Removed.
  12980. * src/RejectMessage.h: Removed.
  12981. * src/AllowedFastMessage.h: Removed.
  12982. * src/HaveNoneMessage.h: Removed.
  12983. * src/SimplePeerMessage.h: Removed.
  12984. * src/HaveAllMessage.h: Removed.
  12985. * src/BitfieldMessage.h: Removed.
  12986. * src/PeerMessageFactory.h: Removed.
  12987. * src/NotInterestedMessage.h: Removed.
  12988. * src/ChokeMessage.h: Removed.
  12989. * src/PeerMessage.h: Removed.
  12990. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12991. To know root cause of exception:
  12992. * src/Exception.h
  12993. (cause): New variable.
  12994. (Exception): Added a parameter.
  12995. (getMsg): Return const reference to msg.
  12996. (getCause): New function.
  12997. * src/DlRetryEx.h
  12998. (DlRetryEx): Added a parameter 'cause'.
  12999. Added an overloaded constructor.
  13000. (DlAbortEx): Added a parameter 'cause'.
  13001. Added an overloaded constructor.
  13002. * src/SimpleLogger.cc
  13003. (writeLog): Log nested exception messages recursively.
  13004. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13005. * src/DefaultBtProgressInfoFile.cc
  13006. (load): Fixed memory leak when the infohash doesn't match.
  13007. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13008. * src/DefaultPeerStorage.cc
  13009. (calculateStat): Simplified the code by combining 2 loops into 1.
  13010. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13011. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13012. for BitTorrent download:
  13013. * src/PeerAbstractCommand.cc
  13014. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13015. * src/main.cc:
  13016. (timeoutSpecified): Removed.
  13017. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13018. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13019. * src/TorrentRequestInfo.cc
  13020. (timeoutSpecified): Removed.
  13021. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13022. timeout value.
  13023. * src/prefs.h
  13024. (PREF_BT_TIMEOUT): New definition.
  13025. Delete unused variables:
  13026. * src/TorrentRequestInfo.cc
  13027. (requestInfo): Removed.
  13028. Move setSignalHander to Util::setGlobalSignalHandler:
  13029. * src/TorrentRequestInfo.cc:
  13030. setSignalHander -> Util::setGlobalSignalHandler
  13031. * src/main.cc
  13032. (setSignalHander): Removed.
  13033. (main): setSignalHander -> Util::setGlobalSignalHandler
  13034. * src/Util.h
  13035. (setGlobalSignalHandler): New function.
  13036. * src/Util.cc
  13037. (setGlobalSignalHandler): New function.
  13038. * src/UrlRequestInfo.cc:
  13039. setSignalHander -> Util::setGlobalSignalHandler
  13040. Reset peer status in order to exit gracefully:
  13041. * src/PeerAbstractCommand.cc
  13042. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13043. To fix the bug that causes the number of bytes uploaded is not saved
  13044. to .aria2 file:
  13045. * src/DefaultPeerStorage.h
  13046. (removedPeerSessionDownloadLength): New variable.
  13047. (removedPeerSessionUploadLength): New variable.
  13048. * src/DefaultPeerStorage.cc
  13049. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13050. removedPeerSessionUploadLength(0).
  13051. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13052. through all peers, and then add removedPeerSessionDownloadLength(
  13053. removedPeerSessionUploadLength) to it.
  13054. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13055. (to) the peer to removedPeerSessionDownloadLength
  13056. (removedPeerSessionUploadLength).
  13057. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13058. To add Metalink location option:
  13059. * src/MetalinkRequestInfo.cc
  13060. (execute): Call MetalinkEntry::setLocationPreference()
  13061. * src/main.cc
  13062. (showUsage): Added the help message for --metalink-location option.
  13063. (main): Added --metalink-location option.
  13064. * src/prefs.h
  13065. (PREF_METALINK_LOCATION): New definition.
  13066. * src/MetalinkEntry.cc
  13067. (AddLocationPreference): New function object.
  13068. (setLocationPreference): New function.
  13069. * src/Xml2MetalinkProcessor.cc
  13070. (getResource): Set location attribute to MetalinkResource
  13071. To show URLs to download
  13072. * src/UrlRequestInfo.h
  13073. (printUrls): New function.
  13074. To add multiple <file> Metalink support:
  13075. * src/MetalinkEntry.h
  13076. (MetalinkResources): Removed.
  13077. (setLocationPreference): New function.
  13078. (MetalinkEntryHandle): New type definition.
  13079. (MetalinkEntries): New type definition.
  13080. * src/Xml2MetalinkProcessor.h
  13081. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13082. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13083. (parseFile): Metalinker* -> MetalinkerHandle
  13084. * src/UrlRequestInfo.h
  13085. (execute): RequestInfo* -> RequestInfos
  13086. * src/MetalinkRequestInfo.cc
  13087. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13088. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13089. (execute): RequestInfo* -> RequestInfos
  13090. Added multiple <file> support. Print filename when it is queued.
  13091. * src/MetalinkRequestInfo.h
  13092. (execute): RequestInfo* -> RequestInfos
  13093. (getDownloadEngine): Removed.
  13094. * src/RequestInfo.h
  13095. (RequestInfoHandle): New type definition.
  13096. (RequestInfos): New type definition.
  13097. (execute): RequestInfo* -> RequestInfos
  13098. (getDownloadEngine): Removed.
  13099. * src/MetalinkResource.h
  13100. (MetalinkResourceHandle): New type definition.
  13101. (MetalinkResources): New type definition.
  13102. * src/MetalinkEntry.cc
  13103. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13104. because the element is now of type MetalinkResourceHandle.
  13105. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13106. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13107. (dropUnsupportedResource): Removed the deletion of the elements of
  13108. resources because the element is now of type MetalinkResourceHandle.
  13109. * src/Xml2MetalinkProcessor.cc
  13110. (parseFile): Metalinker* -> MetalinkerHandle
  13111. MetalinkEntry* -> MetalinkEntryHandle
  13112. Removed try-catch block.
  13113. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13114. MetalinkResource* -> MetalinkResourceHandle
  13115. Removed try-catch block.
  13116. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13117. Free result by using xmlXPathFreeObject()
  13118. * src/Metalinker.cc
  13119. (~Metalinker): Removed the deletion of entries.
  13120. MetalinkEntry* -> MetalinkEntryHandle
  13121. (queryEntry): Add multiple <file> Metalink support.
  13122. * src/Metalinker.h
  13123. (MetalinkEntries): Removed.
  13124. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13125. * src/MetalinkProcessor.h
  13126. (parseFile): Metalinker* -> MetalinkerHandle
  13127. Bug fixes:
  13128. * src/PeerChokeCommand.cc
  13129. (execute): cat01->cat02
  13130. * src/DefaultPieceStorage.cc
  13131. (DefaultPieceStorage): Added diskAdaptor(0)
  13132. * src/TrackerWatcherComand.cc:
  13133. (execute): Use btAnnounce->noMoreAnnounce()
  13134. to determin whether the function returns true or not.
  13135. * src/TrackerUpdateCommand.cc:
  13136. (execute): Use btAnnounce->noMoreAnnounce()
  13137. to determin whether the function returns true or not.
  13138. * src/FtpConnection.cc
  13139. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13140. This is the fix of the busy loop bug.
  13141. * src/DownloadCommand.cc
  13142. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13143. cached PeerStat.
  13144. The value of "name" entry in torrent file is now set by
  13145. *DiskAdaptor::setTopDir(...) methods.
  13146. * src/MultiDiskAdaptor.h
  13147. (topDir): New variable.
  13148. (setTopDir): New function.
  13149. (getTopDir): New function.
  13150. * src/MultiDiskAdaptor.cc
  13151. (getFilePath): Concat storDir, "/" and topDir.
  13152. (mkdir): Use getFilePath() to get the directory path for output.
  13153. * src/DefaultPieceStorage.cc
  13154. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13155. CopyDiskAdaptor.
  13156. * src/CopyDiskAdaptor.h
  13157. (topDir): New variable.
  13158. (setTopDir): New function.
  13159. (getTopDir): New function.
  13160. * src/CopyDiskAdaptor.cc
  13161. (fixFilename): Updated.
  13162. Misc
  13163. * src/UrlRequestInfo.h
  13164. (e): Removed.
  13165. (UrlRequestInfo): Removed e.
  13166. (getDownloadEngine): Removed.
  13167. * src/UrlRequestInfo.cc
  13168. (handler): Rewritten.
  13169. (printUrls): New function.
  13170. (execute): Call printUrls().
  13171. * src/HandshakeMessage.cc
  13172. (check): peerinteraction->getBtContext() -> btContext
  13173. * src/PeerInteraction.h
  13174. (getBtContext): Removed.
  13175. * src/TorrentRequestInfo.h
  13176. (execute): RequestInfo* -> RequestInfos
  13177. (getDownloadEngine): Removed.
  13178. * src/TorrentRequestInfo.cc
  13179. (haltRequested): Removed.
  13180. (btHaltRequested): New variable.
  13181. (torrentHandler): haltRequested -> btHaltRequested
  13182. (execute): RequestInfo* -> RequestInfos
  13183. * src/TorrentConsoleDownloadEngine.cc
  13184. (afterEachIteration): haltRequested -> btHaltRequested.
  13185. * src/ConsoleDownloadEngine.h
  13186. (initStatistics): Added virtual.
  13187. (calculateStatistics): Added virtual.
  13188. (onEndOfRun): Added virtual.
  13189. (afterEachIteration): Added virtual.
  13190. * src/ConsoleDownloadEngine.cc
  13191. (haltRequested): New variable.
  13192. (afterEachIteration): New function.
  13193. * src/main.cc
  13194. (requestInfo): Removed.
  13195. * src/SegmentMan.cc
  13196. (findSlowerSegmentEntry): Refactored.
  13197. * Release 0.9.0
  13198. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13199. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13200. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13201. * src/TorrentMan.h: Removed.
  13202. * src/TorrentMan.cc: Removed.
  13203. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13204. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13205. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13206. * src/PeerAbstractCommand.cc: Use btRuntime.
  13207. * src/BtContextAwareCommand.h: New class.
  13208. * src/FileEntry.h: Added accessor methods for following variables.
  13209. (path): Made private.
  13210. (length): Made private.
  13211. (offset): Made private.
  13212. (extracted): Made private.
  13213. (requested): Made private.
  13214. (FileEntries): New definition.
  13215. (FileEntryHandle): New definition.
  13216. * src/FileEntry.cc: New file.
  13217. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13218. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13219. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13220. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13221. * src/PieceStorage.h: New file.
  13222. * src/PeerInteractionCommand.h: Use btContext.
  13223. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13224. btRuntime.
  13225. * src/DefaultBtProgressInfoFile.h: New file.
  13226. * src/DefaultBtProgressInfoFile.cc: New file.
  13227. * src/File.cc
  13228. (Util.h): New include.
  13229. (mkdirs): New function.
  13230. * src/MultiDiskAdaptor.h
  13231. (mkdir): New function.
  13232. * src/PeerListProcessor.h
  13233. (Peers): Removed.
  13234. * src/PeerInteraction.h
  13235. (torrentMan): Removed.
  13236. (btContext): New variable.
  13237. (peerStorage): New variable.
  13238. (pieceStorage): New variable.
  13239. (btAnnounce): New variable.
  13240. (getTorrentMan): Removed.
  13241. (getBtContext): New function.
  13242. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13243. btAnnounce.
  13244. * src/HandshakeMessage.h
  13245. (TorrentMan.h): Removed.
  13246. * src/HandshakeMessage.cc: Use btContext.
  13247. * src/DefaultBtAnnounce.cc: New file.
  13248. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13249. * src/DefaultPieceStorage.cc: New file.
  13250. * src/DefaultBtContext.h: New file.
  13251. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13252. Use the accessor methods of FileEntry.
  13253. * src/CookieBox.cc: Updated to use Util::slice().
  13254. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13255. * src/common.h (SharedHandle.h): New include.
  13256. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13257. pieceStorage.
  13258. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13259. * src/DiskAdaptor.h
  13260. (topDir): Removed.
  13261. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13262. (setTopDir): Removed.
  13263. (getTopDir): Removed.
  13264. * src/BtContext.h: New file.
  13265. * src/DefaultPeerStorage.h: New file.
  13266. * src/PieceMessage.h (TorrentMan.h): Removed.
  13267. * src/RequestMessage.h (TorrentMan.h): Removed.
  13268. * src/TorrentDownloadEngine.h
  13269. (uploadLength): New variable.
  13270. (btContext): New variable.
  13271. (btRuntime): New variable.
  13272. (pieceStorage): New variable.
  13273. (peerStorage): New variable.
  13274. (btAnnounce): New variable.
  13275. (btProgressInfoFile): New variable.
  13276. (torrentMan): Removed.
  13277. (setBtContext): New function.
  13278. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13279. peerStorage, btAnnounce, btProgressInfoFile.
  13280. * src/Piece.h
  13281. (toString): New function.
  13282. (Pieces): New type definition.
  13283. * src/Peer.h
  13284. (active): New variable.
  13285. (Peer): Added active.
  13286. (activate): Set active to true.
  13287. (deactivate): Set active to false.
  13288. (isActive): New function.
  13289. (Peers): New type definition.
  13290. * src/DirectDiskAdaptor.cc
  13291. (getFilePath): Use the accessor methods of FileEntry.
  13292. * src/TorrentConsoleDownloadEngine.h
  13293. (afterEachIteration): New function.
  13294. * src/TorrentConsoleDownloadEngine.cc
  13295. (haltRequested): New variable.
  13296. (sendStatistics): Use pieceStorage, btRuntime.
  13297. (afterEachIteration): New function.
  13298. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13299. * src/Directry.h
  13300. (Directory): New function.
  13301. (DirectoryHandle): New type definition.
  13302. * src/BtProgressInfoFile.h: New file.
  13303. * src/RequestMessage.cc: Use pieceStorage.
  13304. * src/BtRuntime.h: New file.
  13305. * src/DefaultBtContext.cc: New file.
  13306. * src/BitfieldMan.h
  13307. (getCompletedLength): New function(private).
  13308. (getCompletedLength): New function.
  13309. (getFilteredCompletedLength): New function.
  13310. * src/BitfieldMan.h
  13311. (getCompletedLength): New function(private).
  13312. (getCompletedLength): New function.
  13313. (getFilteredCompletedLength): New function.
  13314. * src/MultiDiskAdaptor.cc
  13315. (mkdir): New function.
  13316. (openFile): Call mkdir().
  13317. (initAndOpenFile): Call mkdir().
  13318. * src/CancelMessage.h
  13319. (TorrentMan.h): Removed.
  13320. * src/RejectMessage.h
  13321. (TorrentMan.h): Removed.
  13322. * src/DownloadEngineFactory.cc
  13323. (DefaultPieceStorage.h): New include.
  13324. (DefaultPeerStorage.h): New include.
  13325. (DefaultBtAnnounce.h): New include.
  13326. (DefaultBtProgressInfoFile.h): New include.
  13327. (newTorrentConsoleEngine): Rewritten.
  13328. * src/ShareRatioSeedCriteria.h
  13329. (torrentMan): Removed.
  13330. (btContext): New variable.
  13331. (peerStorage): New variable.
  13332. (btRuntime): New variable.
  13333. (evaluate): Use btContext, btRuntime, peerStorage.
  13334. * src/AnnounceTier.h: New file.
  13335. * src/BtAnnounce.h: New file.
  13336. * src/BtRegistry.h: New file.
  13337. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13338. * src/PeerConnection.h (TorrentMan.h): Removed.
  13339. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13340. * src/Util.h
  13341. (slice): Added an argument.
  13342. * src/Util.cc
  13343. (slice): Added an argument to control whether trim is made or not.
  13344. * src/PeerStorage.h: New file.
  13345. * src/BtRegistry.cc: New file.
  13346. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13347. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13348. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13349. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13350. * src/TorrentRequestInfo.h
  13351. (e): Removed.
  13352. (showFileEntry): Added an argument.
  13353. (getDownloadEngine): Return 0.
  13354. * src/DefaultBtAnnounce.h: New file.
  13355. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13356. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13357. * src/PeerMessageFactory.h
  13358. (btContext): New variable.
  13359. (pieceStorage): New variable.
  13360. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13361. btAnnounce.
  13362. * src/DiskAdaptor.cc
  13363. (DiskAdaptor): Removed topDir.
  13364. (~DiskAdaptor): Removed topDir.
  13365. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13366. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13367. * src/File.h (mkdirs): New function.
  13368. * src/DefaultPeerStorage): New file.
  13369. * src/DownloadEngineFactory.h
  13370. (newTorrentConsoleEngine): Use btContext.
  13371. * src/BtContextAwareCommand.cc: New file.
  13372. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13373. * src/PeerMessage.h
  13374. (btContext): New variable.
  13375. (peerStorage): New variable.
  13376. (pieceStorage): New variable.
  13377. (setBtContext): New function.
  13378. * src/Directry.cc
  13379. (Directory): New function.
  13380. (createDir): Do nothing if name.size() == 0.
  13381. * src/AnnounceList.h
  13382. (AnnounceTier): Removed.
  13383. (AnnounceTiers): Removed.
  13384. * src/DefaultPieceStorage.h: New file.
  13385. * src/Piece.cc (toString): New function.
  13386. To fix typo:
  13387. * src/main.cc (showVersion): Fixed typo.
  13388. To fix compile warning:
  13389. * src/DelegatingPeerListProcessor.cc
  13390. (canHandle): Added "return false".
  13391. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13392. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13393. make the process of announce request testable.
  13394. * src/TrackerWatcherCommand.h
  13395. (TimeA2.h): Removed.
  13396. (interval): Removed.
  13397. (checkPoint): Removed.
  13398. (createRequestCommand): Added an argument 'url'.
  13399. (TrackerWatherCommand): Removed interval.
  13400. (createCommand): New function.
  13401. * src/DownloadEngineFactory.cc
  13402. (newTorrentConsoleEngine): Updated according to the changes in
  13403. TrackerWatherCommand.
  13404. * src/TorrentMan.cc
  13405. (DelegatingPeerListProcessor.h): New includes.
  13406. (TorrentMan): Added the initialization of announceInterval.
  13407. (isStoppedAnnounceReady): New function.
  13408. (isCompletedAnnounceReady): New function.
  13409. (isDefaultAnnounceReady): New function.
  13410. (isAnnounceReady): New function.
  13411. (getAnnounceUrl): New function.
  13412. (announceStart): New function.
  13413. (announceFailure): New function.
  13414. (announceSuccess): New function.
  13415. (isAllAnnounceFailed): New function.
  13416. (resetAnnounce): New function.
  13417. (processAnnounceResponse): New function.
  13418. (needMorePeerConnection): New function.
  13419. (noMoreAnnounce): New function.
  13420. * src/TrackerUpdateCommand.h
  13421. (getTrackerResponse): int->size_t
  13422. * src/TorrentMan.h
  13423. (isStoppedAnnounceReady): New function.
  13424. (isCompletedAnnounceReady): New function.
  13425. (isDefaultAnnounceReady): New function.
  13426. (announceInterval): New variable.
  13427. (isAnnounceReady): New function.
  13428. (getAnnounceUrl): New function.
  13429. (announceStart): New function.
  13430. (announceFailure): New function.
  13431. (announceSuccess): New function.
  13432. (isAllAnnounceFailed): New function.
  13433. (resetAnnounce): New function.
  13434. (processAnnounceResponse): New function.
  13435. (needMorePeerConnection): New function.
  13436. (noMoreAnnounce): New function.
  13437. * src/TrackerWatcherCommand.cc
  13438. (TrackerWatherCommand): Removed interval and checkPoint.
  13439. (execute): Rewritten.
  13440. (createCommand): New function.
  13441. (createRequestCommand): Rewritten.
  13442. * src/TrackerUpdateCommand.cc
  13443. (MetaFileUtil.h): Removed.
  13444. (DelegatingPeerListProcessor.h): Removed.
  13445. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13446. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13447. Request -> RequestHandle:
  13448. * src/HttpResponseCommand.h: Request->RequestHandle
  13449. * src/AbstractCommand.cc: Request->RequestHandle
  13450. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13451. * src/HttpRequestCommand.cc: Request->RequestHandle
  13452. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13453. * src/AbstractCommand.h: Request->RequestHandle
  13454. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13455. * src/HttpResponseCommand.cc: Request->RequestHandle
  13456. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13457. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13458. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13459. * src/HttpConnection.h: Request->RequestHandle
  13460. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13461. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13462. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13463. * src/DownloadCommand.h: Request->RequestHandle
  13464. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13465. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13466. * src/HttpRequestCommand.h: Request->RequestHandle
  13467. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13468. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13469. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13470. * src/HttpDownloadCommand.h: Request->RequestHandle
  13471. * src/FtpConnection.cc: Request->RequestHandle
  13472. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13473. * src/UrlRequestInfo.cc: Request->RequestHandle
  13474. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13475. * src/HttpConnection.h: Request->RequestHandle
  13476. * src/DownloadCommand.cc: Request->RequestHandle
  13477. * src/FtpConnection.h: Request->RequestHandle
  13478. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13479. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13480. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13481. * src/Request.h
  13482. (SharedHandle.h): New include.
  13483. (RequestHandle): New type definition.
  13484. (Requests): Redefined.
  13485. To add MULTITRACKER support:
  13486. * src/TrackerWatcherCommand.h
  13487. (createRequestCommand): New function.
  13488. * src/DownloadEngineFactory.cc
  13489. (newTorrentConsoleEngine): Removed req.
  13490. * src/prefs.h
  13491. (PREF_TRACKER_MAX_TRIES): New definition.
  13492. * src/TorrentMan.cc
  13493. (TorrentMan): Removed req. Added trackerNumTry.
  13494. (~TorrentMan): Removed req.
  13495. (setupInternal1): Added announceList.
  13496. * src/TorrentRequestInfo.cc
  13497. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13498. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13499. * src/main.cc
  13500. (main): Added PREF_TRACKER_MAX_TRIES.
  13501. * src/TorrentMan.h
  13502. (Request.h): Removed.
  13503. (AnnounceList.h): New include.
  13504. (trackerNumTry): New variable.
  13505. (req): Removed.
  13506. (announceList): New variable.
  13507. * src/TrackerWatcherCommand.cc
  13508. (execute): Rewritten.
  13509. (createRequestCommand): New function.
  13510. * src/TrackerUpdateCommand.cc
  13511. (execute): Updated with the use of AnnounceList.
  13512. * src/AnnounceList.cc: New class.
  13513. * src/AnnounceList.h: New class.
  13514. To fix typo:
  13515. * src/prefs.h
  13516. (PREF_MAX_TRIES): max_try->max_tries
  13517. To not to decode "+" as space in URL decode:
  13518. * src/Util.cc
  13519. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13520. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13521. To add timeout to async name resolution:
  13522. * src/AbstractCommand.h
  13523. (nameResolveFinished): New function. This is not elegant way. It needs
  13524. to be more refined.
  13525. (nameResolverCheck): New variable.
  13526. * src/AbstractCommand.cc
  13527. (AbstractCommand): Added nameResolverCheck.
  13528. (execute): Added the check whether the name resolution has finished.
  13529. (setNameResolverCheck): Set nameResolverCheck to true.
  13530. (disableNameResolverCheck): Set nameResolverCheck to false.
  13531. (nameResolverFinished): New function.
  13532. * src/FtpInitiateConnectionCommand.h
  13533. (nameResolverFinished): New function.
  13534. * src/FtpInitiateConnectionCommand.cc
  13535. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13536. * src/HttpInitiateConnectionCommand.h
  13537. (nameResolverFinished): New function.
  13538. * src/HttpInitiateConnectionCommand.cc
  13539. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13540. * src/prefs.h
  13541. (PREF_DNS_TIMEOUT): New definition.
  13542. * src/main.cc
  13543. (main): Added PREF_DNS_TIMEOUT.
  13544. To add the support for a non-compact response from a tracker:
  13545. * src/PeerListProcessor.h: New class.
  13546. * src/DefaultPeerListProcessor.h: New class.
  13547. * src/DefaultPeerListProcessor.cc: New class.
  13548. * src/CompactPeerListProcessor.h: New class.
  13549. * src/CompactPeerListProcessor.cc: New class.
  13550. * src/DelegatingPeerListProcessor.h: New class.
  13551. * src/DelegatingPeerListProcessor.cc: New class.
  13552. * src/TorrentMan.cc
  13553. (addPeer): New function(overload).
  13554. (addPeer): Delete unused peers only when new peer is added.
  13555. * src/TorrentMan.h
  13556. (PeerListProcessor.h): Included.
  13557. (Peers): Removed.
  13558. (addPeer): New function(overload).
  13559. * src/TrackerUpdateCommand.cc
  13560. (netinet/in.h): Removed.
  13561. (DelegatingPeerListProcessor.h): Included.
  13562. (execute): Updated to use DelegatingPeerListProcessor.
  13563. To fix the memory leak in TorrentMan::peers:
  13564. * src/PeerAbstractCommand.cc
  13565. (onAbort): Added peer->resetStatus().
  13566. * src/Peer.h
  13567. (resetStatus): Made public.
  13568. To improve the precision of the speed calculation:
  13569. * src/SpeedCalc.h
  13570. (nextInterval): New variable.
  13571. * src/SpeedCalc.cc
  13572. (reset): Added nextInterval.
  13573. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13574. (changeSw): Set nextInterval to 15 seconds relative to the current
  13575. instant time.
  13576. * src/main.cc
  13577. (showVersion): Updated.
  13578. (showUsage): Updated.
  13579. * Release 0.8.1
  13580. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13581. * src/main.cc
  13582. (showUsage): Commented out --min-segment-size option.
  13583. (main): Commented out --min-segment-size option.
  13584. * Release 0.8.0
  13585. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13586. * src/*.{h,cc}:
  13587. Added an exception to the license which allows linking with OpenSSL.
  13588. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13589. * src/AbstractCommand.cc
  13590. (execute): Check whether the download has finished before checking
  13591. socket status.
  13592. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13593. Do not exit even if no segment is available.
  13594. * src/prefs.h
  13595. (PREF_STARTUP_IDLE_TIME): New definition.
  13596. * src/PeerInteractionCommand.cc
  13597. (executeInternal): Removed max speed limit. Because it performs bad.
  13598. (receiveMessages): Added max speed limit. This was better than above,
  13599. but still a little bit to be desired. Sometimes the download speed
  13600. became much faster than I specified.
  13601. * src/SpeedCalc.h
  13602. (start): New variable.
  13603. (accumulatedLength): New variable.
  13604. (getAvgSpeed): New function.
  13605. * src/SpeedCalc.cc
  13606. (reset): Added start, accumulatedLength.
  13607. (update): Added calculation of an average speed.
  13608. (getAvgSpeed): New function.
  13609. * src/DownloadCommand.h
  13610. (sw): Removed.
  13611. * src/main.cc
  13612. (main): Added PREF_STARTUP_IDLE_TIME.
  13613. * src/PeerStat.h
  13614. (STATUS): Added REQUEST_IDLE.
  13615. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13616. (getAvgDownloadSpeed): New function
  13617. (requestIdle): New function.
  13618. * src/SegmentMan.h
  13619. (SegmentEntryHandle): New type definition.
  13620. (SegmentEntries): Now holds SegmentEntryHandle.
  13621. (findSlowerSegmentEntry): New funtion.
  13622. * src/SegmentMan.cc
  13623. (save): Updated according to the changes in SegmentEntries.
  13624. (read): Updated according to the changes in SegmentEntries.
  13625. (FindSegmentEntryByIndex): Updated according to the changes in
  13626. SegmentEntries.
  13627. (FindSegmentEntryByCuid): Updated according to the changes in
  13628. SegmentEntries.
  13629. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13630. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13631. Renamed uitr as itr.
  13632. (findSlowerSegmentEntry): New function.
  13633. (getSegment): Updated according to the changes in SegmentEntries.
  13634. Added the feature that cancels the segment with slow server and fast
  13635. one takes it over.
  13636. (cancelSegment): Updated according to the changes in SegmentEntries.
  13637. (getDownloadLength): Updated according to the changes in
  13638. SegmentEntries.
  13639. (init): Assigned 0 to bitfield after deleting it.
  13640. * src/DownloadCommand.cc
  13641. (STARTUP_IDLE_TIME): Removed.
  13642. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13643. * src/PeerChokeCommand.cc
  13644. (optUnchokingPeer): Updated according to the changes in Peer.
  13645. (ResetDelta): Removed.
  13646. (UploadFaster): Updated according to the changes in Peer.
  13647. (DownloadFaster): Updated according to the changes in Peer.
  13648. (execute): I clarify the meaning of "upload" and "download" here.
  13649. "upload" means the transfer from localhost to remote host.
  13650. "download" means the transfer from remote host to localhost.
  13651. Based on this rule, I swapped orderByUploadRate and
  13652. orderByDownloadRate.
  13653. * src/PeerInteractionCommand.cc
  13654. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13655. (executeInternal): Removed the argument of
  13656. peerInteraction->sendMessages().
  13657. (receiveMessages): Rewritten download speed limit.
  13658. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13659. * src/HttpResponseCommand.cc
  13660. (handleDefaultEncoding): If file size is unknown in torrent request,
  13661. do not call segmentMan->initBitfield() here.
  13662. Disabled persistent connection feature in torrent request.
  13663. * src/UrlRequestInfo.h
  13664. (UrlRequestInfo): Removed const qualifier from option.
  13665. * src/TorrentMan.h
  13666. (TransferStat): New class.
  13667. (deltaDownloadLength): Removed.
  13668. (deltaUploadLength): Removed.
  13669. (addDeltaDownloadLength): Removed.
  13670. (getDeltaDownloadLength): Removed.
  13671. (resetDeltaDownloadLength): Removed.
  13672. (addDeltaUploadLength): Removed.
  13673. (getDeltaUploadLength): Removed.
  13674. (resetDeltaUploadLength): Removed.
  13675. (addActivePeer): Added peer->activate().
  13676. (deleteActivePeer): Added peer->deactivate().
  13677. (calculateStat): New function.
  13678. * src/TorrentMan.cc
  13679. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13680. (calculateStat): New function.
  13681. * src/PeerInteraction.h
  13682. (uploadLimit): Removed.
  13683. (option): New variable.
  13684. (setUploadLimit): Removed.
  13685. (getUploadSpeed): Removed.
  13686. (sendMessages): Removed the argument "currentUploadSpeed".
  13687. * src/PeerInteraction.cc
  13688. (prefs.h): Included.
  13689. (PeerInteraction): Removed uploadLimit. Added option.
  13690. (sendMessages): Rewritten upload speed limit.
  13691. (sendHandshake): Removed the argument from sendMessages().
  13692. (sendBitfield): Removed the argument from sendMessages().
  13693. * src/PeerAbstractCommand.cc
  13694. (execute): Commented out the portion of upload limit.
  13695. (onAbort): Removed peer->resetStatus().
  13696. * src/TorrentRequestInfo.cc
  13697. (timeoutSpecified): Declared extern.
  13698. (execute): Set timeout to 180 if timeout is not specified by.
  13699. command-line.
  13700. * src/PieceMessage.cc
  13701. (receivedAction): Added peer->updateDownloadLength().
  13702. Removed peer->addPeerUpload().
  13703. Removed torrentMan->addDeltaDownloadLength().
  13704. (send): Added peer->updateUploadLength().
  13705. Removed peer->addPeerDownload().
  13706. Removed torrentMan->addDeltaUploadLength().
  13707. * src/main.cc
  13708. (timeoutSpecified): New variable.
  13709. (main): Set timeoutSpecified to false.
  13710. If the command-line option "--upload-limit" is specified, then
  13711. timeoutSpecified is set to true. This option will remain in the next
  13712. release, but be deprecated in the future release.
  13713. * src/TorrentRequestInfo.h
  13714. (TorrentRequestInfo): Removed const qualifier from op.
  13715. * src/PeerStat.h
  13716. (uploadSpeed): New variable.
  13717. (PeerStat): Added default value to cuid.
  13718. (calculateUploadSpeed): New function.
  13719. (updateUploadLength): New function.
  13720. (getMaxUploadSpeed): New function.
  13721. (getAvgUploadSpeed): New function.
  13722. (reset): Added uploadSpeed. Set status to IDLE.
  13723. * src/TorrentDownloadEngine.h
  13724. (cp): Declared as Time.
  13725. (sessionDownloadLengthArray): Removed.
  13726. (sessionUploadLengthArray): Removed.
  13727. (currentCp): Removed.
  13728. (lastCalcStat): New variable
  13729. (lastElapsed): Removed.
  13730. (sessionDownloadLength): Removed.
  13731. (calculateStat): New function.
  13732. * src/TorrentDownloadEngine.cc
  13733. (initStatistics): Removed lastElapsed, cp[],
  13734. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13735. currentCp, sessionDownloadLength.
  13736. Added cp.reset() and lastCalcStat.reset().
  13737. (calculateSpeed): Changed the name of the argument.
  13738. (calculateStatistics): Rewritten.
  13739. (calculateStat): New function.
  13740. * src/Peer.h
  13741. (PeerStat.h): Included.
  13742. (peerUpload): Removed.
  13743. (peerDownload): Removed.
  13744. (peerStat): New variable.
  13745. (sessionUploadLength): New variable.
  13746. (sessionDownloadLength): New variable.
  13747. (deltaUpload): Removed.
  13748. (deltaDownload): Removed.
  13749. (resetStatus): Made private.
  13750. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13751. Removed peerUpload, peerDownload.
  13752. (updateUploadLength): New function.
  13753. (addDeltaUpload): Removed.
  13754. (updateDownloadLength): New function.
  13755. (resetDeltaUpload): Removed.
  13756. (getDeltaUpload): Removed.
  13757. (addDeltaDownload): Removed.
  13758. (calculateUploadSpeed): New function.
  13759. (resetDeltaDownload): Removed.
  13760. (getDeltaDownload): Removed.
  13761. (calculateDownloadSpeed): New function.
  13762. (getSessionUploadLength): New function.
  13763. (getSessionDownloadLength): New function.
  13764. (activate): New function.
  13765. (deactivate): New function.
  13766. (addPeerUpload): Removed.
  13767. (setPeerUpload): Removed.
  13768. (getPeerUpload): Removed.
  13769. (addPeerDownload): Removed.
  13770. (setPeerDownload): Removed.
  13771. (getPeerDownload): Removed.
  13772. * src/Peer.cc
  13773. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13774. * src/MetalinkRequestInfo.h
  13775. (MetalinkRequestInfo): Removed const qualifier from op.
  13776. * src/RequestInfo.h
  13777. (op): Removed const qualifier.
  13778. (RequestInfo): Removed const qualifier from op.
  13779. * src/prefs.h
  13780. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13781. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13782. * src/PeerInteractionCommand.cc
  13783. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13784. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13785. * src/PeerInteraction.cc
  13786. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13787. * src/main.cc
  13788. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13789. Added the description of "--max-download-limit" option.
  13790. Removed the description of "--upload-limit" option.
  13791. Added the description of "--max-upload-limit" option.
  13792. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13793. Added "--max-download-limit" option and "--max-upload-limit" option.
  13794. Added the warning message if "--upload-limit" option is used.
  13795. * src/DownloadCommand.cc
  13796. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13797. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13798. To rewrite segment download mechanism for HTTP/FTP download.
  13799. Use BitfieldMan to manage segment download.
  13800. * src/HttpResponseCommand.h
  13801. (executeInternal): Pass the reference of segment.
  13802. * src/AbstractCommand.cc
  13803. (prepareForRetry): Call segmentMan->cancelSegment here.
  13804. (onAbort): Call segmentMan->cancelSegment here.
  13805. * src/HttpDownloadCommand.cc
  13806. (prepareForNextSegment): New function.
  13807. * src/DownloadEngineFactory.cc
  13808. (newConsoleEngine): Removed splitter.
  13809. (newTorrentConsoleEngine): Removed splitter.
  13810. * src/Request.h
  13811. (segment): Renamed from seg.
  13812. * src/FtpInitiateConnectionCommand.h
  13813. (executeInternal): Pass the reference of segment.
  13814. * src/AbstractCommand.h
  13815. (executeInternal): Pass the reference of segment.
  13816. * src/pref.h
  13817. (PREF_SEGMENT_SIZE): New definition.
  13818. * src/HttpProxyRequestCommand.h
  13819. (executeInternal): Pass the reference of segment.
  13820. * src/HttpResponseCommand.cc
  13821. (checkResponse): Allowed status 206 when a request range starts 0.
  13822. (handleDefaultEncoding): Rewritten the code related to Segment.
  13823. (handleOtherEncoding): Rewritten the code related to Segment.
  13824. * src/SegmentMan.h
  13825. (SegmentEntry): New class.
  13826. (SegmentEntries): New type definition.
  13827. (bitfield): New variable.
  13828. (usedSegmentEntries): New variable.
  13829. (onNullBitfield): New function.
  13830. (checkoutSegment): New function.
  13831. (segments): Removed.
  13832. (splitter): Removed.
  13833. (unregisterId): Removed.
  13834. (getSegment): New function(overload)
  13835. (getDownloadedSize): Removed.
  13836. (cancelSegment): New function.
  13837. (completeSegment): New function.
  13838. (initBitfield): New function.
  13839. (hasSegment): New function.
  13840. (getDownloadLength): New function.
  13841. * src/BitfieldMan.h
  13842. (getStartIndex): New function.
  13843. (getEndIndex): New function.
  13844. (getMissingUnusedIndex): New function(overload).
  13845. (getSparseMissingUnusedIndex): New function.
  13846. * src/BitfieldMan.cc
  13847. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13848. (getMissingUnusedIndex): New function(overload).
  13849. (Range): New class.
  13850. (getStartIndex): New function.
  13851. (getEndIndex): New function.
  13852. (getSparseMissingUnusedIndex): New function.
  13853. (isBitSetInternal): Return false if the given index is less than 0.
  13854. * src/HttpInitiateConnectionCommand.h
  13855. (executeInternal): Pass the reference of segment.
  13856. * src/FtpNegotiateCommand.h
  13857. (executeInternal): Pass the reference of segment.
  13858. * src/FtpNegotiateCommand.cc
  13859. (recvSize): Initialize bitfield here.
  13860. * src/FtpTunnelResponseCommand.h
  13861. (executeInternal): Pass the reference of segment.
  13862. * src/HttpConnection.cc
  13863. (createRequest): Rewritten range header processing.
  13864. * src/DownloadCommand.h
  13865. (executeInternal): Pass the reference of segment.
  13866. (prepareForRetry): Removed.
  13867. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13868. function.
  13869. * src/main.cc
  13870. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13871. * src/SegmentMan.cc
  13872. (SegmentMan): Added bitfield. Removed splitter.
  13873. (~SegmentMan): Added bitfield. Removed splitter.
  13874. (unregisterId): Removed.
  13875. (getSegment): Rewritten.
  13876. (updateSegment): Rewritten.
  13877. (save): Rewritten.
  13878. (read): Rewritten.
  13879. (finished): Rewritten.
  13880. (getDownloadedSize): Removed.
  13881. (initBitfield): New function.
  13882. (FindSegmentEntryByIndex): New function object.
  13883. (FindSegmentEntryByCuid): New function object.
  13884. (checkoutSegment): New function.
  13885. (onNullBitfield): New function.
  13886. (getSegment): New function(overload).
  13887. (CancelSegment): New function object.
  13888. (cancelSegment): New function.
  13889. (completeSegment): New function.
  13890. (hasSegment): New function.
  13891. (getDownloadLength): New function.
  13892. * src/FtpInitiateConnectionCommand.cc
  13893. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13894. * src/Segment.h: Rewritten.
  13895. * src/Segment.cc (operator<<): New function.
  13896. * src/HttpDownloadCommand.h
  13897. (prepareForNextSegment): New function.
  13898. * src/Request.cc
  13899. (resetUrl): Made segment null.
  13900. * src/DownloadEngine.cc
  13901. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13902. * src/HttpProxyRequestCommand.h
  13903. (executeInternal): Pass the reference of segment.
  13904. * src/DownloadCommand.cc
  13905. (executeInternal): Rewritten the code related to Segment.
  13906. (prepareForRetry): Removed.
  13907. (prepareForNextSegment): Rewritten.
  13908. * src/FtpTunnelResponseCommand.h
  13909. (executeInternal): Pass the reference of segment.
  13910. To add HTTP 1.1 persistent connection support(experimental)
  13911. * src/HttpRequestCommand.cc
  13912. (executeInternal): Disable keep alive if it is disabled by
  13913. configuration.
  13914. * src/Request.h
  13915. (keepAlive): New variable.
  13916. (isKeepAlive): New function.
  13917. (setKeepAlive): New function.
  13918. * src/pref.h
  13919. (PREF_HTTP_KEEP_ALIVE): New definition.
  13920. * src/HttpResponseCommand.cc
  13921. (executeInternal): Check the remote server supports keep alive.
  13922. * src/HttpConnection.cc
  13923. (createRequest): Send "Connection: close" only if keep alive is
  13924. disabled.
  13925. * src/main.cc
  13926. (main):
  13927. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13928. To add max download speed limit:
  13929. * src/pref.h
  13930. (PREF_MAX_SPEED_LIMIT): New definition.
  13931. * src/PeerInteractionCommand.cc
  13932. (executeInternal): Added max download speed limit. Not tested yet.
  13933. * src/SegmentMan.h
  13934. (PeerStats): New type definition.
  13935. (peerStats): New variable.
  13936. (registerPeerStat): New function.
  13937. (FindPeerStat): New function object.
  13938. (getPeerStat): New function.
  13939. (calculateDownloadSpeed): New function.
  13940. * src/SpeedCalc.h: New class.
  13941. * src/SpeedCalc.cc: New class.
  13942. * src/main.cc
  13943. (main):
  13944. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13945. download speed is not restricted).
  13946. * src/PeerStat.h: New class.
  13947. * src/SegmentMan.cc
  13948. (registerPeerStat): New function.
  13949. (calculateDownloadSpeed): New function.
  13950. * src/DownloadCommand.cc
  13951. (STARTUP_IDLE_TIME): New definition.
  13952. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13953. downloadStart.
  13954. (~DownloadCommand): Call peerStat->downloadStop.
  13955. (executeInternal): Added download speed limitter. Rewritten lowest
  13956. speed limitter.
  13957. * src/HttpConnection.cc
  13958. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13959. * src/AbstractCommand.cc
  13960. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13961. Added hostname to the error message.
  13962. * src/ConsoleDownloadEngine.cc
  13963. (calculateStatistics): Initialize psize with dlSize.
  13964. * src/PieceMessage.cc
  13965. (receivedAction): Do not call peerInteraction->abortPiece here.
  13966. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13967. * src/BitfieldMan.h
  13968. (clearAllUseBit): New function.
  13969. (setAllUseBit): New function.
  13970. * src/BitfieldMan.cc
  13971. (clearAllBit): Do not clear useBitfield here.
  13972. (clearAllUseBit): New function.
  13973. (setAllUseBit): New function.
  13974. * src/Piece.cc
  13975. (clearAllBlock): Call bitfield->clearAllUseBit().
  13976. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13977. To make filename URL-decoded:
  13978. * src/HttpResponseCommand.h: Updated doc.
  13979. * src/HttpResponseCommand.cc
  13980. (determinFilename): Made filename URL-decoded.
  13981. * src/FtpInitiateConnectionCommand.cc
  13982. (executeInternal): Made filename URL-decoded.
  13983. * src/Util.h (urldecode): New function.
  13984. * src/Util.cc (urldecode): New function.
  13985. To fix a bug that caused assertion failure in ares_strerror:
  13986. * src/NameResolver.cc (callback): Fixed the bug.
  13987. * Release 0.7.3
  13988. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13989. To add --seed-time and --seed-ratio command-line option:
  13990. * src/Option.h (getAsDouble): New function.
  13991. * src/Option.cc (getAsDouble): New function.
  13992. * src/SeedCheckCommand.h: New class.
  13993. * src/SeedCheckCommand.cc: New class.
  13994. * src/DownloadEngineFactory.cc
  13995. (SeedCheckCommand.h): Included.
  13996. (UnionSeedCriteria.h): Included.
  13997. (TimeSeedCriteria.h): Included.
  13998. (ShareRatioSeedCriteria.h): Included.
  13999. (newTorrentConsoleEngine): Added the processing of seed option.
  14000. * src/SeedCriteria.h: New class.
  14001. * src/ShareRatioSeedCriteria.h: New class.
  14002. * src/TimeSeedCriteria.h: New class.
  14003. * src/UnionSeedCriteria.h: New class.
  14004. * src/prefs.h
  14005. (PREF_SEED_TIME): New definition.
  14006. (PREF_SEED_RATIO): New definition.
  14007. * src/main.cc
  14008. (showUsage): Added --seed-time and --seed-ratio option.
  14009. (main): Added --seed-time and --seed-ratio option.
  14010. Made default log file name "/dev/null".
  14011. * src/SharedHandle.h
  14012. (SharedHandle): Copy constructor. Made it assignable from the
  14013. SharedHandle of the subclasses.
  14014. (operator=): Made it assignable from the SharedHandle of the
  14015. subclasses.
  14016. (getRefCount): New function.
  14017. To add notice log level and the switch to write log to stdout. This
  14018. switch is configurable per log level.
  14019. * src/Logger.h
  14020. (notice): New function.
  14021. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14022. constant.
  14023. * src/LogFactory.cc
  14024. (getInstance): The use of NullLogger was removed. A log message with
  14025. notice log level was made written to stdout along with log file.
  14026. * src/NullLogger.h
  14027. (notice): New function.
  14028. * src/SimpleLogger.h
  14029. (writeHeader): Added the 'file' argument.
  14030. (writeLog): Added the 'file' argument.
  14031. (writeFile): New function.
  14032. (stdoutField): New variable.
  14033. (SimpleLogger): Removed the default constructor.
  14034. (SimpleLogger): Made the default value of logfile 0.
  14035. (debug): Added 'virtual' keyword.
  14036. (info): Added 'virtual' keyword.
  14037. (warn): Added 'virtual' keyword.
  14038. (error): Added 'virtual' keyword.
  14039. (notice): New function.
  14040. (setStdout): New function.
  14041. * src/SimpleLogger.cc
  14042. (WRITE_LOG): Replaced writeLog with writeFile.
  14043. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14044. (SimpleLogger): Removed the default constructor.
  14045. (setStdout): New function.
  14046. (writeLog): Added the handling of NOTICE log level.
  14047. (writeFile): New function.
  14048. (notice): New function.
  14049. * src/TorrentMan.h: Updated doc.
  14050. * src/BitfieldMan.h: Updated doc.
  14051. * src/TrackerWatcherCommand.cc
  14052. (execute): Return true if error occurred in the request to the tracker
  14053. and halt is requested.
  14054. * src/TrackerUpdateCommand.cc
  14055. (execute): Return true if error occurred in the request to the tracker
  14056. and halt is requested.
  14057. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14058. DownloadEngine:
  14059. * src/TorrentConsoleDownloadEngine.h
  14060. (onSelectiveDownloadingCompletes): Removed.
  14061. * src/TorrentConsoleDownloadEngine.cc
  14062. (onSelectiveDownloadingCompletes): Removed.
  14063. * src/TorrentDownloadEngine.h
  14064. (onEndOfRun): Added 'virtual' keyword.
  14065. (afterEachIteration): Removed.
  14066. (onSelectiveDownloadingCompletes): Removed.
  14067. * src/TorrentDownloadEngine.cc
  14068. (onEndOfRun): Removed filenameFixed.
  14069. (afterEachIteration): Removed.
  14070. * src/TorrentMan.cc
  14071. (completePiece): Call onDownloadComplete here.
  14072. (onDownloadComplete): Added 2 log messages.
  14073. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14074. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14075. * src/NameResolver.h: Added the prototype declaration of callback().
  14076. To support c-ares library:
  14077. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14078. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14079. * src/FtpInitiateConnectionCommand.h:
  14080. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14081. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14082. * src/HttpInitiateConnectionCommand.h:
  14083. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14084. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14085. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14086. #1542285 by tizianomueller)
  14087. * src/HttpInitiateConnectionCommand.cc:
  14088. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14089. * src/FtpInitiateConnectionCommand.cc:
  14090. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14091. * src/DownloadEngine.h:
  14092. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14093. * src/DownloadEngine.cc:
  14094. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14095. To fix the bug that causes compilation failure with metalink-support
  14096. disabled(bug#1543587):
  14097. * src/main.cc: Fixed with the patch by tizianomueller.
  14098. * Release 0.7.2
  14099. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14100. * src/main.cc
  14101. (main): Added a message to inform users that aria2 is starting to
  14102. verify checksum.
  14103. * src/RequestInfo.cc
  14104. (printDownloadAbortMessage): Added a message to inform users that
  14105. transfer can be resumed.
  14106. * src/FeatureConfig.cc
  14107. (FEATURE_ASYNC_DNS): New definition.
  14108. (FeatureConfig): Added aysnc DNS entry.
  14109. To replace CommandUuid with Command* in SocketEntry and
  14110. NameResolverEntry:
  14111. * src/DownloadEngine.h
  14112. (CommandUuids): Removed.
  14113. (SocketEntry::commandUuid): Removed.
  14114. (SocketEntry::command): New variable.
  14115. (SocketEntry::SocketEntry): Updated.
  14116. (SocketEntry::operator==): Updated.
  14117. (NameResolverEntry::commandUuid): Removed.
  14118. (NameResolverEntry::command): New variable.
  14119. (NameResolverEntry::NameResolverEntry): Updated.
  14120. (NameResolverEntry::operator==): Updated.
  14121. (waitData): Changed the argument type.
  14122. (addSocketForReadCheck): Changed the argument type.
  14123. (deleteSocketForReadCheck): Changed the argument type.
  14124. (addSocketForWriteCheck): Changed the argument type.
  14125. (deleteSocketForWriteCheck): Changed the argument type.
  14126. (addNameResolverCheck): Changed the argument type.
  14127. (deleteNameResolverCheck): Changed the argument type.
  14128. * src/DownloadEngine.cc
  14129. (FindCommand): Removed.
  14130. (run): Removed activeUuid. Added activeCommands instead.
  14131. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14132. (AccumulateActiveCommand): New function object.
  14133. (waitData): Use AccumulateActiveCommand.
  14134. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14135. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14136. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14137. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14138. (addNameResolverCheck): Use Command instead of CommandUuid.
  14139. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14140. * src/AbstractCommand.cc
  14141. (disableReadCheckSocket): Updated according to the changes in
  14142. DownloadEngine.
  14143. (setReadCheckSocket): Updated according to the changes in
  14144. DownloadEngine.
  14145. (disableWriteCheckSocket): Updated according to the changes in
  14146. DownloadEngine.
  14147. (setWriteCheckSocket): Updated according to the changes in
  14148. DownloadEngine.
  14149. (setNameResolverCheck): Updated according to the changes in
  14150. DownloadEngine.
  14151. (disableNameResolverCheck): Updated according to the changes in
  14152. DownloadEngine.
  14153. * src/AbstractCommand.cc
  14154. (disableReadCheckSocket): Updated according to the changes in
  14155. DownloadEngine.
  14156. (setReadCheckSocket): Updated according to the changes in
  14157. DownloadEngine.
  14158. (disableWriteCheckSocket): Updated according to the changes in
  14159. DownloadEngine.
  14160. (setWriteCheckSocket): Updated according to the changes in
  14161. DownloadEngine.
  14162. * release 0.7.1
  14163. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14164. To handle the case where some BitTorrent tracker requires all letters
  14165. except for [A-Za-z0-9] is URL encoded.
  14166. * src/Util.h
  14167. (torrentUrlencode): New function.
  14168. * src/Util.cc
  14169. (ctype.h): Included.
  14170. (torrentUrlencode): New function.
  14171. * src/TrackerWatcherCommand.cc
  14172. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14173. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14174. To add asynchronous DNS support(libares):
  14175. * src/AbstractCommand.h
  14176. (setNameResolverCheck): New function.
  14177. (disableNameResolverCheck): New function
  14178. (resolveHostname): New function.
  14179. * src/AbstractCommand.cc
  14180. (setNameResolverCheck): New function.
  14181. (disableNameResolverCheck): New function
  14182. (resolveHostname): New function.
  14183. * src/FtpInitiateConnectionCommand.h
  14184. (nameResolver): New function.
  14185. * src/FtpInitiateConnectionCommand.cc
  14186. (Util.h): Included.
  14187. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14188. disableWriteCheckSocket.
  14189. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14190. (executeInternal): Added async DNS support.
  14191. * src/HttpInitiateConnectionCommand.h
  14192. (nameResolver): New function.
  14193. * src/HttpInitiateConnectionCommand.cc
  14194. (DlRetryEx.h): Included.
  14195. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14196. disableWriteCheckSocket.
  14197. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14198. (executeInternal): Added async DNS support.
  14199. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14200. by extern "C" declaration.
  14201. * src/NameResolver.cc: New class.
  14202. * src/Util.h:
  14203. (isNumberAndDotsNotation): New function
  14204. * src/Util.cc
  14205. (isNumberAndDotsNotation): New function.
  14206. * src/DownloadEngine.h
  14207. (NameResolver.h): Included.
  14208. (NameResolverEntry): New class.
  14209. (NameResolverEntries): New type definition.
  14210. (addNameResolverCheck): New function.
  14211. (deleteNameResolverCheck): New function.
  14212. * src/DownloadEngine.cc
  14213. (run): Initialize cp with 0.
  14214. (SetDescriptor::operator()): Added for NameResolverEntry.
  14215. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14216. (waitData): Check nameResolver entries.
  14217. (updateFdSet): Update fds in nameResolver entries.
  14218. (addNameResolverCheck): New function.
  14219. (deleteNameResolverCheck): new function.
  14220. * src/PeerInteractionCommand.cc
  14221. (executeInternal): Fixed wrong socket handling.
  14222. * src/main.cc
  14223. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14224. * src/Util.cc
  14225. (fileChecksum): Removed the call to ctx.digestReset().
  14226. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14227. * po/ru.po: Azamat sent me Russian translation.
  14228. * src/FtpNegotiateCommand.cc
  14229. (recvGreeting): Call disableWriteCheckSocket just after
  14230. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14231. (recvRetr): Recognized status code 125 as a acceptable response code.
  14232. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14233. case-insesitive filesystem(BUG#1531057).
  14234. * src/Time.h: Renamed as TimeA2.h.
  14235. * src/Time.cc: Renamed as TimeA2.cc.
  14236. * src/TimeA2.h: New class.
  14237. * src/TimeA2.cc: New class.
  14238. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14239. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14240. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14241. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14242. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14243. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14244. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14245. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14246. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14247. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14248. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14249. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14250. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14251. * release 0.7.0
  14252. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14253. * src/PeerChokeCommand.h
  14254. (PeerChokeCommand): Rearranged the arguments.
  14255. * src/PeerChokeCommand.cc
  14256. (PeerChokeCommand): Rearranged the arguments.
  14257. * src/MetalinkEntry.h
  14258. (Checksum.h): Included.
  14259. (md5): Removed.
  14260. (sha1): Removed.
  14261. (checksum): New variable.
  14262. (operator=): Updated.
  14263. (check): Removed.
  14264. * src/prefs.h
  14265. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14266. (PREF_FOLLOW_TORRENT): New definition.
  14267. (PREF_SELECT_FILE): New definition.
  14268. (PREF_FOLLOW_METALINK): New definition.
  14269. * src/MetalinkResource.h
  14270. (TYPE_HTTPS): Added to enum TYPE.
  14271. * src/TorrentMan.cc
  14272. (~TorrentMan): Rewritten.
  14273. * src/MultiDiskWriter.cc
  14274. (MultiDiskAdaptor): Updated according to the changes in
  14275. MessageDigestContext.
  14276. (~MultiDiskAdaptor): Updated according to the changes in
  14277. MessageDigestContext.
  14278. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14279. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14280. * src/Util.h
  14281. (fileChecksum): Updated according to the changes in
  14282. MessageDigestContext.
  14283. * src/Util.cc
  14284. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14285. (fileChecksum): Updated according to the changes in
  14286. MessageDigestContext.
  14287. * src/messageDigest.h: Rewritten.
  14288. * src/MetalinkEntry.cc
  14289. (check): Removed.
  14290. (Supported): Updated.
  14291. (dropUnsupportedResource): Fixed a memory leak.
  14292. * src/ShaVisitor.cc
  14293. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14294. (~ShaVisitor): Updated according to the changes in
  14295. MessageDigestContext.
  14296. (visit): Updated according to the changes in MessageDigestContext.
  14297. * src/main.cc
  14298. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14299. command-line option added.
  14300. * src/DownloadEngine.h
  14301. (SocketEntry): New class.
  14302. (SocketEntries): New definition.
  14303. (PairFind): Removed.
  14304. (SockCmdMap): Removed.
  14305. * src/DownloadEngine.cc
  14306. (DownloadEngine): Rewritten.
  14307. (~DownloadEngine): Rewritten.
  14308. (run): Renamed activeCommandUuids as activeUuids.
  14309. (SetDescriptor): Rewritten.
  14310. (AccumulateActiveCommandUuid): Removed.
  14311. (AccumulateActiveUuid): New function object.
  14312. (waitData): Rewritten.
  14313. (updateFdSet): Rewritten.
  14314. (addSocket): Rewritten.
  14315. (deleteSocket): Rewritten.
  14316. (addSocketForReadCheck): Rewritten.
  14317. (deleteSocketForReadCheck): Rewritten.
  14318. (addSocketForWriteCheck): Rewritten.
  14319. (deleteSocketForWriteCheck): Rewritten.
  14320. * src/Xml2MetalinkProcessor.cc
  14321. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14322. * src/DownloadCommand.cc
  14323. (executeInternal): Added the check routine for lowest speed limit.
  14324. * src/AbstractDiskWriter.cc
  14325. (AbstractDiskWriter): Updated according to the changes in
  14326. MessageDigestContext.
  14327. (~AbstractDiskWriter): Updated according to the changes in
  14328. MessageDigestContext.
  14329. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14330. * src/RequestInfo.h: New class.
  14331. * src/UrlRequestInfo.h: New class.
  14332. * src/UrlRequestInfo.cc: New class.
  14333. * src/TorrentRequestInfo.h: New class.
  14334. * src/TorrentRequestInfo.cc: New class.
  14335. * src/MetalinkRequestInfo.h: New class.
  14336. * src/MetalinkRequestInfo.cc: New class.
  14337. * src/Checksum.h: New class.
  14338. * src/DownloadEngineFactory.h: New class.
  14339. * src/DownloadEngineFactory.cc: New class.
  14340. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14341. * src/Option.h
  14342. (getAsBool): New function.
  14343. * src/Option.cc
  14344. (prefs.h): Included.
  14345. (defined): 0-length value is now recognized as undefined.
  14346. (getAsInt): Rewritten.
  14347. (getAsLLInt): Rewritten.
  14348. (getAsBool): New function.
  14349. * src/FeatureConfig.h: Rewritten.
  14350. * src/FeatureConfig.cc: Rewritten.
  14351. * src/prefs.h
  14352. (PREF_STDOUT_LOG): New definition.
  14353. (PREF_LOG): New definition.
  14354. (PREF_DIR): New definition.
  14355. (PREF_OUT): New definition.
  14356. (PREF_SPLIT): New definition.
  14357. (PREF_DAEMON): New definition.
  14358. (PREF_REFERER): New definition.
  14359. (PREF_TORRENT_FILE): New definition.
  14360. (PREF_LISTEN_PORT): New definition.
  14361. (PREF_METALINK_FILE): New definition.
  14362. (PREF_METALINK_VERSION): New definition.
  14363. (PREF_METALINK_LANGUAGE): New definition.
  14364. (PREF_METALINK_OS): New definition.
  14365. (PREF_METALINK_SERVERS): New definition.
  14366. * src/main.cc
  14367. (main): Following command-line parameters are now put into Option
  14368. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14369. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14370. metalinkLanguage, metalinkOs, metalinkServers
  14371. To fix the bug that aria2 can not handle http response header properly.
  14372. * src/HttpHeader.cc
  14373. (put): Made name lowercased.
  14374. (defined): Made name lowercased.
  14375. (getFirst): Made name lowercased.
  14376. (get): Made name lowercased.
  14377. (getFirstAsInt): Rewritten.
  14378. (getFirstAsLLInt): Rewritten.
  14379. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14380. * src/TorrentMan.h:
  14381. (advertisePiece): Updated doc.
  14382. (getAdvertisedPieceIndexes): Updated doc.
  14383. (removeAdvertisedPiece); New function.
  14384. * src/TorrentMan.cc
  14385. (FindElapsedHave): New function object.
  14386. (removeAdvertisedPiece): New function.
  14387. * src/HaveEraseCommand.h: New class.
  14388. * src/HaveEraseCommand.cc: New class.
  14389. * src/FeatureConfig.h: New class.
  14390. * src/FeatureConfig.cc: New class.
  14391. * src/Request.h
  14392. (defaultPorts): Removed.
  14393. * src/Request.cc
  14394. (FeatureConfig.h): Included.
  14395. (Request): Removed the statements related to defaultPorts.
  14396. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14397. A default port number is now retrieved from FeatureConfig.
  14398. * src/main.cc
  14399. (HaveEraseCommand.h): Included.
  14400. (showVersion): Added the output of feature list.
  14401. (main): Added HaveEraseCommand to command queue in BitTorrent
  14402. downloading.
  14403. * src/PeerInteractionCommand.h
  14404. (chokeCheckPoint): Commented out.
  14405. (periodicExecPoint): New variable.
  14406. * src/PeerInteractionCommand.cc
  14407. (executeInternal): Following methods are now called in at least every
  14408. 0.5 seconds to reduce CPU usage:
  14409. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14410. checkHave(), sendKeepAlive().
  14411. (checkLongTimePeerChoking): Commented out.
  14412. * src/BitfieldMan.h
  14413. (getNthBitIndex): Changed the method signature.
  14414. (getMissingIndexRandomly): Changed the method signature.
  14415. * src/BitfieldMan.cc
  14416. (getNthBitIndex): Rewritten
  14417. (getMissingIndexRandomly): Rewritten.
  14418. (hasMissingPiece): Rewritten.
  14419. (getMissingIndex): Refactored.
  14420. (getMissingUnusedIndex); Refactored.
  14421. (getMissingIndex): Refactored.
  14422. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14423. * src/PeerMessage.h
  14424. (Piece.h): Included.
  14425. (SharedHandle.h): Included.
  14426. (invalidate): New variable.
  14427. (uploading): New variable.
  14428. (isInvalidate): New function.
  14429. (isUploading): New function.
  14430. (onPush): New function.
  14431. (onChoked): New function.
  14432. (onCanceled): New function.
  14433. (onAbortPiece): New function.
  14434. (PeerMessageHandle): New type definition.
  14435. * src/PeerMessage.cc
  14436. (PeerMessage): Added the initialization for invalidate and uploading.
  14437. * src/CancelMessage.h
  14438. (CancelMessage): Rewritten.
  14439. * src/RejectMessage.h
  14440. (RejectMessage): Rewritten.
  14441. * src/Metalinker.h
  14442. (operator=): Defined.
  14443. * src/MetaEntry.h
  14444. (operator=): Defined.
  14445. * src/MetalinkResource.h
  14446. (operator=): Defined.
  14447. * src/AllowedFastMessage.h
  14448. (AllowedFastMessage): Rewritten.
  14449. * src/HandshakeMessage.h
  14450. (HandshakeMessage): New function(overload).
  14451. * src/HandshakeMessage.cc
  14452. (HandshakeMessage): Rewritten.
  14453. (init): New function.
  14454. * src/HaveMessage.h
  14455. (HaveMessage): Rewritten.
  14456. * src/Time.h
  14457. (operator=): Defined the function body here.
  14458. * src/Time.cc
  14459. (operator=): Removed.
  14460. * src/SocketCore.h
  14461. (operator==): Defined here.
  14462. (operator!=): Defined here.
  14463. (operator<): Defined here.
  14464. * src/SocketCore.cc
  14465. (operator==): Removed.
  14466. (operator<): Removed.
  14467. * src/BitfieldMan.h
  14468. (operator=): Defined the function body here.
  14469. * src/BitfieldMan.cc
  14470. (operator=): Removed.
  14471. * src/TorrentMan.h
  14472. (deleteErrorPeer): Removed.
  14473. (deleteUnusedPeer); New function.
  14474. * src/TorrentMan.cc
  14475. (addPeer): Call deleteUnusedPeer.
  14476. (deleteErrorPeer): Removed.
  14477. (deleteUnusedPeer): New function.
  14478. * src/PeerAbstractCommand.h
  14479. (setNoCheck): New function.
  14480. (noCheck): New variable.
  14481. * src/PeerAbstractCommand.cc
  14482. (PeerAbstractCommand): Added the initialization of noCheck.
  14483. (execute): Added a check for noCheck.
  14484. (setNoCheck): New function.
  14485. * src/Util.h
  14486. (stdio.h): Included.
  14487. * src/Util.cc
  14488. (unistd.h): Included.
  14489. * src/DefaultDiskWriter.cc
  14490. (unistd.h): Included.
  14491. * src/Peer.h
  14492. (operator==): Defined the function body here.
  14493. (operator!=): Defined the function body here.
  14494. * src/Peer.cc
  14495. (operator==): Removed.
  14496. (operator!=): Removed.
  14497. * src/Piece.h
  14498. (Piece): Defined the function body here(copy constructor).
  14499. (operator=): Defined the function body here.
  14500. (operator==): Defined the function body here.
  14501. * src/Piece.cc
  14502. (Piece): Removed(copy constructor).
  14503. (operator=): Removed.
  14504. (operator==): Removed.
  14505. * src/PeerMessageUtil.h
  14506. (ChokeMessage.h): Removed.
  14507. (UnchokeMessage.h): Removed.
  14508. (InterestedMessage.h): Removed.
  14509. (NotInterestedMessage.h): Removed.
  14510. (HaveMessage.h): Removed.
  14511. (BitfieldMessage.h): Removed.
  14512. (RequestMessage.h): Removed.
  14513. (CancelMessage.h): Removed.
  14514. (PieceMessage.h): Removed.
  14515. (HandshakeMessage.h): Removed.
  14516. (KeepAliveMessage.h): Removed.
  14517. (PortMessage.h): Removed.
  14518. (HaveAllMessage.h): Removed.
  14519. (HaveNoneMessage.h): Removed.
  14520. (PeerConnection.h): Removed.
  14521. (HandshakeMessage.h): Included.
  14522. * src/BitfieldMessage.h
  14523. (init): New function.
  14524. (BitfieldMessage): Rewritten.
  14525. (BitfieldMessage): New function(overload).
  14526. * src/RequestSlot.h
  14527. (operator=): Defined the function body here.
  14528. (operator==): Defined the function body here.
  14529. * src/RequestSlot.cc
  14530. (operator=): Removed.
  14531. (operator==): Removed.
  14532. To remove the dependency on the PeerMessage subclass from
  14533. PeerInteraction:
  14534. * src/PeerMessageFactory.h: New class.
  14535. * src/PeerMessageFactory.cc: New class.
  14536. * src/SimplePeerMessage.cc
  14537. (send): If invalidate is true then do nothing.
  14538. * src/PeerInteractionCommand.cc
  14539. (HandshakeMessage.h): Included.
  14540. (KeepAliveMessage.h): Included.
  14541. (ChokeMessage.h): Included.
  14542. (UnchokeMessage.h): Included.
  14543. (HaveMessage.h): Included.
  14544. (executeInternal): Call setNoCheck().
  14545. Removed setWriteCheckSocket(socket).
  14546. * src/PeerInteraction.h
  14547. (ChokeMessage.h): Removed.
  14548. (UnchokeMessage.h): Removed.
  14549. (InterestedMessage.h): Removed.
  14550. (NotInterestedMessage.h): Removed.
  14551. (HaveMessage.h): Removed.
  14552. (BitfieldMessage.h): Removed.
  14553. (RequestMessage.h): Removed.
  14554. (CancelMessage.h): Removed.
  14555. (PieceMessage.h): Removed.
  14556. (HandshakeMessage.h): Removed.
  14557. (KeepAliveMessage.h): Removed.
  14558. (PortMessage.h): Removed.
  14559. (HaveAllMessage.h): Removed.
  14560. (HaveNoneMessage.h): Removed.
  14561. (RejectMessage.h): Removed.
  14562. (AllowedFastMessage.h): Removed.
  14563. (SuggestPieceMessage.h): Removed.
  14564. (PeerMessageFactory.h): Included.
  14565. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14566. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14567. (PeerMessageFactory): New variable.
  14568. (createPeerMessage): Removed.
  14569. (createHandshakeMessage): Removed.
  14570. (setPeerMessageCommonProperty): Removed.
  14571. (addRequestSlot): New function.
  14572. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14573. (getPeerMessageFactory): New function.
  14574. (createRequestMessage): Removed.
  14575. (createCancelMessage): Removed.
  14576. (createPieceMessage): Removed.
  14577. (createHaveMessage): Removed.
  14578. (createChokeMessage): Removed.
  14579. (createUnchokeMessage): Removed.
  14580. (createInterestedMessage): Removed.
  14581. (createNotInterestedMessage): Removed.
  14582. (createBitfieldMessage): Removed.
  14583. (createKeepAliveMessage): Removed.
  14584. (createHaveAllMessage): Removed.
  14585. (createHaveNoneMessage): Removed.
  14586. (createRejectMessage): Removed.
  14587. (createAllowedFastMessage): Removed.
  14588. * src/PeerInteraction.cc
  14589. (PeerInteraction): Allocate PeerMessageFactory here.
  14590. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14591. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14592. PieceMessage::ID.
  14593. (addMessage): Simplified by using PeerMessage::onPush().
  14594. (addRequestSlot): New function.
  14595. (rejectAllPieceMessageInQueue): Simplified by using
  14596. PeerMessage::onChoked().
  14597. (rejectPieceMessageInQueue): Simplified by using
  14598. PeerMessage::onCanceled().
  14599. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14600. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14601. (createHandshakeMessage): Removed.
  14602. (createPeerMessage): Removed.
  14603. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14604. (setPeerMessageCommonProperty): Removed.
  14605. (createRequestMessage): Removed.
  14606. (createCancelMessage): Removed.
  14607. (createPieceMessage): Removed.
  14608. (createHaveMessage): Removed.
  14609. (createChokeMessage): Removed.
  14610. (createUnchokeMessage): Removed.
  14611. (createInterestedMessage): Removed.
  14612. (createNotInterestedMessage): Removed.
  14613. (createBitfieldMessage): Removed.
  14614. (createKeepAliveMessage): Removed.
  14615. (createHaveAllMessage): Removed.
  14616. (createHaveNoneMessage): Removed.
  14617. (createRejectMessage): Removed.
  14618. (createAllowedFastMessage): Removed.
  14619. * src/PieceMessage.h
  14620. (createRejectMessage): New function.
  14621. (PieceMessage): Rewritten.
  14622. (onChoked): New function.
  14623. (onCanceled): New function.
  14624. * src/PieceMessage.cc
  14625. (send): If invalidate is true then do nothing, just return.
  14626. (createRejectMessage): New function.
  14627. (onChoked): New function.
  14628. (onCanceled): New function.
  14629. * src/RequestMessage.h
  14630. (RequestMessage): Rewritten.
  14631. (onPush): New function.
  14632. (onAbortPiece): New function.
  14633. * src/RequestMessage.cc
  14634. (onPush): New function.
  14635. (onAbortPiece): New function.
  14636. Update fd_set when a socket is added or deleted in order to improve
  14637. performance:
  14638. * src/DownloadEngine.h
  14639. (rfdset): New variable.
  14640. (wfdset): New variable.
  14641. (updateFdSet): New function.
  14642. * src/DownloadEngine.cc
  14643. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14644. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14645. (waitData): Copy rfdset and wfdset.
  14646. (updateFdSet): New function.
  14647. (addSocket): Call updateFdSet.
  14648. (deleteSocket): Call updateFdSet.
  14649. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14650. To add the support for Metalink3.0 backward compatible links:
  14651. * src/Request.h
  14652. (SAFE_CHARS): Added '#'.
  14653. (METALINK_MARK): New definition.
  14654. * src/Request.cc
  14655. (parseUrl): Added the support for Metalink3.0 backward compatible
  14656. links.
  14657. etc
  14658. * src/PeerInteraction.cc
  14659. (MsgPushBack): Removed.
  14660. (sendMessages): Use STL copy and back_inserter.
  14661. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14662. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14663. * src/TorrentMan.h
  14664. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14665. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14666. * src/SharedHandle.h: New class.
  14667. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14668. * src/HttpResponseCommand.h
  14669. (HttpResponseCommand): Wrapped Socket.
  14670. * src/SocketCore.h
  14671. (operator==): New function.
  14672. (operator!=): New function.
  14673. (operator<): New function.
  14674. (getSockfd): New function.
  14675. (isOpen): New function.
  14676. (writeData): New function.
  14677. * src/SocketCore.cc
  14678. (operator==): New function.
  14679. (operator!=): New function.
  14680. (operator<): New function.
  14681. * src/AbstractCommand.h
  14682. (socket): Changed its type to SocketHandle.
  14683. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14684. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14685. (disableReadCheckSocket): New function.
  14686. (disableWriteCheckSocket): New function.
  14687. (readCheckTarget): Changed its type to SocketHandle.
  14688. (writeCheckTarget): Changed its type to SocketHandle.
  14689. (AbstractCommand): Replaced Socket with SocketHandle.
  14690. * src/AbstractCommand.cc
  14691. (AbstractCommand): Replaced Socket with SocketHandle.
  14692. (~AbstractCommand): Removed the deallocation for Socket object.
  14693. (disableReadCheckSocket): New function.
  14694. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14695. (disableWriteCheckSocket): New function.
  14696. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14697. * src/HttpDownloadCommand.cc
  14698. (DownloadCommand): Replaced Socket with SocketHandle.
  14699. * src/PeerAbstractCommand.h
  14700. (socket): Changed its type to SocketHandle.
  14701. (peer): Changed its type to PeerHandle.
  14702. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14703. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14704. (disableReadCheckSocket): New function.
  14705. (disableWriteCheckSocket): New function.
  14706. (readCheckTarget): Changed its type to SocketHandle.
  14707. (writeCheckTarget): Changed its type to SocketHandle.
  14708. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14709. Replaced Peer with PeerHandle.
  14710. * src/HttpRequestCommand.cc
  14711. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14712. Use disableReadCheckSocket.
  14713. * src/PeerInitiateConnectionCommand.h
  14714. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14715. * src/PeerChokeCommand.cc
  14716. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14717. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14718. (execute): Use PeerHandle.
  14719. * src/PeerConnection.h
  14720. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14721. (socket): Changed its type to SocketHandle.
  14722. (PeerConnection): Replaced Socket with SocketHandle.
  14723. * src/PeerConnection.cc
  14724. (PeerConnection): Replaced Socket with SocketHandle.
  14725. * src/PeerInteractionCommand.h
  14726. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14727. Replaced Peer with PeerHandle.
  14728. * src/PeerInteractionCommand.cc
  14729. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14730. Replaced Peer with PeerHandle.
  14731. (executeInternal): Use disableWriteCheckSocket.
  14732. Use HandshakeMessageHandle.
  14733. (receiveMessages): Use PeerMessageHandle.
  14734. (prepareForNextPeer): Use PeerHandle.
  14735. * src/HttpProxyRequestCommand.h
  14736. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14737. * src/HttpResponseCommand.cc
  14738. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14739. * src/TorrentMan.cc
  14740. (nullPeer): Added external reference.
  14741. (~TorrentMan): Removed the deallocation of the elements of peers.
  14742. (addPeer): Rewritten.
  14743. (isPeerAvailable): Use nullPeer.
  14744. (deleteOldpeers): Replaced with deleteErrorPeer.
  14745. (deleteErrorPeer): New function.
  14746. (getPeer): Use PeerHandle and nullPeer.
  14747. (hasMissingPiece): Replaced Peer with PeerHandle.
  14748. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14749. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14750. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14751. (getMissingPiece): Replaced Peer with PeerHandle.
  14752. * src/FtpNegotiateCommand.cc
  14753. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14754. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14755. (recvGreeting): Use disableWriteCheckSocket.
  14756. (recvPasv): Removed the allocation of Socket.
  14757. Use disableReadCheckSocket.
  14758. (sendRestPasv): Use disableWriteCheckSocket.
  14759. (recvRetr): Changed assertion.
  14760. * src/PeerInteraction.h
  14761. (SharedHandle.h): Included SharedHandle.h.
  14762. (PeerMessageHandle): New type definition.
  14763. (HandshakeMessageHandle): New type definition.
  14764. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14765. (peer): Changed its type to PeerHandle.
  14766. (createHandshakeMessage): Replaced HandshakeMessage with
  14767. HandshakeMessageHandle.
  14768. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14769. (PeerInteraction): Replaced Peer with PeerHandle.
  14770. Replaced Socket with SocketHandle.
  14771. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14772. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14773. (receiveHandshake): Replaced HandshakeMessage with
  14774. HandshakeMessageHandle.
  14775. * src/PeerInteraction.cc
  14776. (PeerInteraction): Replaced Peer with PeerHandle.
  14777. Replaced Socket with SocketHandle.
  14778. (~PeerInteraction): Removed the deallocation of the elements of
  14779. messageQueue.
  14780. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14781. (isSendingMessageInProgress): Replaced PeerMessage with
  14782. PeerMessageHandle.
  14783. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14784. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14785. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14786. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14787. (abortPiece): Use PeerMessageHandle.
  14788. (receiveHandshake): Replaced HandshakeMessage with
  14789. HandshakeMessageHandle. Removed try-catch block.
  14790. (createHandshakeMessage): Replaced HandshakeMessage with
  14791. HandshakeMessageHandle.
  14792. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14793. Removed try-catch block.
  14794. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14795. * src/HttpProxyResponseCommand.cc
  14796. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14797. * src/FtpTunnelResponseCommand.h
  14798. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14799. * src/HttpConnection.cc
  14800. (HttpConnection): Replaced Socket with SocketHandle.
  14801. * src/PeerAbstractCommand.cc
  14802. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14803. (~PeerAbstractCommand): Removed the deallocation of socket.
  14804. Use disableReadCheckSocket, disableWriteCheckSocket.
  14805. (disableReadCheckSocket): New function.
  14806. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14807. (disableWriteCheckSocket): New function.
  14808. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14809. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14810. * src/FtpTunnelRequestCommand.cc
  14811. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14812. (~FtpTunnelRequestCommand): Corrected indentation.
  14813. * src/DownloadCommand.h
  14814. (DownloadCommand): Replaced Socket with SocketHandle.
  14815. * src/PeerListenCommand.cc
  14816. (PeerListenCommand): Removed the initialization of socket.
  14817. (~PeerListenCommand): Removed the deallocation of socket.
  14818. (bindPort): Use SocketHandle.
  14819. (execute): Use SocketHandle and PeerHandle.
  14820. * src/FtpDowndloadCommand.cc
  14821. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14822. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14823. * src/main.cc
  14824. (main): Corrected indentation.
  14825. * src/HttpInitiateConnectionCommand.cc
  14826. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14827. (executeInternal): Removed the allocation of socket.
  14828. * src/HttpRequestCommand.h
  14829. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14830. * src/FtpNegotiationCommand.h
  14831. (dataSocket): Changed its type to SocketHandle.
  14832. (serverSocket): Changed its type to SocketHandle.
  14833. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14834. * src/TorrentMan.h
  14835. (MAX_PEER_UPDATE): Removed.
  14836. (MAX_PEERS): New definition.
  14837. (Peers): The element is now of type PeerHandle.
  14838. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14839. (getPeer): Replaced Peer with PeerHandle.
  14840. (deleteOldErrorPeers): Removed.
  14841. (deleteErrorPeer): New function.
  14842. (hasMissingPiece): Replaced Peer with PeerHandle.
  14843. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14844. (getMissingPiece): Replaced Peer with PeerHandle.
  14845. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14846. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14847. (addActivePeer): Replaced Peer with PeerHandle.
  14848. (deleteActivePeer): Replaced Peer with PeerHandle.
  14849. Added a check for the return value of find.
  14850. * src/FtpTunnelResponseCommand.cc
  14851. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14852. * src/FtpInitiateConnectionCommand.cc
  14853. (executeInternal): Removed the allocation of socket.
  14854. * src/DownloadEngine.h
  14855. (Sockets): An element is now of type SocketHandle.
  14856. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14857. (CommandUuids): New type definition.
  14858. (rsockets): Changed its type to SockCmdMap.
  14859. (wsockets): Changed its type to SockCmdMap.
  14860. (addSocket): Rewritten.
  14861. (deleteSocket): Rewritten.
  14862. (addSocketForReadCheck): Rewritten.
  14863. (deleteSocketForReadCheck): Rewritten.
  14864. (addSocketForWriteCheck): Rewritten.
  14865. (deleteSocketForWriteCheck): Rewritten.
  14866. (PairFind): New template class.
  14867. * src/HttpDownloadCommand.h
  14868. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14869. * src/FtpConnection.cc
  14870. (FtpConnection): Replaced Socket with SocketHandle.
  14871. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14872. block.
  14873. * src/InitiateConnectionCommandFactory.cc
  14874. (DlAbortEx.h): Included DlAbortEx.h.
  14875. (createInitiateConnectionCommand): Throw exception if the protocol of
  14876. requested URI is not supported.
  14877. * src/Peer.cc
  14878. (nullPeer): Changed its type to PeerHandle.
  14879. (operator==): New function.
  14880. (operator!=): New function.
  14881. * src/Peer.h
  14882. (SharedHandle.h): Included SharedHandle.h.
  14883. (operator==): New function.
  14884. (operator!=): New function.
  14885. (Peer): Added the default constructor.
  14886. Use resetStatus() to initialize member variables.
  14887. (nullPeer): Removed.
  14888. * src/TrackerUpdateCommand.cc
  14889. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14890. with MIN_PEERS.
  14891. * src/PeerListenCommand.h
  14892. (socket): Changed its type to SocketHandle.
  14893. * src/Command.h
  14894. (CommandUuid): New type definition.
  14895. (uuid): New variable.
  14896. (uuidGen): New variable.
  14897. (Command): Added the initialization of uuid.
  14898. (getUuid): New function.
  14899. * src/Socket.h
  14900. (Socket): Removed.
  14901. (SocketHandle): New type definition.
  14902. * src/DownloadEngine.h
  14903. (FindCommand): New function object.
  14904. (run): The portion of socket check was rewritten.
  14905. (SetDescriptor): New function object.
  14906. (AccumulateActiveCommandUuid): New function object.
  14907. (waitData): Rewritten.
  14908. (addSocket): Rewritten.
  14909. (deleteSocket): Rewritten.
  14910. (addSocketForReadCheck): Rewritten.
  14911. (addSocketForWriteCheck): Rewritten.
  14912. (deleteSocketForReadCheck): Rewritten.
  14913. (deleteSocketForWriteCheck): Rewritten.
  14914. * src/HttpProxyResponseCommand.h
  14915. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14916. * src/HttpConnection.h
  14917. (socket): Changed its type to SocketHandle.
  14918. (HttpConnection): Replaced Socket with SocketHandle.
  14919. * src/PeerInitiateConnectionCommand.cc
  14920. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14921. (executeInternal): Removed the allocation of socket.
  14922. (prepareForNextPeer): Use PeerHandle.
  14923. * src/PeerMessage.h
  14924. (peer): Changed its type to PeerHandle.
  14925. (getPeer): Replaced Peer with PeerHandle.
  14926. (setPeer): Replaced Peer with PeerHandle.
  14927. * src/DownloadCommand.cc
  14928. (DownloadCommand): Replaced Socket with SocketHandle.
  14929. * src/FtpConnection.h
  14930. (socket): Changed its type to SocketHandle.
  14931. (FtpConnection): Replaced Socket with SocketHandle.
  14932. (sendPort); Replaced Socket with SocketHandle.
  14933. * src/FtpDowndloadCommand.h
  14934. (ctrlSocket): Changed its type to SocketHandle.
  14935. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14936. * src/HttpProxyRequestCommand.cc
  14937. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14938. * src/FtpTunnelRequestCommand.h
  14939. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14940. etc
  14941. * src/PeerChokeCommand.h
  14942. (setAllPeerChoked): Removed.
  14943. (setAllPeerResetDelta): Removed.
  14944. * src/PeerChokeCommand.cc
  14945. (setAllPeerChoked): Removed.
  14946. (ChokePeer): New function object.
  14947. (setAllPeerResetDelta): Removed.
  14948. (ResetDelta): New function object.
  14949. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14950. (execute): Show download speed when the local node is a seeder.
  14951. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14952. using STL.
  14953. * src/TrackerWatcherCommand.h
  14954. (MIN_PEERS): Removed.
  14955. * src/TorrentMan.cc
  14956. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14957. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14958. To fix the bug that .aria2 file is not saved if downloading is stopped
  14959. by the errors:it results that aria2 can not resume downloading:
  14960. * src/main.cc
  14961. (normalDownload): Added the call to save().
  14962. (main): Added the deletion of the elements in 'reserved'.
  14963. To fix log:
  14964. * src/PeerInteraction.cc
  14965. (receiveHandshake): Fixed log.
  14966. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14967. To improve download performance in BitTorrent:
  14968. * src/TorrentMan.cc
  14969. (getPeer): Check the number of connections. Return nullPeer if
  14970. it is greater than MAX_PEER_UPDATE.
  14971. This code was originally here, but was removed in 0.5.1.
  14972. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14973. To improve the conditional compilation:
  14974. * src/MultiDiskWriter.h:
  14975. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14976. * src/MultiDiskWriter.cc:
  14977. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14978. * src/Util.h:
  14979. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14980. Added ENABLE_BITTORRENT around computeFastSet().
  14981. * src/Util.cc:
  14982. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14983. Added ENABLE_BITTORRENT around computeFastSet().
  14984. * src/messageDigest.h:
  14985. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14986. * src/ShaVisitor.h:
  14987. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14988. * src/ShaVisitor.cc:
  14989. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14990. * src/main.cc:
  14991. Added ENABLE_BITTORRENT around includes and blocks related to
  14992. BitTorrent.
  14993. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14994. digest support is not available.
  14995. * src/AbstractDiskWriter.h:
  14996. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14997. * src/AbstractDiskWriter.cc:
  14998. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14999. * src/MetalinkEntry.cc
  15000. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15001. support is not available.
  15002. To add command-line options for Metalink:
  15003. * src/main.cc:
  15004. Added metalink-version, metalink-language, metalink-os,
  15005. follow-metalink.
  15006. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15007. * src/main.cc: Use these definition.
  15008. * Release 0.6.0
  15009. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15010. To add Metalink support(http/ftp only):
  15011. * src/AbstractCommand.h
  15012. (tryReserved): New function.
  15013. * src/AbstractCommand.cc
  15014. (execute): Call tryReserved().
  15015. (tryReserved): New function.
  15016. * src/Request.h
  15017. (Requests): New type definition.
  15018. * src/SegmentMan.h
  15019. (reserved): New variable.
  15020. * src/Util.h
  15021. (fileChecksum): New function.
  15022. (toUpper): New function.
  15023. (toLower): New function.
  15024. * src/Util.cc
  15025. (messageDigest.h): Included.
  15026. (trim): Trim \r\n\t.
  15027. (fileChecksum): New function.
  15028. (toUpper): New function.
  15029. (toLower): New function.
  15030. * src/main.cc
  15031. (normalDownload): New function.
  15032. (main): Added 2 command-line options: metalink-file,
  15033. metalink-connection. Their usage has not been written yet.
  15034. * src/MetalinkProcessor.h: New class.
  15035. * src/Xml2MetalinkProcessor.h: New class.
  15036. * src/Xml2MetalinkProcessor.cc: New class.
  15037. * src/MetalinkEntry.h: New class.
  15038. * src/MetalinkEntry.cc: New class.
  15039. * src/MetalinkResource.h: New class.
  15040. * src/MetalinkResource.cc: New class.
  15041. To add md5 message digest checking:
  15042. * src/messageDigest.h: Rewritten.
  15043. * src/MultiDiskWriter.cc: Updated according to the changes in
  15044. messageDigest.h.
  15045. * src/ShaVisitor.cc: Updated according to the changes in
  15046. messageDigest.h.
  15047. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15048. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15049. messageDigest.h.
  15050. To fix a bug that causes segfault when the payload length in peer
  15051. message is less than 0:
  15052. * src/PeerConnection.cc:
  15053. (receiveMessage): Fixed the bug.
  15054. * src/PeerMessageUtil.cc
  15055. (checkLength): Throw an exception if length is less than or equals to
  15056. 0.
  15057. To add new interfaces to Base64 encoding/decoding:
  15058. * src/Base64.h
  15059. (part_encode): Changed the method signature.
  15060. (encode): New function(overload).
  15061. (decode): New function(overload).
  15062. * src/Base64.cc
  15063. (part_encode): Rewritten.
  15064. (encode): Rewritten.
  15065. (encode): New function(overload).
  15066. To prevent a peer to download same piece if there is an error in
  15067. checksum:
  15068. * src/PieceMessage.cc
  15069. (receivedAction): Call peerInteraction->abortPiece().
  15070. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15071. To fix the bug that causes same have message is sent many times to
  15072. a single peer.
  15073. * src/Time.cc
  15074. (isNewer): Use Util::difftv().
  15075. * src/Util.cc
  15076. (difftv): Added a cast to (long long int).
  15077. * src/TorrentMan.cc
  15078. (advertisePiece): Use push_front.
  15079. (getAdvertisedPieceIndexes): A performance improvement was made.
  15080. To fix the bug that sends tracker requests without a sleep interval
  15081. when the number of connections is less than 15.
  15082. * src/TrackerWatcherCommand.cc
  15083. (execute): Now the number of connections is not a factor to decide
  15084. whether or not a tracker request should be sent or not.
  15085. * src/Time.h
  15086. (setTimeInSec): New function.
  15087. * src/Time.cc
  15088. (setTimeInSec): New function.
  15089. etc.
  15090. * src/ChokeMessage.cc
  15091. (receivedAction): Removed peer->snubbing = false
  15092. * src/PeerConnection.h
  15093. (receiveHandshake): Updated doc.
  15094. * src/TorrentMan.h
  15095. (getAdvertisedPieceIndexes): Updated the method signature.
  15096. * src/TorrentMan.cc
  15097. (getAdvertisedPieceIndexes): Updated the method signature.
  15098. * src/Time.h
  15099. (getTimeInMicros): Added a cast to (long long int).
  15100. (getTimeInMillis): Added a cast to (long long int).
  15101. * Release 0.5.2
  15102. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15103. To make a listening socket non-block:
  15104. * src/SocketCore.h
  15105. (setNonBlockingMode): New function.
  15106. * src/SocketCore.cc
  15107. (setNonBlockingMode): New function.
  15108. (beginListen): Added a call to setNonBlockingMode().
  15109. (acceptConnection): Call setNonBlockingMode().
  15110. (setBlockingMode): Updated.
  15111. To handle tracker's NAT-checking:
  15112. * src/PeerConnection.cc
  15113. (receiveHandshake): 'msg' param is filled with received data and
  15114. its length is assigned to 'length' param, even if all handshake
  15115. message is not yet received.
  15116. * src/PeerInteractionCommand.cc
  15117. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15118. a new peer connects to localhost.
  15119. A call to peerInteraction->sendHandshake() was removed because
  15120. it is called from peerInteraction->receiveHandshake(true).
  15121. * src/PeerInteraction.h
  15122. (quickReplied): New variable.
  15123. (receiveHandshake): Added an argument.
  15124. * src/PeerInteraction.cc
  15125. (PeerInteraction): Added the initialization of quickReplied.
  15126. (receiveHandshake): Send handshake message as soon as the info hash
  15127. in a handshake message from a peer is correct.
  15128. To change the random part of peer id and key parameter:
  15129. * src/TorrentMan.h
  15130. (key): New variable.
  15131. * src/TorrentMan.cc
  15132. (setupInternal1): Use Util::randomAlpha() to generate random part
  15133. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15134. key is also generated by Util::randomAlpha() and it is now 8 character
  15135. long.
  15136. * src/Util.h
  15137. (randomAlpha): New function.
  15138. * src/Util.cc
  15139. (randomAlpha): New function.
  15140. * src/TrackerWatcherCommand.cc
  15141. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15142. Added no_peer_id=1.
  15143. Set snubbing flag to false when a choke message is received from a
  15144. snubbed peer.
  15145. * src/ChokeMessage.cc
  15146. (receivedAction): Set snubbing flag to false.
  15147. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15148. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15149. * src/SimpleLogger.h (writeHeader): New function.
  15150. * src/SimpleLogger.cc (writeHeader): New function.
  15151. (writeLog): Fixed the bug that causes segfaults if exception message
  15152. contains an unescaped "%" character.
  15153. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15154. when a tracker request fails.
  15155. * src/Request.cc (parseUrl): Query string is now handled properly.
  15156. * Release 0.5.1
  15157. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15158. To add Time class which represents a specific instant in time and
  15159. its precision is microseconds. Time checking procedures were rewritten
  15160. using this object.
  15161. * src/Time.h: New class.
  15162. * src/Time.cc: New class.
  15163. * src/AbstractCommand.h
  15164. (updateCheckPoint): Removed.
  15165. (isTimeoutDetected): Removed.
  15166. (checkPoint): Changed the type to Time.
  15167. (timeout): New variable.
  15168. (setTimeout): New function.
  15169. * src/AbstractCommand.cc
  15170. (AbstractCommand): Removed the initialization of checkPoint.
  15171. Added the initialization of timeout.
  15172. (updateCheckPoint): Removed.
  15173. (isTimeoutDetected): Removed.
  15174. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15175. * src/PeerChokeCommand.h
  15176. (checkPoint): Changed the type to Time.
  15177. * src/PeerChokeCommand.cc
  15178. (PeerChokeCommand): Removed the initialization of checkPoint.
  15179. (execute): Rewritten using Time object.
  15180. * src/TrackerWatcherCommand.h
  15181. (checkPoint): Changed the type to Time.
  15182. * src/TrackerWatcherCommand.cc
  15183. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15184. (execute): Rewritten.
  15185. * src/ConsoleDownloadEngine.h
  15186. (cp): Changed the type to Time.
  15187. (startup): Changed the type to Time.
  15188. * src/ConsoleDownloadEngine.cc
  15189. (initStatistics): Use cp.reset(), startup.reset().
  15190. (calculateStatistics): Rewritten using Time object.
  15191. * src/PeerAbstractCommand.h
  15192. (updateCheckPoint): Removed.
  15193. (isTimeoutDetected): Removed.
  15194. (checkPoint): Changed the type to Time.
  15195. * src/PeerAbstractCommand.cc
  15196. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15197. (updateCheckPoint): Removed.
  15198. (isTimeoutDetected): Removed.
  15199. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15200. * src/PeerInteractionCommand.cc
  15201. (PeerInteractionCommand): Removed the initializations of struct
  15202. timeval variables.
  15203. * src/PeerInteractionCommand.h
  15204. (keepAliveCheckPoint): Changed the type to Time.
  15205. (chokeCheckPoint): Changed the type to Time.
  15206. (freqCheckPoint): Changed the type to Time.
  15207. (haveCheckTime): Changed the type to Time.
  15208. * src/PeerInteractionCommand.cc
  15209. (executeInternal): Rewritten using Time object.
  15210. (detectMessageFlooding): Rewritten using Time object.
  15211. (checkLongTimePeerChoking): Rewritten using Time object.
  15212. (sendKeepAlive): Rewritten using Time object.
  15213. (checkHave): Rewritten using Time object.
  15214. * src/SleepCommand.h
  15215. (checkPoint): Changed the type to Time.
  15216. * src/SleepCommand.cc
  15217. (SleepCommand): Removed the initialization of checkPoint.
  15218. (execute): Rewritten using Time object.
  15219. * src/TorrentAutoSaveCommand.h
  15220. (checkPoint): Changed the type to Time.
  15221. * src/TorrentAutoSaveCommand.cc
  15222. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15223. (execute): Rewritten.
  15224. * src/DownloadCommand.h
  15225. (sw): Changed the type to Time.
  15226. * src/DownloadCommand.cc
  15227. (DownloadCommand): Removed the initialization of sw.
  15228. (executeInternal): Rewritten.
  15229. * src/RequestSlot.h
  15230. (dispatchedTime): Changed the type to Time.
  15231. * src/RequestSlot.cc
  15232. (RequestSlot): Removed the call to setDispatchedTime().
  15233. (setDispatchedTime): Rewirtten.
  15234. (isTimeout): Rewritten.
  15235. (getLatencyInMillis): Rewritten.
  15236. * src/TorrentDownloadEngine.h
  15237. (cp): Changed the type to Time[2].
  15238. (startup): Changed the type to Time.
  15239. * src/TorrentDownloadEngine.cc
  15240. (initStatistics): Rewritten.
  15241. (calculateStatistics): Rewritten.
  15242. * src/DownloadEngine.cc
  15243. (run): Rewritten.
  15244. To detect all attempts to connect to the tracker are failed:
  15245. * src/AbstractCommand.cc
  15246. (execute): Increment e->segmentMan->errors if a command aborted.
  15247. * src/SegmentMan.h
  15248. (errors): New variable.
  15249. * src/SegmentMan.cc
  15250. (SegmentMan): Added the initialization of errors.
  15251. (init): Added the initialization of errors.
  15252. * src/TrackerWatcherCommand.cc
  15253. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15254. request was failed.
  15255. To handle snubbed peers:
  15256. * src/PeerChokeCommand.cc
  15257. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15258. (execute): Snubbed peers don't get unchoked.
  15259. * src/PeerInteraction.h
  15260. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15261. * src/PeerInteraction.cc
  15262. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15263. back the requested 16k block in 60 seconds.
  15264. * src/PieceMessage.cc
  15265. (receivedAction): A peer's snubbed state is cleard if it sends
  15266. the requested 16k block in 60 seconds.
  15267. * src/Peer.h
  15268. (snubbing): New variable.
  15269. * src/Peer.cc
  15270. (resetStatus): Added snubbed = false.
  15271. To fix the bug that causes have message is not sent:
  15272. * src/PeerInteractionCommand.cc
  15273. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15274. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15275. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15276. * src/TorrentMan.h
  15277. (HaveEntry): New class.
  15278. (advertisePiece): Rewritten.
  15279. (getAdvertisedPieceIndexes): Rewritten.
  15280. (Haves): Changed the type.
  15281. (getAdvertisedPieceIndexes): Added an argument.
  15282. Others:
  15283. * src/TorrentMan.h
  15284. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15285. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15286. * src/TorrentMan.cc
  15287. (getPeer): Don't check the number of connections here.
  15288. (setupInternal1): Changed peerId.
  15289. * src/PeerInteractionCommand.h
  15290. (KEEP_ALIVE_INTERVAL): New definition.
  15291. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15292. * src/main.cc
  15293. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15294. * src/DownloadEngine.h: Removed unnecessary header includes.
  15295. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15296. To fix the bug that causes segfaults if a tracker returns a zero-length
  15297. list as "peers":
  15298. * src/TrackerUpdateCommand.cc
  15299. (execute): Added a check to see wether the type of peers is Data*.
  15300. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15301. * Release 0.5.0
  15302. To fix compile issue with gcc3:
  15303. * src/CancelMessage.h
  15304. (ID): Renamed as ID_t
  15305. (ID_t): New enum.
  15306. * src/RejectMessage.h
  15307. (ID): Renamed as ID_t
  15308. (ID_t): New enum.
  15309. * src/SuggestPieceMessage.h
  15310. (ID): Renamed as ID_t
  15311. (ID_t): New enum.
  15312. * src/AllowedFastMessage.h
  15313. (ID): Renamed as ID_t
  15314. (ID_t): New enum.
  15315. * src/PortMessage.h
  15316. (ID): Renamed as ID_t
  15317. (ID_t): New enum.
  15318. * src/HaveNoneMessage.h
  15319. (ID): Renamed as ID_t
  15320. (ID_t): New enum.
  15321. * src/KeepAliveMessage.h
  15322. (ID): Renamed as ID_t
  15323. (ID_t): New enum.
  15324. * src/HaveAllMessage.h
  15325. (ID): Renamed as ID_t
  15326. (ID_t): New enum.
  15327. * src/UnchokeMessage.h
  15328. (ID): Renamed as ID_t
  15329. (ID_t): New enum.
  15330. * src/BitfieldMessage.h
  15331. (ID): Renamed as ID_t
  15332. (ID_t): New enum.
  15333. * src/PieceMessage.h
  15334. (ID): Renamed as ID_t
  15335. (ID_t): New enum.
  15336. * src/RequestMessage.h
  15337. (ID): Renamed as ID_t
  15338. (ID_t): New enum.
  15339. * src/NotInterestedMessage.h
  15340. (ID): Renamed as ID_t
  15341. (ID_t): New enum.
  15342. * src/ChokeMessage.h
  15343. (ID): Renamed as ID_t
  15344. (ID_t): New enum.
  15345. * src/InterestedMessage.h
  15346. (ID): Renamed as ID_t
  15347. (ID_t): New enum.
  15348. * src/HaveMessage.h
  15349. (ID): Renamed as ID_t
  15350. (ID_t): New enum.
  15351. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15352. * src/PeerAbstractCommand.h
  15353. (beforeSocketCheck): Removed.
  15354. * src/PeerAbstractCommand.cc
  15355. Modified in order to call executeInternal() even if socket check
  15356. and upload limit check fail.
  15357. * src/PeerInteractionCommand.h
  15358. (keepAlive): Removed.
  15359. (sendKeepAlive): New function.
  15360. (checkHave): New function.
  15361. (beforeSocketCheck): Removed.
  15362. * src/PeerInteractionCommand.cc
  15363. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15364. calls to checkHave() and sendKeepAlive().
  15365. (keepAlive): Renamed to sendKeepAlive().
  15366. (sendKeepAlive): New function.
  15367. (beforeSocketCheck): Removed.
  15368. (checkHave): New function.
  15369. * src/BitfieldMan.cc
  15370. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15371. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15372. 0.
  15373. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15374. * src/TorrentMan.h
  15375. (UsedPieces): Removed.
  15376. (Pieces): New type definition.
  15377. * src/Piece.h: Updated doc.
  15378. * src/Peer.h
  15379. (totalLength): Removed.
  15380. * src/Peer.cc
  15381. (updateLatency): Fixed the latency calculation.
  15382. * src/TorrentMan.cc
  15383. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15384. than or equal to MAX_PEER_LIST_SIZE.
  15385. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15386. then return false.
  15387. (deleteOldErrorPeers): Rewritten.
  15388. (deleteUsedPiece): Fixed the miss use of STL remove.
  15389. * src/PeerInteraction.h
  15390. (Pieces): Removed.
  15391. (deleteTimeoutRequestSlot): Removed.
  15392. (deleteCompletedRequestSlot): Removed.
  15393. (checkRequestSlot): New function.
  15394. * src/PeerInteraction.cc
  15395. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15396. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15397. (checkRequestSlot): New function.
  15398. * src/DownloadEngine.cc
  15399. (run): Clear activeSockets before calling waitData().
  15400. (waitData): Removed a call to activeSockets.clear().
  15401. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15402. To attempt to handle EINTR:
  15403. * src/SocketCore.cc
  15404. (isReadable): Added EINTR handling.
  15405. (isWritable): Added EINTR handling.
  15406. To improve the performance:
  15407. * src/AbstractCommand.cc
  15408. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15409. * src/PeerInteractionCommand.h
  15410. (receiveMessage): Renamed as receiveMessages().
  15411. (receiveMessages): New function.
  15412. * src/PeerInteractionCommand.cc
  15413. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15414. () function. detectMessageFlooding() is moved here.
  15415. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15416. (). The flooding detection for have message is comment out.
  15417. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15418. Util::difftv().
  15419. (receiveMessage): Renamed as receiveMessages().
  15420. (receiveMessages): New function.
  15421. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15422. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15423. * src/SleepCommand.cc
  15424. (execute): Use Util::difftvsec() instead of Util::difftv().
  15425. * src/BitfieldMan.h
  15426. (getNthBitIndex): New function.
  15427. (hasMissingPiece): New function.
  15428. (getAllMissingIndexes): New function.
  15429. * src/BitfieldMan.cc
  15430. (countSetBit): Rewritten.
  15431. (getNthBitIndex): New function.
  15432. (getMissingIndexRandomly): Rewritten.
  15433. (hasMissingPiece): New function.
  15434. (getAllMissingIndexes): New function.
  15435. * src/TorrentMan.cc
  15436. (hasMissingPiece): New function.
  15437. (deleteUsedPiece): Rewritten using STL.
  15438. * src/PeerInteraction.cc
  15439. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15440. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15441. (addRequests): Updated the number of pending requests.
  15442. * src/PeerAbstractCommand.cc
  15443. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15444. (execute): Returns true if TorrentMan::isHalt() is true.
  15445. Corrected the condition of upload limit checking.
  15446. * src/Util.h
  15447. (countBit): New function.
  15448. * src/Util.cc
  15449. (nbits): New variable.
  15450. (countBit): New function.
  15451. * src/DownloadEngine.h
  15452. (SockCmdMap): New type definition.
  15453. (waitData): Added an argument.
  15454. (addSocket): Added an argument.
  15455. (addSocketForReadCheck): Added an argument.
  15456. (addSocketForWriteCheck): Added an argument.
  15457. * src/DownloadEngine.cc
  15458. (run): Executes only commands whose sockets are ready to read or write.
  15459. All commands are executed in every 1 second.
  15460. (waitData): Calls select() again if it returned
  15461. EINTR.
  15462. (addSocket): Saves socket and command object pair to the map.
  15463. (deleteSocket): Deletes socket and command object pair from the map.
  15464. (addSocketForReadCheck): Added an argument.
  15465. (addSocketForWriteCheck): Added an argument.
  15466. * src/DownloadCommand.cc
  15467. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15468. To send "event=stopped" to the tracker when the application finishes:
  15469. * src/PeerChokeCommand.h
  15470. (checkPoint): New variable.
  15471. * src/PeerChokeCommand.cc
  15472. (PeerChokeCommand): Added the initialization of checkPoint.
  15473. (execute): The interval check is now done by checkPoint, not
  15474. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15475. * src/TorrentMan.h
  15476. (halt): New function.
  15477. (hasMissingPiece): New function.
  15478. (isHalt): New function.
  15479. (setHalt): New function.
  15480. * src/TorrentMan.cc
  15481. (TorrentMan): Added the initialization of halt.
  15482. * src/TorrentAutoSaveCommand.h
  15483. (checkPoint): New variable.
  15484. * src/PeerListenCommand.cc
  15485. (execute): Returns true if TorrentMan::isHalt() is true.
  15486. * src/main.cc
  15487. (setSignalHander): Added flags argument.
  15488. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15489. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15490. Removed printDownloadAbortMessage() after torrent downloading loop.
  15491. * src/TorrentAutoSaveCommand.cc
  15492. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15493. (execute): Returns true if TorrentMan::isHalt() is true.
  15494. The interval check is now done by checkPoint, not SleepCommand.
  15495. * src/TrackerWatcherCommand.cc
  15496. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15497. event=stopped.
  15498. * src/TrackerUpdateCommand.cc
  15499. (prepareForRetry): Do not use SleepCommand here.
  15500. (execute): Returns true if TorrentMan::isHalt() is true.
  15501. Others:
  15502. * src/TorrentMan.cc
  15503. (getMissingPieceIndex): Updated log message.
  15504. * src/PeerInteraction.cc
  15505. (createPeerMessag): Updated log message.
  15506. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15507. To add the ability to download several pieces in mix in a command and
  15508. increase the number of request slots according to request-cancel
  15509. latency:
  15510. * src/PeerInteractionCommand.cc
  15511. (executeInternal): The number of messages to be received at a time
  15512. is increased from 10 to 50.
  15513. * src/LogFactory
  15514. (getInstance): Added NullLogger.
  15515. * src/NullLogger.h: New class.
  15516. * src/BitfieldMan.h
  15517. (getMissingIndex): New function.
  15518. * src/BitfieldMan.cc
  15519. (getMissingIndex): New function.
  15520. * src/TorrentMan.h
  15521. (checkOutPiece): New function.
  15522. (getMissingPieceIndex): New function.
  15523. (getMissingFastPieceIndex): New function.
  15524. (getMissingFastPiece): New function.
  15525. * src/TorrentMan.cc
  15526. (updatePiece): Rewritten using STL.
  15527. (syncPiece): Rewritten using STL.
  15528. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15529. checkOutPiece().
  15530. (getMissingPieceIndex): New function.
  15531. (getMissingFastPieceIndex): New function.
  15532. (getMissingFastPiece): New function.
  15533. (checkOutPiece): New function.
  15534. * src/PeerInteraction.h
  15535. (Pieces): New type definition.
  15536. (piece): Removed.
  15537. (pieces): New variable.
  15538. (getNewPieceAndSendInterest): Added the "piece" argument.
  15539. (abortPiece): Added the "piece" argument.
  15540. (abortAllPieces): New function.
  15541. (isInRequestSlot): New function.
  15542. (hasDownloadPiece): Added the "index" argument.
  15543. (setDownloadPiece): Removed.
  15544. (getDownloadPiece): Added the "index" argument.
  15545. (updatePiece): New function.
  15546. (createRequestMessage): Added the "index" argument.
  15547. * src/PeerInteraction.cc
  15548. (onChoked): Rewritten.
  15549. (abortPiece): Rewirtten.
  15550. (abortAllPieces): New function.
  15551. (deleteTimeoutRequestSlot): Rewritten.
  15552. Clarified code a little bit.
  15553. (deleteCompletedRequestSlot): Rewritten.
  15554. (isInRequestSlot): New function.
  15555. (syncPiece): Rewritten.
  15556. (updatePiece): New function.
  15557. (getNewPieceAndSendInterest): Rewritten.
  15558. (addRequests): Rewritten.
  15559. (getDownloadPiece): Rewritten.
  15560. (hasDownloadPiece): Rewritten.
  15561. (createRequestMessage): Added the "index" argument.
  15562. * src/common.h
  15563. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15564. (DIV_FLOOR): New definition.
  15565. * src/PieceMessage.cc
  15566. (receivedAction): Update request-piece latency here.
  15567. * src/RequestSlot.h
  15568. (getLatencyInMillis): New function.
  15569. * src/RequestSlot.cc
  15570. (isTimeout): Rewritten using getLatencyInMillis.
  15571. (getLatencyInMillis): New function.
  15572. * src/Piece.h
  15573. (operator==): New function.
  15574. (getMissingBlockIndex): New function.
  15575. * src/Piece.cc
  15576. (operator==): New function.
  15577. (getMissingBlockIndex): New function.
  15578. * src/Peer.h
  15579. (DEFAULT_LATENCY): New definition.
  15580. (latency): New variable.
  15581. (updateLatency): New function.
  15582. (getLatency): New function.
  15583. * src/Peer.cc
  15584. (resetStatus): Reset latecy.
  15585. (updateLatency): New function.
  15586. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15587. * src/SocketCore.cc
  15588. (isReadable): Added secure to the condition.
  15589. * src/HttpConnection.cc
  15590. (receiveResponse): Fixed a bug that causes no response header
  15591. exception.
  15592. * src/Peer.h
  15593. (getFastSet): Fixed the return value type.
  15594. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15595. To remove a wait from download loop:
  15596. * src/DownloadEngine.cc
  15597. (run): Comment out shortSleep.
  15598. To rewrite the message handling:
  15599. * src/SimplePeerMessage.h: New class.
  15600. * src/SimplePeerMessage.cc: New class.
  15601. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15602. (msg): New variable.
  15603. (create): New function.
  15604. (send): Removed.
  15605. (getMessage): New function.
  15606. (getMessageLength): New function.
  15607. * src/CancelMessage.cc
  15608. (create): New function.
  15609. (receivedAction): Replaced deleteRequestMessageInQueue with
  15610. rejectPieceMessageInQueue.
  15611. (send): Removed.
  15612. (getMessage): New function.
  15613. (getMessageLength): New function.
  15614. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15615. (msg): New variable.
  15616. (msgLength): New variable.
  15617. (~BitfieldMessage): Deleted msg.
  15618. (send): Removed.
  15619. (getMessage): New function.
  15620. (getMessageLength): New function.
  15621. * src/BitfieldMessage.cc
  15622. (create): New function.
  15623. (send): Removed.
  15624. (getMessage): New function.
  15625. (getMessageLength): New function.
  15626. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15627. (msg): New variable.
  15628. (sendPredicate): New function.
  15629. (onSendComplete): New function.
  15630. (send): Removed.
  15631. (getMessage): New function.
  15632. (getMessageLength): New function.
  15633. (create): New function.
  15634. * src/ChokeMessage.cc
  15635. (create): New function.
  15636. (send): Removed.
  15637. (sendPredicate): New function.
  15638. (getMessage): New function.
  15639. (getMessageLength): New function.
  15640. (onSendComplete): New function.
  15641. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15642. (msg): New variable.
  15643. (send): Removed.
  15644. (getMessage): New function.
  15645. (getMessageLength): New function.
  15646. * src/KeepAliveMessage.cc
  15647. (send): Removed.
  15648. (getMessage): New function.
  15649. (getMessageLength): New function.
  15650. * src/PortMessage.h
  15651. (create): New function.
  15652. (receivedAction): Updated log message.
  15653. * src/PortMessage.cc: New file.
  15654. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15655. (msg): New variable.
  15656. (sendPredicate): New function.
  15657. (onSendComplete): New function.
  15658. (create): New function.
  15659. (send): Removed.
  15660. (getMessage): New function.
  15661. (getMessageLength): New function.
  15662. * src/UnchokeMessage.cc
  15663. (create): New function.
  15664. (send): Removed.
  15665. (sendPredicate): New function.
  15666. (getMessage): New function.
  15667. (getMessageLength): New function.
  15668. (onSendComplete): New function.
  15669. * src/PieceMessage.h
  15670. (leftPieceDataLength): Removed.
  15671. (leftDataLength): New variable.
  15672. (headerSend): New variable.
  15673. (pendingCount): New variable.
  15674. (msgHeader): New variable.
  15675. (sendPieceData): New function.
  15676. (incrementPendingCount): New function.
  15677. (isPendingCountMax): New function.
  15678. (create): New function.
  15679. (getMessageHeader): New function.
  15680. (getMessageHeaderLength): New function.
  15681. * src/PieceMessage.cc
  15682. (create): New function.
  15683. (getMessageHeader): New function.
  15684. (getMessageHeaderLength): New function.
  15685. (send): Rewritten.
  15686. (sendPieceData): New function.
  15687. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15688. (msg): New variable.
  15689. (create): New function.
  15690. (getMessage): New function.
  15691. (getMessageLength): New function.
  15692. * src/HaveMessage.cc
  15693. (create): New function.
  15694. (send): Removed.
  15695. (sendPieceData): New function.
  15696. (getMessage): New function.
  15697. (getMessageLength): New function.
  15698. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15699. (msg): New variable.
  15700. (create): New function.
  15701. (send): Removed.
  15702. (getMessage): New function.
  15703. (getMessageLength): New function.
  15704. * src/RequestMessage.cc
  15705. (create): New function.
  15706. (receivedAction): Added the handling of fast extension.
  15707. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15708. (send): Removed.
  15709. (getMessage): New function.
  15710. (getMessageLength): New function.
  15711. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15712. (msg): New variable.
  15713. (sendPredicate): New function.
  15714. (onSendComplete): New function.
  15715. (create): New function.
  15716. (getMessage): New function.
  15717. (getMessageLength): New function.
  15718. * src/InterestedMessage.cc
  15719. (create): New function.
  15720. (send): Removed.
  15721. (sendPieceData): New function.
  15722. (getMessage): New function.
  15723. (getMessageLength): New function.
  15724. (onSendComplete): New function.
  15725. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15726. (msg): New variable.
  15727. (sendPieceData): New function.
  15728. (onSendComplete): New function.
  15729. (create): New function.
  15730. (send): Removed.
  15731. (getMessage): New function.
  15732. (getMessageLength): New function.
  15733. * src/NotInterestedMessage.cc
  15734. (create): New function.
  15735. (send): Removed.
  15736. (sendPredicate): New function.
  15737. (getMessage): New function.
  15738. (getMessageLength): New function.
  15739. (onSendComplete): New function.
  15740. * src/AllowedFastMessage.h: New class.
  15741. * src/AllowedFastMessage.cc: New class.
  15742. * src/RejectMessage.h: New class.
  15743. * src/RejectMessage.cc: New class.
  15744. * src/SuggestPieceMessage.h: New class.
  15745. * src/SuggestPieceMessage.cc: New class.
  15746. * src/HaveAllMessage.h: New class.
  15747. * src/HaveAllMessage.cc: New class.
  15748. * src/HaveNoneMessage.h: New class.
  15749. * src/HaveNoneMessage.cc: New class.
  15750. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15751. (msg): New variable.
  15752. (reserved): New variable.
  15753. (create): New function.
  15754. (getId): New function.
  15755. (receivedAction): New function.
  15756. (getMessage): New function.
  15757. (getMessageLength): New function.
  15758. (isFastExtensionSupported): New function.
  15759. * src/HandshakeMessage.cc
  15760. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15761. (create): New function.
  15762. (getMessage): New function.
  15763. (getMessageLength): New function.
  15764. (toString): Added the output of reserved field.
  15765. (check): Added const qualifier.
  15766. (isFastExtensionSupported): New function.
  15767. * src/PeerMessageUtil.h
  15768. (createChokeMessage): Removed.
  15769. (createUnchokeMessage): Removed.
  15770. (createInterestedMessage): Removed.
  15771. (createNotInterestedMessage): Removed.
  15772. (createHaveMessage): Removed.
  15773. (createBitfieldMessage): Removed.
  15774. (createRequestMessage): Removed.
  15775. (createCancelMessage): Removed.
  15776. (createPieceMessage): Removed.
  15777. (createPortMessage): Removed.
  15778. (createChokeMessage): Removed.
  15779. (createUnchokeMessage): Removed.
  15780. (createInterestedMessage): Removed.
  15781. (createNotInterestedMessage): Removed.
  15782. (createHaveMessage): Removed.
  15783. (createBitfieldMessage): Removed.
  15784. (createRequestMessage): Removed.
  15785. (createCancelMessage): Removed.
  15786. (createPieceMessage): Removed.
  15787. (createKeepAliveMessage): Removed.
  15788. (createHandshakeMessage): Removed.
  15789. (setIntParam): New function.
  15790. (createPeerMessageString): New function.
  15791. * src/PeerMessageUtil.cc
  15792. (createChokeMessage): Removed.
  15793. (createUnchokeMessage): Removed.
  15794. (createInterestedMessage): Removed.
  15795. (createNotInterestedMessage): Removed.
  15796. (createHaveMessage): Removed.
  15797. (createBitfieldMessage): Removed.
  15798. (createRequestMessage): Removed.
  15799. (createCancelMessage): Removed.
  15800. (createPieceMessage): Removed.
  15801. (createPortMessage): Removed.
  15802. (createRequestMessage): Removed.
  15803. (createCancelMessage): Removed.
  15804. (createPieceMessage): Removed.
  15805. (createHaveMessage): Removed.
  15806. (createChokeMessage): Removed.
  15807. (createUnchokeMessage): Removed.
  15808. (createInterestedMessage): Removed.
  15809. (createNotInterestedMessage): Removed.
  15810. (createBitfieldMessage): Removed.
  15811. (createKeepAliveMessage): Removed.
  15812. (createHandshakeMessage): Removed.
  15813. (setIntParam): New function.
  15814. (createPeerMessageString): New function.
  15815. * src/PeerConnection.h
  15816. (peer): Removed.
  15817. (torrentMan): Removed.
  15818. (createNLengthMessage): Removed.
  15819. (setIntParam): Removed.
  15820. (writeOutgoingMessageLog): Removed all overloaded functions.
  15821. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15822. (sendMessage): New function.
  15823. (sendHandshake): Removed.
  15824. (sendKeepAlive): Removed.
  15825. (sendChoke): Removed.
  15826. (sendUnchoke): Removed.
  15827. (sendInterested): Removed.
  15828. (sendNotInterested): Removed.
  15829. (sendHave): Removed.
  15830. (sendBitfield): Removed.
  15831. (sendRequest): Removed.
  15832. (sendPiece): Removed.
  15833. (sendPieceHeader): Removed.
  15834. (sendPieceData): Removed.
  15835. (sendCancel): Removed.
  15836. (getPeer): Removed.
  15837. * src/PeerConnection.cc
  15838. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15839. (sendHandshake): Removed.
  15840. (sendKeepAlive): Removed.
  15841. (createNLengthMessage): Removed.
  15842. (setIntParam): Removed.
  15843. (writeOutgoingMessageLog): Removed all overloaded functions.
  15844. (sendChoke): Removed.
  15845. (sendUnchoke): Removed.
  15846. (sendInterested): Removed.
  15847. (sendNotInterested): Removed.
  15848. (sendHave): Removed.
  15849. (sendBitfield): Removed.
  15850. (sendRequest): Removed.
  15851. (sendPiece): Removed.
  15852. (sendPieceHeader): Removed.
  15853. (sendPieceData): Removed.
  15854. (sendMessage): New function.
  15855. (sendCancel): Removed.
  15856. * src/PeerInteractionCommand.cc
  15857. (PeerInteractionCommand): Call setUploadLimit.
  15858. (executeInternal): Call setUploadLimit.
  15859. Added the handling of "inProgress" state of handshake message.
  15860. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15861. sendNow().
  15862. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15863. sendNow().
  15864. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15865. * src/TorrentMan.h
  15866. (PEER_ID_LENGTH): New definition.
  15867. (hasAllPieces): New function.
  15868. * src/TorrentMan.cc
  15869. (getMissingPiece): Added the handling of fast extension.
  15870. (cancelPiece): Call updatePiece().
  15871. (hasAllPieces): New function.
  15872. * src/PeerInteraction.h
  15873. (fastSet): New variable.
  15874. (getNewPieceAndSendInterest): Changed the return type to void.
  15875. (send): Renamed as sendMessages.
  15876. (deleteAllRequestSlot): Removed.
  15877. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15878. (cancelAllRequest): Removed all overloaded functions.
  15879. (deleteAllRequestSlot): Removed.
  15880. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15881. (rejectPieceMessageInQueue): New function.
  15882. (rejectAllPieceMessageInQueue): New function.
  15883. (onChoked): New function.
  15884. (isSendingMessageInProgress): New function.
  15885. (getCorrespondingRequestSlot): Changed its arguments.
  15886. (isInFastSet): New function.
  15887. (addFastSetIndex): New function.
  15888. (addRequests): New function.
  15889. (sendNow): Removed.
  15890. (trySendNow): Removed.
  15891. (sendBitfield): New function.
  15892. (sendAllowdFast): New function.
  15893. (createHaveAllMessage): New function.
  15894. (createHaveNoneMessage): New function.
  15895. (createRejectMessage): New function.
  15896. (createAllowedFastMessage): New function.
  15897. * src/PeerInteraction.cc
  15898. (send): Renamed as sendMessages.
  15899. (sendMessages): New function.
  15900. (MsgPushBack): New class.
  15901. (isSendingMessageInProgress): New function.
  15902. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15903. (rejectAllPieceMessageInQueue): New function.
  15904. Added the handling of fast extension.
  15905. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15906. (rejectPieceMessageInQueue): New function.
  15907. Added the handling of fast extension.
  15908. (deleteRequestSlot): Replaced for loop with std::find.
  15909. (onChoked): New function.
  15910. (deleteAllRequestSlot): Removed.
  15911. (abortPiece): Rewirtten.
  15912. (deleteTimeoutRequestSlot): Updated log messages.
  15913. (getCorrespondingRequestSlot): Changed its arguments.
  15914. (cancelAllRequest): Removed all overloaded functions.
  15915. (receiveHandshake): Added the check to see whether an incoming peer
  15916. supports fast extension.
  15917. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15918. PeerMessageUtil.
  15919. (createPeerMessage): Use create() of each message class instead of
  15920. PeerMessageUtil.
  15921. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15922. AllowedFastMessage were added.
  15923. (getNewPieceAndSendInterest): Changed its return value type to void.
  15924. Added the handling of fast extension.
  15925. (addRequests): New function.
  15926. (sendNow): Removed.
  15927. (sendHandshake): Rewritten.
  15928. (trySendNow): Removed.
  15929. (sendBitfield): New function.
  15930. (sendAllowdFast): New function.
  15931. (isInFastSet): New function.
  15932. (addFastSetIndex): New function.
  15933. (createRequestMessage): Use RequestMessage::create instead of
  15934. PeerMessageUtil.
  15935. (createCancelMessage): Use CancelMessage::create instead of
  15936. PeerMessageUtil.
  15937. (createPieceMessage): Use PieceMessage::create instead of
  15938. PeerMessageUtil.
  15939. (createHaveMessage): Use HaveMessage::create instead of
  15940. PeerMessageUtil.
  15941. (createChokeMessage): Use ChokeMessage::create instead of
  15942. PeerMessageUtil.
  15943. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15944. PeerMessageUtil.
  15945. (createInterestedMessage): Use InterestedMessage::create instead of
  15946. PeerMessageUtil.
  15947. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15948. of PeerMessageUtil.
  15949. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15950. PeerMessageUtil.
  15951. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15952. PeerMessageUtil.
  15953. (createHaveAllMessage): New function.
  15954. (createHaveNoneMessage): New function.
  15955. (createRejectMessage): New function.
  15956. (createAllowedFastMessage: New function.
  15957. * src/Util.h
  15958. (sha1Sum): New function.
  15959. (computeFastSet): New function.
  15960. * src/Util.cc
  15961. (sha1Sum): New function.
  15962. (computeFastSet): New function.
  15963. * src/Peer.h
  15964. (fastExtensionEnabled): New variable.
  15965. (fastSet): New variable.
  15966. (setAllBitfield): New function.
  15967. (setFastExtensionEnabled): New function.
  15968. (isFastExtensionEnabled): New function.
  15969. (addFastSetIndex): New function.
  15970. (getFastSet): New function.
  15971. (isInFastSet): New function.
  15972. (countFastSet): New function.
  15973. * src/Peer.cc
  15974. (isInFastSet): New function.
  15975. (addFastSetIndex): New function.
  15976. (setAllBitfield): New function.
  15977. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15978. sockets.
  15979. * src/PeerAbstractCommand.cc
  15980. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15981. and uploadLimit.
  15982. (execute): Changed the procedure of checking sockets. The upload speed
  15983. checking were added.
  15984. (setUploadLimit): New function.
  15985. (setUploadLimitCheck): New function.
  15986. * src/PeerAbstractCommand.h
  15987. (setUploadLimit): New function.
  15988. (setUploadLimitCheck): New function.
  15989. (uploadLimit): New variable.
  15990. (uploadLimitCheck): New variable.
  15991. To contact a tracker regularly:
  15992. * src/TrackerWatcherCommand.h (interval): New variable.
  15993. (checkPoint): New variable.
  15994. (TrackerWatcherCommand): Added interval argument.
  15995. * src/TrackerWatcherCommand.cc
  15996. (TrackerWatcherCommand): Initialized checkPoint.
  15997. (execute): Now a tracker is contacted in every specified period.
  15998. If peer list is not needed, send request with numwant=0.
  15999. * src/TrackerUpdateCommand.cc
  16000. (execute): Updated log messages.
  16001. * src/DownloadEngine.cc
  16002. (~DownloadEngine): Removed two asserts.
  16003. (waitData): Uncommented wfds. May be a bug fix.
  16004. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16005. * src/PeerInteractionCommand.h
  16006. (checkInactiveConnection): Removed.
  16007. * src/PeerInteractionCommand.cc
  16008. (executeInternal): Removed following function calls:
  16009. detectMessageFlooding(), checkLongTimePeerChoking and
  16010. checkInactiveConnection().
  16011. (checkInactiveConnection): Removed.
  16012. (detectMessageFlooding): Removed function call to
  16013. checkInactiveConnection().
  16014. * src/PeerMessageUtil.h
  16015. (createChokeMessage): New function. Overload.
  16016. (createUnchokeMessage): New function. Overload.
  16017. (createInterestedMessage): New function. Overload.
  16018. (createNotInterestedMessage): New function. Overload.
  16019. (createHaveMessage): New function. Overload.
  16020. (createBitfieldMessage): New function. Overload.
  16021. (createRequestMessage): New function. Overload.
  16022. (createCancelMessage): New function. Overload.
  16023. (createPieceMessage): New function. Overload.
  16024. (createKeepAliveMessage): New function. Overload.
  16025. * src/PeerMessageUtil.cc
  16026. (createChokeMessage): New function. Overload.
  16027. (createUnchokeMessage): New function. Overload.
  16028. (createInterestedMessage): New function. Overload.
  16029. (createNotInterestedMessage): New function. Overload.
  16030. (createHaveMessage): New function. Overload.
  16031. (createBitfieldMessage): New function. Overload.
  16032. (createRequestMessage): New function. Overload.
  16033. (createCancelMessage): New function. Overload.
  16034. (createPieceMessage): New function. Overload.
  16035. (createKeepAliveMessage): New function. Overload.
  16036. * src/SendMessageQueue.cc
  16037. (createRequestMessage): Use PeerMessageUtil.
  16038. (createCancelMessage): Use PeerMessageUtil.
  16039. (createPieceMessage): Use PeerMessageUtil.
  16040. (createHaveMessage): Use PeerMessageUtil.
  16041. (createChokeMessage): Use PeerMessageUtil.
  16042. (createUnchokeMessage): Use PeerMessageUtil.
  16043. (createInterestedMessage): Use PeerMessageUtil.
  16044. (createNotInterestedMessage): Use PeerMessageUtil.
  16045. (createBitfieldMessage): Use PeerMessageUtil.
  16046. (createKeepAliveMessage): Use PeerMessageUtil.
  16047. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16048. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16049. * src/PeerInteraction.h: New class.
  16050. * src/PeerInteraction.cc: New class.
  16051. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16052. Each peer message has its own class.
  16053. * src/PendingMessages.h: Removed.
  16054. * src/PendingMessages.cc: Removed. The sending process was moved to
  16055. each message class.
  16056. * src/RequestSlotMan.h: Removed.
  16057. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16058. SendMessageQueue.
  16059. * src/RequestMessage.h: New class.
  16060. * src/RequestMessage.cc: New class.
  16061. * src/CancelMessage.h: New class.
  16062. * src/CancelMessage.cc: New class.
  16063. * src/BitfieldMessage.h: New class.
  16064. * src/BitfieldMessage.cc: New class.
  16065. * src/ChokeMessage.h: New class.
  16066. * src/ChokeMessage.cc: New class.
  16067. * src/KeepAliveMessage.h: New class.
  16068. * src/KeepAliveMessage.cc: New class.
  16069. * src/PortMessage.h: New class.
  16070. * src/UnchokeMessage.h: New class.
  16071. * src/UnchokeMessage.cc: New class.
  16072. * src/PieceMessage.h: New class.
  16073. * src/PieceMessage.cc: New class.
  16074. * src/HaveMessage.h: New class.
  16075. * src/HaveMessage.cc: New class.
  16076. * src/BitfieldMessage.h: New class.
  16077. * src/BitfieldMessage.cc: New class.
  16078. * src/NotInterestedMessage.h: New class.
  16079. * src/NotInterestedMessage.cc: New class.
  16080. * src/InterestedMessage.h: New class.
  16081. * src/InterestedMessage.cc: New class.
  16082. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16083. (getSendMessageQueue): New function.
  16084. (setSendMessageQueue): New function.
  16085. * src/HandshakeMessage.cc: New class.
  16086. * src/PeerConnection.h (receiveMessage): Changed return value and
  16087. arguments.
  16088. (receiveHandshake): Changed return value and arguments.
  16089. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16090. here.
  16091. (receiveHandshake): Do not create handshake class here.
  16092. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16093. (piece): Removed.
  16094. (syncPiece): Removed.
  16095. (sendInterest): Removed.
  16096. (sendMessages): Removed.
  16097. (createRequestPendingMessage): Removed.
  16098. (checkPieceHash): Removed.
  16099. (erasePieceOnDisk): Removed.
  16100. (getNewPieceAndSendInterest): Removed.
  16101. (onGotNewPice): Removed.
  16102. (onGotWrongPiece): Removed.
  16103. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16104. Removed peerConnection, piece.
  16105. (~PeerInteractionCommand): Removed peerConnection.
  16106. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16107. (syncPiece): Moved to SendMessageQueue.
  16108. (decideChoking): Removed PendingMessage.
  16109. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16110. The action after receiving peer message was moved to each message
  16111. class.
  16112. (onGotNewPice): Moved to SendMessageQueue.
  16113. (onGotWrongPiece): Moved to SendMessageQueue.
  16114. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16115. (sendInterest): Moved to SendMessageQueue.
  16116. (createRequestPendingMessage): Removed.
  16117. (sendMessages): Moved to SendMessageQueue.
  16118. (onAbort): Use SendMessageQueue::abortPiece()
  16119. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16120. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16121. (checkPieceHash): Moved to SendMessageQueue.
  16122. (erasePieceOnDisk): Moved to SendMessageQueue.
  16123. * src/PeerMessageUtil.h
  16124. (createBitfieldMessage): Removed.
  16125. (createHaveMessage): Changed return value and arguments.
  16126. (createBitfieldMessage): Changed return value and arguments.
  16127. (createRequestCancelMessage): Removed.
  16128. (createPieceMessage): Changed return value and arguments.
  16129. (getShortIntParam): New function.
  16130. (checkIndex): Changed arguments.
  16131. (checkBegin): Changed arguments.
  16132. (checkLength): Changed arguments.
  16133. (checkPieceOffset): Removed.
  16134. (checkRange): New function.
  16135. (checkBitfield): Changed arguments.
  16136. (createPeerMessage): Removed.
  16137. (checkIntegrity): Removed.
  16138. (createHandshakeMessage): Changed arguments.
  16139. (createChokeMessage): New function.
  16140. (createUnchokeMessage): New function.
  16141. (createInterestedMessage): New function.
  16142. (createNotInterestedMessage): New function.
  16143. (createRequestMessage): New function.
  16144. (createCancelMessage): New function.
  16145. (createPortMessage): New function.
  16146. * src/PeerMessageUtil.cc
  16147. (createBitfieldMessage): Removed.
  16148. (createHaveMessage): Changed return value and arguments.
  16149. (createBitfieldMessage): Changed return value and arguments.
  16150. (createRequestCancelMessage): Removed.
  16151. (createPieceMessage): Changed return value and arguments.
  16152. (getShortIntParam): New function.
  16153. (checkIndex): Changed arguments.
  16154. (checkBegin): Changed arguments.
  16155. (checkLength): Changed arguments.
  16156. (checkPieceOffset): Removed.
  16157. (checkRange): New function.
  16158. (checkBitfield): Changed arguments.
  16159. (createPeerMessage): Removed.
  16160. (checkIntegrity): Removed.
  16161. (createHandshakeMessage): Changed arguments.
  16162. (createChokeMessage): New function.
  16163. (createUnchokeMessage): New function.
  16164. (createInterestedMessage): New function.
  16165. (createNotInterestedMessage): New function.
  16166. (createRequestMessage): New function.
  16167. (createCancelMessage): New function.
  16168. (createPortMessage): New function.
  16169. * src/PeerMessage.h
  16170. (id): Removed.
  16171. (index): Removed.
  16172. (begin): Removed.
  16173. (length): Removed.
  16174. (bitfield): Removed.
  16175. (bitfieldLength): Removed.
  16176. (block): Removed.
  16177. (blockLength): Removed.
  16178. (inProgress): New variable.
  16179. (cuid): New variable.
  16180. (peer): New variable.
  16181. (sendMessageQueue): New variable.
  16182. (logger): New variable.
  16183. (setBitfield): Removed.
  16184. (getBitfield): Removed.
  16185. (setBlock): Removed.
  16186. (getBlock): Removed.
  16187. (getBitfieldLength): Removed.
  16188. (getBlockLength): Removed.
  16189. (isInProgress): New function.
  16190. (toString): Made pure virtual.
  16191. (check): New function.
  16192. (send): New function.
  16193. (receivedAction): New function.
  16194. (getId): Made pure virtual.
  16195. (setId): Removed.
  16196. (getIndex): Removed.
  16197. (setIndex): Removed.
  16198. (getBegin): Removed.
  16199. (setBegin): Removed.
  16200. (getLength): Removed.
  16201. (setLength): Removed.
  16202. (getCuid): New function.
  16203. (setCuid): New function.
  16204. (getPeer): New function.
  16205. (setPeer): New function.
  16206. (getSendMessageQueue): New function.
  16207. (setSendMessageQueue): New function.
  16208. (ID): Removed.
  16209. * src/PeerMessage.cc
  16210. (setBitfield): Removed.
  16211. (setBlock): Removed.
  16212. (toString): Removed.
  16213. * src/TorrentMan.h
  16214. (getPieceLength): New function.
  16215. (getPieceLength): New function.
  16216. * src/SendMessageQueue.h
  16217. (REQUEST_TIME_OUT): New definition.
  16218. (RequestSlots): New definition.
  16219. (MessageQueue): New definition.
  16220. (requestSlotMan): Removed.
  16221. (pendingMessages): Removed.
  16222. (requestSlots): New variable.
  16223. (messageQueue): New variable.
  16224. (torrentMan): New variable.
  16225. (peerConnection): New variable.
  16226. (peer): New variable.
  16227. (piece): New variable.
  16228. (getNewPieceAndSendInterest): New function.
  16229. (createPeerMessage): New function.
  16230. (createHandshakeMessage): New function.
  16231. (send): Made private.
  16232. (setPeerMessageCommonProperty): New function.
  16233. (deleteAllRequestSlot): New function.
  16234. (deleteRequestMessageInQueue): New function.
  16235. (cancelAllRequest): Made private.
  16236. (cancelAllRequest): Made private.
  16237. (countRequestSlot): Made private.
  16238. (addPendingMessage): Removed.
  16239. (deletePendingPieceMessage): Removed.
  16240. (deletePendingRequestMessage): Removed.
  16241. (addMessage): New function.
  16242. (deletePieceMessageInQueue): New function.
  16243. (deleteTimeoutRequestSlot): Changed argument.
  16244. (deleteCompletedRequestSlot): Changed argument.
  16245. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16246. (getCorrespondingRequestSlot): New function.
  16247. (countPendingMessage): Removed.
  16248. (countMessageInQueue): New function.
  16249. (getTorrentMan): New function.
  16250. (getPeerConnection): New function.
  16251. (hasDownloadPiece): New function.
  16252. (getDownloadPiece): New function.
  16253. (setDownloadPiece): New function.
  16254. (syncPiece): New function.
  16255. (sendMessages): New function.
  16256. (sendNow): New function.
  16257. (trySendNow): New function.
  16258. (abortPiece): New function.
  16259. (sendHandshake): New function.
  16260. (receiveMessage): New function.
  16261. (receiveHandshake): New function.
  16262. (createRequestMessage): New function.
  16263. (createCancelMessage): New function.
  16264. (createPieceMessage): New function.
  16265. (createHaveMessage): New function.
  16266. (createChokeMessage): New function.
  16267. (createUnchokeMessage): New function.
  16268. (createInterestedMessage): New function.
  16269. (createNotInterestedMessage): New function.
  16270. (createBitfieldMessage): New function.
  16271. (createKeepAliveMessage): New function.
  16272. * src/SendMessageQueue.cc
  16273. (SendMessageQueue): Removed requestSlotMan.
  16274. Instantiated peerConnection here.
  16275. (~SendMessageQueue): Removed requestSlotMan.
  16276. Added deletion of peerConnection and the contents of messageQueue.
  16277. (send): Updated according to the change of messageQueue.
  16278. (addPendingMessage): Renamed to addMessage.
  16279. (addMessage): New function.
  16280. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16281. (deletePieceMessageInQueue): New function.
  16282. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16283. (deleteRequestMessageInQueue): New function.
  16284. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16285. here.
  16286. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16287. (...) was moved here.
  16288. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16289. moved here.
  16290. (deleteCompletedRequestSlot):
  16291. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16292. (getCorrespondingRequestSlot):
  16293. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16294. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16295. (countPendingMessage): Renamed to countMessageInQueue.
  16296. (countMessageInQueue): New function.
  16297. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16298. (receiveHandshake): New function.
  16299. (createHandshakeMessage): New function.
  16300. (receiveMessage): New function.
  16301. (createPeerMessage): New function.
  16302. (syncPiece): New function.
  16303. (getNewPieceAndSendInterest): New function.
  16304. (sendMessages): New function.
  16305. (sendNow): New function.
  16306. (trySendNow): New function.
  16307. (sendHandshake): New function.
  16308. (abortPiece): New function.
  16309. (getDownloadPiece): New function.
  16310. (getPeerMessageCommonProperty): New function.
  16311. (createRequestMessage): New function.
  16312. (createCancelMessage): New function.
  16313. (createPieceMessage): New function.
  16314. (createHaveMessage): New function.
  16315. (createChokeMessage): New function.
  16316. (createUnchokeMessage): New function.
  16317. (createInterestedMessage): New function.
  16318. (createNotInterestedMessage): New function.
  16319. (createBitfieldMessage): New function.
  16320. (createKeepAliveMessage): New function.
  16321. To add simple Content-Disposition support:
  16322. * src/HttpResponseCommand.h (determinFilename): New function.
  16323. * src/HttpResponseCommand.cc (executeInternal):
  16324. Use determinFilename(headers) instead of req->getFile() when comparing
  16325. filename.
  16326. (determinFilename): New function.
  16327. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16328. req->getFile().
  16329. (handleOtherEncoding): Use determinFilename(headers) instead of
  16330. req->getFile().
  16331. * src/Util.h (getContentDispositionFilename): New function.
  16332. * src/Util.cc (getContentDispositionFilename): New function.
  16333. * src/LogFactory.h (release): New function.
  16334. * src/LogFactory.cc (release): New function.
  16335. To fix a bug that causes out-of-bound exception when HTTP status
  16336. line is wrong:
  16337. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16338. size.
  16339. * src/common.h (Deleter): New class.
  16340. * src/SegmentMan.cc
  16341. (~SegmentMan): Added deletion of splitter and diskWriter.
  16342. * src/DownloadEngine.h
  16343. (Commands): Use deque.
  16344. (clearQueue): New function.
  16345. * src/DownloadEngine.cc
  16346. (~DownloadEngine): Added deletion of segmentMan.
  16347. (cleanQueue): New function.
  16348. * src/TorrentDownloadEngine.h
  16349. (TorrentDownloadEngine): The implementation was moved to
  16350. TorrentDownloadEngine.cc.
  16351. (~TorrentDownloadEngine): The implementation was moved to
  16352. TorrentDownloadEngine.cc.
  16353. * src/TorrentDownloadEngine.cc
  16354. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16355. * src/main.cc
  16356. (clearRequest): Removed.
  16357. (handler): Added deletion of e.
  16358. (torrentHandler): Added deletion of te.
  16359. (main): Do not share splitter.
  16360. Use Deleter instead of clearRequest.
  16361. Deletion of classes were updated.
  16362. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16363. * src/main.cc (main): Fixed typo.
  16364. * src/message.h: Fixed typo.
  16365. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16366. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16367. To add --select-file command-line option:
  16368. * src/Util.cc
  16369. (unfoldRange): New function.
  16370. (getNum): New function.
  16371. (unfoldSubRange): New function
  16372. * src/main.cc
  16373. (showUsage): Added help message.
  16374. (main): Added --select-file command-line option. Updated the layout of
  16375. file listing.
  16376. * src/common.h
  16377. (Integers): New definition.
  16378. * src/SocketCore.cc
  16379. (writeData): Removed timeout argument.
  16380. (readData): Removed timeout argument.
  16381. (peekData): Removed timeout argument.
  16382. * src/Socket.cc
  16383. (writeData): Removed timeout argument.
  16384. (readData): Removed timeout argument.
  16385. (peekData): Removed timeout argument.
  16386. * Release 0.4.1
  16387. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16388. To deploy upload rate based choking algorithm:
  16389. * src/PeerInteractionCommand.cc
  16390. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16391. peer currently used.
  16392. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16393. download completes. Simplified.
  16394. (receiveMessage): Updated.
  16395. * src/TorrentMan.h
  16396. (activePeers): New variable.
  16397. (addActivePeer): New function.
  16398. (getActivePeers): New function.
  16399. (deleteActivePeer): New function.
  16400. * src/TorrentMan.cc
  16401. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16402. * src/PeerAbstractCommand.cc
  16403. (onAbort): Use peer->resetStatus().
  16404. * src/main.cc
  16405. (PeerChokeCommand.h): Included.
  16406. (main): Added the instance of ChokingCommand to the command queue.
  16407. * src/Peer.h
  16408. (amChoking): Renamed from amChocking
  16409. (chokingRequired): New variable.
  16410. (optUnchoking): New variable.
  16411. (deltaUpload): New variable.
  16412. (deltaDownload): New variable.
  16413. (addDeltaUpload): New function.
  16414. (resetDeltaUpload): New function.
  16415. (addDeltaDownload): New function.
  16416. (resetDeltaDownload): New function.
  16417. (addPeerUpload): Added a call to addDeltaUpload.
  16418. (addPeerDownload): Added a call to addDeltaDownload.
  16419. * src/Peer.cc
  16420. (shouldBeChoking): Renamed from shouldChoke.
  16421. (resetStatus): New function.
  16422. * src/PeerChokeCommand.h: New class.
  16423. * src/PeerChokeCommand.cc: New class.
  16424. To add lazy upload speed limiter:
  16425. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16426. statistics calculation to TorrentDownloadEngine.
  16427. * src/TorrentConsoleDownloadEngine.cc
  16428. (sendStatistics): Renamed from printStatistics.
  16429. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16430. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16431. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16432. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16433. calculation.
  16434. (sendStatistics): New function as pure virtual function.
  16435. (getUploadSpeed): New function.
  16436. * src/TorrentDownloadEngine.cc
  16437. (initStatistics): New function.
  16438. (calculateSpeed): New function.
  16439. (calculateStatistics): New function.
  16440. * src/SendMessageQueue.h
  16441. (uploadLength): New variable.
  16442. (send): Added an argument.
  16443. (setUploadLimit): New function.
  16444. (getUploadLimit): New function.
  16445. * src/SendMessageQueue.cc
  16446. (send): Added upload speed limiter.
  16447. * src/prefs.h
  16448. (PREF_UPLOAD_LIMIT): New definition.
  16449. * src/PeerInteractionCommand.cc
  16450. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16451. * src/main.cc
  16452. (main): Added --upload-limit option
  16453. For bug fixes:
  16454. * src/main.cc
  16455. (showUsage): Corrected --listen-port help
  16456. Other changes:
  16457. * src/TorrentMan.cc
  16458. (getPeer): Return nullPeer if connection is grather than
  16459. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16460. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16461. To add some useful information to the exception message:
  16462. * src/SocketCore.cc : Updated messages.
  16463. * src/SegmentMan.cc :
  16464. * src/TorrentMan.cc : Updated messages.
  16465. * src/MultiDiskWriter.cc : Updated messages.
  16466. * src/Util.cc : Updated messages.
  16467. * src/AbstractDiskWriter.cc : Updated messages.
  16468. * src/PreAllocationDiskWriter.cc : Updated messages.
  16469. * src/message.cc : Added new messages. Updated some messages.
  16470. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16471. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16472. Updated threshold from 30 to 15.
  16473. * src/AbstractDiskWriter.h (filename): New variable.
  16474. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16475. (createFile): Assigned filename.
  16476. * src/main.cc: Updated the help message for http-auth-scheme.
  16477. * Release 0.4.0
  16478. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16479. To add TrackerUpdateCommand with which replaces
  16480. CompactTrackerResponseProcessor:
  16481. * src/TrackerWatcherCommand.h (req): Removed.
  16482. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16483. if the number of peer connections are less than 30.
  16484. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16485. * src/SegmentMan.h (diskWriter): New function.
  16486. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16487. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16488. (main): Use TrackerUpdateCommand.
  16489. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16490. (req): New variable.
  16491. (setTrackerResponseProcessor): Removed.
  16492. (getTrackerResponseProcessor): Removed.
  16493. (processTrackerResponse): Removed.
  16494. * src/DownloadEngine.h (diskWriter): Removed.
  16495. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16496. to torrentMan->processTrackerResponse().
  16497. To add Util::expandBuffer:
  16498. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16499. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16500. * src/Util.h (expandBuffer): New function.
  16501. To fix the bug that causes segmentation fault when "-l ." is specified
  16502. in command-line option:
  16503. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16504. (openFile): New function.
  16505. (closeFile): New function.
  16506. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16507. (~SimpleLogger): Call closeFile();
  16508. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16509. * src/main.cc (main): Added a check to see logger is configured
  16510. properly.
  16511. To enable HTTP authentication without specifying "--http-auth-scheme"
  16512. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16513. * src/HttpConnection.cc (createRequest): Send Authorization header
  16514. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16515. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16516. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16517. * src/Peer.cc (shouldChoke): Updated algorithm.
  16518. * src/message.h (EX_AUTH_FAILED): New definition.
  16519. (EX_FILE_OPEN): New definition.
  16520. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16521. if status == 401.
  16522. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16523. if req->isTorrent == true.
  16524. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16525. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16526. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16527. (createFile): Updated message.
  16528. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16529. To add a readout of estimated remaining time to normal HTTP/FTP
  16530. downloads:
  16531. * src/ConsoleDownloadEngine.h (startup): New variable.
  16532. (startupLength): New variable.
  16533. (isStartupLengthSet): New variable.
  16534. (avgSpeed): New variable.
  16535. (eta): New variable.
  16536. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16537. estimated remaining time.
  16538. (initStatistics): Initialized newly added variables.
  16539. (calculateStatistics): Calculate average speed and estimated remaining
  16540. time.
  16541. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16542. * src/TrackerDownloadCommand.h: Removed.
  16543. * src/TrackerDownloadCommand.cc: Removed.
  16544. * src/TrackerInitCommand.h: Removed.
  16545. * src/TrackerInitCommand.cc: Removed.
  16546. * src/TrackerUpdateCommand.h: Removed.
  16547. * src/TrackerUpdateCommand.cc: Removed.
  16548. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16549. url written in TrackerInitCommand was moved here. Do not create
  16550. tracker request command if torrentMan->trackers != 0.
  16551. * src/CompactTrackerResponseProcessor.h: New class.
  16552. * src/CompactTrackerResponseProcessor.cc: New class.
  16553. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16554. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16555. Decoupled TorrentDownloadEngine from this.
  16556. * src/SegmentMan.h (init): New function.
  16557. * src/SegmentMan.cc (init): New function.
  16558. * src/TorrentMan.h (responseProcessor): New variable.
  16559. (trackers): New variable.
  16560. (setTrackerResponseProcessor): New function.
  16561. (getTrackerResponseProcessor): New function.
  16562. (processTrackerResponse): New function.
  16563. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16564. (processTrackerResponse): New function.
  16565. * src/main.cc (main): Use ByteArrayDiskWriter and
  16566. CompactTrackerResponseProcessor.
  16567. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16568. processTrackerResponse().
  16569. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16570. readout.
  16571. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16572. which indicates download has completed.
  16573. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16574. (closeFile): fd >= 0, not fd > 0
  16575. * src/main.cc (main): Added short cut for show-files.
  16576. Added short cut for torrent-file.
  16577. Added new command-line option listen-port.
  16578. Updated i18n messages.
  16579. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16580. To add LogFactory which creates singleton logger:
  16581. * src/LogFactory.h: New class.
  16582. * src/LogFactory.cc: New class.
  16583. * src/Command.h (logger): New variable.
  16584. (Constructor): Use LogFactory.
  16585. * src/AbstractCommand.cc: Use Command::logger
  16586. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16587. Use LogFactory.
  16588. * src/SegmentSplitter.h : Made logger protected.
  16589. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16590. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16591. * src/DownloadEngine.h : Made logger protected.
  16592. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16593. * src/PeerInteractionCommand.cc : Use Command::logger.
  16594. * src/HttpResponseCommand.cc : Use Command::logger.
  16595. * src/SegmentMan.h : Made logger private.
  16596. * src/TorrentMan.h : Made logger private.
  16597. * src/TorrentMan.cc : Use LogFactory.
  16598. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16599. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16600. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16601. Use LogFactory.
  16602. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16603. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16604. Use LogFactory.
  16605. * src/DownloadCommand.cc : Use Command::logger.
  16606. * src/PeerAbstractCommand.cc : Use Command::logger.
  16607. * src/PeerListenCommand.cc : Use Command::logger.
  16608. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16609. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16610. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16611. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16612. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16613. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16614. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16615. Use LogFactory.
  16616. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16617. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16618. Use LogFactory.
  16619. * src/main.cc (main): Use LogFactory.
  16620. * src/DiskAdaptor.h (logger): New variable.
  16621. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16622. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16623. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16624. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16625. parameter to a tracker request.
  16626. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16627. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16628. * src/main.cc (setSignalHander): New function.
  16629. (main): Added a handler for SIGTERM.
  16630. (handler): Updated message.
  16631. (torrentHandler): Updated message.
  16632. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16633. * src/TorrentConsoleDownloadEngine.cc
  16634. (onPartialDownloadingCompletes): Renamed as
  16635. onSelectiveDownloadingCompletes.
  16636. (onSelectiveDownloadingCompletes): Updated message.
  16637. To add DiskAdaptor which abstract DiskWriter family:
  16638. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16639. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16640. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16641. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16642. MultiDiskAdaptor.h.
  16643. (readFileEntry): Changed its arguments.
  16644. (setup): setupDiskWriter is merged into this function.
  16645. (setupDiskWriter): Removed.
  16646. (setFileFilter): New function.
  16647. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16648. made in readFileEntry.
  16649. (getFilePath): Removed.
  16650. (getTempFilePath): Removed.
  16651. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16652. (fixFilename): Removed.
  16653. (copySingleFile): Removed.
  16654. (splitMultiFile): Removed.
  16655. (deleteTempFile): Removed.
  16656. (setFileEntriesToDownload): Removed.
  16657. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16658. (isSelectiveDownloadingMode): New function.
  16659. (setAllMultiFileRequestedState): Removed.
  16660. (finishPartialDownloadingMode): Renamed as
  16661. finishSelectiveDownloadingMode.
  16662. (finishSelectiveDownloadingMode): New function.
  16663. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16664. (getSelectedTotalLength): New function.
  16665. (onDownloadComplete): Use diskAdaptor.
  16666. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16667. (Range): Removed.
  16668. (setMultiFileEntries): Renamed as setFileEntries.
  16669. (setFileEntries): New function.
  16670. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16671. (pieceLength): New variable.
  16672. * src/main.cc (printDownloadCompeleteMessage): New function.
  16673. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16674. (main): Renamed torrent-show-files to show-files.
  16675. Rewritten file contents listing.
  16676. * src/TorrentMan.h (FileEntry): Removed.
  16677. (multiFileTopDir): Removed.
  16678. (multiFileEntries): Removed.
  16679. (diskWriter): Removed.
  16680. (diskAdaptor): New variable.
  16681. * src/DefaultDiskWriter.h (totalLength): New variable.
  16682. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16683. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16684. diskWriter.
  16685. * src/TorrentConsoleDownloadEngine.h
  16686. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16687. (partialTotalLength): Renamed as selectedTotalLength.
  16688. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16689. openExistingFile, otherwise call initAndOpenFile.
  16690. (closeFile): fd > 0, not fd != 0.
  16691. * src/DirectDiskAdaptor.h: New class.
  16692. * src/DirectDiskAdaptor.cc: New class.
  16693. * src/MultiDiskAdaptor.h: New class.
  16694. * src/MultiDiskAdaptor.cc: New class.
  16695. * src/CopyDiskAdaptor.h: New class.
  16696. * src/CopyDiskAdaptor.cc: New class.
  16697. * src/DiskAdaptor.h: New class.
  16698. * src/DiskAdaptor.cc: New class.
  16699. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16700. (PREF_SHOW_FILES): New definition.
  16701. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16702. To add the ability to download multi torrent into respective files
  16703. directly:
  16704. * src/DiskWriter.h (openFile): New function.
  16705. (seek): Removed.
  16706. * src/MultiDiskWriter.h: New class.
  16707. * src/MultiDiskWriter.cc: New class.
  16708. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16709. protected.
  16710. (openFile): New function.
  16711. * src/AbstractDiskWriter.cc (openFile): New function.
  16712. * src/prefs.h (V_FALSE): New definition.
  16713. (PREF_DIRECT_FILE_MAPPING): New definition.
  16714. * src/TorrentMan.h (setupDiskWriter): New function.
  16715. (setAllMultiFileRequestedState): New function.
  16716. (onDownloadComplete): New function.
  16717. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16718. (setupDiskWriter): New function.
  16719. (getFilePath): Updated.
  16720. (getTempFilePath): Updated.
  16721. (getSegmentFilePath): Updated.
  16722. (fixFilename): Updated.
  16723. (deleteTempFile): Updated.
  16724. (setAllMultiFileRequestedState): New function.
  16725. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16726. (finishPartialDownloadingMode): Reset requested flags.
  16727. (onDownloadComplete): New function.
  16728. * src/main.cc: Added --direct-file-mapping option.
  16729. Use TorrentMan::setupDiskWriter().
  16730. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16731. onDownloadComplete().
  16732. To fix ETA bug:
  16733. * src/Util.h (difftvsec): New function.
  16734. * src/Util.cc (difftvsec): New function.
  16735. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16736. type of "elapsed" instead of long long int.
  16737. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16738. The updates of statistics takes place every 1 seconds.
  16739. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16740. (calculateSpeed): Changed its argument signature.
  16741. * src/PeerMessage.cc (toString): Fixed message.
  16742. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16743. To print ETA:
  16744. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16745. completion handling when dealing with
  16746. TorrentMan::isPartialDownloadingMode() == true.
  16747. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16748. New function.
  16749. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16750. (sessionDownloadLength): New variable.
  16751. (avgSpeed): New variable.
  16752. (eta): New variable.
  16753. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16754. new variables: eta, avgSpeed, startup.
  16755. (calculateSpeed): Calculate average speed and ETA.
  16756. (printStatistics): Added ETA.
  16757. * src/Util.h (secfmt): New function.
  16758. * src/Util.cc (secfmt): New function.
  16759. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16760. To detect "keep alive" flooding:
  16761. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16762. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16763. variable: keepAliveCount.
  16764. (detectMessageFlooding): Added "keep alive" flooding detection.
  16765. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16766. received.
  16767. To add the ability to download only specified files in multi-file
  16768. torrent:
  16769. * src/BitfieldMan.h (filterBitfield): New variable.
  16770. (filterEnabled): New variable.
  16771. (setFilterBit): New function.
  16772. (enableFilter): New function.
  16773. (disableFilter): New function.
  16774. (isFilterEnabled): New function.
  16775. (getFilteredTotalLength): New function.
  16776. (getCompletedLength): New function.
  16777. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16778. filterBitfield, filterEnabled.
  16779. (CopyConstructor): Added filterBitfield and filterEnabled.
  16780. (operator==): Added filterBitfield and filterEnabled.
  16781. (Destructor): Added filterBitfield.
  16782. (getMissingIndex): Use filterBitfield.
  16783. (getMissingUnusedIndex): Use filterBitfield.
  16784. (getFirstMissingUnusedIndex): Use filterBitfield.
  16785. (getFirstMissingUnusedIndex): Use filterBitfield.
  16786. (getAllMissingIndexes): Use filterBitfield.
  16787. (countMissingBlock): Use filterBitfield.
  16788. (countBlock): Use filterBitfield.
  16789. (setBitInternal): Added new argument on.
  16790. (setUseBit): Use setBitInternal.
  16791. (unsetUseBit): Use setBitInternal.
  16792. (setBit): Use setBitInternal.
  16793. (unsetBit): Use setBitInternal.
  16794. (isAllBitSet): Use filterBitfield.
  16795. (setFilterBit): New function.
  16796. (addFilter): New function.
  16797. (enableFilter): New function.
  16798. (disableFilter): New function.
  16799. (clearFilter): New function.
  16800. (isFilterEnabled): New function.
  16801. (getFilteredTotalLength): New function.
  16802. (getCompletedLength): New function.
  16803. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16804. Initalized newly added variables.
  16805. [FileEntry](offset): New variable.
  16806. [FileEntry](extracted): New variable.
  16807. [FileEntry](requested): New variable.
  16808. (readFileEntry): New function.
  16809. (option): New variable.
  16810. (splitMultiFile): Removed const qualifier.
  16811. (fixFilename): Removed const qualifier.
  16812. (readFileEntryFromMetaInfoFile): New function.
  16813. (finishPartialDownloadingMode): New function.
  16814. (isPartialDownloadingMode): New function.
  16815. (setFileEntriesToDownload): New function.
  16816. (getCompletedLength): New function.
  16817. (getPartialTotalLength): New function.
  16818. * src/TorrentMan.cc (readFileEntry): New function.
  16819. (setup): Use readFileEntry. If no-preallocation option is specified,
  16820. use DefaultDiskWriter.
  16821. (readFileEntryFromMetaInfoFile): New function.
  16822. (fixFilename): Removed const qualifier.
  16823. (splitMultiFile): Removed const qualifier.
  16824. (setFileEntriesToDownload): New function.
  16825. (isPartialDownloadingMode): New function.
  16826. (finishPartialDownloadingMode): New function.
  16827. (getCompletedLength): New function.
  16828. (getPartialTotalLength): New function.
  16829. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16830. New variable.
  16831. (partialTotalLength): New variable.
  16832. (downloadLength): New variable.
  16833. (totalLength): New variable.
  16834. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16835. Added log.
  16836. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16837. partialTotalLength, downloadLength, totalLength.
  16838. (calculate): Calculate downloadLength and totalLength.
  16839. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16840. * src/main.cc (addCommand): Changed argument signature.
  16841. (main): Added new variable: args. Added new option "torrent-show-files"
  16842. "no-preallocation". Usage is not updated yet.
  16843. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16844. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16845. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16846. Attempt to add the ability to listing file entries in a .torrent file.
  16847. This feature is not yet complete.
  16848. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16849. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16850. (getName): New function.
  16851. * src/TorrentMan.h (getMultiFileEntries): New function.
  16852. (getName): New function.
  16853. * src/main.cc (main): Use above 2 funtion.
  16854. * Release 0.3.2
  16855. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16856. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16857. (detectMessageFlooding): Updated threshold value.
  16858. (checkLongTimePeerChoking): Updated timeout value.
  16859. (getNewPieceAndSendInterest): Added debug log.
  16860. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16861. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16862. (getPeer): Updated.
  16863. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16864. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16865. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16866. is localhost.
  16867. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16868. * src/PendingMessage.cc (processMessage): Not to send piece message
  16869. if peer is not interested in the pieces localhost has.
  16870. * src/Peer.cc (shouldChoke): Updated.
  16871. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16872. * src/Util.cc (isPowerOf): New function.
  16873. * src/Util.h (isPowerOf): New function.
  16874. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16875. whether or not it is power of 2.
  16876. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16877. Added new class SendMessageQueue that includes PendingMessages and
  16878. RequestSlotMan.
  16879. * src/SendMessageQueue.h: New class.
  16880. * src/SendMessageQueue.cc: New class.
  16881. * src/PendingMessage.h: Added new member variable blockIndex and its
  16882. accessors.
  16883. (createRequestMessage): Updated.
  16884. * src/PendingMessage.cc (createRequestMessage): Updated.
  16885. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16886. SendMessageQueue.
  16887. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16888. (receiveMessage): Updated with SendMessageQueue.
  16889. (deletePendingPieceMessage): Removed.
  16890. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16891. (sendInterest): Updated with SendMessageQueue.
  16892. (createRequestPendingMessage): Updated with SendMessageQueue.
  16893. (sendMessages): Updated with SendMessageQueue.
  16894. (onAbort): Updated with SendMessageQueue.
  16895. (keepAlive): Updated with SendMessageQueue.
  16896. (beforeSocketCheck): Updated SendMessageQueue.
  16897. * src/PeerInteractionCommand (sendMessages): Shuffle
  16898. missingBLockIndexes before using it.
  16899. Added its own timeout for peer connection.
  16900. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16901. setter.
  16902. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16903. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16904. Added setTimeout() call.
  16905. (executeInternal): Added setTimeout() call.
  16906. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16907. Added timeout.
  16908. (isTimeoutDetected): Updated.
  16909. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16910. option.
  16911. Added *simple* message flooding checker.
  16912. * src/PeerInteractionCommand.cc (executeInternal):
  16913. Added detectMessageFlooding() call.
  16914. (detectMessageFlooding): New function.
  16915. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16916. (beforeSocketCheck): Added detectMessageFlooding() call.
  16917. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16918. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16919. Removed deletePendingPieceMessage(), getRequestSlot(),
  16920. deleteRequestSlot(), deleteAllRequestSlot().
  16921. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16922. Added checkLongTimePeerChoking() call.
  16923. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16924. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16925. if duplicate == false.
  16926. The parameter "uploaded" and "downloaded" in the tracker request are
  16927. the size since the client sent the "started" event to the tracker.
  16928. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16929. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16930. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16931. getSessionDownloadedSize(), getSessionUploadedSize().
  16932. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16933. getSessionUploadedSize() instead of getDownloadedSize(),
  16934. getUploadedSize().
  16935. * src/PendingMessage.cc (processMessage): Do not send request message
  16936. if the peer is choking the client.
  16937. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16938. less than interval.
  16939. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16940. * configure.in: Added gnutls support. Added several CPP macros.
  16941. * m4/openssl.m4: Added.
  16942. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16943. readData(), peekData(). Added gnutls support.
  16944. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16945. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16946. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16947. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16948. Instead, added a check for whether setup method has executed
  16949. successfully.
  16950. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16951. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16952. * src/Makefile.am: Updated.
  16953. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16954. using whether OpenSSL or gcrypt, depending on the result of configure
  16955. script.
  16956. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16957. messageDigest.h.
  16958. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16959. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16960. Fixed memory leak.
  16961. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16962. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16963. Removed instantiation of TrackerInitCommand. Instead,
  16964. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16965. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16966. ENABLE_SSL.
  16967. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16968. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16969. If a piece is already acquired by another command, delete the request
  16970. slots for the piece.
  16971. * src/TrackerUpdateCommand.cc (execute):
  16972. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16973. Added a check whether peer list is null.
  16974. Fixed the bug that causes sending completed event to the tracker
  16975. several times.
  16976. * src/TrackerInitCommand.cc (execute):
  16977. Fixed the bug that causes sending completed event to the tracker
  16978. several times.
  16979. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16980. by using messageDigest.h.
  16981. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16982. * PeerConnection.cc: Replaced log message "keep-alive" with
  16983. "keep alive".
  16984. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16985. localhost long time.
  16986. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16987. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16988. at most 100 failure entry from the list. If with duplicate = false,
  16989. MAX_PEER_LIST is not checked.
  16990. * PeerListenCommand.cc: Fixed the argument order of log message.
  16991. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16992. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16993. Added warn().
  16994. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16995. Implemented warn().
  16996. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16997. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16998. * Request.h: Added AFTER_COMPLETED event.
  16999. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17000. instead of downloaded size and progress(%) after download completes.
  17001. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17002. message to the peer if it is interested in what localhost has
  17003. downloaded.
  17004. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17005. destination instead of just renaming it.
  17006. * TorrentMan.cc: Added deleteTempFile().
  17007. * PeerAbstractCommand.cc: do not stop execution after download
  17008. completes. This makes localhost a seeder.
  17009. * Util.{h,cc}: Added fileCopy().
  17010. * PeerListenCommand.cc: do not stop execution after download completes.
  17011. This makes localhost a seeder.
  17012. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17013. Added TorrentMan::deleteTempFile() to torrentHandler.
  17014. Initialized the variable dir as ".".
  17015. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17016. Deleted renameSingleFile().
  17017. Added copySingleFile(), deleteTempFile().
  17018. * DownloadEngine.h: Added virtual function afterEachIteration().
  17019. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17020. in onEndOfRun() to afterEachIteration().
  17021. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17022. true.
  17023. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17024. In rangedFileCopy(), added try-catch block to properly close file
  17025. descriptors.
  17026. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17027. Added afterEachIteration(), isFilenameFixed().
  17028. * Peer.cc: Changed choking strategy.
  17029. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17030. * TrackerInitCommand.cc: Send completed event only once.
  17031. * DownloadEngine.cc: Added a call to afterEachIteration().
  17032. * TrackerUpdateCommand.cc: Do not stop execution after download
  17033. completes.
  17034. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17035. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17036. received from a tracker.
  17037. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17038. Decreased the number of failure peers to delete to 0(just comment out
  17039. the line).
  17040. * Release 0.3.1
  17041. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17042. * PeerInteractionCommand.cc: added a call to
  17043. TorrentMan::unadvertisePiece in Destructor.
  17044. * PeerInteractionCommand.cc: make have message sent immediately
  17045. if the size of pending message queue is zero.
  17046. * TorrentMan.cc: set the maximum size of peer list to 250.
  17047. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17048. to deque.
  17049. * Util.cc: fixed rangedFileCopy.
  17050. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17051. to Constructor. Also, moved digest cleanup to Destructor.
  17052. * MetaFileUtil.cc: fixed memory leak
  17053. * replaced std::vector with std::deque.
  17054. * AbstractCommand.cc: casted timeout value to long long int.
  17055. * ChunkedEncoding.cc: fixed memory leak.
  17056. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17057. * SleepCommand.cc: casted timeout value to long long int.
  17058. * Data.cc: fixed memory leak.
  17059. * Data.cc: fixed toLLInt().
  17060. * BitfieldMan.cc: fixed memory leak.
  17061. * TorrentMan.cc: initialized storeDir to ".".
  17062. * TorrentMan.cc: fixed memory leak.
  17063. * TorrentMan.cc: corrected file paths of splitted files.
  17064. * PeerAbstractCommand.cc: casted timeout to long long int.
  17065. * main.cc: added delete(req) and delete(te->diskWriter).
  17066. * RequestSlot.cc: casted timeout value to long long int.
  17067. * Request.cc: fixed memory leak.
  17068. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17069. have the piece.
  17070. * Peer.{h,cc}: added hasPiece(int index).
  17071. * main.cc: corrected addCommand.
  17072. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17073. * BitTorrent protocol support added.
  17074. * Release 0.3.0
  17075. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17076. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17077. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17078. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17079. decoding did not work properly.
  17080. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17081. * DownloadEngine.h: included sys/time.h
  17082. * DownloadEngine.cc: remove sys/time.h
  17083. * Makefile.am (SUBDIRS): Add intl.
  17084. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17085. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17086. * main.cc: correct help message for --http-auth-scheme.
  17087. * main.cc: changed e-mail address for bug reports.
  17088. * ja.po: added japanese translation.
  17089. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17090. * SimpleLogger.cc: flush log file instead of stdout.
  17091. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17092. * main.cc: Fixed command-line option: max-tries
  17093. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17094. does not equal to seg.sp.
  17095. * DownloadCommand.cc: If EOF is got from the server and the total size
  17096. of file is not zero, then throw DlRetryEx.
  17097. * main.cc: Set the minium value of min-segment-size to 1024.
  17098. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17099. fails because of a regression since 0.2.0 release.
  17100. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17101. * HttpConnection.cc:
  17102. * common.h: defined the user agent name as macro
  17103. * DownloadEngine.{h, cc}:
  17104. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17105. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17106. * main.cc: Download complete/abort message is now generated by main.
  17107. * Makefile.am (SUBDIRS): Add m4.
  17108. (ACLOCAL_AMFLAGS): New variable.
  17109. (EXTRA_DIST): New variable.
  17110. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17111. * gettext: added gettext functionality
  17112. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17113. * AbstractCommand.cc:
  17114. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17115. unregister its cuid from SegmentMan.
  17116. * DownloadEngine.cc: .aria2 file was written when a downloading
  17117. failed with errors.
  17118. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17119. Added "User-Agent" header to CONNECT proxy request.
  17120. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17121. properly.
  17122. * Logger.h:
  17123. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17124. * ChunkedEncoding.cc: Added #include directive for strings.h
  17125. * Release 0.2.1
  17126. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17127. * Util.{h,cc}: added startsWith().
  17128. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17129. Util::endsWith().
  17130. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17131. * common.h: added #include directive of limit.h.
  17132. * DownloadEngine.cc: added #include directive of sys/time.h and
  17133. algorithm.
  17134. * Exception.h: added #include directive of stdio.h.
  17135. * AbstractCommand.h: added #include directive of sys/time.h.
  17136. * DownloadCommand.h: added #include directive of sys/time.h.
  17137. * *.h: added #include directive of common.h to all base classes.
  17138. subclasses' one was removed.
  17139. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17140. does not define these macros.
  17141. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17142. * Release 0.2.0
  17143. * main.cc:
  17144. * HttpInitiateConnectionCommand.{h,cc}:
  17145. * prefs.h:
  17146. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17147. We can now use GET command in http proxy.
  17148. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17149. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17150. that splits slowest segment of SegmentMan::commands vector.
  17151. This is the default split algorithm of aria2.
  17152. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17153. that splits first segment of SegmentMan::commands vector.
  17154. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17155. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17156. * Segment.h:
  17157. * SegmentMan.cc: Added speed field to Segment.h
  17158. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17159. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17160. * message.h: Change file size related %d to %lld.
  17161. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17162. * FtpInitiateConnectionCommand.{h,cc}:
  17163. * FtpNegotiationCommand.{h,cc}:
  17164. * FtpDownloadCommand.{h,cc}:
  17165. * FtpConnection.{h,cc}: Added FTP support
  17166. * SimpleLogger.cc: Log message now includes time information.
  17167. * main.cc: The value of --http-auth-scheme option is chagned from
  17168. 'BASIC' to 'basic'
  17169. * main.cc: Added --timeout command-line option.
  17170. * main.cc: Added --min-segment-size command-line option.
  17171. * main.cc: Added --max-retries command-line option.
  17172. * prefs.h: option string constants are now defined in prefs.h
  17173. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17174. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17175. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17176. with version 0.1.0's one.
  17177. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17178. * configure.in: Added --enable-ssl option to configure script.
  17179. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17180. cannot permit absoluteURI as Request-URI.
  17181. * HttpConnection.cc: Added Referer support.
  17182. * main.cc: Added referer command-line option.
  17183. * main.cc: Added rety-wait command-line option.
  17184. * Exception.h: Fixed formating bug in Exception::setMsg()
  17185. * SocketCore.{h,cc}:
  17186. * Socket.{h, cc}:
  17187. * Request.cc:
  17188. * InitiateConnectionCommandFactory.cc:
  17189. * HttpRequestCommand.cc: Added HTTPS support.
  17190. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17191. for SocketCore.
  17192. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17193. size is wrong
  17194. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17195. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17196. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17197. * Release 0.1.0