ChangeLog 646 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762
  1. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added --bt-max-peers option to changeOption XML-RPC method.
  3. * src/XmlRpcMethod.cc
  4. * src/XmlRpcMethodImpl.cc
  5. * test/XmlRpcMethodTest.cc
  6. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  8. * test/XmlRpcMethodTest.cc
  9. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Removed redundant DownloadContext::hasAttribute(...) calls.
  11. * src/ConsoleStatCalc.cc
  12. * src/RequestGroup.cc
  13. * src/XmlRpcMethodImpl.cc
  14. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Changed the number of tracker request attempt from 5 to 2.
  16. * src/TrackerWatcherCommand.cc
  17. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Use host and protocol in original URI, because URI selector
  19. selects URI based on original URI, not redirected one.
  20. * src/Request.cc
  21. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Fixed the bug which causes segmentation fault with tellWaiting
  23. XML-RPC method when BitTorrent download is waiting. The key of
  24. BtRegistry is changed from info hash to GID, because it is
  25. registered per RequestGroup, not info hash.
  26. * src/BtRegistry.cc
  27. * src/BtRegistry.h
  28. * src/BtSetup.cc
  29. * src/ConsoleStatCalc.cc
  30. * src/InitiatorMSEHandshakeCommand.cc
  31. * src/PeerInitiateConnectionCommand.cc
  32. * src/PeerInteractionCommand.cc
  33. * src/PeerInteractionCommand.h
  34. * src/PeerReceiveHandshakeCommand.cc
  35. * src/RequestGroup.cc
  36. * src/XmlRpcMethodImpl.cc
  37. * test/BtRegistryTest.cc
  38. * test/XmlRpcMethodTest.cc
  39. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Updated man page for changeOption XML-RPC method.
  41. * doc/aria2c.1.txt
  42. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  44. method.
  45. * src/XmlRpcMethod.cc
  46. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Documented about BitTorrent Magnet URI in man page.
  48. * doc/aria2c.1.txt
  49. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Fixed the bug that trackers in BitTorrent Magnet URI are not
  51. inherited to generated RequestGroup.
  52. * src/UTMetadataPostDownloadHandler.cc
  53. * test/UTMetadataPostDownloadHandlerTest.cc
  54. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Prepended "[METADATA]" before dn.
  56. * src/bittorrent_helper.cc
  57. * test/BittorrentHelperTest.cc
  58. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Rewritten Magnet URI parser.
  60. * src/Makefile.am
  61. * src/ProtocolDetector.cc
  62. * src/bittorrent_helper.cc
  63. * src/bittorrent_helper.h
  64. * src/download_helper.cc
  65. * src/magnet.cc
  66. * src/magnet.h
  67. * test/BittorrentHelperTest.cc
  68. * test/MagnetTest.cc
  69. * test/Makefile.am
  70. * test/ProtocolDetectorTest.cc
  71. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Use hton64
  73. * src/base32.cc
  74. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Added Base32 encoded BitTorrent Magnet Link support.
  76. * src/Makefile.am
  77. * src/base32.cc
  78. * src/base32.h
  79. * src/bittorrent_helper.cc
  80. * test/Base32Test.cc
  81. * test/BittorrentHelperTest.cc
  82. * test/Makefile.am
  83. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Added BitTorrent Magnet Link support. Base32 encoded link is not
  85. supported yet. Fixed typo in method name in RequestGroup. In
  86. metadataGetMode, don't show "Your share ratio was ..." message.
  87. * src/DefaultBtInteractive.cc
  88. * src/DefaultBtInteractive.h
  89. * src/DownloadHandlerFactory.cc
  90. * src/DownloadHandlerFactory.h
  91. * src/HandshakeExtensionMessage.cc
  92. * src/Makefile.am
  93. * src/Metalink2RequestGroup.cc
  94. * src/PeerInteractionCommand.cc
  95. * src/RequestGroup.cc
  96. * src/RequestGroup.h
  97. * src/UTMetadataPostDownloadHandler.cc
  98. * src/UTMetadataPostDownloadHandler.h
  99. * src/download_helper.cc
  100. * test/HandshakeExtensionMessageTest.cc
  101. * test/Makefile.am
  102. * test/UTMetadataPostDownloadHandlerTest.cc
  103. * test/UTMetadataRejectExtensionMessageTest.cc
  104. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. In metadataGetMode, don't show SEEDING.
  106. * src/ConsoleStatCalc.cc
  107. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Fixed ut_metadata data handling. Implemented
  109. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  110. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  111. metadata_size is received.
  112. * src/DefaultExtensionMessageFactory.cc
  113. * src/DefaultExtensionMessageFactory.h
  114. * src/HandshakeExtensionMessage.cc
  115. * src/HandshakeExtensionMessage.h
  116. * src/UTMetadataDataExtensionMessage.cc
  117. * src/UTMetadataDataExtensionMessage.h
  118. * src/UTMetadataRequestExtensionMessage.cc
  119. * src/UTMetadataRequestFactory.cc
  120. * src/UTMetadataRequestFactory.h
  121. * src/UTMetadataRequestTracker.cc
  122. * src/UTMetadataRequestTracker.h
  123. * test/DefaultExtensionMessageFactoryTest.cc
  124. * test/HandshakeExtensionMessageTest.cc
  125. * test/MockBtMessage.h
  126. * test/UTMetadataDataExtensionMessageTest.cc
  127. * test/UTMetadataRequestExtensionMessageTest.cc
  128. * test/UTMetadataRequestFactoryTest.cc
  129. * test/UTMetadataRequestTrackerTest.cc
  130. * test/extension_message_test_helper.h
  131. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Drop connection if ut_metadata reject message is received.
  133. * src/UTMetadataRejectExtensionMessage.cc
  134. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  136. get high enough in that mode.
  137. * src/ActivePeerConnectionCommand.cc
  138. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Added BitTorrent magnet link support to ProtocolDetector.
  140. * src/ProtocolDetector.cc
  141. * src/ProtocolDetector.h
  142. * test/ProtocolDetectorTest.cc
  143. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. Don't inject validator into BtMessage in metadataGetMode because
  145. most of the checks depends on the total length of download but it
  146. is unknown. Delegate metadataGetMode to BtMessage.
  147. * src/DefaultBtMessageFactory.cc
  148. * src/DefaultBtMessageFactory.h
  149. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  151. * src/DefaultPieceStorage.h
  152. * src/PieceStorage.h
  153. * src/UnknownLengthPieceStorage.h
  154. * test/MockPieceStorage.h
  155. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Added markTotalLengthIsKnown().
  157. * src/DownloadContext.h
  158. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  160. missing. If metadata is missing, always use DHT when it is ready.
  161. * src/BtSetup.cc
  162. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Added parseMagnetLink(). Hex encoded info hash is supported.
  164. Base32 encoded info hash is not supported yet.
  165. * src/bittorrent_helper.cc
  166. * src/bittorrent_helper.h
  167. * test/BittorrentHelperTest.cc
  168. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Added FromHex()
  170. * src/util.cc
  171. * src/util.h
  172. * test/UtilTest.cc
  173. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Added _metadataGetMode member variable. It toggles the action when
  175. messages are received: usually they almost do nothing if
  176. _metadataGetMode is true.
  177. * src/AbstractBtMessage.cc
  178. * src/AbstractBtMessage.h
  179. * src/BtAllowedFastMessage.cc
  180. * src/BtBitfieldMessage.cc
  181. * src/BtCancelMessage.cc
  182. * src/BtChokeMessage.cc
  183. * src/BtHaveAllMessage.cc
  184. * src/BtHaveMessage.cc
  185. * src/BtInterestedMessage.cc
  186. * src/BtNotInterestedMessage.cc
  187. * src/BtPieceMessage.cc
  188. * src/BtRejectMessage.cc
  189. * src/BtRequestMessage.cc
  190. * src/BtUnchokeMessage.cc
  191. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Added bencode::decode overload functions. They have extra argument
  193. 'end', passed by reference. 'end' points to the beyond the last
  194. position of data used in decoding process.
  195. * src/bencode.cc
  196. * src/bencode.h
  197. * test/BencodeTest.cc
  198. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Initial support of Extension for Peers to Send Metadata
  200. Files(BEP9). Currently aria2 only serves metadata and cannot get
  201. metadata from swarm.
  202. * src/BtConstants.h
  203. * src/DefaultBtInteractive.cc
  204. * src/DefaultExtensionMessageFactory.cc
  205. * src/DefaultExtensionMessageFactory.h
  206. * src/ExtensionMessage.h
  207. * src/ExtensionMessageRegistry.h
  208. * src/HandshakeExtensionMessage.cc
  209. * src/HandshakeExtensionMessage.h
  210. * src/Makefile.am
  211. * src/PeerConnection.h
  212. * src/PeerInteractionCommand.cc
  213. * src/UTMetadataDataExtensionMessage.cc
  214. * src/UTMetadataDataExtensionMessage.h
  215. * src/UTMetadataExtensionMessage.cc
  216. * src/UTMetadataExtensionMessage.h
  217. * src/UTMetadataRejectExtensionMessage.cc
  218. * src/UTMetadataRejectExtensionMessage.h
  219. * src/UTMetadataRequestExtensionMessage.cc
  220. * src/UTMetadataRequestExtensionMessage.h
  221. * src/bittorrent_helper.cc
  222. * src/bittorrent_helper.h
  223. * test/BittorrentHelperTest.cc
  224. * test/DefaultExtensionMessageFactoryTest.cc
  225. * test/HandshakeExtensionMessageTest.cc
  226. * test/Makefile.am
  227. * test/UTMetadataDataExtensionMessageTest.cc
  228. * test/UTMetadataRejectExtensionMessageTest.cc
  229. * test/UTMetadataRequestExtensionMessageTest.cc
  230. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  231. Cancel segment in prepareForRetry() because there is a chance that
  232. the command has segments.
  233. * src/CreateRequestCommand.cc
  234. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Fixed the bug that slow server is not knocked down in favor of
  236. faster one.
  237. * src/AbstractCommand.cc
  238. * src/DefaultPieceStorage.cc
  239. * src/DefaultPieceStorage.h
  240. * src/PieceStorage.h
  241. * src/UnknownLengthPieceStorage.cc
  242. * src/UnknownLengthPieceStorage.h
  243. * test/MockPieceStorage.h
  244. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Fixed the bug that Request object is not added to
  246. _inFlightRequests in findFasterRequest().
  247. * src/FileEntry.cc
  248. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Changed the strategry of how to increase the number of outstanding
  250. requests. Now the number is doubled if there are no outstanding
  251. requests after receiving messages.
  252. * src/BtConstants.h
  253. * src/DefaultBtInteractive.cc
  254. * src/DefaultBtInteractive.h
  255. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Check socket for reading if there are outstanding requests.
  257. * src/PeerInteractionCommand.cc
  258. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Moved frequently called methods to header file so they get
  260. inlined.
  261. * src/RequestSlot.cc
  262. * src/RequestSlot.h
  263. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Copied in_addr instead of just casting from char* which might
  265. violate strict aliasing rules.
  266. * src/AsyncNameResolver.cc
  267. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Use dynamic_pointer_cast
  269. * test/BtPieceMessageTest.cc
  270. * test/BtRequestMessageTest.cc
  271. * test/DefaultBtRequestFactoryTest.cc
  272. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Added testSetUrl20()
  274. * test/RequestTest.cc
  275. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Code cleanup
  277. * src/bittorrent_helper.cc
  278. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Use C++ style cast
  280. * src/AsyncNameResolver.cc
  281. * src/Base64.h
  282. * src/BtBitfieldMessage.cc
  283. * src/BtHandshakeMessage.cc
  284. * src/DefaultBtMessageFactory.cc
  285. * src/DefaultBtProgressInfoFile.cc
  286. * src/EpollEventPoll.cc
  287. * src/ExpatMetalinkProcessor.cc
  288. * src/IteratableChecksumValidator.cc
  289. * src/IteratableChunkChecksumValidator.cc
  290. * src/MessageDigestHelper.cc
  291. * src/Platform.cc
  292. * src/RequestGroupMan.cc
  293. * src/SingleFileAllocationIterator.cc
  294. * src/Sqlite3MozCookieParser.cc
  295. * src/XML2SAXMetalinkProcessor.cc
  296. * src/Xml2XmlRpcRequestProcessor.cc
  297. * src/util.cc
  298. * src/util.h
  299. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Fixed integer potential alignment problem.
  301. * src/bitfield.h
  302. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Applied a patch from tizianomueller to fix sigbus errors on Linux
  304. sparc. I modified the patch to eliminate a cast to uint32_t* and
  305. include file ordering.
  306. * src/PeerListProcessor.h
  307. * src/bittorrent_helper.cc
  308. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  310. * src/Request.cc
  311. * src/util.cc
  312. * src/util.h
  313. * test/RequestTest.cc
  314. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Rewritten util::uitos()
  316. * src/util.h
  317. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Code cleanup
  319. * src/Request.cc
  320. * src/Request.h
  321. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Rewritten Request::parseUrl()
  323. * src/Request.cc
  324. * test/RequestTest.cc
  325. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Removed unused macro SAFE_CHARS
  327. * src/Request.cc
  328. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Updated doc
  330. * src/DHTRoutingTableDeserializer.cc
  331. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Release 1.6.3
  333. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Removed unused function.
  335. * test/DHTPeerAnnounceStorageTest.cc
  336. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Only decrement cols if cols > 0
  338. * src/ConsoleStatCalc.cc
  339. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Updated Polish, Catalan, French, Italian, Russian and Japanese
  341. translations. Thanks to all translators.
  342. * po/ca.po
  343. * po/fr.po
  344. * po/it.po
  345. * po/ja.po
  346. * po/pl.po
  347. * po/ru.po
  348. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Updated translation template
  350. * po
  351. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Fixed compile error without ssl library.
  353. * src/util.cc
  354. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Logged received nodes in get_peers reply message.
  356. * src/DHTAbstractNodeLookupTask.cc
  357. * src/DHTAbstractNodeLookupTask.h
  358. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  360. error occurred in DHTMessageDispatcherImpl::sendMessage().
  361. * src/DHTMessageDispatcherImpl.cc
  362. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Don't reuse URI if Request pool is not empty.
  364. * src/CreateRequestCommand.cc
  365. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  367. receive get_peers request for torrent which the client is now
  368. downloading.
  369. * src/BtSetup.cc
  370. * src/DHTPeerAnnounceEntry.cc
  371. * src/DHTPeerAnnounceEntry.h
  372. * src/DHTPeerAnnounceStorage.cc
  373. * src/DHTPeerAnnounceStorage.h
  374. * src/RequestGroup.cc
  375. * test/DHTPeerAnnounceEntryTest.cc
  376. * test/DHTPeerAnnounceStorageTest.cc
  377. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Fixed the bug that in Windows environment new blank line is
  379. inserted when console readout is updated.
  380. * src/ConsoleStatCalc.cc
  381. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Throw exception if binding listening port is failed. Removed
  383. RequestGroupMan::getInitialCommand(). Use
  384. fillRequestGroupFromReserver() instead. Delete commands for
  385. RequestGroup which has errors when it is being added.
  386. * src/BtSetup.cc
  387. * src/DownloadEngine.cc
  388. * src/DownloadEngine.h
  389. * src/DownloadEngineFactory.cc
  390. * src/MultiUrlRequestInfo.cc
  391. * src/RequestGroupMan.cc
  392. * src/RequestGroupMan.h
  393. * test/RequestGroupManTest.cc
  394. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Fixed the bug that when downloading more than one torrent,
  396. listening port is not reported properly to tracker for 2nd or
  397. later torrents.
  398. * src/BtSetup.cc
  399. * src/PeerListenCommand.cc
  400. * src/PeerListenCommand.h
  401. * src/RequestGroup.cc
  402. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Bump up version number to 1.6.3
  404. * configure.ac
  405. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Removed Util.cc from POTFILES.in
  407. * po/POTFILES.in
  408. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  409. Updated man page for previous change.
  410. * doc/aria2c.1.txt
  411. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. If user name is embedded but password is missing in URI, first
  413. resolve password using .netrc. If password is found in .netrc,
  414. then use it as password. If not, use the password specified in
  415. --ftp-passwd.
  416. * src/AuthConfigFactory.cc
  417. * src/Request.cc
  418. * src/Request.h
  419. * test/AuthConfigFactoryTest.cc
  420. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Fixed typo
  422. * doc/aria2c.1.txt
  423. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Fixed typo
  425. * src/usage_text.h
  426. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Added missing bitfield.cc
  428. * src/bitfield.cc
  429. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Renamed Util.{cc,h} as util.{cc,h}
  431. * src/Util.cc
  432. * src/Util.h
  433. * src/util.cc
  434. * src/util.h
  435. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Moved static functions in Util class to namespace util.
  437. * src
  438. * test
  439. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  441. Moved generateRandomKey to bittorrent_helper.cc.
  442. * src/DHTBucket.cc
  443. * src/DHTGetPeersMessage.cc
  444. * src/DHTGetPeersReplyMessage.cc
  445. * src/DHTMessage.cc
  446. * src/DHTNode.cc
  447. * src/DHTTokenTracker.cc
  448. * src/DHTUtil.cc: Removed.
  449. * src/DHTUtil.h: Removed.
  450. * src/Makefile.am
  451. * src/Util.cc
  452. * src/Util.h
  453. * src/bitfield.h
  454. * src/bittorrent_helper.cc
  455. * src/bittorrent_helper.h
  456. * test/ARC4Test.cc
  457. * test/BNodeTest.cc
  458. * test/DHTAnnouncePeerMessageTest.cc
  459. * test/DHTAnnouncePeerReplyMessageTest.cc
  460. * test/DHTFindNodeMessageTest.cc
  461. * test/DHTFindNodeReplyMessageTest.cc
  462. * test/DHTGetPeersMessageTest.cc
  463. * test/DHTGetPeersReplyMessageTest.cc
  464. * test/DHTPingMessageTest.cc
  465. * test/DHTPingReplyMessageTest.cc
  466. * test/DHTTokenTrackerTest.cc
  467. * test/DHTUtilTest.cc: Removed.
  468. * test/Makefile.am
  469. * test/UtilTest.cc
  470. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Removed the call to trim() because trim() is called for each
  472. element in split().
  473. * src/CookieParser.cc
  474. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Replaced Util::slice() with split()
  476. * src/AbstractCommand.cc
  477. * src/CookieParser.cc
  478. * src/File.cc
  479. * src/HttpHeaderProcessor.cc
  480. * src/HttpRequest.cc
  481. * src/Metalink2RequestGroup.cc
  482. * src/MetalinkParserController.cc
  483. * src/Netrc.cc
  484. * src/NsCookieParser.cc
  485. * src/ParameterizedStringParser.cc
  486. * src/ServerStatMan.cc
  487. * src/UriListParser.cc
  488. * src/Util.cc
  489. * src/Util.h
  490. * src/bittorrent_helper.cc
  491. * test/UtilTest.cc
  492. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Use request->getDir() instead of "/" for embedded user/pass in
  494. URI.
  495. * src/AuthConfigFactory.cc
  496. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. Fixed wrong insertion point for BasicCred.
  498. * src/AuthConfigFactory.cc
  499. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Allowed non-regular file in LocalFilePathOptionHandler
  501. * src/OptionHandlerImpl.h
  502. * src/message.h
  503. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Fixed the bug that Netrc::parse() cannot recognize comment line.
  505. * src/Netrc.cc
  506. * src/Util.h
  507. * test/NetrcTest.cc
  508. * test/sample.netrc
  509. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Fixed typo
  511. * src/BtDependency.cc
  512. * src/BtRejectMessage.cc
  513. * src/FtpConnection.cc
  514. * src/HttpHeaderProcessor.h
  515. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  516. Fixed lintian report in man page
  517. * doc/aria2c.1.txt
  518. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Release 1.6.2
  520. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Updated Ukrainian translation. Thanks to all translators.
  522. * po/uk.po
  523. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Updated translation template
  525. * po
  526. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Bump up version number to 1.6.2
  528. * configure.ac
  529. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Updated licence message in -v output.
  531. * src/version_usage.cc
  532. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Replaced aria2 with aria2c in help message.
  534. * src/version_usage.cc
  535. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  537. * src/version_usage.cc
  538. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Quoted localedir
  540. * src/Makefile.am
  541. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  543. utime. Check header for utime.h.
  544. * configure.ac
  545. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  547. * configure.ac
  548. * src/daemon.cc
  549. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Don't set localedir manually. Leave it to autoconf.
  551. * configure.ac
  552. * src/Makefile.am
  553. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Added --install to ACLOCAL_AMFLAGS.
  555. Removed m4 from SUBDIRS.
  556. Updated automake 1.11 and autoconf 2.64.
  557. Replaced some obsolute macros with new one.
  558. * Makefile.am
  559. * configure.ac
  560. * m4/aria2_arg.m4
  561. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Removed Makefile.am in m4 directory.
  563. * configure.ac
  564. * m4/ChangeLog
  565. * m4/Makefile.am
  566. * m4/Makefile.in
  567. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Removed unused m4 macros.
  569. * m4/intldir.m4
  570. * m4/inttypes.m4
  571. * m4/isc-posix.m4
  572. * m4/libgnutls-extra.m4
  573. * m4/ulonglong.m4
  574. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Fixed the bug that causes segmentation fault if
  576. req->getCurrentUrl() contains printf formatting characters such as
  577. %d. The statement that causes this bug is useless and removed.
  578. * src/AbstractCommand.cc
  579. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. * Release 1.6.1
  581. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Updated Simplified Chinese translation. Thanks to translators.
  583. * po/zh_CN.po
  584. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Updated translation template
  586. * po
  587. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Bump up version number to 1.6.1
  589. * configure.ac
  590. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Changed interval from 120 to 60 for dropping inactive peer.
  592. * src/DefaultBtInteractive.cc
  593. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Updated man page for --user-agent and --peer-id-prefix option.
  595. * doc/aria2c.1.txt
  596. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Code clean up
  598. * src/BtPostDownloadHandler.cc
  599. * src/ContentTypeRequestGroupCriteria.cc
  600. * src/ContentTypeRequestGroupCriteria.h
  601. * src/DownloadHandlerConstants.cc
  602. * src/DownloadHandlerConstants.h
  603. * src/DownloadHandlerFactory.cc
  604. * src/MetalinkPostDownloadHandler.cc
  605. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Don't save control file when aria2 exists while checking piece
  607. hash(behavior of -V option). If control file doesn't exist when
  608. aria2 launched, the completed length in saved control file will be
  609. 0 byte and this confuses user. disableSaveControlFile() is called
  610. in RequestGroup::processCheckIntegrityEntry().
  611. enableSaveControlFile() will be called after hash checking is
  612. done. See CheckIntegrityCommand.
  613. * src/CheckIntegrityCommand.cc
  614. * src/RequestGroup.cc
  615. * src/RequestGroup.h
  616. * src/RequestGroupMan.cc
  617. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Included version number in Peer ID and client version. Peer ID
  619. now starts with "aria2/VERSION-", where VERSION is
  620. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  621. * src/DefaultBtInteractive.cc
  622. * src/OptionHandlerFactory.cc
  623. * src/bittorrent_helper.cc
  624. * src/bittorrent_helper.h
  625. * src/main.cc
  626. * src/usage_text.h
  627. * test/BittorrentHelperTest.cc
  628. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Fixed memory leak.
  630. * src/DownloadCommand.cc
  631. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Removed server, port, user and passwd key from options before
  633. XMLRPC::Client.call since they are not options of aria2.
  634. * doc/xmlrpc/aria2mon
  635. * doc/xmlrpc/aria2rpc
  636. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. Included version number in user-agent string.
  638. * src/OptionHandlerFactory.cc
  639. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Fixed the bug that the option values changed by XML-RPC
  641. method(changeOption and changeGlobalOption) are overwritten to the
  642. previous value by the next these request which doesn't contain
  643. that option value. Supporse max-download-limit is initially 0. You
  644. changed this value to 100K by changeOption. Then you issue
  645. changeOption request to change max-upload-limit to 50K. This
  646. second request doesn't contain xml-download-limit, so it is back
  647. to initial value, 0. Another improvement is that exception is
  648. thrown when changeOption and changeGlobalOption request contains
  649. option name which doesn't allowed in each request.
  650. * src/DownloadEngine.h
  651. * src/XmlRpcMethod.cc
  652. * src/XmlRpcMethod.h
  653. * src/XmlRpcMethodImpl.cc
  654. * src/download_helper.cc
  655. * src/download_helper.h
  656. * test/XmlRpcMethodTest.cc
  657. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Added missing MetalinkParserStateImpl.{cc,h}
  659. * src/MetalinkParserStateImpl.cc
  660. * src/MetalinkParserStateImpl.h
  661. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Put all MetalinkParserState subclasses into
  663. MetalinkParserStateImpl.cc. Use stack to track element structure.
  664. * src/FileMetalinkParserState.cc: Removed
  665. * src/FileMetalinkParserState.h: Removed
  666. * src/FilesMetalinkParserState.cc: Removed
  667. * src/FilesMetalinkParserState.h: Removed
  668. * src/FinMetalinkParserState.cc: Removed
  669. * src/FinMetalinkParserState.h: Removed
  670. * src/HashMetalinkParserState.cc: Removed
  671. * src/HashMetalinkParserState.h: Removed
  672. * src/InitialMetalinkParserState.cc: Removed
  673. * src/InitialMetalinkParserState.h: Removed
  674. * src/LanguageMetalinkParserState.cc: Removed
  675. * src/LanguageMetalinkParserState.h: Removed
  676. * src/Makefile.am
  677. * src/MetalinkMetalinkParserState.cc: Removed
  678. * src/MetalinkMetalinkParserState.h: Removed
  679. * src/MetalinkParserState.h
  680. * src/MetalinkParserStateMachine.cc
  681. * src/MetalinkParserStateMachine.h
  682. * src/OSMetalinkParserState.cc: Removed
  683. * src/OSMetalinkParserState.h: Removed
  684. * src/PieceHashMetalinkParserState.cc: Removed
  685. * src/PieceHashMetalinkParserState.h: Removed
  686. * src/PiecesMetalinkParserState.cc: Removed
  687. * src/PiecesMetalinkParserState.h: Removed
  688. * src/ResourcesMetalinkParserState.cc: Removed
  689. * src/ResourcesMetalinkParserState.h: Removed
  690. * src/SignatureMetalinkParserState.cc: Removed
  691. * src/SignatureMetalinkParserState.h: Removed
  692. * src/SizeMetalinkParserState.cc: Removed
  693. * src/SizeMetalinkParserState.h: Removed
  694. * src/SkipTagMetalinkParserState.cc: Removed
  695. * src/SkipTagMetalinkParserState.h: Removed
  696. * src/URLMetalinkParserState.cc: Removed
  697. * src/URLMetalinkParserState.h: Removed
  698. * src/VerificationMetalinkParserState.cc: Removed
  699. * src/VerificationMetalinkParserState.h: Removed
  700. * src/VersionMetalinkParserState.cc: Removed
  701. * src/VersionMetalinkParserState.h: Removed
  702. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Move all functions in PeerMessageUtil to bittorrent_helper.
  704. * src/BtBitfieldMessage.cc
  705. * src/BtBitfieldMessageValidator.h
  706. * src/BtExtendedMessage.cc
  707. * src/BtHandshakeMessage.cc
  708. * src/BtHandshakeMessageValidator.h
  709. * src/BtPieceMessage.cc
  710. * src/BtPieceMessageValidator.h
  711. * src/BtPortMessage.cc
  712. * src/DHTFindNodeReplyMessage.cc
  713. * src/DHTGetPeersReplyMessage.cc
  714. * src/DHTMessageFactoryImpl.cc
  715. * src/DHTRoutingTableDeserializer.cc
  716. * src/DHTRoutingTableSerializer.cc
  717. * src/DHTTokenTracker.cc
  718. * src/DefaultBtMessageFactory.cc
  719. * src/IndexBtMessage.cc
  720. * src/IndexBtMessage.h
  721. * src/IndexBtMessageValidator.h
  722. * src/Makefile.am
  723. * src/PeerMessageUtil.cc: Removed.
  724. * src/PeerMessageUtil.h: Removed.
  725. * src/RangeBtMessage.cc
  726. * src/RangeBtMessage.h
  727. * src/RangeBtMessageValidator.h
  728. * src/UTPexExtensionMessage.cc
  729. * src/ZeroBtMessage.cc
  730. * src/ZeroBtMessage.h
  731. * src/bittorrent_helper.cc
  732. * src/bittorrent_helper.h
  733. * test/BittorrentHelperTest.cc
  734. * test/BtAllowedFastMessageTest.cc
  735. * test/BtBitfieldMessageTest.cc
  736. * test/BtCancelMessageTest.cc
  737. * test/BtChokeMessageTest.cc
  738. * test/BtExtendedMessageTest.cc
  739. * test/BtHandshakeMessageTest.cc
  740. * test/BtHaveAllMessageTest.cc
  741. * test/BtHaveMessageTest.cc
  742. * test/BtHaveNoneMessageTest.cc
  743. * test/BtInterestedMessageTest.cc
  744. * test/BtNotInterestedMessageTest.cc
  745. * test/BtPieceMessageTest.cc
  746. * test/BtPortMessageTest.cc
  747. * test/BtRejectMessageTest.cc
  748. * test/BtRequestMessageTest.cc
  749. * test/BtSuggestPieceMessageTest.cc
  750. * test/BtUnchokeMessageTest.cc
  751. * test/DHTFindNodeReplyMessageTest.cc
  752. * test/DHTGetPeersReplyMessageTest.cc
  753. * test/DHTMessageFactoryImplTest.cc
  754. * test/DHTRoutingTableDeserializerTest.cc
  755. * test/DHTRoutingTableSerializerTest.cc
  756. * test/DefaultBtMessageFactoryTest.cc
  757. * test/DefaultExtensionMessageFactoryTest.cc
  758. * test/Makefile.am
  759. * test/PeerListProcessorTest.cc
  760. * test/PeerMessageUtilTest.cc: Removed.
  761. * test/UTPexExtensionMessageTest.cc
  762. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Limit the size of values list when sending get_peers reply.
  764. * src/DHTGetPeersReplyMessage.cc
  765. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Updated banner
  767. * doc/xmlrpc/aria2rpc
  768. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Added missing help message for remove command.
  770. * doc/xmlrpc/aria2rpc
  771. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Generated configure and config.h.in
  773. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  774. Add check for fork(), which is missing on MinGW
  775. * src/daemon.cc
  776. * configure.ac
  777. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  779. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  780. Util::httpGMT().
  781. * src/Util.cc
  782. * src/Util.h
  783. * test/UtilTest.cc
  784. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. * Release 1.6.0
  786. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Fixed a path to xmlrpc/README.txt
  788. * doc/Makefile.am
  789. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Added XML-RPC in -v Configuration output.
  791. * src/FeatureConfig.cc
  792. * src/FeatureConfig.h
  793. * test/FeatureConfigTest.cc
  794. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Updated Bulgarian, Russian, Slovak and Japanese
  796. translations. Thanks to all translators.
  797. * po/bg.po
  798. * po/ja.po
  799. * po/ru.po
  800. * po/sk.po
  801. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Removed --retry-wait option from aria2rpc
  803. * doc/xmlrpc/aria2rpc
  804. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Removed --retry-wait option from man page.
  806. * doc/aria2c.1.txt
  807. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Removed --retry-wait option since the current architecture doesn't
  809. allow sleep for particular URI.
  810. * src/AbstractCommand.cc
  811. * src/OptionHandlerFactory.cc
  812. * src/download_helper.cc
  813. * src/prefs.cc
  814. * src/prefs.h
  815. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Removed Retry-After header support. Since the current architecture
  817. doesn't allow sleep for particular URI.
  818. * src/HttpSkipResponseCommand.cc
  819. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Updated the help message for --daemon option.
  821. * doc/aria2c.1.txt
  822. * src/usage_text.h
  823. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Added our own daemon() function for systems which desn't have
  825. daemon(3).
  826. * configure.ac
  827. * src/Makefile.am
  828. * src/daemon.cc
  829. * src/daemon.h
  830. * src/option_processing.cc
  831. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Simplified File::getCurrentDir()
  833. * src/File.cc
  834. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Use exit() instead of _exit
  836. * src/RequestGroupMan.cc
  837. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Replaced "CATEGORY" with "TAGS".
  839. * src/usage_text.h
  840. * doc/aria2c.1.txt
  841. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Updated the help message for --help option.
  843. * src/usage_text.h
  844. * doc/aria2c.1.txt
  845. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Updated man page for added help tags.
  847. * doc/aria2c.1.txt
  848. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Added help category #file. Added #file tag to the options related
  850. to downloaded file.
  851. * src/OptionHandlerFactory.cc
  852. * src/help_tags.h
  853. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Added help categories: #cookie and #hook. Added #https tag to
  855. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  856. * src/OptionHandlerFactory.cc
  857. * src/help_tags.h
  858. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Made MSG_NOT_FILE translatable.
  860. * src/message.h
  861. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Updated man page for --help option.
  863. * doc/aria2c.1.txt
  864. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Updated doc.
  866. * src/XmlRpcMethod.h
  867. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Help category now starts with "#" to distinguish a category from
  869. keyword search. For example, "http" categroy is now "#http". You
  870. can type "--help=#http" to get explanation of options related to
  871. http. If '#' is omitted, then the argument is treated as a keyword
  872. and aria2 searches options whose name includes the keyword and
  873. print matched ones. For example, "--help=http" will show options
  874. whose name includes "http".
  875. * src/OptionHandlerFactory.cc
  876. * src/help_tags.h
  877. * src/usage_text.h
  878. * src/version_usage.cc
  879. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Documented missing experimental tag and newly added xml-rpc tag in
  881. man page.
  882. * doc/aria2c.1.txt
  883. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Added xml-rpc help tag. Tagged xml-rpc related options with
  885. xml-rpc tag.
  886. * src/OptionHandlerFactory.cc
  887. * src/help_tags.h
  888. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Updated message when a path is not a file. Updated common message
  890. for wrong option.
  891. * src/OptionHandlerException.cc
  892. * src/message.h
  893. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  894. Use File::isFile() instead of File::exists(). Updated message when
  895. a path is not a file.
  896. * src/OptionHandlerImpl.cc
  897. * src/message.h
  898. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Fixed the bug that server performence profile is not updated when
  900. aria2c was terminated by emergency shutdown.
  901. * src/TrackerWatcherCommand.cc
  902. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Use LocalFilePathOptionHandler for -T and -M option.
  904. Updated message of MSG_FILE_NOT_EXIST.
  905. * src/OptionHandlerFactory.cc
  906. * src/message.h
  907. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Added LocalFilePathOptionHandler which check whether the specified
  909. file path does exist or not.
  910. * src/OptionHandlerImpl.cc
  911. * src/message.h
  912. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Updated wiki page URI.
  914. * README
  915. * doc/aria2c.1.txt
  916. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Added README.txt for xmlrpc directory.
  918. * doc/Makefile.am
  919. * doc/xmlrpc/README.txt
  920. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Bump up version number to 1.6.0.
  922. * configure.ac
  923. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Added XML-RPC client scripts written in ruby.
  925. * doc/Makefile.am
  926. * doc/xmlrpc/aria2mon
  927. * doc/xmlrpc/aria2rpc
  928. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Added support for IPv6 literal address in URI. Now aria2 can
  930. handle URI such as http://[::1]/
  931. * src/HttpRequest.cc
  932. * src/HttpRequest.h
  933. * src/Request.cc
  934. * src/Request.h
  935. * test/HttpRequestTest.cc
  936. * test/OptionHandlerTest.cc
  937. * test/RequestTest.cc
  938. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Fixed the bug that HTTP request header for XML-RPC request is not
  940. parsed properly.
  941. * src/HttpHeader.cc
  942. * src/HttpHeaderProcessor.cc
  943. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Fixed the bug that XML-RPC authorization might be done before HTTP
  945. request header is fully received.
  946. * src/HttpServerCommand.cc
  947. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Documented --xml-rpc-listen-all option in man page.
  949. * doc/aria2c.1.txt
  950. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Added --xml-rpc-listen-all option. If true is given to this
  952. option, aria2 listens incoming XML-RPC requests on all network
  953. interfaces. If false is given, listens only on local loopback
  954. interface. The default value is false.
  955. * src/HttpListenCommand.cc
  956. * src/OptionHandlerFactory.cc
  957. * src/SocketCore.cc
  958. * src/SocketCore.h
  959. * src/prefs.cc
  960. * src/prefs.h
  961. * src/usage_text.h
  962. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. * Release 1.5.2
  964. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Updated Ukrainian and Russian translations. Thanks to all
  966. translators.
  967. * po/ru.po
  968. * po/uk.po
  969. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Bump up version number to 1.5.2
  971. * configure.ac
  972. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Get comment, comment.utf-8, created by and creation date from
  974. .torrent file and print them in -S output.
  975. * src/bittorrent_helper.cc
  976. * src/bittorrent_helper.h
  977. * test/BittorrentHelperTest.cc
  978. * test/test.torrent
  979. * test/utf8.torrent
  980. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Show exact file size along in -S option output.
  982. * src/Util.h
  983. * src/bittorrent_helper.cc
  984. * test/UtilTest.cc
  985. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Avoided unnecessary memory allocation in
  987. BitfieldMan::getCompletedLength().
  988. * src/BitfieldMan.cc
  989. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. Fixed the bug that download fails if
  991. SocketCore::establishConnection() throws exception and aria2
  992. doesn't try another address.
  993. * src/AbstractCommand.cc
  994. * src/InitiateConnectionCommand.cc
  995. * src/message.h
  996. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  997. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  998. detected properly.
  999. * m4/sqlite3.m4
  1000. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1002. because it causes compile error if PARAMS macro is defined.
  1003. * src/XmlRpcElements.cc
  1004. * src/XmlRpcElements.h
  1005. * src/XmlRpcRequestParserStateImpl.cc
  1006. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. * Release 1.5.1
  1008. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1009. Bump up version number to 1.5.1
  1010. * configure.ac
  1011. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Fixed compile error without BitTorrent support
  1013. * src/DefaultBtProgressInfoFile.cc
  1014. * src/DownloadEngine.cc
  1015. * src/DownloadEngine.h
  1016. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Added missing '=' in Download Results
  1018. * src/RequestGroupMan.cc
  1019. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1020. Fixed compiler warning
  1021. * src/DefaultBtProgressInfoFile.cc
  1022. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Fixed compiler warning on 32bit systems.
  1024. * src/DownloadCommand.cc
  1025. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Call flush from ServerStatMan::save()
  1027. * src/ServerStatMan.cc
  1028. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Check stream status after file is opened.
  1030. * src/CookieStorage.cc
  1031. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Rewritten Signature::save()
  1033. * src/Signature.cc
  1034. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Rewritten RequestGroupMan::saveServerStat()
  1036. * src/RequestGroupMan.cc
  1037. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Rewritten stream error handling
  1039. * src/DHTAutoSaveCommand.cc
  1040. * src/DHTRoutingTableDeserializer.cc
  1041. * src/DHTRoutingTableSerializer.cc
  1042. * src/DHTSetup.cc
  1043. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Check stream status after file is opened.
  1045. * src/DefaultBtProgressInfoFile.cc
  1046. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Rewritten stream error handling
  1048. * src/DefaultBtProgressInfoFile.cc
  1049. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Make sure that stream is closed before renaming file. Unit test
  1051. fails on mingw32 in the previous implementation.
  1052. * src/CookieStorage.cc
  1053. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Fixed the unit test error without sqlite3
  1055. * test/CookieStorageTest.cc
  1056. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Fixed the undefined reference error
  1058. * test/HttpResponseTest.cc
  1059. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. * Release 1.5.0
  1061. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1063. Ukrainian translations. Thanks to all translators.
  1064. * po/ru.po
  1065. * po/it.po
  1066. * po/da.po
  1067. * po/bg.po
  1068. * po/ja.po
  1069. * po/uk.po
  1070. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Added missing src/Logger.cc
  1072. * src/Logger.cc
  1073. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Rewritten Logger to avoiding constly virtual call.
  1075. * src/LogFactory.cc
  1076. * src/LogFactory.h
  1077. * src/Logger.h
  1078. * src/Makefile.am
  1079. * src/Makefile.in
  1080. * src/NullLogger.h: Removed.
  1081. * src/SimpleLogger.cc
  1082. * src/SimpleLogger.h
  1083. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Updated doc
  1085. * src/main.cc
  1086. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Updated debug log message
  1088. * src/AbstractCommand.cc
  1089. * src/message.h
  1090. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Avoid to create zombie process when commands specified in
  1092. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1093. X and NetBSD.
  1094. * src/main.cc
  1095. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Fixed typo
  1097. * src/usage_text.h
  1098. * doc/aria2c.1.txt
  1099. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Documented 'errorCode' of tellStatus in man page.
  1101. * doc/aria2c.1.txt
  1102. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1104. This key is only available for stopped/completed downloads and its
  1105. value is the error code defined in EXIT STATUS in man page.
  1106. * src/XmlRpcMethodImpl.cc
  1107. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Fixed the bug that session download length is not updated when
  1109. PeerStat is not fastest one.
  1110. * src/SegmentMan.cc
  1111. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Updated doc.
  1113. * doc/aria2c.1.txt
  1114. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Updated doc.
  1116. * src/AbstractCommand.cc
  1117. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Handle the case when DownloadContext has no FileEntry.
  1119. * src/XmlRpcMethodImpl.cc
  1120. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Handle the situation where struct option.name is char *.
  1122. * configure.ac
  1123. * src/OptionParser.cc
  1124. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Code cleanup
  1126. * src/AbstractCommand.cc
  1127. * src/DownloadCommand.cc
  1128. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Use option of each download to create AuthConfig instead of global
  1130. option.
  1131. * src/AuthConfigFactory.cc
  1132. * src/AuthConfigFactory.h
  1133. * src/FtpNegotiationCommand.cc
  1134. * src/HttpRequest.cc
  1135. * src/HttpRequest.h
  1136. * src/HttpRequestCommand.cc
  1137. * src/HttpSkipResponseCommand.cc
  1138. * src/MultiUrlRequestInfo.cc
  1139. * test/AuthConfigFactoryTest.cc
  1140. * test/FtpConnectionTest.cc
  1141. * test/HttpRequestTest.cc
  1142. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1143. Don't call prepareForRetry(1) if all segments are ignored in
  1144. SegmentMan.
  1145. * src/AbstractCommand.cc
  1146. * src/BitfieldMan.cc
  1147. * src/BitfieldMan.h
  1148. * src/SegmentMan.cc
  1149. * src/SegmentMan.h
  1150. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Removed FileEntry::getAssociatedUris()
  1152. * src/FileEntry.h
  1153. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Updated doc: TODO1.5 -> TODO
  1155. * src/FileEntry.cc
  1156. * src/HttpResponseCommand.cc
  1157. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1159. involved.
  1160. * src/RequestGroup.cc
  1161. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Eliminated duplicated filterBitfield initialization code.
  1163. * src/BitfieldMan.cc
  1164. * src/BitfieldMan.h
  1165. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1167. relatively naive approach, though). For DownloadFailureException,
  1168. we handle the case when req is null properly.
  1169. * src/AbstractCommand.cc
  1170. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. Added function returning suffix of control file to
  1172. DefaultBtProgressInfoFile.
  1173. * src/DefaultBtProgressInfoFile.cc
  1174. * src/DefaultBtProgressInfoFile.h
  1175. * src/RequestGroup.cc
  1176. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Documented getVersion in man page.
  1178. * doc/aria2c.1.txt
  1179. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Documented type of offset and num for tellWaiting xml-rpc method.
  1181. * doc/aria2c.1.txt
  1182. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Implemented getVersion xml-rpc method. This method returns struct
  1184. which has 2 key-value pairs: "version" key is associated to the
  1185. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1186. associated to the list of enabled features, such as "Async DNS",
  1187. "BitTorrent".
  1188. * src/FeatureConfig.h
  1189. * src/XmlRpcMethodFactory.cc
  1190. * src/XmlRpcMethodImpl.cc
  1191. * src/XmlRpcMethodImpl.h
  1192. * test/XmlRpcMethodTest.cc
  1193. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1195. for compatibility issue.
  1196. * src/SocketCore.cc
  1197. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Fixed compile error with openSSL
  1199. * src/bittorrent_helper.cc
  1200. * src/messageDigest.h
  1201. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Removed bad code: setting certificate type priority to key
  1203. exchange priority.
  1204. * src/SocketCore.cc
  1205. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Disconnect seeder if client is also in seed state.
  1207. * src/BtBitfieldMessage.cc
  1208. * src/BtHaveAllMessage.cc
  1209. * src/BtHaveMessage.cc
  1210. * src/message.h
  1211. * test/BtBitfieldMessageTest.cc
  1212. * test/BtHaveAllMessageTest.cc
  1213. * test/BtHaveMessageTest.cc
  1214. * test/MockPieceStorage.h
  1215. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Keep CreateRequestCommand in queue when no segment is available so
  1217. that they can pick up pieces which slow BitTorrent peers are
  1218. downloading.
  1219. * src/AbstractCommand.cc
  1220. * src/CreateRequestCommand.cc
  1221. * src/CreateRequestCommand.h
  1222. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. --bt-stop-timeout now only checks download speed.
  1224. * src/BtStopDownloadCommand.cc
  1225. * src/BtStopDownloadCommand.h
  1226. * src/BtSetup.cc
  1227. * src/usage_text.h
  1228. * doc/aria2c.1.txt
  1229. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Fixed compile error regarding BUFSIZE.
  1231. * src/DownloadCommand.cc
  1232. * src/DownloadCommand.h
  1233. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Documented tellWaiting xml-rpc method in man page.
  1235. * doc/aria2c.1.txt
  1236. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Bump up version number to 1.5.0
  1238. * configure.ac
  1239. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Removed resolved TODO1.5
  1241. * src/AbstractCommand.cc
  1242. * src/DownloadCommand.cc
  1243. * src/RequestGroup.cc
  1244. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Release pooled and in-flight Request objectsand URIResult objects
  1246. in FileEntry after download completed.
  1247. * src/DownloadContext.cc
  1248. * src/DownloadContext.h
  1249. * src/FileEntry.cc
  1250. * src/FileEntry.h
  1251. * src/RequestGroup.cc
  1252. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Set manual and source attribute in aria2c.1.txt
  1254. * doc/aria2c.1.txt
  1255. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Documented that the default value of --use-head is 'false' in man
  1257. page.
  1258. * doc/aria2c.1.txt
  1259. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Added bt-stop-timeout option to -i list.
  1261. * doc/aria2c.1.txt
  1262. * src/download_helper.cc
  1263. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Fixed typo
  1265. * doc/aria2c.1.txt
  1266. * src/usage_text.h
  1267. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Removed peer-id-prefix option from -i list.
  1269. * doc/aria2c.1.txt
  1270. * src/download_helper.cc
  1271. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Fixed typo
  1273. * doc/aria2c.1.txt
  1274. * src/usage_text.h
  1275. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Documented --bt-stop-timeout option in man page.
  1277. * doc/aria2c.1.txt
  1278. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Updated README regarding multi-file torrent web-seeding.
  1280. * doc/README.txt
  1281. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Updated man page regarding multi-file torrent web-seeding.
  1283. * doc/aria2c.1.txt
  1284. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Updated doc
  1286. * src/version_usage.cc
  1287. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1288. Winsock select() doesn't work if no socket is in FD_SET. To
  1289. overcome this problem, a dummy socket is added to FD_SET and it is
  1290. given to select().
  1291. * src/SelectEventPoll.cc
  1292. * src/SelectEventPoll.h
  1293. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Disabled --use-head option by default because --use-head=true
  1295. causes problems on some web sites.
  1296. * src/OptionHandlerFactory.cc
  1297. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Print URL List in -S option for torrent.
  1299. * src/bittorrent_helper.cc
  1300. * src/bittorrent_helper.h
  1301. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Allocate buffer in ctor of DownloadCommand.
  1303. * src/DownloadCommand.cc
  1304. * src/DownloadCommand.h
  1305. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Removed DiskAdaptor::onDownloadComplete()
  1307. * src/DirectDiskAdaptor.cc
  1308. * src/DirectDiskAdaptor.h
  1309. * src/DiskAdaptor.h
  1310. * src/MultiDiskAdaptor.cc
  1311. * src/MultiDiskAdaptor.h
  1312. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Committed missing BtStopDownloadCommand.{cc,h}
  1314. * src/BtStopDownloadCommand.cc
  1315. * src/BtStopDownloadCommand.h
  1316. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1318. download if the download speed is 0 and the number of seeder is 0
  1319. in consecutive SEC seconds. By default, this function is disabled.
  1320. * src/BtSetup.cc
  1321. * src/Makefile.am
  1322. * src/OptionHandlerFactory.cc
  1323. * src/prefs.cc
  1324. * src/prefs.h
  1325. * src/usage_text.h
  1326. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Removed the call to DiskAdaptor::onDownloadComplete() from
  1328. BtCheckIntegrityEntry and DefaultPieceStorage.
  1329. * src/BtCheckIntegrityEntry.cc
  1330. * src/DefaultPieceStorage.cc
  1331. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Commented out throw statements when number of piece is 0 to
  1333. download 0 length torrent.
  1334. * src/bittorrent_helper.cc
  1335. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Call RequestGroup::createNextCommandWithAdj() from
  1337. BtFileAllocationEntry if at least one FileEntry has URI. The
  1338. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1339. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1340. * src/BtFileAllocationEntry.cc
  1341. * src/FileEntry.h
  1342. * src/RequestGroup.cc
  1343. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Generate peer ID after SimpleRandomizer is initialized.
  1345. * src/main.cc
  1346. * src/option_processing.cc
  1347. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Removed unused method argument.
  1349. * src/CreateRequestCommand.cc
  1350. * src/RequestGroup.cc
  1351. * src/RequestGroup.h
  1352. * src/RequestGroupMan.cc
  1353. * src/TrackerWatcherCommand.cc
  1354. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Made URI reusing function work.
  1356. * src/CreateRequestCommand.cc
  1357. * src/FileEntry.cc
  1358. * src/FileEntry.h
  1359. * test/FileEntryTest.cc
  1360. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1361. Add formerly fastest PeerStat's sessionDownloadLength to new
  1362. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1363. bytes in a session.
  1364. * src/PeerStat.cc
  1365. * src/SegmentMan.cc
  1366. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. If pipelining is enabled, we can always pool socket.
  1368. * src/HttpDownloadCommand.cc
  1369. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. In a single file download, file size becomes known just after
  1371. downloading, set total length to FileEntry object when download
  1372. completed.
  1373. * src/DownloadCommand.cc
  1374. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Use std::vector::reserve() for fileEntries and pieceHashes in
  1376. bittorrent_helper
  1377. * src/bittorrent_helper.cc
  1378. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1380. Removed hidden option PREF_RESET_URI.
  1381. * src/AbstractCommand.cc
  1382. * src/OptionHandlerFactory.cc
  1383. * src/prefs.cc
  1384. * src/prefs.h
  1385. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1386. Removed unused variable/function.
  1387. * src/PeerStat.h
  1388. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Show first URL in Download Results if file path is not available.
  1390. * src/FileEntry.h
  1391. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Throw exception if file path doesn't exist in FTP URL.
  1393. * src/InitiateConnectionCommandFactory.cc
  1394. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1396. * src/BitfieldMan.cc
  1397. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1399. of PeerStat in SegmentMan. peerStats is used for calculating
  1400. download speed. Therefore all active PeerStats should be in
  1401. there. Another one is _fastestPeerStats and it only contains
  1402. fastest PeerStat for each hostname/protocol pair. They are used
  1403. for updating ServerStat.
  1404. * src/DownloadCommand.cc
  1405. * src/Request.h
  1406. * src/RequestGroupMan.cc
  1407. * src/SegmentMan.cc
  1408. * src/SegmentMan.h
  1409. * test/SegmentManTest.cc
  1410. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Try all available addresses returned by DNS until it gets
  1412. connected in HTTP(S)/FTP download
  1413. * src/AbstractCommand.cc
  1414. * src/AbstractCommand.h
  1415. * src/AbstractProxyRequestCommand.cc
  1416. * src/AbstractProxyRequestCommand.h
  1417. * src/DNSCache.h
  1418. * src/DownloadEngine.cc
  1419. * src/DownloadEngine.h
  1420. * src/FtpInitiateConnectionCommand.cc
  1421. * src/FtpInitiateConnectionCommand.h
  1422. * src/FtpNegotiationCommand.cc
  1423. * src/FtpNegotiationCommand.h
  1424. * src/HttpInitiateConnectionCommand.cc
  1425. * src/HttpInitiateConnectionCommand.h
  1426. * src/HttpRequestCommand.cc
  1427. * src/HttpRequestCommand.h
  1428. * src/InitiateConnectionCommand.cc
  1429. * src/InitiateConnectionCommand.h
  1430. * test/DNSCacheTest.cc
  1431. * test/Makefile.am
  1432. * test/SimpleDNSCacheTest.cc
  1433. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Updated doc
  1435. * src/download_helper.cc
  1436. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Refactored fieldMan ctor.
  1438. * src/BitfieldMan.cc
  1439. * src/BitfieldMan.h
  1440. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Don't print "No files to download." message if -S is given.
  1442. * src/main.cc
  1443. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Set referer and method to newly created Request object.
  1445. * src/CreateRequestCommand.cc
  1446. * src/FileEntry.cc
  1447. * src/FileEntry.h
  1448. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1450. * src/AbstractCommand.cc
  1451. * src/AbstractCommand.h
  1452. * src/CreateRequestCommand.cc
  1453. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Get proxy download working
  1455. * src/AbstractProxyRequestCommand.cc
  1456. * src/AbstractProxyRequestCommand.h
  1457. * src/AbstractProxyResponseCommand.cc
  1458. * src/AbstractProxyResponseCommand.h
  1459. * src/FtpInitiateConnectionCommand.cc
  1460. * src/FtpTunnelRequestCommand.cc
  1461. * src/FtpTunnelRequestCommand.h
  1462. * src/FtpTunnelResponseCommand.cc
  1463. * src/FtpTunnelResponseCommand.h
  1464. * src/HttpInitiateConnectionCommand.cc
  1465. * src/HttpProxyRequestCommand.cc
  1466. * src/HttpProxyRequestCommand.h
  1467. * src/HttpProxyResponseCommand.cc
  1468. * src/HttpProxyResponseCommand.h
  1469. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Use SegmentMan::getSegment(cuid) for single file download.
  1471. * src/AbstractCommand.cc
  1472. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Fixed bufSize calculation
  1474. * src/DownloadCommand.cc
  1475. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Don't append "/" if base URI ends with "/".
  1477. * src/bittorrent_helper.cc
  1478. * test/url-list-multiFile.torrent
  1479. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. HTTP pipelining is now working. Fixed Segmention fault in
  1481. BitfieldMan's copy ctor.
  1482. * src/AbstractCommand.cc
  1483. * src/BitfieldMan.cc
  1484. * src/BitfieldMan.h
  1485. * src/DownloadCommand.cc
  1486. * src/HttpDownloadCommand.cc
  1487. * src/HttpRequest.cc
  1488. * src/SegmentMan.cc
  1489. * src/SegmentMan.h
  1490. * test/BitfieldManTest.cc
  1491. * test/SegmentManTest.cc
  1492. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Removed ServerHost. Same functionality is implemented using
  1494. FileEntry's in-flight Request objects.
  1495. * src/AbstractCommand.cc
  1496. * src/BtDependency.cc
  1497. * src/CreateRequestCommand.cc
  1498. * src/FileEntry.cc
  1499. * src/FileEntry.h
  1500. * src/FtpNegotiationCommand.cc
  1501. * src/HttpResponseCommand.cc
  1502. * src/Makefile.am
  1503. * src/Metalink2RequestGroup.cc
  1504. * src/RequestGroup.cc
  1505. * src/RequestGroup.h
  1506. * src/ServerHost.cc: Removed
  1507. * src/ServerHost.h: Removed
  1508. * test/BtDependencyTest.cc
  1509. * test/FileEntryTest.cc
  1510. * test/RequestGroupTest.cc
  1511. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Rewritten PeerStat handling. In the previous implementation,
  1513. faster command tries to find slower command. In this new
  1514. implementation, slower command tries to find faster command.
  1515. PeerStat is now created in each HTTP/FTP request to get download
  1516. rate correctly. If the download range is small, the download rate
  1517. tends to small and this will occur at the later stage of download.
  1518. * src/AbstractCommand.cc
  1519. * src/DownloadCommand.cc
  1520. * src/FileEntry.cc
  1521. * src/FileEntry.h
  1522. * src/Request.cc
  1523. * src/Request.h
  1524. * src/RequestGroup.h
  1525. * src/RequestGroupMan.cc
  1526. * src/SegmentMan.cc
  1527. * src/SegmentMan.h
  1528. * test/SegmentManTest.cc
  1529. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Removed _uris from RequestGroup. All functions that refer to _uris
  1531. were moved to FileEntry. Exit status code are now defined in
  1532. DownloadResultCode.h.
  1533. * src/AbstractCommand.cc
  1534. * src/AdaptiveURISelector.cc
  1535. * src/AdaptiveURISelector.h
  1536. * src/AutoSaveCommand.cc
  1537. * src/BtPostDownloadHandler.cc
  1538. * src/CheckIntegrityDispatcherCommand.cc
  1539. * src/CookieStorage.cc
  1540. * src/DHTAutoSaveCommand.cc
  1541. * src/DHTBucketRefreshCommand.cc
  1542. * src/DHTEntryPointNameResolveCommand.cc
  1543. * src/DHTInteractionCommand.cc
  1544. * src/DHTPeerAnnounceCommand.cc
  1545. * src/DHTTokenUpdateCommand.cc
  1546. * src/DlAbortEx.h
  1547. * src/DlRetryEx.h
  1548. * src/DownloadCommand.cc
  1549. * src/DownloadContext.h
  1550. * src/DownloadFailureException.h
  1551. * src/DownloadResult.h
  1552. * src/DownloadResultCode.h
  1553. * src/FeedbackURISelector.cc
  1554. * src/FeedbackURISelector.h
  1555. * src/FileEntry.cc
  1556. * src/FileEntry.h
  1557. * src/FtpNegotiationCommand.cc
  1558. * src/HttpListenCommand.cc
  1559. * src/HttpResponseCommand.cc
  1560. * src/HttpServerResponseCommand.cc
  1561. * src/HttpSkipResponseCommand.cc
  1562. * src/InOrderURISelector.cc
  1563. * src/InOrderURISelector.h
  1564. * src/Makefile.am
  1565. * src/Makefile.in
  1566. * src/Metalink2RequestGroup.cc
  1567. * src/MultiUrlRequestInfo.cc
  1568. * src/MultiUrlRequestInfo.h
  1569. * src/OptionHandlerFactory.cc
  1570. * src/PeerListenCommand.cc
  1571. * src/RecoverableException.h
  1572. * src/RequestGroup.cc
  1573. * src/RequestGroup.h
  1574. * src/RequestGroupMan.cc
  1575. * src/RequestGroupMan.h
  1576. * src/TimedHaltCommand.cc
  1577. * src/TrackerWatcherCommand.cc
  1578. * src/URIResult.cc
  1579. * src/URIResult.h
  1580. * src/URISelector.h
  1581. * src/XmlRpcMethodImpl.cc
  1582. * src/bittorrent_helper.cc
  1583. * src/bittorrent_helper.h
  1584. * src/download_helper.cc
  1585. * src/main.cc
  1586. * src/option_processing.cc
  1587. * test/BtDependencyTest.cc
  1588. * test/BtPostDownloadHandlerTest.cc
  1589. * test/CookieStorageTest.cc
  1590. * test/DefaultBtMessageDispatcherTest.cc
  1591. * test/DownloadHandlerFactoryTest.cc
  1592. * test/DownloadHelperTest.cc
  1593. * test/FeedbackURISelectorTest.cc
  1594. * test/FileEntryTest.cc
  1595. * test/InOrderURISelectorTest.cc
  1596. * test/Metalink2RequestGroupTest.cc
  1597. * test/MetalinkPostDownloadHandlerTest.cc
  1598. * test/RequestGroupManTest.cc
  1599. * test/RequestGroupTest.cc
  1600. * test/XmlRpcMethodTest.cc
  1601. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Removed MockBtContext.h
  1603. * test/Makefile.am
  1604. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Removed _currentRequest from StreamCheckIntegrityEntry and
  1606. StreamFileAllocationEntry.
  1607. * src/AbstractCommand.cc
  1608. * src/HttpResponseCommand.cc
  1609. * src/RequestGroup.cc
  1610. * src/StreamCheckIntegrityEntry.cc
  1611. * src/StreamCheckIntegrityEntry.h
  1612. * src/StreamFileAllocationEntry.cc
  1613. * src/StreamFileAllocationEntry.h
  1614. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Rewritten DownloadContext and removed SingleFileDownloadContext
  1616. and BtContext and its derived classes. BitTorrent specific
  1617. attributes are now set by DownloadContext::setAttribute() with key
  1618. bittorrent::BITTORRENT.
  1619. * src/AbstractBtMessage.cc
  1620. * src/AbstractBtMessage.h
  1621. * src/AbstractCommand.cc
  1622. * src/AbstractCommand.h
  1623. * src/AbstractProxyRequestCommand.cc
  1624. * src/AbstractProxyResponseCommand.cc
  1625. * src/ActivePeerConnectionCommand.cc
  1626. * src/ActivePeerConnectionCommand.h
  1627. * src/AnnounceList.cc
  1628. * src/BtCheckIntegrityEntry.cc
  1629. * src/BtConstants.h
  1630. * src/BtContext.h: Removed
  1631. * src/BtDependency.cc
  1632. * src/BtExtendedMessage.cc
  1633. * src/BtPieceMessage.cc
  1634. * src/BtPieceMessage.h
  1635. * src/BtPostDownloadHandler.cc
  1636. * src/BtRegistry.cc
  1637. * src/BtRegistry.h
  1638. * src/BtSetup.cc
  1639. * src/CheckIntegrityCommand.cc
  1640. * src/CheckIntegrityEntry.cc
  1641. * src/ChecksumCheckIntegrityEntry.cc
  1642. * src/ConsoleStatCalc.cc
  1643. * src/ContentTypeRequestGroupCriteria.cc
  1644. * src/DHTGetPeersCommand.cc
  1645. * src/DHTGetPeersCommand.h
  1646. * src/DHTPeerLookupTask.cc
  1647. * src/DHTPeerLookupTask.h
  1648. * src/DHTTaskFactory.h
  1649. * src/DHTTaskFactoryImpl.cc
  1650. * src/DHTTaskFactoryImpl.h
  1651. * src/DefaultBtAnnounce.cc
  1652. * src/DefaultBtAnnounce.h
  1653. * src/DefaultBtContext.cc: Removed
  1654. * src/DefaultBtContext.h: Removed
  1655. * src/DefaultBtInteractive.cc
  1656. * src/DefaultBtInteractive.h
  1657. * src/DefaultBtMessageDispatcher.cc
  1658. * src/DefaultBtMessageDispatcher.h
  1659. * src/DefaultBtMessageFactory.cc
  1660. * src/DefaultBtMessageFactory.h
  1661. * src/DefaultBtMessageReceiver.cc
  1662. * src/DefaultBtMessageReceiver.h
  1663. * src/DefaultBtProgressInfoFile.cc
  1664. * src/DefaultBtRequestFactory.cc
  1665. * src/DefaultBtRequestFactory.h
  1666. * src/DefaultExtensionMessageFactory.cc
  1667. * src/DefaultExtensionMessageFactory.h
  1668. * src/DefaultPeerStorage.cc
  1669. * src/DefaultPeerStorage.h
  1670. * src/DefaultPieceStorage.cc
  1671. * src/DefaultSegmentManFactory.cc
  1672. * src/DiskAdaptor.cc
  1673. * src/DiskAdaptor.h
  1674. * src/DownloadContext.cc
  1675. * src/DownloadContext.h
  1676. * src/DownloadEngine.cc
  1677. * src/DownloadEngineFactory.cc
  1678. * src/DownloadHandler.cc
  1679. * src/DownloadResult.h
  1680. * src/FileAllocationCommand.cc
  1681. * src/FileAllocationDispatcherCommand.cc
  1682. * src/FileAllocationEntry.cc
  1683. * src/FileEntry.h
  1684. * src/FillRequestGroupCommand.cc
  1685. * src/FtpDownloadCommand.cc
  1686. * src/FtpFinishDownloadCommand.cc
  1687. * src/FtpInitiateConnectionCommand.cc
  1688. * src/FtpNegotiationCommand.cc
  1689. * src/FtpTunnelRequestCommand.cc
  1690. * src/FtpTunnelResponseCommand.cc
  1691. * src/HandshakeExtensionMessage.cc
  1692. * src/HandshakeExtensionMessage.h
  1693. * src/HaveEraseCommand.cc
  1694. * src/HttpDownloadCommand.cc
  1695. * src/HttpInitiateConnectionCommand.cc
  1696. * src/HttpProxyRequestCommand.cc
  1697. * src/HttpProxyResponseCommand.cc
  1698. * src/HttpRequest.cc
  1699. * src/HttpRequest.h
  1700. * src/HttpRequestCommand.cc
  1701. * src/HttpResponseCommand.cc
  1702. * src/HttpServerBodyCommand.cc
  1703. * src/HttpServerCommand.cc
  1704. * src/HttpSkipResponseCommand.cc
  1705. * src/InitiateConnectionCommandFactory.cc
  1706. * src/InitiatorMSEHandshakeCommand.cc
  1707. * src/InitiatorMSEHandshakeCommand.h
  1708. * src/IteratableChecksumValidator.cc
  1709. * src/IteratableChecksumValidator.h
  1710. * src/IteratableChunkChecksumValidator.cc
  1711. * src/MSEHandshake.cc
  1712. * src/MSEHandshake.h
  1713. * src/Makefile.am
  1714. * src/Makefile.in
  1715. * src/Metalink2RequestGroup.cc
  1716. * src/MetalinkPostDownloadHandler.cc
  1717. * src/MultiDiskAdaptor.cc
  1718. * src/MultiDiskAdaptor.h
  1719. * src/MultiFileAllocationIterator.cc
  1720. * src/MultiUrlRequestInfo.cc
  1721. * src/PeerChokeCommand.cc
  1722. * src/PeerChokeCommand.h
  1723. * src/PeerInitiateConnectionCommand.cc
  1724. * src/PeerInitiateConnectionCommand.h
  1725. * src/PeerInteractionCommand.cc
  1726. * src/PeerInteractionCommand.h
  1727. * src/PeerReceiveHandshakeCommand.cc
  1728. * src/PieceHashCheckIntegrityEntry.cc
  1729. * src/RealtimeCommand.cc
  1730. * src/ReceiverMSEHandshakeCommand.cc
  1731. * src/RequestGroup.cc
  1732. * src/RequestGroup.h
  1733. * src/RequestGroupEntry.cc
  1734. * src/RequestGroupMan.cc
  1735. * src/SeedCheckCommand.cc
  1736. * src/SeedCheckCommand.h
  1737. * src/SegmentMan.cc
  1738. * src/ShareRatioSeedCriteria.h
  1739. * src/SingleFileDownloadContext.cc: Removed
  1740. * src/SingleFileDownloadContext.h: Removed
  1741. * src/SleepCommand.cc
  1742. * src/StreamCheckIntegrityEntry.cc
  1743. * src/TrackerWatcherCommand.cc
  1744. * src/TrackerWatcherCommand.h
  1745. * src/UnknownLengthPieceStorage.cc
  1746. * src/Util.cc
  1747. * src/Util.h
  1748. * src/XmlRpcMethodImpl.cc
  1749. * src/bittorrent_helper.cc
  1750. * src/bittorrent_helper.h
  1751. * src/download_helper.cc
  1752. * src/main.cc
  1753. * src/option_processing.cc
  1754. * test/BitfieldManTest.cc
  1755. * test/BittorrentHelperTest.cc
  1756. * test/BtCancelMessageTest.cc
  1757. * test/BtChokeMessageTest.cc
  1758. * test/BtDependencyTest.cc
  1759. * test/BtPieceMessageTest.cc
  1760. * test/BtPostDownloadHandlerTest.cc
  1761. * test/BtRegistryTest.cc
  1762. * test/BtRejectMessageTest.cc
  1763. * test/BtRequestMessageTest.cc
  1764. * test/DHTPeerAnnounceStorageTest.cc
  1765. * test/DefaultBtAnnounceTest.cc
  1766. * test/DefaultBtContextTest.cc: Removed
  1767. * test/DefaultBtMessageDispatcherTest.cc
  1768. * test/DefaultBtMessageFactoryTest.cc
  1769. * test/DefaultBtProgressInfoFileTest.cc
  1770. * test/DefaultBtRequestFactoryTest.cc
  1771. * test/DefaultExtensionMessageFactoryTest.cc
  1772. * test/DefaultPeerStorageTest.cc
  1773. * test/DefaultPieceStorageTest.cc
  1774. * test/DirectDiskAdaptorTest.cc
  1775. * test/DownloadContextTest.cc
  1776. * test/DownloadHandlerFactoryTest.cc
  1777. * test/DownloadHelperTest.cc
  1778. * test/HandshakeExtensionMessageTest.cc
  1779. * test/HttpRequestTest.cc
  1780. * test/HttpResponseTest.cc
  1781. * test/IteratableChecksumValidatorTest.cc
  1782. * test/IteratableChunkChecksumValidatorTest.cc
  1783. * test/MSEHandshakeTest.cc
  1784. * test/Makefile.am
  1785. * test/Makefile.in
  1786. * test/Metalink2RequestGroupTest.cc
  1787. * test/MetalinkPostDownloadHandlerTest.cc
  1788. * test/MockBtContext.h: Removed
  1789. * test/MockDHTTaskFactory.h
  1790. * test/MockDownloadContext.h: Removed
  1791. * test/MockPieceStorage.h
  1792. * test/MultiDiskAdaptorTest.cc
  1793. * test/MultiFileAllocationIteratorTest.cc
  1794. * test/RequestGroupManTest.cc
  1795. * test/RequestGroupTest.cc
  1796. * test/SegmentManTest.cc
  1797. * test/ShareRatioSeedCriteriaTest.cc
  1798. * test/SingleFileDownloadContextTest.cc: Removed
  1799. * test/UtilTest.cc
  1800. * test/XmlRpcMethodTest.cc
  1801. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Added experimental support of WEB-Seeding for multi-file torrent.
  1803. Due to fundamental changes in file handling in HTTP/FTP code, many
  1804. functions are not working: PeerStat, ServerHost, proxy..etc
  1805. * src/AbstractCommand.cc
  1806. * src/AbstractCommand.h
  1807. * src/BitfieldMan.cc
  1808. * src/BitfieldMan.h
  1809. * src/CreateRequestCommand.cc
  1810. * src/CreateRequestCommand.h
  1811. * src/DefaultPieceStorage.cc
  1812. * src/DefaultPieceStorage.h
  1813. * src/DownloadCommand.cc
  1814. * src/DownloadCommand.h
  1815. * src/DownloadContext.cc
  1816. * src/DownloadContext.h
  1817. * src/FileEntry.cc
  1818. * src/FileEntry.h
  1819. * src/FtpDownloadCommand.cc
  1820. * src/FtpDownloadCommand.h
  1821. * src/FtpFinishDownloadCommand.cc
  1822. * src/FtpFinishDownloadCommand.h
  1823. * src/FtpInitiateConnectionCommand.cc
  1824. * src/FtpInitiateConnectionCommand.h
  1825. * src/FtpNegotiationCommand.cc
  1826. * src/FtpNegotiationCommand.h
  1827. * src/FtpTunnelResponseCommand.cc
  1828. * src/HttpDownloadCommand.cc
  1829. * src/HttpDownloadCommand.h
  1830. * src/HttpInitiateConnectionCommand.cc
  1831. * src/HttpInitiateConnectionCommand.h
  1832. * src/HttpProxyResponseCommand.cc
  1833. * src/HttpRequest.cc
  1834. * src/HttpRequest.h
  1835. * src/HttpRequestCommand.cc
  1836. * src/HttpRequestCommand.h
  1837. * src/HttpResponseCommand.cc
  1838. * src/HttpResponseCommand.h
  1839. * src/HttpSkipResponseCommand.cc
  1840. * src/HttpSkipResponseCommand.h
  1841. * src/InitiateConnectionCommand.cc
  1842. * src/InitiateConnectionCommand.h
  1843. * src/InitiateConnectionCommandFactory.cc
  1844. * src/InitiateConnectionCommandFactory.h
  1845. * src/Makefile.am
  1846. * src/PieceStorage.h
  1847. * src/RequestGroup.cc
  1848. * src/RequestGroup.h
  1849. * src/RequestGroupMan.cc
  1850. * src/SegmentMan.cc
  1851. * src/SegmentMan.h
  1852. * src/SingleFileDownloadContext.h
  1853. * src/StreamFileAllocationEntry.cc
  1854. * src/TrackerWatcherCommand.cc
  1855. * src/UnknownLengthPieceStorage.cc
  1856. * src/UnknownLengthPieceStorage.h
  1857. * src/array_fun.h
  1858. * src/bitfield.h
  1859. * src/download_helper.cc
  1860. * test/DownloadContextTest.cc
  1861. * test/Makefile.am
  1862. * test/MockDownloadContext.h
  1863. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Added tellWaiting XML-RPC method.
  1865. * src/SingleFileDownloadContext.cc
  1866. * src/XmlRpcMethodFactory.cc
  1867. * src/XmlRpcMethodImpl.cc
  1868. * src/XmlRpcMethodImpl.h
  1869. * test/XmlRpcMethodTest.cc
  1870. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Updated CookieStorageTest
  1872. * test/CookieStorageTest.cc
  1873. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1875. handle excepion inside these functions.
  1876. * src/LibgnutlsTLSContext.cc
  1877. * src/LibgnutlsTLSContext.h
  1878. * src/LibsslTLSContext.cc
  1879. * src/LibsslTLSContext.h
  1880. * src/MultiUrlRequestInfo.cc
  1881. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Added comment
  1883. * src/RequestGroup.cc
  1884. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. In CookieStorage::load() and saveNsFormat(), handle exception
  1886. inside the functions. When saving Cookies, first write temporary
  1887. file and after successful writes, then renames it to final
  1888. destination.
  1889. * src/CookieStorage.cc
  1890. * src/CookieStorage.h
  1891. * src/MultiUrlRequestInfo.cc
  1892. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. The default value of --dir option is the absolute path to the
  1894. current directory. If getcwd() is failed, then it is ".", which is
  1895. the same value with old implementation. This change is necessary
  1896. because after daemon() call, the current working directory is
  1897. changed to /.
  1898. * src/File.cc
  1899. * src/File.h
  1900. * src/OptionHandlerFactory.cc
  1901. * src/option_processing.cc
  1902. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Call daemon() with arguments(0,0), which means daemon() changes
  1904. current working directory to / and redirects stdin, stdout and
  1905. stderr to /dev/null.
  1906. * src/option_processing.cc
  1907. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Small performance optimizations.
  1909. * src/RequestGroupMan.cc
  1910. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1912. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1913. * src/RequestGroupMan.cc
  1914. * src/RequestGroupMan.h
  1915. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1917. setNoWiat(true) if newly created command calls
  1918. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1919. * src/HttpListenCommand.cc
  1920. * src/HttpServerBodyCommand.cc
  1921. * src/HttpServerCommand.cc
  1922. * src/HttpServerResponseCommand.cc
  1923. * src/InitiateConnectionCommand.cc
  1924. * src/RequestGroup.cc
  1925. * src/StreamFileAllocationEntry.cc
  1926. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Removed include vector
  1928. * src/BtRegistry.h
  1929. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Rewritten BtRegistry
  1931. * src/BtRegistry.cc
  1932. * src/BtRegistry.h
  1933. * src/BtSetup.cc
  1934. * src/ConsoleStatCalc.cc
  1935. * src/PeerInteractionCommand.cc
  1936. * src/PeerReceiveHandshakeCommand.cc
  1937. * src/ReceiverMSEHandshakeCommand.cc
  1938. * src/RequestGroup.cc
  1939. * src/XmlRpcMethodImpl.cc
  1940. * test/BtRegistryTest.cc
  1941. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1942. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1943. * src/DefaultBtProgressInfoFile.cc
  1944. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Throw an exception if position is less than 0.
  1946. * src/XmlRpcMethodImpl.cc
  1947. * test/XmlRpcMethodTest.cc
  1948. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Use writeFilePath() in ConsoleStatCalc.cc
  1950. * src/ConsoleStatCalc.cc
  1951. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Receive the return value as const reference from
  1953. DownloadContext::getFileEntries().
  1954. * src/DefaultPieceStorage.cc
  1955. * src/RequestGroupMan.cc
  1956. * src/XmlRpcMethodImpl.cc
  1957. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. DownloadContext now has _fileEntries so that
  1959. DownloadContext::getFileEntries() can returns its const reference.
  1960. * src/DefaultBtContext.cc
  1961. * src/DefaultBtContext.h
  1962. * src/DownloadContext.cc
  1963. * src/DownloadContext.h
  1964. * src/SingleFileDownloadContext.cc
  1965. * src/SingleFileDownloadContext.h
  1966. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1968. writeFilePath() function template from RequestGroupMan.cc to
  1969. FileEntry.h
  1970. * src/FileEntry.h
  1971. * src/RequestGroupMan.cc
  1972. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Documented 'position' parameter is starting from 0 in man page.
  1974. * doc/aria2c.1.txt
  1975. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Updated doc.
  1977. * src/MSEHandshake.cc
  1978. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Removed _acceptFeatures and its accessor functions from
  1980. RequestGroup since they are not used practically.
  1981. * src/HttpRequestCommand.cc
  1982. * src/RequestGroup.cc
  1983. * src/RequestGroup.h
  1984. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Removed member _maxTries from RequestGroup class to avoid
  1986. duplicate option value. Those classes who refer this variable
  1987. should use option value of PREF_MAX_TRIES directly.
  1988. * src/AbstractCommand.cc
  1989. * src/RequestGroup.cc
  1990. * src/RequestGroup.h
  1991. * src/TrackerWatcherCommand.cc
  1992. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. * Release 1.4.1
  1994. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Fixed compiler warnings on netbsd
  1996. * src/DHTConnectionImpl.cc
  1997. * src/PeerListenCommand.cc
  1998. * src/PeerSessionResource.cc
  1999. * src/SegmentMan.cc
  2000. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Updated Ukrainian translation. Thanks to all translators.
  2002. * po/uk.po
  2003. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2004. Bump up version number to 1.4.1.
  2005. * configure.ac
  2006. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Added unit tests for strjoin, strconcat and strappend.
  2008. * test/a2functionalTest.cc
  2009. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Rewritten strconcat and strappend using operator+ instead of
  2011. append().
  2012. * src/a2functional.h
  2013. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2015. is enabled.
  2016. * src/Makefile.am
  2017. * test/Makefile.am
  2018. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Added countSeeder() function which counts seeder in the given
  2020. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2021. * src/ConsoleStatCalc.cc
  2022. * src/Peer.h
  2023. * src/XmlRpcMethodImpl.cc
  2024. * test/PeerTest.cc
  2025. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Documented missing seeder in getPeers xml-rpc method.
  2027. Documented uploadLength and numSeeders.
  2028. * doc/aria2c.1.txt
  2029. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Added uploadLength and numSeeders to the response of tellStatus
  2031. xml-rpc method. Assert that PeerStorage instance is not null
  2032. instead of checking if statement. It should be non-null in this
  2033. context.
  2034. * src/XmlRpcMethodImpl.cc
  2035. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2037. * src/XmlRpcResponse.cc
  2038. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Avoid intermediate object during string concatenation.
  2040. * src/HttpRequest.cc
  2041. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Added strjoin function template. Use it in pathJoin()
  2043. * src/Util.h
  2044. * src/a2functional.h
  2045. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Avoid intermediate object during string concatenation. Replaced
  2047. post-increment unary operator with pre-increment one in for loop.
  2048. * src/AdaptiveURISelector.cc
  2049. * src/AnnounceList.cc
  2050. * src/AuthConfig.h
  2051. * src/BtBitfieldMessage.cc
  2052. * src/BtExtendedMessage.cc
  2053. * src/BtHandshakeMessage.cc
  2054. * src/BtPieceMessage.cc
  2055. * src/BtPortMessage.cc
  2056. * src/Cookie.cc
  2057. * src/DHTAnnouncePeerMessage.cc
  2058. * src/DHTAutoSaveCommand.cc
  2059. * src/DHTGetPeersReplyMessage.cc
  2060. * src/DHTNode.cc
  2061. * src/DHTQueryMessage.cc
  2062. * src/DHTResponseMessage.cc
  2063. * src/DHTUnknownMessage.cc
  2064. * src/DefaultBtAnnounce.cc
  2065. * src/DefaultBtContext.cc
  2066. * src/DefaultBtInteractive.cc
  2067. * src/DefaultBtProgressInfoFile.cc
  2068. * src/DefaultPeerStorage.cc
  2069. * src/DownloadEngine.cc
  2070. * src/FeatureConfig.cc
  2071. * src/File.cc
  2072. * src/FtpConnection.cc
  2073. * src/FtpNegotiationCommand.cc
  2074. * src/HandshakeExtensionMessage.cc
  2075. * src/HttpConnection.cc
  2076. * src/HttpRequest.cc
  2077. * src/HttpResponseCommand.cc
  2078. * src/HttpServer.cc
  2079. * src/IndexBtMessage.cc
  2080. * src/Metalink2RequestGroup.cc
  2081. * src/OptionHandlerImpl.h
  2082. * src/PStringBuildVisitor.cc
  2083. * src/Peer.cc
  2084. * src/PeerListenCommand.cc
  2085. * src/Piece.cc
  2086. * src/RangeBtMessage.cc
  2087. * src/Request.cc
  2088. * src/Request.h
  2089. * src/RequestGroup.cc
  2090. * src/RequestGroupMan.cc
  2091. * src/ServerStat.cc
  2092. * src/ServerStatMan.cc
  2093. * src/UTPexExtensionMessage.cc
  2094. * src/Util.cc
  2095. * src/a2functional.h
  2096. * src/download_helper.cc
  2097. * src/messageDigest.cc
  2098. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Unchoke a peer randomly at first and second choke round in seed
  2100. state.
  2101. * src/BtSeederStateChoke.cc
  2102. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2103. Added (sock_t) to quiet compiler warnings in MinGW
  2104. * src/SocketCore.cc
  2105. * src/SocketCore.h
  2106. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2108. * src/EpollEventPoll.h
  2109. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2110. Added fork() emulation using CreateProcess() in MinGW
  2111. * src/RequestGroupMan.cc
  2112. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. * Release 1.4.0
  2114. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Added utf8.torrent to EXTRA_DIST
  2116. * test/Makefile.am
  2117. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Fixed docs of aria2.addMetalink xml-rpc method.
  2119. * doc/aria2c.1.txt
  2120. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Added Slovak translation. Updated Ukrainian and Brazilian
  2122. Portuguese translation. Thanks to all translators.
  2123. * po/sk.po
  2124. * po/uk.po
  2125. * po/pt_BR.po
  2126. * po/LINGUAS
  2127. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Added test case for XmlRpcProcessor to fail to parse malformed
  2129. document.
  2130. * test/XmlRpcRequestProcessorTest.cc
  2131. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2132. Removed *.gmo files in po because they are generated on 'make
  2133. dist'
  2134. * po/*.gmo
  2135. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Documented max-concurrent-downloads of changeGlobalOption method
  2137. in man page.
  2138. * doc/aria2c.1.txt
  2139. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Added max-concurrent-downloads option to changeGlobalOption
  2141. xml-rpc method. Rewritten loop conditional in
  2142. RequestGroupMan::fillRequestGroupFromReserver().
  2143. * src/RequestGroupMan.cc
  2144. * src/RequestGroupMan.h
  2145. * src/XmlRpcMethod.cc
  2146. * src/XmlRpcMethodImpl.cc
  2147. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Documented position parameter in man page.
  2149. * doc/aria2c.1.txt
  2150. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Added 'position' parameter to addUri, addTorrent and addMetalink
  2152. xml-rpc method.
  2153. * src/RequestGroupMan.cc
  2154. * src/RequestGroupMan.h
  2155. * src/XmlRpcMethodImpl.cc
  2156. * test/XmlRpcMethodTest.cc
  2157. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Removed Peer.cc from compile source list when --disable-bittorrent
  2159. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2160. takes Peer.
  2161. * src/DefaultPieceStorage.cc
  2162. * src/DefaultPieceStorage.h
  2163. * src/Makefile.am
  2164. * src/PieceStorage.h
  2165. * src/UnknownLengthPieceStorage.cc
  2166. * src/UnknownLengthPieceStorage.h
  2167. * test/MockPieceStorage.h
  2168. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Implemented getter methods in header files to give them more
  2170. chance of optimization.
  2171. Return const reference for SharadHandle if possible.
  2172. * src/AbstractAuthResolver.cc
  2173. * src/AbstractAuthResolver.h
  2174. * src/AbstractBtMessage.cc
  2175. * src/AbstractBtMessage.h
  2176. * src/AbstractSingleDiskAdaptor.cc
  2177. * src/AbstractSingleDiskAdaptor.h
  2178. * src/AsyncNameResolver.cc
  2179. * src/AsyncNameResolver.h
  2180. * src/BNode.cc
  2181. * src/BNode.h
  2182. * src/BitfieldMan.cc
  2183. * src/BitfieldMan.h
  2184. * src/BtAbortOutstandingRequestEvent.h
  2185. * src/BtExtendedMessage.cc
  2186. * src/BtExtendedMessage.h
  2187. * src/BtSeederStateChoke.cc
  2188. * src/BtSeederStateChoke.h
  2189. * src/Cookie.cc
  2190. * src/Cookie.h
  2191. * src/DHTBucket.cc
  2192. * src/DHTBucket.h
  2193. * src/DHTConnectionImpl.cc
  2194. * src/DHTConnectionImpl.h
  2195. * src/DHTFindNodeReplyMessage.cc
  2196. * src/DHTFindNodeReplyMessage.h
  2197. * src/DHTGetPeersReplyMessage.cc
  2198. * src/DHTGetPeersReplyMessage.h
  2199. * src/DHTInteractionCommand.cc
  2200. * src/DHTMessage.cc
  2201. * src/DHTMessage.h
  2202. * src/DHTMessageDispatcherImpl.cc
  2203. * src/DHTMessageEntry.cc
  2204. * src/DHTMessageReceiver.cc
  2205. * src/DHTMessageReceiver.h
  2206. * src/DHTMessageTrackerEntry.cc
  2207. * src/DHTMessageTrackerEntry.h
  2208. * src/DHTPeerAnnounceEntry.cc
  2209. * src/DHTPeerAnnounceEntry.h
  2210. * src/DHTPeerLookupTask.cc
  2211. * src/DHTPeerLookupTask.h
  2212. * src/DHTRoutingTableDeserializer.cc
  2213. * src/DHTRoutingTableDeserializer.h
  2214. * src/DefaultBtAnnounce.cc
  2215. * src/DefaultBtAnnounce.h
  2216. * src/DefaultBtMessageDispatcher.cc
  2217. * src/DefaultBtMessageDispatcher.h
  2218. * src/DefaultBtRequestFactory.cc
  2219. * src/DefaultBtRequestFactory.h
  2220. * src/DiskAdaptor.cc
  2221. * src/DiskAdaptor.h
  2222. * src/DownloadContext.cc
  2223. * src/DownloadContext.h
  2224. * src/DownloadEngine.cc
  2225. * src/DownloadEngine.h
  2226. * src/EpollEventPoll.cc
  2227. * src/EpollEventPoll.h
  2228. * src/FtpConnection.cc
  2229. * src/FtpConnection.h
  2230. * src/HttpConnection.cc
  2231. * src/HttpConnection.h
  2232. * src/HttpHeader.cc
  2233. * src/HttpHeader.h
  2234. * src/HttpRequest.cc
  2235. * src/HttpRequest.h
  2236. * src/HttpResponse.cc
  2237. * src/HttpResponse.h
  2238. * src/LibsslTLSContext.cc
  2239. * src/LibsslTLSContext.h
  2240. * src/MSEHandshake.cc
  2241. * src/MSEHandshake.h
  2242. * src/MetalinkEntry.cc
  2243. * src/MetalinkEntry.h
  2244. * src/MetalinkParserController.cc
  2245. * src/MetalinkParserController.h
  2246. * src/MetalinkParserStateMachine.cc
  2247. * src/MetalinkParserStateMachine.h
  2248. * src/MultiDiskAdaptor.cc
  2249. * src/MultiDiskAdaptor.h
  2250. * src/NetrcAuthResolver.cc
  2251. * src/NetrcAuthResolver.h
  2252. * src/Peer.cc
  2253. * src/Peer.h
  2254. * src/PeerSessionResource.cc
  2255. * src/PeerSessionResource.h
  2256. * src/Piece.cc
  2257. * src/Piece.h
  2258. * src/PieceStatMan.cc
  2259. * src/PieceStatMan.h
  2260. * src/Request.cc
  2261. * src/Request.h
  2262. * src/RequestGroup.cc
  2263. * src/RequestGroup.h
  2264. * src/RequestGroupMan.cc
  2265. * src/RequestGroupMan.h
  2266. * src/RequestSlot.cc
  2267. * src/RequestSlot.h
  2268. * src/SegmentMan.cc
  2269. * src/SegmentMan.h
  2270. * src/SelectEventPoll.cc
  2271. * src/SelectEventPoll.h
  2272. * src/ServerStat.cc
  2273. * src/ServerStat.h
  2274. * src/Signature.cc
  2275. * src/Signature.h
  2276. * src/URIResult.cc
  2277. * src/URIResult.h
  2278. * src/UTPexExtensionMessage.cc
  2279. * src/UTPexExtensionMessage.h
  2280. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Fixed compile error without BitTorrent and Metalink support.
  2282. * src/XmlRpcMethod.cc
  2283. * src/XmlRpcMethodFactory.cc
  2284. * src/XmlRpcMethodImpl.cc
  2285. * src/XmlRpcMethodImpl.h
  2286. * test/XmlRpcMethodTest.cc
  2287. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Rewritten the help message for --allow-overwrite option.
  2289. * doc/aria2c.1.txt
  2290. * src/usage_text.h
  2291. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Fixed typo
  2293. * doc/aria2c.1.txt
  2294. * src/usage_text.h
  2295. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Updated README for 1.4.0 release. Use new table syntax of
  2297. asciidoc.
  2298. * README
  2299. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Documented --xml-rpc-max-request-size option in man page.
  2301. * doc/aria2c.1.txt
  2302. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Moved C_* constants from BtContext to DefaultBtContext.
  2304. * src/BtContext.cc: Removed.
  2305. * src/BtContext.h
  2306. * src/DefaultBtContext.cc
  2307. * src/DefaultBtContext.h
  2308. * src/Makefile.am
  2309. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2311. path key respectively when persing .torrent file.
  2312. * src/BtContext.cc
  2313. * src/BtContext.h
  2314. * src/DefaultBtContext.cc
  2315. * test/DefaultBtContextTest.cc
  2316. * test/utf8.torrent
  2317. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Added --xml-rpc-max-request-size option to limit the size of
  2319. XML-RPC request.
  2320. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2321. Documented XML-RPC API in man page.
  2322. * doc/aria2c.1.txt
  2323. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2325. will break strict-aliasing rules
  2326. * src/PeerConnection.cc
  2327. * test/DHTRoutingTableSerializerTest.cc
  2328. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2330. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2331. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2332. PKG_CHECK_MODULES macro uses latter name.
  2333. * m4/sqlite3.m4
  2334. * src/Makefile.am
  2335. * test/Makefile.am
  2336. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Fixed typo
  2338. * configure.ac
  2339. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2341. presence of libgnutls using pkg-config first. If it fails, fall
  2342. back to old macro libgnutls.m4.
  2343. * configure.ac
  2344. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Use s itself instead of !s.bad()
  2346. * src/CookieStorage.cc
  2347. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Documented --on-download-* option and --save-cookies option in man
  2349. page.
  2350. * doc/aria2c.1.txt
  2351. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Set possible values for --load-cookie option to "/path/to/file".
  2353. * src/OptionHandlerFactory.cc
  2354. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Added --save-cookies option.
  2356. * src/Cookie.cc
  2357. * src/Cookie.h
  2358. * src/CookieStorage.cc
  2359. * src/CookieStorage.h
  2360. * src/MultiUrlRequestInfo.cc
  2361. * src/OptionHandlerFactory.cc
  2362. * src/prefs.cc
  2363. * src/prefs.h
  2364. * src/usage_text.h
  2365. * test/CookieStorageTest.cc
  2366. * test/CookieTest.cc
  2367. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Removed tellAll XML-RPC command because its reponse tends to be
  2369. big if stopped/waiting downloads pile up.
  2370. * src/XmlRpcMethodFactory.cc
  2371. * src/XmlRpcMethodImpl.cc
  2372. * src/XmlRpcMethodImpl.h
  2373. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Added the ability to execute command when download starts and
  2375. stops. You can also specify command for particular cases such as
  2376. complete/error download. Added --on-download-start,
  2377. --on-download-stop, --on-download-complete and --on-download-error
  2378. option.
  2379. * src/OptionHandlerFactory.cc
  2380. * src/RequestGroupMan.cc
  2381. * src/prefs.cc
  2382. * src/prefs.h
  2383. * src/usage_text.h
  2384. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Fixed test error
  2386. * test/BencodeTest.cc
  2387. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Added unit tests.
  2389. * test/XmlRpcMethodTest.cc
  2390. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Made exception message more verbose.
  2392. * src/bencode.cc
  2393. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2395. space in console readout. Also they are now shown in MiB/s if
  2396. speed > 1024KiB/s.
  2397. * src/ConsoleStatCalc.cc
  2398. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Added SEED to console output, which represents the number of
  2400. seeders currently the client is connecting to.
  2401. * src/ConsoleStatCalc.cc
  2402. * src/ConsoleStatCalc.h
  2403. * src/DownloadEngine.cc
  2404. * src/NullStatCalc.h
  2405. * src/StatCalc.h
  2406. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Added source filename(__FILE__) and line number(__LINE__) to
  2408. exception message.
  2409. * src/AbstractCommand.cc
  2410. * src/AbstractDiskWriter.cc
  2411. * src/AbstractProxyResponseCommand.cc
  2412. * src/BDE.h
  2413. * src/BtAllowedFastMessage.cc
  2414. * src/BtHandshakeMessageValidator.h
  2415. * src/BtHaveAllMessage.cc
  2416. * src/BtHaveNoneMessage.cc
  2417. * src/BtPieceMessage.cc
  2418. * src/BtRejectMessage.cc
  2419. * src/ChunkedDecoder.cc
  2420. * src/CookieStorage.cc
  2421. * src/DHTAnnouncePeerMessage.cc
  2422. * src/DHTEntryPointNameResolveCommand.cc
  2423. * src/DHTMessageFactoryImpl.cc
  2424. * src/DHTMessageTracker.cc
  2425. * src/DHTRoutingTableDeserializer.cc
  2426. * src/DHTRoutingTableSerializer.cc
  2427. * src/DHTSetup.cc
  2428. * src/DHTTokenTracker.cc
  2429. * src/DefaultBtAnnounce.cc
  2430. * src/DefaultBtContext.cc
  2431. * src/DefaultBtInteractive.cc
  2432. * src/DefaultBtMessageFactory.cc
  2433. * src/DefaultBtProgressInfoFile.cc
  2434. * src/DefaultExtensionMessageFactory.cc
  2435. * src/DlAbortEx.h
  2436. * src/DlRetryEx.h
  2437. * src/DownloadCommand.cc
  2438. * src/DownloadEngineFactory.cc
  2439. * src/DownloadFailureException.h
  2440. * src/Exception.cc
  2441. * src/Exception.h
  2442. * src/ExpatMetalinkProcessor.cc
  2443. * src/ExpatXmlRpcRequestProcessor.cc
  2444. * src/FallocFileAllocationIterator.cc
  2445. * src/FatalException.h
  2446. * src/FtpConnection.cc
  2447. * src/FtpFinishDownloadCommand.cc
  2448. * src/FtpInitiateConnectionCommand.cc
  2449. * src/FtpNegotiationCommand.cc
  2450. * src/GZipDecoder.cc
  2451. * src/HandshakeExtensionMessage.cc
  2452. * src/HttpConnection.cc
  2453. * src/HttpHeaderProcessor.cc
  2454. * src/HttpInitiateConnectionCommand.cc
  2455. * src/HttpResponse.cc
  2456. * src/HttpResponseCommand.cc
  2457. * src/HttpServer.cc
  2458. * src/HttpSkipResponseCommand.cc
  2459. * src/InitiateConnectionCommandFactory.cc
  2460. * src/IteratableChunkChecksumValidator.cc
  2461. * src/LibgcryptARC4Context.h
  2462. * src/LibgcryptARC4Decryptor.h
  2463. * src/LibgcryptARC4Encryptor.h
  2464. * src/LibgcryptDHKeyExchange.h
  2465. * src/LibgnutlsTLSContext.cc
  2466. * src/LibsslARC4Context.h
  2467. * src/LibsslARC4Decryptor.h
  2468. * src/LibsslARC4Encryptor.h
  2469. * src/LibsslDHKeyExchange.h
  2470. * src/LibsslTLSContext.cc
  2471. * src/MSEHandshake.cc
  2472. * src/MessageDigestHelper.cc
  2473. * src/MetalinkHelper.cc
  2474. * src/MultiDiskAdaptor.cc
  2475. * src/NameMatchOptionHandler.h
  2476. * src/NameResolver.cc
  2477. * src/Netrc.cc
  2478. * src/NsCookieParser.cc
  2479. * src/OptionHandlerException.cc
  2480. * src/OptionHandlerException.h
  2481. * src/OptionHandlerImpl.h
  2482. * src/OptionParser.cc
  2483. * src/ParameterizedStringParser.cc
  2484. * src/PeerAbstractCommand.cc
  2485. * src/PeerConnection.cc
  2486. * src/PeerMessageUtil.cc
  2487. * src/PeerReceiveHandshakeCommand.cc
  2488. * src/Platform.cc
  2489. * src/ReceiverMSEHandshakeCommand.cc
  2490. * src/RecoverableException.h
  2491. * src/RequestGroup.cc
  2492. * src/SimpleLogger.cc
  2493. * src/SocketCore.cc
  2494. * src/Sqlite3MozCookieParser.cc
  2495. * src/UTPexExtensionMessage.cc
  2496. * src/Util.cc
  2497. * src/XML2SAXMetalinkProcessor.cc
  2498. * src/Xml2XmlRpcRequestProcessor.cc
  2499. * src/XmlRpcMethodImpl.cc
  2500. * src/bencode.cc
  2501. * src/download_helper.cc
  2502. * src/messageDigest.h
  2503. * test/ExceptionTest.cc
  2504. * test/TestUtil.cc
  2505. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Bump up version number to 1.4.0
  2507. * configure.ac
  2508. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Added 2files.metalink to EXTRA_DIST
  2510. * test/Makefile.am
  2511. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Added missing 2files.metalink
  2513. * test/2files.metalink
  2514. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Show "[MEMORY]" prefix before filename in download summary if it
  2516. is downloaded into memory.
  2517. * src/DownloadResult.h
  2518. * src/RequestGroup.cc
  2519. * src/RequestGroupMan.cc
  2520. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2522. * src/ExpatXmlRpcRequestProcessor.cc
  2523. * src/Xml2XmlRpcRequestProcessor.cc
  2524. * src/message.h
  2525. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Defined const BDEs to avoid duplicate instantiation.
  2527. Defined MSG_GID_NOT_PROVIDED.
  2528. * src/XmlRpcMethodImpl.cc
  2529. * src/message.h
  2530. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Code cleanup
  2532. * src/Xml2XmlRpcRequestProcessor.cc
  2533. * src/Xml2XmlRpcRequestProcessor.h
  2534. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Defined ENABLE_XML_RPC
  2536. * configure.ac
  2537. * configure
  2538. * config.h.in
  2539. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Added ExpatXmlRpcRequestProcessor
  2541. * src/ExpatXmlRpcRequestProcessor.cc
  2542. * src/ExpatXmlRpcRequestProcessor.h
  2543. * src/Makefile.am
  2544. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Added tests for addTorrent and addMetalink command.
  2546. * test/TestUtil.cc
  2547. * test/TestUtil.h
  2548. * test/XmlRpcMethodTest.cc
  2549. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Corrected the description of --file-allocation option.
  2551. * doc/aria2c.1.txt
  2552. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Added tellAll command.
  2554. * src/XmlRpcMethodFactory.cc
  2555. * src/XmlRpcMethodImpl.cc
  2556. * src/XmlRpcMethodImpl.h
  2557. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2559. * src/XmlRpcMethodImpl.cc
  2560. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Added changeGlobalOption command. Currently,
  2562. max-overall-download-limit and max-overall-upload-limit option are
  2563. available.
  2564. * src/RequestGroupMan.h
  2565. * src/XmlRpcMethod.cc
  2566. * src/XmlRpcMethod.h
  2567. * src/XmlRpcMethodFactory.cc
  2568. * src/XmlRpcMethodImpl.cc
  2569. * src/XmlRpcMethodImpl.h
  2570. * test/XmlRpcMethodTest.cc
  2571. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Added changeOption command. Currently, max-download-limit,
  2573. max-upload-limit option are available in this command.
  2574. * src/RequestGroup.h
  2575. * src/XmlRpcMethod.cc
  2576. * src/XmlRpcMethod.h
  2577. * src/XmlRpcMethodFactory.cc
  2578. * src/XmlRpcMethodImpl.cc
  2579. * src/XmlRpcMethodImpl.h
  2580. * test/XmlRpcMethodTest.cc
  2581. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Added purgeDownloadResult command.
  2583. * src/RequestGroupMan.cc
  2584. * src/RequestGroupMan.h
  2585. * src/XmlRpcMethodFactory.cc
  2586. * src/XmlRpcMethodImpl.cc
  2587. * src/XmlRpcMethodImpl.h
  2588. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Refactored.
  2590. * src/XmlRpcMethod.cc
  2591. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2593. XmlRpcResponse.
  2594. * src/HttpServerBodyCommand.cc
  2595. * src/Makefile.am
  2596. * src/XmlRpcMethod.cc
  2597. * src/XmlRpcMethod.h
  2598. * src/XmlRpcMethodImpl.cc
  2599. * src/XmlRpcResponse.cc
  2600. * src/XmlRpcResponse.h
  2601. * test/XmlRpcMethodTest.cc
  2602. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. In XML-RPC option struct, header and index-out option can take
  2604. array as value.
  2605. * src/XmlRpcMethod.cc
  2606. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Removed unused option member from PeerConnection.
  2608. * src/InitiatorMSEHandshakeCommand.cc
  2609. * src/PeerConnection.cc
  2610. * src/PeerConnection.h
  2611. * src/PeerInteractionCommand.cc
  2612. * src/PeerReceiveHandshakeCommand.cc
  2613. * src/ReceiverMSEHandshakeCommand.cc
  2614. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Added "seeder" key to getPeers response.
  2616. * src/XmlRpcMethodImpl.cc
  2617. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Added addMetalink XML-RPC command.
  2619. * src/XmlRpcMethodFactory.cc
  2620. * src/XmlRpcMethodImpl.cc
  2621. * src/XmlRpcMethodImpl.h
  2622. * src/download_helper.cc
  2623. * src/download_helper.h
  2624. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Fixed the bug that POU peers are never choked in seeding.
  2626. * src/BtSeederStateChoke.cc
  2627. * src/BtSeederStateChoke.h
  2628. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Added web-seeding URI handling in addTorrent command.
  2630. * src/XmlRpcMethodImpl.cc
  2631. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Added "length" key to getFiles response.
  2633. * src/XmlRpcMethodImpl.cc
  2634. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Moved --no-netrc option from ftp option section to http/ftp option
  2636. section.
  2637. * doc/aria2c.1.txt
  2638. * src/OptionHandlerFactory.cc
  2639. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Removed garbage "\" character before '
  2641. * doc/aria2c.1.txt
  2642. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Removed garbage "\" character before http.
  2644. * doc/aria2c.1.txt
  2645. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Documented additional options that can be specified in -i list.
  2647. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2648. and --xml-rpc-passwd. Removed --enable-http-server and
  2649. --http-server-listen-port.
  2650. * doc/aria2c.1.txt
  2651. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2653. * src/DefaultPeerStorage.cc
  2654. * src/DefaultPeerStorage.h
  2655. * src/PeerStorage.h
  2656. * src/XmlRpcMethodImpl.cc
  2657. * test/MockPeerStorage.h
  2658. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Put a call to Socket::isReadable() in try block.
  2660. * src/HttpServerBodyCommand.cc
  2661. * src/HttpServerCommand.cc
  2662. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2664. exception , so it is now in try block.
  2665. * src/HttpServerResponseCommand.cc
  2666. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Added "amChoking" and "peerChoking" key in getPeers response.
  2668. * src/XmlRpcMethodImpl.cc
  2669. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Added test case for zero-length filter.
  2671. * test/BitfieldManTest.cc
  2672. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. getFiles command now returns file data for finished/stopped
  2674. downloads.
  2675. * src/XmlRpcMethodImpl.cc
  2676. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. DownloadResult now has the list of FileEntry. The download
  2678. summary displays the path of first selected file and the number of
  2679. remaining files for multi-file torrent.
  2680. * src/DownloadResult.h
  2681. * src/RequestGroup.cc
  2682. * src/RequestGroupMan.cc
  2683. * test/RequestGroupTest.cc
  2684. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Fixed segmentation fault error when no file is selected in
  2686. multi-file torrent.
  2687. * src/BitfieldMan.cc
  2688. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Escaped <,>,& character in XML-RPC response.
  2690. * src/XmlRpcMethod.cc
  2691. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Throw DlAbortEx instead of FatalException during parsing options
  2693. because we don't want for aria2 to quit when bad option is passed
  2694. via XML-RPC.
  2695. * src/OptionHandlerException.cc
  2696. * src/OptionHandlerException.h
  2697. * src/OptionHandlerImpl.h
  2698. * src/OptionParser.cc
  2699. * src/OptionParser.h
  2700. * src/PStringSegment.cc
  2701. * src/ParameterizedStringParser.cc
  2702. * src/download_helper.cc
  2703. * test/ParameterizedStringParserTest.cc
  2704. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Selecting files are now done in
  2706. DefaultBtContext::setFileFileter().
  2707. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2708. functions are removed because they are no longer used. Creating
  2709. filter in BitfieldMan is done in new funtion
  2710. PieceStorage::setupFileFilter()
  2711. * src/BtContext.cc
  2712. * src/BtContext.h
  2713. * src/DefaultBtContext.cc
  2714. * src/DefaultBtContext.h
  2715. * src/DefaultPieceStorage.cc
  2716. * src/DefaultPieceStorage.h
  2717. * src/DiskAdaptor.cc
  2718. * src/DiskAdaptor.h
  2719. * src/PieceStorage.h
  2720. * src/RequestGroup.cc
  2721. * src/UnknownLengthPieceStorage.h
  2722. * src/XmlRpcMethodImpl.cc
  2723. * test/DefaultBtContextTest.cc
  2724. * test/MockBtContext.h
  2725. * test/MockPieceStorage.h
  2726. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Fixed compile error on Mac OS X
  2728. * src/HttpServer.cc
  2729. * src/XmlRpcMethod.h
  2730. * src/XmlRpcMethodImpl.cc
  2731. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Use std::binary_search instead of std::find
  2733. * src/DefaultPieceStorage.cc
  2734. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Removed unnecessary BDE() call; leave them to implicit conversion.
  2736. * src/XmlRpcMethodImpl.cc
  2737. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Return connections and gid in string
  2739. * src/XmlRpcMethodImpl.cc
  2740. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2741. Renamed addURI as addUri
  2742. * src/XmlRpcMethodFactory.cc
  2743. * src/XmlRpcMethodImpl.cc
  2744. * src/XmlRpcMethodImpl.h
  2745. * test/XmlRpcMethodTest.cc
  2746. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Renamed addTorrentFile as addTorrent
  2748. * src/XmlRpcMethodFactory.cc
  2749. * src/XmlRpcMethodImpl.cc
  2750. * src/XmlRpcMethodImpl.h
  2751. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. The information for files, URIs, peers are removed from the
  2753. reponse of TellaActive, TellStatus command because they tend to be
  2754. large. Instead they can be retrieved by the dedicated commands:
  2755. getFiles, getUris and getPeers respectively.
  2756. * src/XmlRpcMethodFactory.cc
  2757. * src/XmlRpcMethodImpl.cc
  2758. * src/XmlRpcMethodImpl.h
  2759. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Removed --max-overall-upload-limit and
  2761. --max-overall-download-limit option from listRequestOptions.
  2762. * src/download_helper.cc
  2763. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Log incoming host in HttpListenCommand.
  2765. * src/HttpListenCommand.cc
  2766. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2768. --xml-rpc-passwd option.
  2769. * src/HttpServer.cc
  2770. * src/HttpServer.h
  2771. * src/HttpServerCommand.cc
  2772. * src/OptionHandlerFactory.cc
  2773. * src/prefs.cc
  2774. * src/prefs.h
  2775. * src/usage_text.h
  2776. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2777. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2778. processing 0 length request.
  2779. * src/HttpServerBodyCommand.cc
  2780. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Removed --enable-http-server and --http-server-listen-port
  2782. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2783. instead. The original feature for --enable-http-server that
  2784. reports download progress in HTML was officially removed. Persist
  2785. XML-RPC connection if client supports keep-alive.
  2786. * src/DownloadEngineFactory.cc
  2787. * src/HttpServerCommand.cc
  2788. * src/HttpServerResponseCommand.cc
  2789. * src/Makefile.am
  2790. * src/Makefile.in
  2791. * src/OptionHandlerFactory.cc
  2792. * src/RequestGroupMan.cc
  2793. * src/main.cc
  2794. * src/option_processing.cc
  2795. * src/prefs.cc
  2796. * src/prefs.h
  2797. * src/usage_text.h
  2798. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Added "uris" key to the response of tellStatus command. Added
  2800. "connections" key to the response of tellStatus and tellActive
  2801. command.
  2802. * src/XmlRpcMethodImpl.cc
  2803. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2805. Added TellStatusXmlRpcMethod. Remove command can now remove
  2806. waiting RequestGroup.
  2807. * src/RequestGroupMan.cc
  2808. * src/RequestGroupMan.h
  2809. * src/XmlRpcMethodFactory.cc
  2810. * src/XmlRpcMethodImpl.cc
  2811. * src/XmlRpcMethodImpl.h
  2812. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Initialized _peerId
  2814. * src/Peer.cc
  2815. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Return fault structure for error. FailXmlRpcMethod is renamed as
  2817. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2818. in non-torrent download. Return single param value.
  2819. * src/XmlRpcMethod.cc
  2820. * src/XmlRpcMethodFactory.cc
  2821. * src/XmlRpcMethodImpl.cc
  2822. * src/XmlRpcMethodImpl.h
  2823. * test/XmlRpcMethodTest.cc
  2824. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2826. command.
  2827. * src/RequestGroup.cc
  2828. * src/RequestGroup.h
  2829. * src/RequestGroupMan.cc
  2830. * src/XmlRpcMethodImpl.cc
  2831. * test/RequestGroupTest.cc
  2832. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Added more options that can be specified in -i list and xml-rpc
  2834. add* command.
  2835. * src/download_helper.h
  2836. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. The available options in -i list should be listed in
  2838. listRequestOptions().
  2839. * src/download_helper.cc
  2840. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2842. command.
  2843. * src/XmlRpcMethodImpl.cc
  2844. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Now RequestGroup has its own copy of Option object. This will help
  2846. to give custom option for each RequestGroup.
  2847. addTorrentFile command now takes options.
  2848. * src/AbstractCommand.cc
  2849. * src/AbstractCommand.h
  2850. * src/AbstractProxyRequestCommand.cc
  2851. * src/ActivePeerConnectionCommand.cc
  2852. * src/ActivePeerConnectionCommand.h
  2853. * src/AdaptiveURISelector.cc
  2854. * src/BtCheckIntegrityEntry.cc
  2855. * src/BtDependency.cc
  2856. * src/BtDependency.h
  2857. * src/BtFileAllocationEntry.cc
  2858. * src/BtPostDownloadHandler.cc
  2859. * src/CheckIntegrityEntry.cc
  2860. * src/DownloadCommand.cc
  2861. * src/FtpDownloadCommand.cc
  2862. * src/FtpFinishDownloadCommand.cc
  2863. * src/FtpInitiateConnectionCommand.cc
  2864. * src/FtpNegotiationCommand.cc
  2865. * src/HttpInitiateConnectionCommand.cc
  2866. * src/HttpRequestCommand.cc
  2867. * src/HttpResponseCommand.cc
  2868. * src/HttpSkipResponseCommand.cc
  2869. * src/InitiateConnectionCommand.cc
  2870. * src/InitiateConnectionCommandFactory.cc
  2871. * src/InitiatorMSEHandshakeCommand.cc
  2872. * src/InitiatorMSEHandshakeCommand.h
  2873. * src/Metalink2RequestGroup.cc
  2874. * src/Metalink2RequestGroup.h
  2875. * src/MetalinkPostDownloadHandler.cc
  2876. * src/MultiUrlRequestInfo.cc
  2877. * src/MultiUrlRequestInfo.h
  2878. * src/PeerAbstractCommand.cc
  2879. * src/PeerInteractionCommand.cc
  2880. * src/PeerInteractionCommand.h
  2881. * src/PeerReceiveHandshakeCommand.cc
  2882. * src/PeerReceiveHandshakeCommand.h
  2883. * src/RequestGroup.cc
  2884. * src/RequestGroup.h
  2885. * src/TrackerWatcherCommand.cc
  2886. * src/TrackerWatcherCommand.h
  2887. * src/XmlRpcMethod.cc
  2888. * src/XmlRpcMethod.h
  2889. * src/XmlRpcMethodImpl.cc
  2890. * src/download_helper.cc
  2891. * src/download_helper.h
  2892. * src/main.cc
  2893. * test/BtDependencyTest.cc
  2894. * test/BtPostDownloadHandlerTest.cc
  2895. * test/DefaultBtMessageDispatcherTest.cc
  2896. * test/DownloadHandlerFactoryTest.cc
  2897. * test/DownloadHelperTest.cc
  2898. * test/Metalink2RequestGroupTest.cc
  2899. * test/MetalinkPostDownloadHandlerTest.cc
  2900. * test/RequestGroupManTest.cc
  2901. * test/RequestGroupTest.cc
  2902. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Added tellActiveStatus xml-rpc command which reports download
  2904. status of active downloads.
  2905. * src/XmlRpcMethodFactory.cc
  2906. * src/XmlRpcMethodImpl.cc
  2907. * src/XmlRpcMethodImpl.h
  2908. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Added addTorrentFile xml-rpc command which receives uploaded
  2910. torrent file and add download for it.
  2911. * src/RequestGroupMan.cc
  2912. * src/XmlRpcMethodFactory.cc
  2913. * src/XmlRpcMethodImpl.cc
  2914. * src/XmlRpcMethodImpl.h
  2915. * src/download_helper.cc
  2916. * src/download_helper.h
  2917. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Added remove xml-rpc command which removes specified download.
  2919. There is a known issue: the removed unfinished downloads are
  2920. reported ERR when aria2 exits. They should be reported as INPR.
  2921. * src/RequestGroupMan.cc
  2922. * src/RequestGroupMan.h
  2923. * src/XmlRpcMethodFactory.cc
  2924. * src/XmlRpcMethodImpl.cc
  2925. * src/XmlRpcMethodImpl.h
  2926. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2927. If --enable-http-server is enabled, don't stop aria2 when all
  2928. download finished and don't quit when no files to download at
  2929. start up.
  2930. * src/RequestGroupMan.cc
  2931. * src/main.cc
  2932. * src/option_processing.cc
  2933. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Added missing AM_CONDITIONAL
  2935. * configure.ac
  2936. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2937. Added xml-rpc functionality. Currently only addURI commad is
  2938. supported. To enable xml-rpc, run aria2 with
  2939. --enable-http-server. This option name is temporal and will be
  2940. changed. The feature that reports download progress in html format
  2941. is temporarily disabled.
  2942. * src/HttpServer.cc
  2943. * src/HttpServer.h
  2944. * src/HttpServerBodyCommand.cc
  2945. * src/HttpServerBodyCommand.h
  2946. * src/HttpServerCommand.cc
  2947. * src/HttpServerResponseCommand.cc
  2948. * src/Makefile.am
  2949. * src/OptionParser.cc
  2950. * src/OptionParser.h
  2951. * src/RequestGroupMan.cc
  2952. * src/RequestGroupMan.h
  2953. * src/XmlRpcMethod.cc
  2954. * src/XmlRpcMethod.h
  2955. * src/XmlRpcMethodFactory.cc
  2956. * src/XmlRpcMethodFactory.h
  2957. * src/XmlRpcMethodImpl.cc
  2958. * src/XmlRpcMethodImpl.h
  2959. * src/download_helper.cc
  2960. * src/download_helper.h
  2961. * test/Makefile.am
  2962. * test/XmlRpcMethodTest.cc
  2963. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Added xml-rpc request parser. The supported value types are:
  2965. i4/int, string, double, struct, array, base64. Currently only
  2966. libxml2 version is provided.
  2967. * src/Xml2XmlRpcRequestProcessor.cc
  2968. * src/Xml2XmlRpcRequestProcessor.h
  2969. * src/XmlRpcElements.cc
  2970. * src/XmlRpcElements.h
  2971. * src/XmlRpcRequest.h
  2972. * src/XmlRpcRequestParserController.cc
  2973. * src/XmlRpcRequestParserController.h
  2974. * src/XmlRpcRequestParserState.h
  2975. * src/XmlRpcRequestParserStateImpl.cc
  2976. * src/XmlRpcRequestParserStateImpl.h
  2977. * src/XmlRpcRequestParserStateMachine.cc
  2978. * src/XmlRpcRequestParserStateMachine.h
  2979. * src/XmlRpcRequestProcessor.h
  2980. * test/XmlRpcRequestParserControllerTest.cc
  2981. * test/XmlRpcRequestProcessorTest.cc
  2982. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2983. * Release 1.3.3
  2984. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Fixed compile error since r1202.
  2986. * src/ExpatMetalinkProcessor.cc
  2987. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Updated Ukrainian, Russian and Simplified Chinese
  2989. translations. Thanks to all translators.
  2990. * po/ru.po
  2991. * po/uk.po
  2992. * po/zh_CN.po
  2993. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2994. Pass reference of Option object instead of pointer.
  2995. * src/download_helper.cc
  2996. * src/download_helper.h
  2997. * src/main.cc
  2998. * test/DownloadHelperTest.cc
  2999. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3001. from option directly. Instead, get them from RequestGroup.
  3002. * src/ActivePeerConnectionCommand.cc
  3003. * src/ActivePeerConnectionCommand.h
  3004. * src/PeerReceiveHandshakeCommand.cc
  3005. * src/RequestGroup.h
  3006. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Removed unused uploadLimitCheck and uploadLimit from
  3008. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3009. PeerInteractionCommand.
  3010. * src/PeerAbstractCommand.cc
  3011. * src/PeerAbstractCommand.h
  3012. * src/PeerInteractionCommand.cc
  3013. * src/PeerInteractionCommand.h
  3014. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Fixed broken file renaming feature since r1202.
  3016. * src/FtpNegotiationCommand.cc
  3017. * src/FtpNegotiationCommand.h
  3018. * src/HttpResponseCommand.cc
  3019. * src/RequestGroup.cc
  3020. * src/RequestGroup.h
  3021. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Removed unused debug log
  3023. * src/SocketCore.cc
  3024. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Generated configure and Makefile.in using autoconf 2.63 and
  3026. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3027. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3028. * configure.ac
  3029. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Moved piece statistics stuff to new PieceStatMan class.
  3031. Refactored PieceSelector interface.
  3032. * src/DefaultPieceStorage.cc
  3033. * src/DefaultPieceStorage.h
  3034. * src/LongestSequencePieceSelector.cc
  3035. * src/LongestSequencePieceSelector.h
  3036. * src/Makefile.am
  3037. * src/PieceSelector.h
  3038. * src/PieceStatMan.cc
  3039. * src/PieceStatMan.h
  3040. * src/RarestPieceSelector.cc
  3041. * src/RarestPieceSelector.h
  3042. * src/RequestGroup.cc
  3043. * test/DefaultPieceStorageTest.cc
  3044. * test/InOrderPieceSelector.h
  3045. * test/Makefile.am
  3046. * test/PieceStatManTest.cc
  3047. * test/RarestPieceSelectorTest.cc
  3048. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Added static member _protocolFamily to SocketCore. By default,
  3050. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3051. address. Sometime SocketCore::bind() and
  3052. SocketCore::establishConnection() use difference protocl family
  3053. and latter cannot connect to former. To avoid this situation, we
  3054. limit protocol family to AF_INET for unit tests.
  3055. * src/SocketCore.cc
  3056. * src/SocketCore.h
  3057. * test/AllTest.cc
  3058. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Avoid std::bad_alloc for negative bencode string length.
  3060. * src/bencode.cc
  3061. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3062. Supported segmented downloading with chunked transfer encoding and
  3063. content-length.
  3064. * src/DownloadCommand.cc
  3065. * src/HttpResponseCommand.cc
  3066. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Bump up version number to 1.3.3
  3068. * configure.ac
  3069. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3071. from 4096 to 65536 (for insanely large ftp login banners)
  3072. * src/FtpConnection.h
  3073. * test/FtpConnectionTest.cc
  3074. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. In DefaultBtContext::getActualBasePath(), return first
  3076. FileEntry::getPath() for single file torrent.
  3077. * src/DefaultBtContext.cc
  3078. * test/DefaultBtContextTest.cc
  3079. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3081. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3082. Removed _directIOAllowed member from DiskWriter.
  3083. * src/AbstractDiskWriter.cc
  3084. * src/AbstractDiskWriter.h
  3085. * src/AbstractSingleDiskAdaptor.cc
  3086. * src/AbstractSingleDiskAdaptor.h
  3087. * src/BinaryStream.h
  3088. * src/ByteArrayDiskWriter.h
  3089. * src/DefaultPieceStorage.cc
  3090. * src/DiskWriter.h
  3091. * src/MultiDiskAdaptor.cc
  3092. * src/MultiDiskAdaptor.h
  3093. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Now the constructor of AbstractDiskWriter takes filename as an
  3095. argument and filename argument is removed from openFile(),
  3096. initAndOpenFile(), openExistingFile() interface. storeDir member
  3097. and its accessor functions are removed from DiskAdaptor because it
  3098. is not used anymore. size() member function of DefaultDiskWriter,
  3099. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3100. opening file.
  3101. * src/AbstractDiskWriter.cc
  3102. * src/AbstractDiskWriter.h
  3103. * src/AbstractSingleDiskAdaptor.cc
  3104. * src/AbstractSingleDiskAdaptor.h
  3105. * src/ByteArrayDiskWriter.cc
  3106. * src/ByteArrayDiskWriter.h
  3107. * src/ByteArrayDiskWriterFactory.cc
  3108. * src/ByteArrayDiskWriterFactory.h
  3109. * src/DefaultDiskWriter.cc
  3110. * src/DefaultDiskWriter.h
  3111. * src/DefaultDiskWriterFactory.cc
  3112. * src/DefaultDiskWriterFactory.h
  3113. * src/DefaultPieceStorage.cc
  3114. * src/DirectDiskAdaptor.cc
  3115. * src/DirectDiskAdaptor.h
  3116. * src/DiskAdaptor.h
  3117. * src/DiskWriter.h
  3118. * src/DiskWriterFactory.h
  3119. * src/MessageDigestHelper.cc
  3120. * src/MultiDiskAdaptor.cc
  3121. * src/RequestGroup.cc
  3122. * src/UnknownLengthPieceStorage.cc
  3123. * src/Util.cc
  3124. * test/DefaultDiskWriterTest.cc
  3125. * test/DirectDiskAdaptorTest.cc
  3126. * test/FallocFileAllocationIteratorTest.cc
  3127. * test/MessageDigestHelperTest.cc
  3128. * test/MetalinkProcessorTest.cc
  3129. * test/MultiDiskAdaptorTest.cc
  3130. * test/MultiFileAllocationIteratorTest.cc
  3131. * test/SingleFileAllocationIteratorTest.cc
  3132. * test/UtilTest.cc
  3133. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Fixed the bug that aria2 aborts when --select-file is used. This
  3135. bug was introduced in r1199.
  3136. * src/MultiDiskAdaptor.cc
  3137. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Code cleanup
  3139. * test/MockPieceStorage.cc
  3140. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Fixed the bug that read-only file with wrong file size will cause
  3142. error because it cannot be truncated to the correct size. Now if
  3143. file size is different than the expected one, re-open file in
  3144. writable mode.
  3145. * src/AbstractSingleDiskAdaptor.cc
  3146. * src/AbstractSingleDiskAdaptor.h
  3147. * src/BtCheckIntegrityEntry.cc
  3148. * src/DiskAdaptor.h
  3149. * src/MultiDiskAdaptor.h
  3150. * src/RequestGroup.cc
  3151. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Fixed the bug that with --check-integrity option aria2 reports
  3153. downloaded file size is 0 even if some parts of file is correctly
  3154. downloaded. This bug is reproducible for the download that a file
  3155. includes last piece is missing. This bug doesn't reveal for
  3156. single-torrent with file allocation on.
  3157. * src/IteratableChecksumValidator.cc
  3158. * test/IteratableChecksumValidatorTest.cc
  3159. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3161. * src/RequestGroupMan.cc
  3162. * src/AdaptiveURISelector.cc
  3163. * src/AdaptiveURISelector.h
  3164. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. * Release 1.3.2
  3166. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Updated README
  3168. * README
  3169. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Updated Ukrainian translations. Thanks to Alexander10.
  3171. * po/uk.po
  3172. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Code cleanup
  3174. * src/MetalinkParserStateMachine.cc
  3175. * src/MetalinkParserStateMachine.h
  3176. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3178. and expat simultaneously, MetalinkProcessor is now not base class
  3179. and it is directly implemented in XML2SAXMetalinkProcessor and
  3180. ExpatMetalinkProcessor.
  3181. * src/ExpatMetalinkProcessor.cc
  3182. * src/ExpatMetalinkProcessor.h
  3183. * src/Makefile.am
  3184. * src/MetalinkHelper.cc
  3185. * src/MetalinkProcessor.h
  3186. * src/MetalinkProcessorFactory.cc: Removed.
  3187. * src/MetalinkProcessorFactory.h: Removed
  3188. * src/XML2SAXMetalinkProcessor.cc
  3189. * src/XML2SAXMetalinkProcessor.h
  3190. * test/MetalinkProcessorTest.cc
  3191. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Bump up version number to 1.3.2
  3193. * configure.ac
  3194. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Added missing file.
  3196. * test/Makefile.am
  3197. * test/url-list-singleFileEndsWithSlash.torrent
  3198. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3200. request.
  3201. * src/AnnounceList.cc
  3202. * src/AnnounceList.h
  3203. * src/BDE.cc: Added
  3204. * src/BDE.h: Added
  3205. * src/DHTAbstractMessage.cc
  3206. * src/DHTAbstractMessage.h
  3207. * src/DHTAnnouncePeerMessage.cc
  3208. * src/DHTAnnouncePeerMessage.h
  3209. * src/DHTAnnouncePeerReplyMessage.cc
  3210. * src/DHTAnnouncePeerReplyMessage.h
  3211. * src/DHTFindNodeMessage.cc
  3212. * src/DHTFindNodeMessage.h
  3213. * src/DHTFindNodeReplyMessage.cc
  3214. * src/DHTFindNodeReplyMessage.h
  3215. * src/DHTGetPeersMessage.cc
  3216. * src/DHTGetPeersMessage.h
  3217. * src/DHTGetPeersReplyMessage.cc
  3218. * src/DHTGetPeersReplyMessage.h
  3219. * src/DHTMessageFactory.h
  3220. * src/DHTMessageFactoryImpl.cc
  3221. * src/DHTMessageFactoryImpl.h
  3222. * src/DHTMessageReceiver.cc
  3223. * src/DHTMessageTracker.cc
  3224. * src/DHTMessageTracker.h
  3225. * src/DHTPingMessage.cc
  3226. * src/DHTPingMessage.h
  3227. * src/DHTPingReplyMessage.cc
  3228. * src/DHTPingReplyMessage.h
  3229. * src/DHTQueryMessage.cc
  3230. * src/DHTQueryMessage.h
  3231. * src/DHTResponseMessage.cc
  3232. * src/DHTResponseMessage.h
  3233. * src/DefaultBtAnnounce.cc
  3234. * src/DefaultBtContext.cc
  3235. * src/DefaultBtContext.h
  3236. * src/HandshakeExtensionMessage.cc
  3237. * src/Makefile.am
  3238. * src/PeerListProcessor.h
  3239. * src/UTPexExtensionMessage.cc
  3240. * src/bencode.cc
  3241. * src/bencode.h
  3242. * test/AnnounceListTest.cc
  3243. * test/BDETest.cc: Added
  3244. * test/BencodeTest.cc
  3245. * test/DHTAnnouncePeerMessageTest.cc
  3246. * test/DHTAnnouncePeerReplyMessageTest.cc
  3247. * test/DHTFindNodeMessageTest.cc
  3248. * test/DHTFindNodeReplyMessageTest.cc
  3249. * test/DHTGetPeersMessageTest.cc
  3250. * test/DHTGetPeersReplyMessageTest.cc
  3251. * test/DHTMessageFactoryImplTest.cc
  3252. * test/DHTMessageTrackerTest.cc
  3253. * test/DHTPingMessageTest.cc
  3254. * test/DHTPingReplyMessageTest.cc
  3255. * test/Makefile.am
  3256. * test/MockDHTMessageFactory.h
  3257. * test/PeerListProcessorTest.cc
  3258. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Use url-list (web-seeding) only for single-file torrent. This is
  3260. basically the same behavior with Metalink file with torrent and
  3261. URIs.
  3262. * src/RequestGroup.cc
  3263. * src/DefaultBtContext.cc
  3264. * test/DefaultBtContextTest.cc
  3265. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Rewritten expr
  3267. * src/array_fun.h
  3268. * test/array_funTest.cc
  3269. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3270. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3271. * src/DefaultBtMessageDispatcher.cc
  3272. * src/a2algo.h
  3273. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Removed ExtendedMessagingAware. Instead of using inheritance,
  3275. added ExtensionMessageRegistry and it is passed to
  3276. DefaultExtensionMessageFactory.
  3277. * src/DefaultBtInteractive.cc
  3278. * src/DefaultBtInteractive.h
  3279. * src/DefaultExtensionMessageFactory.cc
  3280. * src/DefaultExtensionMessageFactory.h
  3281. * src/ExtendedMessagingAware.h: Removed.
  3282. * src/ExtensionMessageFactory.h
  3283. * src/ExtensionMessageRegistry.h: Added.
  3284. * src/Makefile.am
  3285. * src/PeerInteractionCommand.cc
  3286. * test/DefaultExtensionMessageFactoryTest.cc
  3287. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. Fixed typo in log messages
  3289. * src/MSEHandshake.cc
  3290. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Fixed the bug that prevents torrent download from finishing. The
  3292. bug doesn't reveal for all torrents. The torrents affected this
  3293. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3294. of pieces.
  3295. * src/bitfield.h
  3296. * test/bitfieldTest.cc
  3297. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Code cleanup
  3299. * src/PeerListProcessor.h
  3300. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. Removed RequestGroupAware
  3302. * src/AbstractCommand.cc
  3303. * src/AbstractCommand.h
  3304. * src/ActivePeerConnectionCommand.cc
  3305. * src/ActivePeerConnectionCommand.h
  3306. * src/DHTGetPeersCommand.cc
  3307. * src/DHTGetPeersCommand.h
  3308. * src/InitiatorMSEHandshakeCommand.cc
  3309. * src/InitiatorMSEHandshakeCommand.h
  3310. * src/Makefile.am
  3311. * src/PeerInitiateConnectionCommand.cc
  3312. * src/PeerInitiateConnectionCommand.h
  3313. * src/PeerInteractionCommand.cc
  3314. * src/PeerInteractionCommand.h
  3315. * src/RealtimeCommand.cc
  3316. * src/RealtimeCommand.h
  3317. * src/RequestGroupAware.cc: Removed
  3318. * src/RequestGroupAware.h: Removed
  3319. * src/SeedCheckCommand.cc
  3320. * src/SeedCheckCommand.h
  3321. * src/SleepCommand.cc
  3322. * src/TrackerWatcherCommand.cc
  3323. * src/TrackerWatcherCommand.h
  3324. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Rewritten PeerListProcessor
  3326. * src/PeerListProcessor.h
  3327. * src/CompactPeerListProcessor.h: Removed
  3328. * src/CompactPeerListProcessor.cc: Removed
  3329. * src/DelegatingPeerListProcessor.cc: Removed.
  3330. * src/DefaultBtAnnounce.cc
  3331. * src/Makefile.am
  3332. * src/UTPexExtensionMessage.cc
  3333. * src/DefaultPeerListProcessor.h: Removed.
  3334. * src/DefaultPeerListProcessor.cc: Removed.
  3335. * src/DelegatingPeerListProcessor.h: Removed.
  3336. * test/Makefile.am
  3337. * test/PeerListProcessorTest.cc
  3338. * test/DefaultPeerListProcessorTest.cc: Removed.
  3339. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Rewritten RequestGroupMan::calculateStat()
  3341. * src/RequestGroupMan.cc
  3342. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Removed unnecessary virtual destructor for Request class.
  3344. * src/Request.cc
  3345. * src/Request.h
  3346. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Avoid dynamic_pointer_cast.
  3348. * src/DHTGetPeersCommand.cc
  3349. * src/DHTGetPeersCommand.h
  3350. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3352. BtEvent.
  3353. * src/AbstractBtEventListener.h: Removed.
  3354. * src/AbstractBtMessage.cc
  3355. * src/AbstractBtMessage.h
  3356. * src/BtAbortOutstandingRequestEvent.h
  3357. * src/BtCancelSendingPieceEvent.h
  3358. * src/BtChokedEvent.h: Removed.
  3359. * src/BtChokingEvent.h
  3360. * src/BtEvent.h: Removed
  3361. * src/BtEventListener.h: Removed.
  3362. * src/BtMessage.h
  3363. * src/BtPieceMessage.cc
  3364. * src/BtPieceMessage.h
  3365. * src/BtRequestMessage.cc
  3366. * src/BtRequestMessage.h
  3367. * src/DefaultBtMessageDispatcher.cc
  3368. * src/Makefile.am
  3369. * src/a2functional.h
  3370. * test/BtPieceMessageTest.cc
  3371. * test/BtRequestMessageTest.cc
  3372. * test/DefaultBtMessageDispatcherTest.cc
  3373. * test/MockBtMessage.h
  3374. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Code cleanup
  3376. * src/RequestGroupMan.cc
  3377. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Code cleanup
  3379. * src/DownloadCommand.cc
  3380. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3382. byte.
  3383. * src/DownloadCommand.cc
  3384. * src/bitfield.h
  3385. * test/bitfieldTest.cc
  3386. Fixed the bug that causes infinite loop if broken web server
  3387. returns chunked response without last "0" chunk-size marker and
  3388. closes connection.
  3389. * src/DownloadCommand.cc
  3390. Instantiate properly configured HttpDownloadCommand for
  3391. non-resumable downlaods.
  3392. * src/HttpResponseCommand.cc
  3393. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Rewritten array operation functions.
  3395. * src/BitfieldMan.cc
  3396. * src/array_fun.h
  3397. * test/array_funTest.cc
  3398. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Removed unused variable 'query'
  3400. * src/Request.cc
  3401. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3403. accidentally set to false in r1162.
  3404. * configure.ac
  3405. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3406. Code cleanup
  3407. * src/BNode.cc
  3408. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3409. Increase prefixLength for the bucket which doesn't own local node
  3410. ID when splitting bucket.
  3411. * src/DHTBucket.cc
  3412. * test/DHTBucketTest.cc
  3413. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. * Release 1.3.1
  3415. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Bump up version number to 1.3.1
  3417. * configure.ac
  3418. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Removed unused variable checkPoint. Also removed include directive
  3420. for TimeA2.h.
  3421. * src/SeedCheckCommand.h
  3422. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Fixed the bug that upload limit exceeds the value specified in
  3424. --seed-ratio option depending on the timing of the execution of
  3425. SeedCheckCommand.
  3426. * src/SeedCheckCommand.cc
  3427. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Fixed the bug that removed peer's session upload/download length
  3429. are counted twice in _cachedTransferStat before it is
  3430. re-calculated. This affected the calculation of shara ratio,
  3431. resulting aria2 wrongly determines that specified share ratio is
  3432. reached. Also fixed the typo in calculateStatFor function name.
  3433. * src/BtSetup.cc
  3434. * src/DefaultPeerStorage.cc
  3435. * src/ShareRatioSeedCriteria.h
  3436. * test/ShareRatioSeedCriteriaTest.cc
  3437. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. * Release 1.3.0
  3439. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3441. Nynorsk translations. Thanks to all translators.
  3442. * po/es.po
  3443. * po/ja.po
  3444. * po/nn.po
  3445. * po/ru.po
  3446. * po/uk.po
  3447. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. Rewritten isInRange()
  3449. * src/DHTBucket.cc
  3450. * test/DHTBucketTest.cc
  3451. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Fixed typo
  3453. * doc/aria2c.1.txt
  3454. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3456. malloc/realloc is not used.
  3457. * src/configure.ac
  3458. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3459. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3460. char* bitfield instead of stl container for efficiency.
  3461. PieceSelector::select now takes this
  3462. bitfield. RarestPieceSelector::select now also performs
  3463. efficiently for this change. bitfield namespace is introduced and
  3464. it has several helper functions to handle basic bitfield
  3465. operations such as test, count set bits, etc.
  3466. * src/BitfieldMan.cc
  3467. * src/BitfieldMan.h
  3468. * src/DefaultBtRequestFactory.cc
  3469. * src/DefaultPieceStorage.cc
  3470. * src/DefaultPieceStorage.h
  3471. * src/LongestSequencePieceSelector.cc
  3472. * src/LongestSequencePieceSelector.h
  3473. * src/Makefile.am
  3474. * src/Piece.cc
  3475. * src/Piece.h
  3476. * src/PieceSelector.h
  3477. * src/RarestPieceSelector.cc
  3478. * src/RarestPieceSelector.h
  3479. * src/Util.cc
  3480. * src/Util.h
  3481. * src/bitfield.h
  3482. * test/BitfieldManTest.cc
  3483. * test/LongestSequencePieceSelectorTest.cc
  3484. * test/Makefile.am
  3485. * test/RarestPieceSelectorTest.cc
  3486. * test/UtilTest.cc
  3487. * test/bitfieldTest.cc
  3488. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Made accepted socket non-block.
  3490. * src/FtpNegotiationCommand.cc
  3491. * src/HttpListenCommand.cc
  3492. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3493. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3494. * src/AbstractSingleDiskAdaptor.cc
  3495. * src/DefaultPieceStorage.cc
  3496. * src/DiskAdaptor.h
  3497. * src/DiskAdaptor.h
  3498. * src/MultiFileAllocationIterator.cc
  3499. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Run
  3501. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3502. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3503. it doesn't need to be called every time when
  3504. DefaultBtInteractive::doInteractionProcessing() is called.
  3505. * src/DefaultBtInteractive.cc
  3506. * src/DefaultBtInteractive.h
  3507. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Documented 'falloc' in man page.
  3509. * doc/aria2c.1.txt
  3510. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Updated doc
  3512. * src/usage_text.h
  3513. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3515. allocation mode uses posix_fallocate() system call to allocate
  3516. file on disk. If you are using newer file systems such as ext4
  3517. (with extents support), btrfs or xfs, 'falloc' is your best
  3518. choice. It allocates large(few GiB) files almost instantly. Don't
  3519. use 'falloc' with legacy file systems such as ext3 because it
  3520. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3521. until allocation finishes. 'falloc' may not be available if your
  3522. system doesn't have posix_fallocate() system call.
  3523. * configure.ac
  3524. * src/AbstractDiskWriter.cc
  3525. * src/AbstractDiskWriter.h
  3526. * src/AbstractSingleDiskAdaptor.cc
  3527. * src/BinaryStream.h
  3528. * src/BtCheckIntegrityEntry.cc
  3529. * src/ByteArrayDiskWriter.h
  3530. * src/CheckIntegrityEntry.cc
  3531. * src/CheckIntegrityEntry.h
  3532. * src/DefaultPieceStorage.cc
  3533. * src/DiskAdaptor.cc
  3534. * src/DiskAdaptor.h
  3535. * src/DiskWriter.h
  3536. * src/FallocFileAllocationIterator.cc
  3537. * src/FallocFileAllocationIterator.h
  3538. * src/FileAllocationEntry.cc
  3539. * src/FileAllocationEntry.h
  3540. * src/Makefile.am
  3541. * src/MultiFileAllocationIterator.cc
  3542. * src/MultiFileAllocationIterator.h
  3543. * src/OptionHandlerFactory.cc
  3544. * src/RequestGroup.cc
  3545. * src/StreamCheckIntegrityEntry.cc
  3546. * src/prefs.cc
  3547. * src/prefs.h
  3548. * src/usage_text.h
  3549. * test/FallocFileAllocationIteratorTest.cc
  3550. * test/Makefile.am
  3551. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Removed duplicate enableDirectIO() call.
  3553. * src/MultiFileAllocationIterator.cc
  3554. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3556. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3557. cost of std::rotate().
  3558. * src/RarestPieceSelector.cc
  3559. * src/RarestPieceSelector.h
  3560. * test/RarestPieceSelectorTest.cc
  3561. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Updated usage doc for --bt-tracker-interval option.
  3563. * src/usage_text.h
  3564. * doc/aria2c.1.txt
  3565. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3566. Documented --bt-tracker-interval option in man page.
  3567. * doc/aria2c.1.txt
  3568. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Added an option to specify the interval between tracker requests.
  3570. If non-zero value is specified, aria2 uses it and ignores the
  3571. interval value in the response of tracker. If zero is specified,
  3572. aria2 determines the inteval value based on the tarcker response
  3573. and download progress.
  3574. * src/DefaultBtAnnounce.cc
  3575. * src/DefaultBtAnnounce.h
  3576. * src/OptionHandlerFactory.cc
  3577. * src/RequestGroup.cc
  3578. * src/prefs.cc
  3579. * src/prefs.h
  3580. * src/usage_text.h
  3581. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Added operator+=, operator-=, operator-
  3583. * src/TransferStat.cc
  3584. * src/TransferStat.h
  3585. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Refactored RarestPieceSelector to reduce CPU load, especially for
  3587. addPieceStats.
  3588. * src/RarestPieceSelector.cc
  3589. * src/RarestPieceSelector.h
  3590. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3592. getAllMissingBlockIndexes to reduce a call to
  3593. array_function_base::operator[].
  3594. * src/BitfieldMan.cc
  3595. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3596. Cached TransferStat/download speed to avoid to sum them up in each
  3597. call.
  3598. * src/DefaultPeerStorage.cc
  3599. * src/DefaultPeerStorage.h
  3600. * src/SegmentMan.cc
  3601. * src/SegmentMan.h
  3602. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3603. Typedefed cuid_t as int32_t in Command.h
  3604. * src/CUIDCounter.h
  3605. * src/Command.cc
  3606. * src/Command.h
  3607. * src/DownloadEngine.cc
  3608. * src/DownloadEngine.h
  3609. * src/PeerStat.h
  3610. * src/SegmentMan.cc
  3611. * src/SegmentMan.h
  3612. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Reduced the number of calls to PeerStorage::calculateStat() and
  3614. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3615. transfer rate.
  3616. * src/DefaultBtInteractive.cc
  3617. * src/DefaultBtMessageDispatcher.cc
  3618. * src/DefaultPeerStorage.cc
  3619. * src/DefaultPeerStorage.h
  3620. * src/DownloadCommand.cc
  3621. * src/DownloadEngine.cc
  3622. * src/PeerStorage.h
  3623. * src/SegmentMan.cc
  3624. * src/SegmentMan.h
  3625. * test/MockPeerStorage.h
  3626. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Prepended _dir+"/" after joining path elements in torrent file.
  3628. * src/DefaultBtContext.cc
  3629. * test/DefaultBtContextTest.cc
  3630. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Added missing IndexBtMessageValidator.h
  3632. * src/Makefile.am
  3633. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3635. Chinese translations. Thank you for contributing our project.
  3636. * po/id.po
  3637. * po/it.po
  3638. * po/ru.po
  3639. * po/uk.po
  3640. * po/zh_CN.po
  3641. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3642. Updated README
  3643. * README
  3644. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3645. Bump up version number to 1.3.0
  3646. * configure.ac
  3647. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Updated doc
  3649. * src/DefaultBtContext.h
  3650. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Slice/joinPath for name of single torrent.
  3652. * src/DefaultBtContext.cc
  3653. * test/DefaultBtContextTest.cc
  3654. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3655. Updated man page: Documented --dry-run and --index-out
  3656. options. Changed the default value of --uri-selector and
  3657. --http-auth-challenge options. Removed --direct-file-mapping
  3658. option. Added example for --index-out
  3659. * doc/aria2c.1.txt
  3660. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Updated TEXT_DRY_RUN
  3662. * src/usage_text.h
  3663. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Changed the default value of --uri-selector option from 'inorder'
  3665. to 'feedback'
  3666. * src/OptionHandlerFactory.cc
  3667. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Included current URI in exception message.
  3669. * src/AbstractCommand.cc
  3670. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Renamed ServerStatURISelector as FeedbackURISelector.
  3672. * src/FeedbackURISelector.cc
  3673. * src/FeedbackURISelector.h
  3674. * src/Makefile.am
  3675. * src/RequestGroupMan.cc
  3676. * src/ServerStatURISelector.cc
  3677. * src/ServerStatURISelector.h
  3678. * test/FeedbackURISelectorTest.cc
  3679. * test/Makefile.am
  3680. * test/ServerStatURISelectorTest.cc
  3681. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3683. all URIs are tested and their timeout is not reached.
  3684. * src/AdaptiveURISelector.cc
  3685. * src/AdaptiveURISelector.h
  3686. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Changed the default value of --http-auth-challenge option to false.
  3688. * src/OptionHandlerFactory.cc
  3689. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Reuse URIs when all unused URIs run out.
  3691. * src/OptionHandlerFactory.cc
  3692. * src/RequestGroup.cc
  3693. * src/prefs.cc
  3694. * src/prefs.h
  3695. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3697. and BtRejectMessage are derived from RangeBtMessage class.
  3698. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3699. derived from IndexBtMessage class. BtChokeMessage,
  3700. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3701. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3702. ZeroBtMessage class.
  3703. * src/AbstractBtMessage.cc
  3704. * src/AbstractBtMessage.h
  3705. * src/BtAllowedFastMessage.cc
  3706. * src/BtAllowedFastMessage.h
  3707. * src/BtAllowedFastMessageValidator.h: Removed
  3708. * src/BtBitfieldMessage.cc
  3709. * src/BtBitfieldMessage.h
  3710. * src/BtCancelMessage.cc
  3711. * src/BtCancelMessage.h
  3712. * src/BtCancelMessageValidator.h: Removed
  3713. * src/BtChokeMessage.cc
  3714. * src/BtChokeMessage.h
  3715. * src/BtExtendedMessage.cc
  3716. * src/BtExtendedMessage.h
  3717. * src/BtHandshakeMessage.cc
  3718. * src/BtHandshakeMessage.h
  3719. * src/BtHaveAllMessage.cc
  3720. * src/BtHaveAllMessage.h
  3721. * src/BtHaveMessage.cc
  3722. * src/BtHaveMessage.h
  3723. * src/BtHaveMessageValidator.h: Removed
  3724. * src/BtHaveNoneMessage.cc
  3725. * src/BtHaveNoneMessage.h
  3726. * src/BtInterestedMessage.cc
  3727. * src/BtInterestedMessage.h
  3728. * src/BtKeepAliveMessage.cc
  3729. * src/BtKeepAliveMessage.h
  3730. * src/BtNotInterestedMessage.cc
  3731. * src/BtNotInterestedMessage.h
  3732. * src/BtPieceMessage.cc
  3733. * src/BtPieceMessage.h
  3734. * src/BtPortMessage.cc
  3735. * src/BtPortMessage.h
  3736. * src/BtRejectMessage.cc
  3737. * src/BtRejectMessage.h
  3738. * src/BtRejectMessageValidator.h: Removed
  3739. * src/BtRequestMessage.cc
  3740. * src/BtRequestMessage.h
  3741. * src/BtRequestMessageValidator.h: Removed
  3742. * src/BtSuggestPieceMessage.cc
  3743. * src/BtSuggestPieceMessage.h
  3744. * src/BtSuggestPieceMessageValidator.h: Removed
  3745. * src/BtUnchokeMessage.cc
  3746. * src/BtUnchokeMessage.h
  3747. * src/DefaultBtMessageFactory.cc
  3748. * src/IndexBtMessage.cc
  3749. * src/IndexBtMessage.h
  3750. * src/IndexBtMessageValidator.h
  3751. * src/Makefile.am
  3752. * src/PeerMessageUtil.cc
  3753. * src/PeerMessageUtil.h
  3754. * src/RangeBtMessage.cc
  3755. * src/RangeBtMessage.h
  3756. * src/RangeBtMessageValidator.h
  3757. * src/SimpleBtMessage.cc
  3758. * src/SimpleBtMessage.h
  3759. * src/ZeroBtMessage.cc
  3760. * src/ZeroBtMessage.h
  3761. * test/BtRequestMessageTest.cc
  3762. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. Reverted usage_text.h to r1093 to avoid to lose translated
  3764. messages.
  3765. * src/usage_text.h
  3766. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3768. declared as non-const previously is now const and defined in class
  3769. definition.
  3770. * src/AbstractBtMessage.cc
  3771. * src/AbstractBtMessage.h
  3772. * src/BtAllowedFastMessage.cc
  3773. * src/BtAllowedFastMessage.h
  3774. * src/BtBitfieldMessage.h
  3775. * src/BtCancelMessage.cc
  3776. * src/BtCancelMessage.h
  3777. * src/BtChokeMessage.cc
  3778. * src/BtChokeMessage.h
  3779. * src/BtExtendedMessage.cc
  3780. * src/BtExtendedMessage.h
  3781. * src/BtHandshakeMessage.cc
  3782. * src/BtHandshakeMessage.h
  3783. * src/BtHaveAllMessage.cc
  3784. * src/BtHaveAllMessage.h
  3785. * src/BtHaveMessage.cc
  3786. * src/BtHaveMessage.h
  3787. * src/BtHaveNoneMessage.cc
  3788. * src/BtHaveNoneMessage.h
  3789. * src/BtInterestedMessage.cc
  3790. * src/BtInterestedMessage.h
  3791. * src/BtKeepAliveMessage.cc
  3792. * src/BtKeepAliveMessage.h
  3793. * src/BtMessage.h
  3794. * src/BtNotInterestedMessage.cc
  3795. * src/BtNotInterestedMessage.h
  3796. * src/BtPieceMessage.h
  3797. * src/BtPortMessage.cc
  3798. * src/BtPortMessage.h
  3799. * src/BtRejectMessage.cc
  3800. * src/BtRejectMessage.h
  3801. * src/BtRequestMessage.cc
  3802. * src/BtRequestMessage.h
  3803. * src/BtSuggestPieceMessage.cc
  3804. * src/BtSuggestPieceMessage.h
  3805. * src/BtUnchokeMessage.cc
  3806. * src/BtUnchokeMessage.h
  3807. * src/SimpleBtMessage.cc
  3808. * src/SimpleBtMessage.h
  3809. * test/MockBtMessage.h
  3810. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Use FileEntry::exists()
  3812. * src/MultiDiskAdaptor.cc
  3813. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. Added exists()
  3815. * src/FileEntry.cc
  3816. * src/FileEntry.h
  3817. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3818. Added missing prefix dir.
  3819. * src/download_helper.cc
  3820. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3822. * src/CopyDiskAdaptor.cc: Removed
  3823. * src/CopyDiskAdaptor.h: Removed
  3824. * src/DefaultPieceStorage.cc
  3825. * src/Makefile.am
  3826. * src/OptionHandlerFactory.cc
  3827. * src/prefs.cc
  3828. * src/prefs.h
  3829. * src/usage_text.h
  3830. * test/CopyDiskAdaptorTest.cc: Removed
  3831. * test/Makefile.am
  3832. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Rewritten isSameFileBeingDownloaded()
  3834. * src/RequestGroupMan.cc
  3835. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Removed getName() from DownloadContext. getName() is declared in
  3837. BtContext.
  3838. * src/BtContext.h
  3839. * src/DownloadContext.h
  3840. * src/SingleFileDownloadContext.cc
  3841. * src/SingleFileDownloadContext.h
  3842. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3843. in AbstractSingleDiskAdaptor.
  3844. * src/AbstractSingleDiskAdaptor.h
  3845. * src/DiskAdaptor.h
  3846. * src/MultiDiskAdaptor.h
  3847. * src/RequestGroup.cc
  3848. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3849. MultiDiskAdaptor.
  3850. * src/DefaultPieceStorage.cc
  3851. * src/MultiDiskAdaptor.cc
  3852. * src/MultiDiskAdaptor.h
  3853. * test/MultiDiskAdaptorTest.cc
  3854. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3855. FileEntry::getPath() contains store(top level) directory to
  3856. simplify path handling operation. In the previous implementation,
  3857. store directory is concatenated to FileEntry::getPath() in
  3858. DownloadContext.
  3859. * src/BtDependency.cc
  3860. * src/BtPostDownloadHandler.cc
  3861. * src/CopyDiskAdaptor.cc
  3862. * src/DefaultBtContext.cc
  3863. * src/DirectDiskAdaptor.cc
  3864. * src/FileEntry.cc
  3865. * src/FileEntry.h
  3866. * src/FtpNegotiationCommand.cc
  3867. * src/HttpResponse.cc
  3868. * src/HttpResponseCommand.cc
  3869. * src/Metalink2RequestGroup.cc
  3870. * src/MultiDiskAdaptor.cc
  3871. * src/MultiDiskAdaptor.h
  3872. * src/MultiFileAllocationIterator.cc
  3873. * src/RequestGroup.cc
  3874. * src/SingleFileDownloadContext.cc
  3875. * src/SingleFileDownloadContext.h
  3876. * src/download_helper.cc
  3877. * test/BtDependencyTest.cc
  3878. * test/CopyDiskAdaptorTest.cc
  3879. * test/DefaultBtContextTest.cc
  3880. * test/DefaultBtProgressInfoFileTest.cc
  3881. * test/DirectDiskAdaptorTest.cc
  3882. * test/DownloadHelperTest.cc
  3883. * test/FileEntryTest.cc
  3884. * test/MultiDiskAdaptorTest.cc
  3885. * test/MultiFileAllocationIteratorTest.cc
  3886. * test/RequestGroupTest.cc
  3887. * test/SingleFileDownloadContextTest.cc
  3888. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. Fixed compiler warning
  3890. * src/download_helper.cc
  3891. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Throw exception if same infohash torrent is now downloading.
  3893. * src/RequestGroup.cc
  3894. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Added --dry-run option. In this mode, aria2 just checks whether
  3896. the remote file is available and doesn't download data. This
  3897. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3898. are canceled in this mode.
  3899. * src/FtpNegotiationCommand.cc
  3900. * src/HttpResponseCommand.cc
  3901. * src/HttpResponseCommand.h
  3902. * src/OptionHandlerFactory.cc
  3903. * src/RequestGroup.cc
  3904. * src/RequestGroupMan.cc
  3905. * src/prefs.cc
  3906. * src/prefs.h
  3907. * src/usage_text.h
  3908. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Fixed compiler waring
  3910. * test/UriListParserTest.cc
  3911. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Parse options in -i list using OptionParser.
  3913. * src/UriListParser.cc
  3914. * src/UriListParser.h
  3915. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Don't reset URI in retry to avoid additional round trips because
  3917. of redirects.
  3918. * src/AbstractCommand.cc
  3919. * src/OptionHandlerFactory.cc
  3920. * src/prefs.cc
  3921. * src/prefs.h
  3922. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Declared hide() in OptionHandler.
  3924. * src/NameMatchOptionHandler.h
  3925. * src/OptionHandler.h
  3926. * src/OptionHandlerImpl.h
  3927. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Updated doc
  3929. * src/Peer.h
  3930. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Added log message in setStatusInternal()
  3932. * src/ServerStat.cc
  3933. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3935. effectively exclude failed server.
  3936. * src/AbstractCommand.cc
  3937. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Added --index-out option to specify each file path for torrent.
  3939. Here index shown in --show-files option is used to specify which
  3940. file path should be altered. For example, to change the file path
  3941. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3942. option multiple times: --index-out=1=aria2.tar.bz2
  3943. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3944. available. This option can be specified in -i list.
  3945. * src/DefaultBtContext.cc
  3946. * src/DefaultBtContext.h
  3947. * src/MultiDiskAdaptor.cc
  3948. * src/MultiDiskAdaptor.h
  3949. * src/MultiFileAllocationIterator.cc
  3950. * src/OptionHandlerFactory.cc
  3951. * src/OptionHandlerImpl.h
  3952. * src/Util.cc
  3953. * src/Util.h
  3954. * src/download_helper.cc
  3955. * src/prefs.cc
  3956. * src/prefs.h
  3957. * src/usage_text.h
  3958. * test/DefaultBtContextTest.cc
  3959. * test/MultiDiskAdaptorTest.cc
  3960. * test/MultiFileAllocationIteratorTest.cc
  3961. * test/UtilTest.cc
  3962. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3963. Use Util::pathJoin()
  3964. * src/MetalinkParserController.cc
  3965. * test/test.xml
  3966. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3967. Use Util::pathJoin()
  3968. * src/DefaultBtContext.cc
  3969. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3970. Added Util::pathJoin()
  3971. * src/Util.h
  3972. * test/UtilTest.cc
  3973. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3974. Applied basename function to remove directory element in
  3975. content-disposition value.
  3976. Return empty string if content-disposition value is ".." or ".".
  3977. * src/Util.cc
  3978. * test/UtilTest.cc
  3979. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Added --max-overall-download-limit in man page.
  3981. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3982. * doc/aria2c.1.txt
  3983. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. Added --max-overall-download-limit option. Now --max-upload-limit
  3985. option is not ignored when --max-overall-upload-limit option has
  3986. non-zero value. aria2 checks download(upload) speed in the order:
  3987. first checks overall speed limit and if it is not exceeded, then
  3988. checks speed limit per download. Thus you can specify both
  3989. value. For example, set --max-overall-download-limit=1M and
  3990. --max-download-limit=500K to prevent from one download from eating
  3991. all overall speed limit.
  3992. * src/DefaultBtInteractive.cc
  3993. * src/DefaultBtInteractive.h
  3994. * src/DefaultBtMessageDispatcher.cc
  3995. * src/DefaultBtMessageDispatcher.h
  3996. * src/DownloadCommand.cc
  3997. * src/DownloadCommand.h
  3998. * src/FtpNegotiationCommand.cc
  3999. * src/HttpResponseCommand.cc
  4000. * src/OptionHandlerFactory.cc
  4001. * src/PeerInteractionCommand.cc
  4002. * src/RequestGroup.cc
  4003. * src/RequestGroup.h
  4004. * src/RequestGroupMan.cc
  4005. * src/RequestGroupMan.h
  4006. * src/prefs.cc
  4007. * src/prefs.h
  4008. * src/usage_text.h
  4009. * test/DefaultBtMessageDispatcherTest.cc
  4010. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. Documented select-file option in Input File section.
  4012. Documented --http-auth-challenge option.
  4013. * doc/aria2c.1.txt
  4014. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Now select-file can be specified in the uri list(-i list).
  4016. * src/BtContext.cc
  4017. * src/BtContext.h
  4018. * src/RequestGroup.cc
  4019. * src/Sequence.h
  4020. * src/download_helper.cc
  4021. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Made the upper value of --max-concurrent-downloads options unlimited.
  4023. * src/OptionHandlerFactory.cc
  4024. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Fixed the bug that disk writer is not created even if it shares
  4026. same piece with the preceding file if the length of previous file
  4027. is 0.
  4028. * src/MultiDiskAdaptor.cc
  4029. * test/MultiDiskAdaptorTest.cc
  4030. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. In BitTorrent, Open files in read-only mode for hash check. After
  4032. that, re-open file in read/write mode only when the download is
  4033. not finished.
  4034. * src/AbstractDiskWriter.cc
  4035. * src/AbstractDiskWriter.h
  4036. * src/AbstractSingleDiskAdaptor.cc
  4037. * src/AbstractSingleDiskAdaptor.h
  4038. * src/BtCheckIntegrityEntry.cc
  4039. * src/DiskAdaptor.h
  4040. * src/DiskWriter.h
  4041. * src/MultiDiskAdaptor.cc
  4042. * src/MultiDiskAdaptor.h
  4043. * src/RequestGroup.cc
  4044. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Added --http-auth-challenge option. If it is set to true(by
  4046. default), aria2 sends HTTP authorization header only when it is
  4047. requested by the server. If false is set, then authorization
  4048. header is always sent to the server. This is useful for servers
  4049. that don't respond 401 code when authentication is required.
  4050. There is an exception: if username and password are embedded in
  4051. URI, authorization header is always sent to the server regardless
  4052. of this option.
  4053. * src/AuthConfigFactory.cc
  4054. * src/HttpSkipResponseCommand.cc
  4055. * src/OptionHandlerFactory.cc
  4056. * src/prefs.cc
  4057. * src/prefs.h
  4058. * src/usage_text.h
  4059. * test/AuthConfigFactoryTest.cc
  4060. * test/HttpRequestTest.cc
  4061. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. * Release 1.2.0
  4063. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4064. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4065. Thanks to all translators.
  4066. * po/es.po
  4067. * po/ja.po
  4068. * po/ru.po
  4069. * po/uk.po
  4070. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Call deleteSocketForReadCheck() before socket is closed.
  4072. * src/HttpListenCommand.cc
  4073. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Defined virtual destructor for BObject.
  4075. * src/bencode.h
  4076. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4077. Rewritten BDE to make it efficient.
  4078. * src/bencode.cc
  4079. * src/bencode.h
  4080. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Removed function throw list.
  4082. * src/bencode.cc
  4083. * src/bencode.h
  4084. * test/BencodeTest.cc
  4085. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4086. Enclosed all URLs in double quotes in command-line examples.
  4087. * doc/aria2c.1.txt
  4088. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4089. Updated reference/see also section.
  4090. * README
  4091. * doc/aria2c.1.txt
  4092. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Reorganized man page based on man man-pages.
  4094. * doc/aria2c.1.txt
  4095. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4097. because same documents are available in man page. Added
  4098. References section.
  4099. * README
  4100. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4101. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4102. PERFORMANCE PROFILE section.
  4103. * doc/aria2c.1.txt
  4104. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Rewritten the section for configuration file.
  4106. * README
  4107. * doc/aria2c.1.txt
  4108. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4109. Fixed the segmentation fault during execution of choking algorithm
  4110. in leecher state because of broken compare operator
  4111. implementation.
  4112. * src/BtLeecherStateChoke.cc
  4113. * src/BtLeecherStateChoke.h
  4114. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4115. Open file in binary mode.
  4116. * src/CookieStorage.cc
  4117. * src/DHTSetup.cc
  4118. * src/DHTUtil.cc
  4119. * src/Netrc.cc
  4120. * src/NsCookieParser.cc
  4121. * src/ProtocolDetector.cc
  4122. * src/RequestGroupMan.cc
  4123. * src/Signature.cc
  4124. * src/bencode.cc
  4125. * src/download_helper.cc
  4126. * src/option_processing.cc
  4127. * test/CookieParserTest.cc
  4128. * test/DefaultBtProgressInfoFileTest.cc
  4129. * test/FileTest.cc
  4130. * test/GZipDecoderTest.cc
  4131. * test/RequestGroupManTest.cc
  4132. * test/SignatureTest.cc
  4133. * test/SingleFileAllocationIteratorTest.cc
  4134. * test/UriListParserTest.cc
  4135. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4136. Removed operator[] because it is ambiguous with built-in []
  4137. operator.
  4138. * src/array_fun.h
  4139. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4140. Fixed compile error
  4141. * src/OptionParser.cc
  4142. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4143. Added missing call to arrayWrapperConst
  4144. * test/array_funTest.cc
  4145. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4146. Use array_wrapper instead of array_ptr.
  4147. * src/DHTRoutingTableDeserializer.cc
  4148. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4149. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4150. * src/array_fun.h
  4151. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4152. Added array_wrapper template.
  4153. * src/array_fun.h
  4154. * test/array_funTest.cc
  4155. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Use operator T* of array_ptr.
  4157. * src/OptionParser.cc
  4158. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. Use localhost instead of 127.0.0.1
  4160. * test/FtpConnectionTest.cc
  4161. * test/MSEHandshakeTest.cc
  4162. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4163. Added operator T*
  4164. * src/array_fun.h
  4165. * test/array_funTest.cc
  4166. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Use dynamically allocated char array to detect memory access
  4168. violation.
  4169. * src/DHTRoutingTableDeserializer.cc
  4170. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4171. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4172. defined.
  4173. * src/PeerMessageUtil.cc
  4174. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4175. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4176. * configure.ac
  4177. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Added a check to see struct sockaddr_in has sin_len member.
  4179. * configure.ac
  4180. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Fixed buffer overrun.
  4182. * src/DHTRoutingTableDeserializer.cc
  4183. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Added LL for long long int constant.
  4185. * test/FtpConnectionTest.cc
  4186. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Casted to unsigned int to suppress compiler warning on netbsd.
  4188. * src/BtRuntime.h
  4189. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4190. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4191. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4192. type time_t.
  4193. * src/SimpleLogger.cc
  4194. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4195. Added test for FtpConnection::receiveSizeResponse().
  4196. * test/FtpConnectionTest.cc
  4197. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4198. Fix epoll error on the old kernel 2.6.8 or ealier.
  4199. * src/EpollEventPoll.cc
  4200. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Use Util::parseLLInt instead of sscanf for portability. The
  4202. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4203. * src/FtpConnection.cc
  4204. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4205. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4206. block. It should not filter anything.
  4207. * src/BitfieldMan.cc
  4208. * src/ConsoleStatCalc.cc
  4209. * test/BitfieldManTest.cc
  4210. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. Fixed the bug that the boolean options that don't take arguments
  4212. don't work.
  4213. * src/OptionHandlerImpl.h
  4214. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. Fixed broken selected file BitTorrent download.
  4216. * src/MultiDiskAdaptor.cc
  4217. * test/MultiDiskAdaptorTest.cc
  4218. * test/MultiFileAllocationIteratorTest.cc
  4219. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Fixed #define guard for EpollEventPoll
  4221. * src/EpollEventPoll.h
  4222. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4223. Wait 2 seconds. 1 second is sometimes not enough.
  4224. * test/TimeSeedCriteriaTest.cc
  4225. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Use localhost instead of 127.0.0.1.
  4227. * test/DHTConnectionImplTest.cc
  4228. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4229. Suppressed compiler warning.
  4230. * src/AdaptiveURISelector.cc
  4231. * src/DefaultPieceStorage.cc
  4232. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4233. Defined virtual destructor.
  4234. * src/MetalinkParserState.h
  4235. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4236. Give NULL for second argument of getaddrinfo instead of "0".
  4237. * src/NameResolver.cc
  4238. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4239. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4240. included strptime doesn't parse data for this format.
  4241. * src/FtpConnection.cc
  4242. * test/FtpConnectionTest.cc
  4243. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Removed tests giving -1 for unsigned argument.
  4245. * test/SingleFileDownloadContextTest.cc
  4246. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. Don't use sha256 in tests because it might not be supported by the
  4248. SSL library.
  4249. * test/MetalinkProcessorTest.cc
  4250. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4251. Removed tests giving -1 for unsigned argument.
  4252. * test/AlphaNumberDecoratorTest
  4253. * test/BitfieldManTest.cc
  4254. * test/DefaultBtContextTest.cc
  4255. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4256. Fixed compile error without libcares when epoll is available.
  4257. * src/EpollEventPoll.cc
  4258. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Included fstream instead of iostream.
  4260. * test/SignatureTest.cc
  4261. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Removed #include <algorithm>
  4263. * test/RequestGroupTest.cc
  4264. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4265. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4266. using RequestGroup::extractURIResult().
  4267. * src/AdaptiveURISelector.cc
  4268. * src/RequestGroup.cc
  4269. * src/RequestGroup.h
  4270. * test/RequestGroupTest.cc
  4271. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Added tests for array_ptr.
  4273. * test/array_funTest.cc
  4274. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Don't send ip parameter to a tracker if ip parameter is empty
  4276. string.
  4277. * src/DefaultBtAnnounce.cc
  4278. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4279. Adjusted line feed.
  4280. * src/version_usage.cc
  4281. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. Print tags, possible values when OptionHandlerException is caught.
  4283. * src/option_processing.cc
  4284. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4285. Changed the message for FatalException.
  4286. * src/OptionParser.cc
  4287. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4288. Documented --bt-external-ip option in man page. Updated man pages
  4289. for --proxy-method option.
  4290. * doc/aria2c.1.txt
  4291. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4292. Use GET method for FTP via HTTP proxy.
  4293. * src/FtpInitiateConnectionCommand.cc
  4294. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4295. Changed the default value of --proxy-method option from 'tunnel'
  4296. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4297. option.
  4298. * src/AbstractCommand.cc
  4299. * src/AbstractCommand.h
  4300. * src/FtpInitiateConnectionCommand.cc
  4301. * src/HttpDownloadCommand.cc
  4302. * src/HttpInitiateConnectionCommand.cc
  4303. * src/HttpInitiateConnectionCommand.h
  4304. * src/OptionHandlerFactory.cc
  4305. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. Initialized _logger
  4307. * src/SelectEventPoll.cc
  4308. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4309. Defined a copy constructor for the same type.
  4310. * src/SharedHandle.h
  4311. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4312. Added OptionParser::parseArg() which internally uses getopt_long
  4313. to parse command-line options. All command-line options are now
  4314. configured by OptionHandler. No manual editing of struct option*
  4315. is required any more.
  4316. * src/NameMatchOptionHandler.h
  4317. * src/OptionHandler.h
  4318. * src/OptionHandlerFactory.cc
  4319. * src/OptionHandlerImpl.h
  4320. * src/OptionParser.cc
  4321. * src/OptionParser.h
  4322. * src/array_fun.h
  4323. * src/main.cc
  4324. * src/option_processing.cc
  4325. * test/OptionHandlerTest.cc
  4326. * test/OptionParserTest.cc
  4327. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. Fixed configure error with --disable-epoll
  4329. * configure.ac
  4330. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4331. Fixed compile error when HAVE_EPOLL is not defined.
  4332. Fixed linker error on bigendian systems.
  4333. * src/SocketCore.cc
  4334. * src/SocketCore.h
  4335. * test/DefaultBtProgressInfoFileTest.cc
  4336. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Added --bt-external-ip option. You can specify the external IP
  4338. address to report to a BitTorrent tracker. Although this function
  4339. is named 'external', it can accept any kind of IP addresses.
  4340. * src/DefaultBtAnnounce.cc
  4341. * src/OptionHandlerFactory.cc
  4342. * src/option_processing.cc
  4343. * src/prefs.cc
  4344. * src/prefs.h
  4345. * src/usage_text.h
  4346. * test/DefaultBtAnnounceTest.cc
  4347. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4348. Extracted the algorithm to find the longest incremental sequence
  4349. as max_sequence template.
  4350. * src/LongestSequencePieceSelector.cc
  4351. * src/a2algo.h
  4352. * test/Makefile.am
  4353. * test/a2algoTest.cc
  4354. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4355. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4356. * src/usage_text.h
  4357. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Updated doc for --uri-selector, --http-server-listen-port and
  4359. --enable-http-server option. Documented --event-poll option.
  4360. * doc/aria2c.1.txt
  4361. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4362. Updated doc for --enable-http-server.
  4363. * src/usage_text.h
  4364. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Documented --http-server-listen-port and --enable-http-server in
  4366. man page.
  4367. * doc/aria2c.1.txt
  4368. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4369. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4370. translations. Thanks to all translators.
  4371. * po/es.po
  4372. * po/id.po
  4373. * po/it.po
  4374. * po/ru.po
  4375. * po/uk.po
  4376. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Bump up version number to 1.2.0
  4378. * configure.ac
  4379. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. BtContext::getAnnounceTiers() now returns const reference.
  4381. * src/BtContext.h
  4382. * src/DefaultBtContext.cc
  4383. * src/DefaultBtContext.h
  4384. * test/MockBtContext.h
  4385. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4386. Change the number of retries for tracker request based on the
  4387. number of available tracker in a torrent file.
  4388. * src/TrackerWatcherCommand.cc
  4389. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Added _maxTries property to RequestGroup and assign the option
  4391. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4392. RequestGroup::getMaxTries() instead of
  4393. Option::getAsInt(PREF_MAX_TRIES).
  4394. * src/AbstractCommand.cc
  4395. * src/RequestGroup.cc
  4396. * src/RequestGroup.h
  4397. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4398. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4399. Mandriva. I modified the patch: make RequestGroup have the
  4400. timeout value and AdaptiveURISelector directly modifies that
  4401. value.
  4402. * src/AbstractCommand.cc
  4403. * src/AdaptiveURISelector.cc
  4404. * src/AdaptiveURISelector.h
  4405. * src/FtpNegotiationCommand.cc
  4406. * src/RequestGroup.cc
  4407. * src/RequestGroup.h
  4408. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4409. Fixed compiler warning
  4410. * test/IteratableChecksumValidatorTest.cc
  4411. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4412. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4413. integrated downloads. This PieceSelector subclass finds the
  4414. longest continuous sequence in the available missing pieces and
  4415. selects the last index of such sequence. This makes HTTP/FTP
  4416. connections less interrupted by the pieces obtained by BitTorrent
  4417. peers.
  4418. * src/DefaultPieceStorage.cc
  4419. * src/DefaultPieceStorage.h
  4420. * src/LongestSequencePieceSelector.cc
  4421. * src/LongestSequencePieceSelector.h
  4422. * src/Makefile.am
  4423. * src/PieceSelector.h
  4424. * src/RarestPieceSelector.h
  4425. * src/RequestGroup.cc
  4426. * test/BtDependencyTest.cc
  4427. * test/DefaultPieceStorageTest.cc
  4428. * test/IteratableChecksumValidatorTest.cc
  4429. * test/LongestSequencePieceSelectorTest.cc
  4430. * test/Makefile.am
  4431. * test/SegmentManTest.cc
  4432. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4433. Fixed the bug that the average speed is wrong in
  4434. http/ftp/BitTorrent integrated download. Only the download bytes
  4435. in BitTorrent were considered.
  4436. * src/RequestGroup.cc
  4437. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Choose port for BitTorrent/DHT randomly from the specified range.
  4439. * src/DHTConnectionImpl.cc
  4440. * src/PeerListenCommand.cc
  4441. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Send HTTP Authorization header only if it is requested by the
  4443. server(response 401). There are some exceptions. The authorization
  4444. header for proxy is always sent if it is available without request
  4445. by the server. If username/password is specified in the URI, it
  4446. is immediately sent to the server without request by the server.
  4447. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4448. SharedHandle<AuthConfig>().
  4449. NetrcAuthResolver::resolveAuthConfig() returns
  4450. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4451. * src/AbstractAuthResolver.cc
  4452. * src/AbstractProxyRequestCommand.cc
  4453. * src/AuthConfigFactory.cc
  4454. * src/AuthConfigFactory.h
  4455. * src/HttpConnection.cc
  4456. * src/HttpRequest.cc
  4457. * src/HttpRequest.h
  4458. * src/HttpResponse.cc
  4459. * src/HttpResponseCommand.cc
  4460. * src/HttpSkipResponseCommand.cc
  4461. * test/AuthConfigFactoryTest.cc
  4462. * test/HttpRequestTest.cc
  4463. * test/HttpResponseTest.cc
  4464. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4465. Remove leading "--" from help keyword and a substring after "="
  4466. from help keyword, so that one can query options by '-h--max-' or
  4467. '-hmax-peers=10'.
  4468. * src/option_processing.cc
  4469. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. Rewritten PStringVisitor and its implementation.
  4471. * src/PStringBuildVisitor.cc
  4472. * src/PStringBuildVisitor.h
  4473. * src/PStringDatum.h
  4474. * src/PStringNumLoop.h
  4475. * src/PStringSegment.cc
  4476. * src/PStringSegment.h
  4477. * src/PStringSelect.h
  4478. * src/PStringVisitor.h
  4479. * src/download_helper.cc
  4480. * test/PStringBuildVisitorTest.cc
  4481. * test/ParameterizedStringParserTest.cc
  4482. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4483. Persist connection between the built-in HTTP server and a client
  4484. if a client supports keep-alive. Fixed the bug that aria2 exits
  4485. when the HTTP server receives EOF from a client.
  4486. * src/HttpServer.cc
  4487. * src/HttpServer.h
  4488. * src/HttpServerCommand.cc
  4489. * src/HttpServerCommand.h
  4490. * src/HttpServerResponseCommand.cc
  4491. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4492. Added experimental built-in HTTP server. Currently, when a client
  4493. accesses to the server, it responds with the current download
  4494. progress. By default, it is disabled. To enable the server, give
  4495. --enable-http-server option. To change the default port number
  4496. for the server to listen to, use --http-server-listen-port option.
  4497. The response HTML is very simple and refreshes it self each 1
  4498. second. Because of this refresh, you see flicker in normal web
  4499. browser such as Firefox. I recommend to use console-based browser
  4500. such as elinks, w3m. To connect to the server, run 'elinks
  4501. http://localhost:6800/' while running aria2. Please replace port
  4502. number '6800'(which is default) with your preference.
  4503. * src/DownloadEngineFactory.cc
  4504. * src/HttpHeader.cc
  4505. * src/HttpHeader.h
  4506. * src/HttpHeaderProcessor.cc
  4507. * src/HttpHeaderProcessor.h
  4508. * src/HttpListenCommand.cc
  4509. * src/HttpListenCommand.h
  4510. * src/HttpServer.cc
  4511. * src/HttpServer.h
  4512. * src/HttpServerCommand.cc
  4513. * src/HttpServerCommand.h
  4514. * src/HttpServerResponseCommand.cc
  4515. * src/HttpServerResponseCommand.h
  4516. * src/Makefile.am
  4517. * src/OptionHandlerFactory.cc
  4518. * src/Util.cc
  4519. * src/Util.h
  4520. * src/help_tags.h
  4521. * src/option_processing.cc
  4522. * src/prefs.cc
  4523. * src/prefs.h
  4524. * src/usage_text.h
  4525. * test/HttpHeaderProcessorTest.cc
  4526. * test/UtilTest.cc
  4527. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Removed.
  4529. * src/CheckIntegrityMan.cc
  4530. * src/FileAllocationMan.cc
  4531. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4532. Made (piece) hash check sequential for each RequestGroup because
  4533. simultaneous hash check is slower than sequential execution.
  4534. * src/CheckIntegrityCommand.cc
  4535. * src/CheckIntegrityDispatcherCommand.cc
  4536. * src/CheckIntegrityDispatcherCommand.h
  4537. * src/CheckIntegrityMan.h
  4538. * src/ConsoleStatCalc.cc
  4539. * src/DownloadCommand.cc
  4540. * src/DownloadEngine.cc
  4541. * src/DownloadEngine.h
  4542. * src/DownloadEngineFactory.cc
  4543. * src/Makefile.am
  4544. * src/Makefile.in
  4545. * src/RequestGroup.cc
  4546. * src/StatCalc.h
  4547. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4549. SequentialDispatcherCommand.
  4550. * src/FileAllocationDispatcherCommand.cc
  4551. * src/SequentialDispatcherCommand.h
  4552. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Rewritten FileAllocationDispatcherCommand using brand new
  4554. SequentialDispatcherCommand.
  4555. * src/DownloadEngineFactory.cc
  4556. * src/FileAllocationCommand.cc
  4557. * src/FileAllocationDispatcherCommand.cc
  4558. * src/FileAllocationDispatcherCommand.h
  4559. * src/Makefile.am
  4560. * src/SequentialDispatcherCommand.h
  4561. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Replaced FileAllocationMan with
  4563. SequentialPicker<FileAllocationEntry>.
  4564. * src/BtCheckIntegrityEntry.cc
  4565. * src/ConsoleStatCalc.cc
  4566. * src/DownloadEngine.cc
  4567. * src/DownloadEngine.h
  4568. * src/DownloadEngineFactory.cc
  4569. * src/FileAllocationCommand.cc
  4570. * src/FileAllocationDispatcherCommand.cc
  4571. * src/FileAllocationMan.h
  4572. * src/Makefile.am
  4573. * src/SequentialPicker.h
  4574. * src/StatCalc.h
  4575. * src/StreamCheckIntegrityEntry.cc
  4576. * test/Makefile.am
  4577. * test/SequentialPickerTest.cc
  4578. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4579. Added doc for adaptive URI selector.
  4580. * doc/aria2c.1.txt
  4581. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Added doc for adaptive URI selector.
  4583. * src/usage_text.h
  4584. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Added doc for --bt-max-peers option.
  4586. * doc/aria2c.1.txt
  4587. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4588. Added doc for --bt-hash-check-seed option.
  4589. * doc/aria2c.1.txt
  4590. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. Documented exit codes.
  4592. * doc/aria2c.1.txt
  4593. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Added --bt-max-peers option to specify the maximum number of peers
  4595. per torrent. 0 means unlimited number of peers.
  4596. * src/ActivePeerConnectionCommand.cc
  4597. * src/BtRuntime.h
  4598. * src/DefaultPeerStorage.cc
  4599. * src/DefaultPeerStorage.h
  4600. * src/OptionHandlerFactory.cc
  4601. * src/RequestGroup.cc
  4602. * src/option_processing.cc
  4603. * src/prefs.cc
  4604. * src/prefs.h
  4605. * src/usage_text.h
  4606. * test/DefaultPeerStorageTest.cc
  4607. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4608. Added --bt-hash-check-seed option. If true is given to this
  4609. option, after hash check using --check-integrity option and file
  4610. is complete, continue to seed file. If you want to check file and
  4611. download it only when it is damaged or incomplete, set this option
  4612. to false. This option has effect only on BitTorrent download.
  4613. The default value is true(This is the same behavior with the
  4614. previous release).
  4615. * src/BtCheckIntegrityEntry.cc
  4616. * src/OptionHandlerFactory.cc
  4617. * src/option_processing.cc
  4618. * src/prefs.cc
  4619. * src/prefs.h
  4620. * src/usage_text.h
  4621. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4622. Updated copyright year.
  4623. * src/version_usage.cc
  4624. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4626. * doc/aria2c.1.txt
  4627. * src/usage_text.h
  4628. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Made the max value of split option unlimited.
  4630. * doc/aria2c.1.txt
  4631. * src/OptionHandlerFactory.cc
  4632. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4633. Fixed compile warning/error.
  4634. * src/DownloadResult.h
  4635. * src/HttpDownloadCommand.cc
  4636. * src/ServerStat.cc
  4637. * test/RequestGroupTest.cc
  4638. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4639. Added --event-poll option to select the method for polling events.
  4640. The available methods are "select" and "epoll". "epoll" is
  4641. available on Linux only. The earlier release has the compile
  4642. option to choose from these methods.
  4643. * configure.ac
  4644. * src/RequestGroupMan.cc
  4645. * src/OptionHandlerFactory.cc
  4646. * src/EpollEventPoll.h
  4647. * src/StreamFileAllocationEntry.cc
  4648. * src/a2io.h
  4649. * src/SelectEventPoll.h
  4650. * src/option_processing.cc
  4651. * src/prefs.h
  4652. * src/EpollEventPoll.cc
  4653. * src/EventPoll.h
  4654. * src/SocketCore.h
  4655. * src/Makefile.am
  4656. * src/main.cc
  4657. * src/DownloadEngine.h
  4658. * src/SelectEventPoll.cc
  4659. * src/DownloadEngine.cc
  4660. * src/SocketCore.cc
  4661. * src/DownloadEngineFactory.cc
  4662. * src/Makefile.in
  4663. * src/prefs.cc
  4664. * src/usage_text.h
  4665. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Included RecoverableException.h from main.cc
  4667. * src/main.cc
  4668. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4669. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4670. now returns last error encountered in the HTTP/FTP downloads as a
  4671. exit status value. If all downloads finished successfully, aria2
  4672. returns 0. The error code is defined in src/DownloadResult.h.
  4673. The error occurred in the download currently in progress is not
  4674. reported as a last error. If no error has encountered but there
  4675. are in progress or waiting downloads, aria2 returns 7.
  4676. * src/AbstractCommand.cc
  4677. * src/DlAbortEx.h
  4678. * src/DlRetryEx.h
  4679. * src/DownloadCommand.cc
  4680. * src/DownloadFailureException.h
  4681. * src/DownloadResult.h
  4682. * src/FtpNegotiationCommand.cc
  4683. * src/HttpSkipResponseCommand.cc
  4684. * src/Makefile.am
  4685. * src/MultiUrlRequestInfo.cc
  4686. * src/MultiUrlRequestInfo.h
  4687. * src/RecoverableException.h
  4688. * src/RequestGroup.cc
  4689. * src/RequestGroup.h
  4690. * src/RequestGroupMan.cc
  4691. * src/RequestGroupMan.h
  4692. * src/URIResult.cc
  4693. * src/URIResult.h
  4694. * src/main.cc
  4695. * src/option_processing.cc
  4696. * test/RequestGroupTest.cc
  4697. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4698. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4699. patch adds AdaptiveURISelector, which selects one of the bests
  4700. mirrors for first and reserved connections. For supplementary
  4701. ones, it returns mirrors which has not been tested yet, and if
  4702. each of them already tested, returns mirrors which has to be
  4703. tested again. Otherwise, it doesn't return anymore mirrors.
  4704. * src/AdaptiveURISelector.cc
  4705. * src/AdaptiveURISelector.h
  4706. * src/FtpNegotiationCommand.cc
  4707. * src/HttpResponseCommand.cc
  4708. * src/Makefile.am
  4709. * src/Makefile.in
  4710. * src/OptionHandlerFactory.cc
  4711. * src/RequestGroup.cc
  4712. * src/RequestGroup.h
  4713. * src/RequestGroupMan.cc
  4714. * src/ServerStat.cc
  4715. * src/ServerStat.h
  4716. * src/ServerStatMan.cc
  4717. * src/SpeedCalc.cc
  4718. * src/URISelector.h
  4719. * src/prefs.cc
  4720. * src/prefs.h
  4721. * test/RequestGroupManTest.cc
  4722. * test/ServerStatManTest.cc
  4723. * test/ServerStatTest.cc
  4724. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. Fixed unit test error.
  4726. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4727. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4728. * Release 1.1.2
  4729. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Updated Russian translation. Thanks to the translators.
  4731. * po/ru.po
  4732. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Added the description of --use-head option to man page.
  4734. * doc/aria2c.1.txt
  4735. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Bump up version number to 1.1.2
  4737. * configure.ac
  4738. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Added --use-head option to toggle whether HEAD method should be
  4740. used in the first HTTP request. By default aria2 uses HEAD method
  4741. as the first request. When the server doesn't recognize HEAD, then
  4742. give aria2 --use-head=false to force aria2 to use GET method
  4743. instead.
  4744. * src/OptionHandlerFactory.cc
  4745. * src/RequestGroupMan.cc
  4746. * src/option_processing.cc
  4747. * src/prefs.cc
  4748. * src/prefs.h
  4749. * src/usage_text.h
  4750. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4752. message is received before CHOKE message. The old implementation
  4753. doen't clear the use-bit of the piece when recieved REJECT
  4754. message.
  4755. * src/DefaultBtMessageDispatcher.cc
  4756. * test/DefaultBtMessageDispatcherTest.cc
  4757. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4758. * Release 1.1.1
  4759. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4760. Bump up version number to 1.1.1.
  4761. * configure.ac
  4762. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4763. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4764. is printed repeatedly.
  4765. * src/ConsoleStatCalc.cc
  4766. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. * Release 1.1.0
  4768. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4769. Added ifdef clause for conditional compilation.
  4770. * src/main.cc
  4771. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4772. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4773. translations. Thanks to all translators.
  4774. * po/ja.po
  4775. * po/ru.po
  4776. * po/uk.po
  4777. * po/zh_CN.po
  4778. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Added the preceding ">>> " before the message "Printing the
  4780. contents of file..." to make the output more readable.
  4781. * src/main.cc
  4782. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4783. Added try-catch block in the loop in showFiles() to continue the
  4784. operation even if the exception occurred in one file.
  4785. * src/main.cc (showFiles)
  4786. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4787. Made messages in showFiles() translatable.
  4788. * po/aria2.pot
  4789. * src/main.cc
  4790. * src/message.h
  4791. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4792. Print the contents of Torrent/Metalink files are printed without
  4793. -T/-M options.
  4794. * src/main.cc
  4795. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4796. Escaped '--' with '\--'
  4797. * README
  4798. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4799. Updated "How to build" section in README. Mentioned about
  4800. --with-ca-bundle compile option.
  4801. * README
  4802. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4803. Bump up version number to 1.1.0.
  4804. * configure.ac
  4805. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4806. Added a note for --dht-listen-port option.
  4807. * doc/aria2c.1.txt
  4808. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4809. Update doc for --realtime-chunk-checksum option.
  4810. * doc/aria2c.1.txt
  4811. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Update doc for --realtime-chunk-checksum option.
  4813. * src/usage_text.h
  4814. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4815. Updated French, Japanese, Russian and Ukrainian translations.
  4816. Thanks to all translators.
  4817. * po/fr.po
  4818. * po/ja.po
  4819. * po/ru.po
  4820. * po/uk.po
  4821. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4822. Renamed aria2c.pot to aria2.pot
  4823. * po/aria2.pot
  4824. * po/aria2c.pot: Removed.
  4825. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4826. Removed MetaEntry.h
  4827. * src/Makefile.am
  4828. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4829. Rename file by appending digits if a local file exists and its
  4830. file size is larger than that of remote file with --continue
  4831. option. The old implementation just throws exception in such case.
  4832. * src/RequestGroup.cc
  4833. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4834. Fixed the bug that download progress summary is not printed in the
  4835. interval specified by the option.
  4836. * src/ConsoleStatCalc.cc
  4837. * src/ConsoleStatCalc.h
  4838. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Fixed compiler warning
  4840. * src/Cookie.cc
  4841. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4842. Fixed the cookie implementation based on RFC2965.
  4843. Now if a value in domain field is not started with dot, then
  4844. prepend dot. That means a cookie with domain=sf.net is sent to
  4845. wiki.sf.net.
  4846. * src/Cookie.cc
  4847. * test/CookieParserTest.cc
  4848. * test/CookieStorageTest.cc
  4849. * test/CookieTest.cc
  4850. * test/NsCookieParserTest.cc
  4851. * test/Sqlite3MozCookieParserTest.cc
  4852. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4854. is enabled and the server doesn't support keep-alive.
  4855. * src/AbstractCommand.cc
  4856. * src/DownloadCommand.cc
  4857. * src/HttpDownloadCommand.cc
  4858. * src/HttpDownloadCommand.h
  4859. * src/HttpResponseCommand.cc
  4860. * src/Request.cc
  4861. * src/Request.h
  4862. * test/RequestTest.cc
  4863. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Removed Dictionary/List/Data and its related classes.
  4865. * src/BencodeVisitor.cc: Removed.
  4866. * src/BencodeVisitor.h: Removed.
  4867. * src/Data.cc: Removed.
  4868. * src/Data.h: Removed.
  4869. * src/Dictionary.cc: Removed.
  4870. * src/Dictionary.h: Removed.
  4871. * src/List.cc: Removed.
  4872. * src/List.h: Removed.
  4873. * src/Makefile.am
  4874. * src/MetaEntry.h: Removed.
  4875. * src/MetaEntryVisitor.h: Removed.
  4876. * src/MetaFileUtil.cc: Removed.
  4877. * src/MetaFileUtil.h: Removed.
  4878. * test/BencodeVisitorTest.cc: Removed.
  4879. * test/DataTest.cc: Removed.
  4880. * test/DictionaryTest.cc: Removed.
  4881. * test/ListTest.cc: Removed.
  4882. * test/Makefile.am
  4883. * test/MetaFileUtilTest.cc: Removed.
  4884. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4885. Removed include of MetaEntry.h
  4886. * test/DHTMessageTrackerEntryTest.cc
  4887. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Use BDE instead of Dictionary/List/Data.
  4889. * src/AnnounceList.cc
  4890. * src/AnnounceList.h
  4891. * test/AnnounceListTest.cc
  4892. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4893. Use BDE instead of Dictionary/List/Data.
  4894. * src/DHTAbstractMessage.cc
  4895. * src/DHTAbstractMessage.h
  4896. * src/DHTAnnouncePeerMessage.cc
  4897. * src/DHTAnnouncePeerMessage.h
  4898. * src/DHTAnnouncePeerReplyMessage.cc
  4899. * src/DHTAnnouncePeerReplyMessage.h
  4900. * src/DHTFindNodeMessage.cc
  4901. * src/DHTFindNodeMessage.h
  4902. * src/DHTFindNodeReplyMessage.cc
  4903. * src/DHTFindNodeReplyMessage.h
  4904. * src/DHTGetPeersMessage.cc
  4905. * src/DHTGetPeersMessage.h
  4906. * src/DHTGetPeersReplyMessage.cc
  4907. * src/DHTGetPeersReplyMessage.h
  4908. * src/DHTMessageFactory.h
  4909. * src/DHTMessageFactoryImpl.cc
  4910. * src/DHTMessageFactoryImpl.h
  4911. * src/DHTMessageReceiver.cc
  4912. * src/DHTMessageTracker.cc
  4913. * src/DHTMessageTracker.h
  4914. * src/DHTPingMessage.cc
  4915. * src/DHTPingMessage.h
  4916. * src/DHTPingReplyMessage.cc
  4917. * src/DHTPingReplyMessage.h
  4918. * src/DHTQueryMessage.cc
  4919. * src/DHTQueryMessage.h
  4920. * src/DHTResponseMessage.cc
  4921. * src/DHTResponseMessage.h
  4922. * test/DHTAnnouncePeerMessageTest.cc
  4923. * test/DHTAnnouncePeerReplyMessageTest.cc
  4924. * test/DHTFindNodeMessageTest.cc
  4925. * test/DHTFindNodeReplyMessageTest.cc
  4926. * test/DHTGetPeersMessageTest.cc
  4927. * test/DHTGetPeersReplyMessageTest.cc
  4928. * test/DHTMessageFactoryImplTest.cc
  4929. * test/DHTMessageTrackerTest.cc
  4930. * test/DHTPingMessageTest.cc
  4931. * test/DHTPingReplyMessageTest.cc
  4932. * test/MockDHTMessageFactory.h
  4933. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4934. Added tests the case where length < 0 is specified.
  4935. * test/BencodeTest.cc
  4936. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4937. Fixed memory leak in decoderawstring()
  4938. * src/bencode.cc
  4939. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4940. Added missing #ifdef guard. Added uc() function for String and
  4941. removeKey() for Dict.
  4942. * src/bencode.cc
  4943. * src/bencode.h
  4944. * test/BencodeTest.cc
  4945. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4946. Use BDE instead of Dictionary/List/Data.
  4947. * src/HandshakeExtensionMessage.cc
  4948. * src/HandshakeExtensionMessage.h
  4949. * test/HandshakeExtensionMessageTest.cc
  4950. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. Added --max-overall-upload-limit option. This option limits the
  4952. overall upload speed. Stated in help message that the existing
  4953. --max-upload-limit option limits the upload speed per each
  4954. torrent. Man page is also updated.
  4955. * doc/aria2c.1.txt
  4956. * src/DefaultBtMessageDispatcher.cc
  4957. * src/DefaultBtMessageDispatcher.h
  4958. * src/OptionHandlerFactory.cc
  4959. * src/PeerInteractionCommand.cc
  4960. * src/option_processing.cc
  4961. * src/prefs.cc
  4962. * src/prefs.h
  4963. * src/usage_text.h
  4964. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4965. Use BDE instead of Dictionary/List/Data classes.
  4966. * src/CompactPeerListProcessor.cc
  4967. * src/CompactPeerListProcessor.h
  4968. * src/DefaultBtAnnounce.cc
  4969. * src/DefaultBtContext.cc
  4970. * src/DefaultBtContext.h
  4971. * src/DefaultPeerListProcessor.cc
  4972. * src/DefaultPeerListProcessor.h
  4973. * src/DelegatingPeerListProcessor.cc
  4974. * src/DelegatingPeerListProcessor.h
  4975. * src/PeerListProcessor.h
  4976. * src/UTPexExtensionMessage.cc
  4977. * src/Util.h
  4978. * src/message.h
  4979. * test/DefaultBtContextTest.cc
  4980. * test/DefaultPeerListProcessorTest.cc
  4981. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4982. Added bencode helper functions and BDE class.
  4983. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4984. * src/Makefile.am
  4985. * src/bencode.cc
  4986. * src/bencode.h
  4987. * test/BencodeTest.cc
  4988. * test/Makefile.am
  4989. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4990. Fixed the bug that bad URI is sent to the tracker when the announe
  4991. URI in torrent file includes query.
  4992. * src/DefaultBtAnnounce.cc
  4993. * test/DefaultBtAnnounceTest.cc
  4994. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Added Option::blank().
  4996. Use !Option::blank(name) instead of Option::defined(name) for
  4997. the options that take filename.
  4998. * src/MultiUrlRequestInfo.cc
  4999. * src/Option.cc
  5000. * src/Option.h
  5001. * src/main.cc
  5002. * src/option_processing.cc
  5003. * test/OptionTest.cc
  5004. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Documented the default value of --check-certificate option in man
  5006. page.
  5007. * doc/aria2c.1.txt
  5008. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5009. Enabled --check-certificate by default. Added compile
  5010. time(configure) option --with-ca-bundle to specify CA bundle.
  5011. Warn if --check-certificate=true and --ca-certificate is not
  5012. specified or loading CA certificate is failed.
  5013. * configure.ac
  5014. * src/MultiUrlRequestInfo.cc
  5015. * src/OptionHandlerFactory.cc
  5016. * src/message.h
  5017. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5018. Mentioned https tag in help option.
  5019. * doc/aria2c.1.txt
  5020. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5021. Added `https' tag to help option category. Added https tag to
  5022. --ca-certificate, --certificate, --check-certificate and
  5023. --private-key option.
  5024. * src/OptionHandlerFactory.cc
  5025. * src/help_tags.h
  5026. * src/option_processing.cc
  5027. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5028. Changed the package name from `aria2c' to `aria2' in order to fix
  5029. the packaging issue in Debian and Fedora. The name of the
  5030. executable is not changed.
  5031. * configure.ac
  5032. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5033. Fixed typos
  5034. * src/usage_text.h
  5035. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5036. Fixed typos and updated doc.
  5037. * README
  5038. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Fixed typos
  5040. * doc/aria2c.1.txt
  5041. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Fixed typos
  5043. * src/usage_text.h
  5044. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5045. Print a message when no files to download.
  5046. * src/download_helper.cc
  5047. * src/main.cc
  5048. * src/message.h
  5049. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. RFC3986 complied Percent-Encoding(urlencode).
  5051. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5052. ones.
  5053. * src/Request.cc
  5054. * src/Util.cc
  5055. * src/Util.h
  5056. * test/BtHandshakeMessageTest.cc
  5057. * test/DefaultBtAnnounceTest.cc
  5058. * test/DefaultBtContextTest.cc
  5059. * test/RequestTest.cc
  5060. * test/UtilTest.cc
  5061. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5062. Fixed the bug that prevents aria2 from downloading 0-length files
  5063. via HTTP/FTP.
  5064. * src/DefaultBtContext.cc
  5065. * src/DefaultBtContext.h
  5066. * src/DownloadContext.h
  5067. * src/FtpNegotiationCommand.cc
  5068. * src/HttpResponseCommand.cc
  5069. * src/HttpResponseCommand.h
  5070. * src/RequestGroup.cc
  5071. * src/SingleFileDownloadContext.cc
  5072. * src/SingleFileDownloadContext.h
  5073. * test/BtPostDownloadHandlerTest.cc
  5074. * test/MetalinkPostDownloadHandlerTest.cc
  5075. * test/MockBtContext.h
  5076. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5077. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5078. * src/option_processing.cc
  5079. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Applied aria2-1.0.1-mingw.patch.
  5081. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5082. mingw.
  5083. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5084. * src/SocketCore.cc
  5085. * src/a2netcompat.h
  5086. * test/SocketCoreTest.cc
  5087. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. * Release 1.0.1
  5089. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Updated Ukrainian and Norwegian Nynorsk translations.
  5091. Thanks to all translators.
  5092. * po/nn.po
  5093. * po/uk.po
  5094. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5095. Don't show download result when -S option is used.
  5096. * src/main.cc
  5097. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5098. Bump up version number to 1.0.1
  5099. * configure.ac
  5100. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5101. Closed files after the test cases in MultiDiskWriterTest::
  5102. testResetDiskWriterEntries(). This will fix the unit test error
  5103. in mingw32 build.
  5104. * test/MultiDiskWriterTest.cc
  5105. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. Use HEAD method to get file size from HTTP server for segmented
  5107. downloading.
  5108. The request to the BitTorrent Tracker always uses GET method because
  5109. the response of the tracker is small and it doesn't need segmented
  5110. download.
  5111. * src/FtpNegotiationCommand.cc
  5112. * src/HttpRequest.cc
  5113. * src/HttpResponseCommand.cc
  5114. * src/HttpSkipResponseCommand.cc
  5115. * src/RequestGroup.cc
  5116. * src/RequestGroup.h
  5117. * src/TrackerWatcherCommand.cc
  5118. * test/HttpRequestTest.cc
  5119. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5120. Fixed the bug that causes floating exception when -T option is used and
  5121. no URIs are given.
  5122. * src/download_helper.cc
  5123. * test/DownloadHelperTest.cc
  5124. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5125. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5126. errors in MinGW:
  5127. Closed file after saving server stats (RequestGroupMan.cc)
  5128. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5129. Ignored case & handled 2-digit years (strptime.c)
  5130. Added missing suseconds_t definition (a2time.h)
  5131. Fixed socket CLOSE() define (SocketCore.cc)
  5132. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5133. Changed utime() test values from x000 to x00000 as MinGW failed on
  5134. values less than timezone offset from Unix epoch
  5135. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5136. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5137. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5138. handle negative dates (CookieParserTest.cc)
  5139. * src/a2time.h
  5140. * src/FtpConnection.cc
  5141. * src/RequestGroupMan.cc
  5142. * src/SocketCore.cc
  5143. * src/strptime.c
  5144. * test/CookieParserTest.cc
  5145. * test/CopyDiskAdaptorTest.cc
  5146. * test/FileTest.cc
  5147. * test/FtpConnectionTest.cc
  5148. * test/MultiDiskAdaptorTest.cc
  5149. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5150. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5151. * doc/aria2c.1.txt
  5152. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5153. * Release 1.0.0
  5154. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5155. Added '~' to reserved characters.
  5156. * src/Util.cc
  5157. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5158. Do not urlencode Request::url in setUrl() because we want unmodified
  5159. URL using Request::getUrl()
  5160. * src/Request.cc
  5161. * src/Request.h
  5162. * test/RequestTest.cc
  5163. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5164. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5165. Thanks to all translators.
  5166. * po/bg.po
  5167. * po/fr.po
  5168. * po/ja.po
  5169. * po/ru.po
  5170. * po/uk.po
  5171. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. Bump up version number to 1.0.0
  5173. * configure.ac
  5174. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5175. Added nosqlite3 build to build_test.sh.
  5176. Renamed noxml as expat.
  5177. * build_test.sh
  5178. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. Updated INPUT FILE section.
  5180. * doc/aria2c.1.txt
  5181. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5182. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5183. on big endian systems because test .aria2 files are made for little
  5184. endian systems.
  5185. * test/DefaultBtProgressInfoFileTest.cc
  5186. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5187. Dropped ares support.
  5188. * README
  5189. * configure.ac
  5190. * m4/libares.m4: Removed.
  5191. * src/AsyncNameResolver.cc
  5192. * src/Makefile.am
  5193. * test/Makefile.am
  5194. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5195. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5196. Removed const qualifier from DiskWriter::size().
  5197. * src/AbstractDiskWriter.cc
  5198. * src/AbstractDiskWriter.h
  5199. * src/ByteArrayDiskWriter.cc
  5200. * src/ByteArrayDiskWriter.h
  5201. * src/DiskWriter.h
  5202. * test/ByteArrayDiskWriterTest.cc
  5203. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5204. Fixed the bug that causes segmentation fault/bus error during executing
  5205. choking algorithm while seeding. This is caused by improper
  5206. implementation of compare function which returns inconsistent results
  5207. depending on the timing of last unchoke.
  5208. * src/BtSeederStateChoke.cc
  5209. * src/BtSeederStateChoke.h
  5210. * src/DefaultPeerStorage.cc
  5211. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5212. Removed TODO
  5213. * TODO
  5214. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5215. Added a section that explains how to pass argument to options that
  5216. takes optional arguments with its short form.
  5217. * doc/aria2c.1.txt
  5218. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Added -u for the short form of --max-upload-limit option.
  5220. * doc/aria2c.1.txt
  5221. * src/option_processing.cc
  5222. * src/usage_text.h
  5223. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Added -V for the short form of --check-integrity option.
  5225. Now the argument of --check-integrity option is optional:
  5226. if it is omitted, it is evaluated as true.
  5227. * doc/aria2c.1.txt
  5228. * src/option_processing.cc
  5229. * src/usage_text.h
  5230. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5231. Made the default value of --ftp-pasv option set to true and it can take
  5232. true/false values.
  5233. * src/OptionHandlerFactory.cc
  5234. * src/option_processing.cc
  5235. * src/usage_text.h
  5236. * doc/aria2c.1.txt
  5237. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Given custom random number generator to std::random_shuffle.
  5239. * src/AnnounceList.cc
  5240. * src/BtLeecherStateChoke.cc
  5241. * src/BtSeederStateChoke.cc
  5242. * src/DefaultBtRequestFactory.cc
  5243. * src/MetalinkEntry.cc
  5244. * src/RarestPieceSelector.cc
  5245. * src/SimpleRandomizer.cc
  5246. * src/SimpleRandomizer.h
  5247. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5248. Now the default value of --enable-direct-io is true.
  5249. * src/OptionHandlerFactory.cc
  5250. * doc/aria2c.1.txt
  5251. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5252. Erase peer before executing onReturningPeer and onErasingPeer
  5253. because choking algorithm called from onReturningPeer doesn't
  5254. like erasing peer in the active peer list.
  5255. * src/DefaultPeerStorage.cc
  5256. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5257. Instead of creating special filename in createDownloadResult() if
  5258. inMemoryDownload() is true, now it is done in getFilePath().
  5259. * src/RequestGroup.cc
  5260. * test/RequestGroupTest.cc
  5261. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5262. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5263. processed in memory. This is the fix for previous comment out.
  5264. * src/MemoryBufferPreDownloadHandler.cc
  5265. * src/RequestGroup.cc
  5266. * src/RequestGroup.h
  5267. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5268. Commented out the code which sets virtual directory path "[MEMORY]"
  5269. propagate directory to store to following RequestGroup.
  5270. * src/MemoryBufferPreDownloadHandler.cc
  5271. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Bump up version number to 1.0.0b
  5273. * configure.ac
  5274. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5275. Added input_uris.txt to EXTRA_DIST
  5276. * test/Makefile.am
  5277. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Removed PeerObject.h from Makefile.am
  5279. * src/Makefile.am
  5280. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5281. Avoid slow seeding
  5282. * src/PeerInteractionCommand.cc
  5283. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Updated usage for -i option.
  5285. * src/usage_text.h (TEXT_INPUT_FILE)
  5286. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Added INPUT FILE section to man page.
  5288. Escaped fake URLs.
  5289. * doc/aria2c.1.txt
  5290. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5291. Fixed wrong note position for -o option.
  5292. * doc/aria2c.1.txt
  5293. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5294. Fixed compile error without SSL/XML library.
  5295. * src/DefaultBtProgressInfoFile.cc
  5296. * src/DefaultBtProgressInfoFile.h
  5297. * src/FileMetalinkParserState.cc
  5298. * src/RequestGroup.h
  5299. * src/SocketCore.cc
  5300. * src/SocketCore.h
  5301. * src/VerificationMetalinkParserState.cc
  5302. * src/download_helper.h
  5303. * src/main.cc
  5304. * test/DefaultBtProgressInfoFileTest.cc
  5305. * test/DownloadHelperTest.cc
  5306. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. Rewritten URI handling functions. They are now provided as a testable
  5308. functions.
  5309. * src/Makefile.am
  5310. * src/RequestGroup.cc
  5311. * src/RequestGroup.h
  5312. * src/download_helper.cc
  5313. * src/download_helper.h
  5314. * src/main.cc
  5315. * test/DownloadHelperTest.cc
  5316. * test/Makefile.am
  5317. * test/input_uris.txt
  5318. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Quickly terminate commands when ctrl-c is pressed.
  5320. * src/DownloadEngine.cc
  5321. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5322. Quickly terminate idle commands when download finished.
  5323. * src/AbstractCommand.cc
  5324. * src/DownloadCommand.cc
  5325. * src/DownloadEngine.cc
  5326. * src/DownloadEngine.h
  5327. * src/SleepCommand.cc
  5328. * src/SleepCommand.h
  5329. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5330. Added the ability to specify output filename and directory in input
  5331. file.
  5332. Additional parameters are added in the following line of URIs
  5333. with proceeding white space(s), 1 parameter in 1 line.
  5334. The parameter names are the same with the command-line option name
  5335. without proceeding "--". Not all the options are available here:
  5336. at the moment, 'dir' and 'out' options are avialable.
  5337. Please note that out option has no effect against Metalink or BitTorrent
  5338. downloads.
  5339. Example input file:
  5340. http://host/foo-1.1.tar.bz2
  5341. out=foo.tar.bz2
  5342. dir=/tmp/downloads
  5343. http://host/thundermonkey-2.0.tar.bz2
  5344. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5345. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5346. thundermonkey-2.0.tar.bz2 is saved as
  5347. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5348. * src/BtPostDownloadHandler.cc
  5349. * src/Metalink2RequestGroup.cc
  5350. * src/Metalink2RequestGroup.h
  5351. * src/MetalinkPostDownloadHandler.cc
  5352. * src/UriListParser.cc
  5353. * src/UriListParser.h
  5354. * src/main.cc
  5355. * test/Metalink2RequestGroupTest.cc
  5356. * test/UriListParserTest.cc
  5357. * test/filelist1.txt
  5358. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5359. Fixed error when SSL library is not found.
  5360. * configure.ac
  5361. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5362. Cross referenced among -s, -C and -j options.
  5363. Updated usage of -C and -s options.
  5364. * src/usage_text.h
  5365. * doc/aria2c.1.txt
  5366. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5367. Fixed bad cast in 32bit platforms.
  5368. * test/DefaultPieceStorageTest.cc
  5369. (DefaultPieceStorageTest::testGetCompletedLength)
  5370. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5371. Fixed unit test fails on 32bit platforms.
  5372. * test/CookieParserTest.cc
  5373. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5374. Show an average download speed in Download results.
  5375. * src/BtFileAllocationEntry.cc
  5376. * src/DefaultPieceStorage.cc
  5377. * src/DownloadContext.cc
  5378. * src/DownloadContext.h
  5379. * src/DownloadResult.h
  5380. * src/RequestGroup.cc
  5381. * src/RequestGroupMan.cc
  5382. * src/StreamFileAllocationEntry.cc
  5383. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5384. Fixed the bug that metalink file is not processed if Content-Type
  5385. field has a paramter.
  5386. * src/HttpResponse.cc
  5387. * src/HttpResponse.h
  5388. * test/HttpResponseTest.cc
  5389. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5390. Removed unused code.
  5391. * src/DefaultBtAnnounce.cc
  5392. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5393. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5394. the value larger than DefaultPieceStorage::getTotalLength() when
  5395. in flight pieces are involved.
  5396. * src/DefaultPieceStorage.cc
  5397. * test/DefaultPieceStorageTest.cc
  5398. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Bump up version number to 1.0.0a.
  5400. * configure.ac
  5401. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Updated configure.ac
  5403. * configure.ac
  5404. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5405. Added usege for proxy.
  5406. * doc/aria2c.1.txt
  5407. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5408. Added usage for --ca-certificate, --certificate, --private-key and
  5409. --check-certificate options.
  5410. * doc/aria2c.1.txt
  5411. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Updated man page
  5413. * doc/aria2c.1.txt
  5414. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Added --no-proxy option. It receives comman separated hostname or
  5416. domains to which proxy should not be used.
  5417. aria2 honors the environment variable no_proxy to override no-proxy
  5418. value in configuration file. The user can override the environment
  5419. variable no_proxy with --no-proxy command-line option.
  5420. * src/AbstractCommand.cc
  5421. * src/OptionHandlerFactory.cc
  5422. * src/option_processing.cc
  5423. * src/prefs.cc
  5424. * src/prefs.h
  5425. * src/usage_text.h
  5426. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5427. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5428. The CA certificates are specified in --ca-certificate option.
  5429. By default, the verification is disabled. Use --check-certificate
  5430. option to enable it.
  5431. * src/HttpRequestCommand.cc
  5432. * src/LibgnutlsTLSContext.cc
  5433. * src/LibgnutlsTLSContext.h
  5434. * src/LibsslTLSContext.cc
  5435. * src/LibsslTLSContext.h
  5436. * src/MultiUrlRequestInfo.cc
  5437. * src/OptionHandlerFactory.cc
  5438. * src/SocketCore.cc
  5439. * src/SocketCore.h
  5440. * src/a2functional.h
  5441. * src/message.h
  5442. * src/option_processing.cc
  5443. * src/prefs.cc
  5444. * src/prefs.h
  5445. * src/usage_text.h
  5446. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Added client certificate authentication for SSL/TLS.
  5448. Currently a private key must be decrypted for use with aria2.
  5449. If a user accidentally gives encrypted file to aria2 then following
  5450. thing happens:
  5451. If encrypted private key is given to aria2, it behaves differently
  5452. depending on the ssl library it uses. If aria2 built with openssl then
  5453. openssl prompts the user for password. If aria2 build with gnutls then
  5454. aria2 exists with error at start up.
  5455. * src/DownloadEngineFactory.cc
  5456. * src/MultiUrlRequestInfo.cc
  5457. * src/OptionHandlerFactory.cc
  5458. * src/option_processing.cc
  5459. * src/prefs.cc
  5460. * src/prefs.h
  5461. * src/usage_text.h
  5462. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5463. Introduced TLSContext that holds TLS related data that can be shared
  5464. with multiple SSL connections.
  5465. * src/DownloadEngineFactory.cc
  5466. * src/LibgnutlsTLSContext.cc
  5467. * src/LibgnutlsTLSContext.h
  5468. * src/LibsslTLSContext.cc
  5469. * src/LibsslTLSContext.h
  5470. * src/Makefile.am
  5471. * src/SocketCore.cc
  5472. * src/SocketCore.h
  5473. * src/TLSContext.h
  5474. * src/message.h
  5475. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Fixed the bug that the DiskWriter of the first FileEntry whose
  5477. `needsFileAllocation' property is false is not created
  5478. even if it shares a piece with next FileEntry which `requested' property
  5479. is true.
  5480. Fixed the bug that zero-length file is not created if pre file
  5481. allocation is not done.
  5482. * src/MultiDiskAdaptor.cc
  5483. * src/MultiDiskAdaptor.h
  5484. * test/MultiDiskAdaptorTest.cc
  5485. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Added the ability to pool proxy connection.
  5487. The conneciton in FTP with proxy-method=GET is not pooled.
  5488. Proxy-Connection header will not be sent when sending CONNECT method.
  5489. * src/DownloadEngine.cc
  5490. * src/DownloadEngine.h
  5491. * src/FtpFinishDownloadCommand.cc
  5492. * src/FtpInitiateConnectionCommand.cc
  5493. * src/FtpNegotiationCommand.cc
  5494. * src/HttpDownloadCommand.cc
  5495. * src/HttpInitiateConnectionCommand.cc
  5496. * src/HttpRequest.cc
  5497. * src/HttpRequest.h
  5498. * src/HttpResponse.cc
  5499. * src/HttpSkipResponseCommand.cc
  5500. * test/HttpRequestTest.cc
  5501. * test/HttpResponseTest.cc
  5502. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Handle date before epoch.
  5504. To create *bad* Time object, call Time::null().
  5505. * src/CookieParser.cc
  5506. * src/FtpConnection.cc
  5507. * src/FtpConnection.h
  5508. * src/FtpNegotiationCommand.cc
  5509. * src/RequestGroup.cc
  5510. * src/TimeA2.cc
  5511. * src/TimeA2.h
  5512. * test/CookieParserTest.cc
  5513. * test/FtpConnectionTest.cc
  5514. * test/TimeTest.cc
  5515. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Added support for following envrionment variables: http_proxy,
  5517. https_proxy, ftp_proxy and all_proxy.
  5518. Each variable is equivalent to the aria2 option whose name is the
  5519. variable name with '_' replaced with '-'.
  5520. They overrides options specified in aria2.conf file.
  5521. The envrionment variables can be overrode using command-line option.
  5522. * src/option_processing.cc
  5523. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Renamed --http-proxy-method as --proxy-method.
  5525. * src/AbstractCommand.cc
  5526. * src/FtpInitiateConnectionCommand.cc
  5527. * src/HttpInitiateConnectionCommand.cc
  5528. * src/OptionHandlerFactory.cc
  5529. * src/option_processing.cc
  5530. * src/prefs.cc
  5531. * src/prefs.h
  5532. * src/usage_text.h
  5533. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5535. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5536. Above 3 options and --http-proxy option can handle proxy in URL format
  5537. like: http://user:passwd@host:port.
  5538. If a proxy requires user/password, they must be specified in a URL.
  5539. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5540. instead.
  5541. * src/AbstractCommand.cc
  5542. * src/AbstractCommand.h
  5543. * src/AbstractProxyRequestCommand.cc
  5544. * src/AbstractProxyRequestCommand.h
  5545. * src/AuthConfigFactory.cc
  5546. * src/AuthConfigFactory.h
  5547. * src/FtpFinishDownloadCommand.cc
  5548. * src/FtpInitiateConnectionCommand.cc
  5549. * src/FtpInitiateConnectionCommand.h
  5550. * src/FtpNegotiationCommand.cc
  5551. * src/FtpTunnelRequestCommand.cc
  5552. * src/FtpTunnelRequestCommand.h
  5553. * src/HttpDownloadCommand.cc
  5554. * src/HttpInitiateConnectionCommand.cc
  5555. * src/HttpInitiateConnectionCommand.h
  5556. * src/HttpProxyRequestCommand.cc
  5557. * src/HttpProxyRequestCommand.h
  5558. * src/HttpRequest.cc
  5559. * src/HttpRequest.h
  5560. * src/HttpRequestCommand.cc
  5561. * src/HttpRequestCommand.h
  5562. * src/HttpSkipResponseCommand.cc
  5563. * src/InitiateConnectionCommand.cc
  5564. * src/InitiateConnectionCommand.h
  5565. * src/OptionHandlerFactory.cc
  5566. * src/OptionHandlerImpl.h
  5567. * src/Request.cc
  5568. * src/option_processing.cc
  5569. * src/prefs.cc
  5570. * src/prefs.h
  5571. * src/usage_text.h
  5572. * test/AuthConfigFactoryTest.cc
  5573. * test/HttpRequestTest.cc
  5574. * test/OptionHandlerTest.cc
  5575. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Execute choking algorithm when unchoked and interested peer is
  5577. disconected.
  5578. * src/DefaultPeerStorage.cc
  5579. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5580. Added testcase for BtNotInterestedMessage from unchoked peer.
  5581. * test/BtNotInterestedMessageTest.cc
  5582. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Execute choking algorithm when BtInterestedMessage arrives from
  5584. unchoked peer.
  5585. * src/BtInterestedMessage.cc
  5586. * src/BtInterestedMessage.h
  5587. * src/DefaultBtMessageFactory.cc
  5588. * test/BtInterestedMessageTest.cc
  5589. * test/MockPeerStorage.h
  5590. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5591. AuthConfigFactory is now part of DownloadEngine.
  5592. * src/AbstractProxyRequestCommand.cc
  5593. * src/AuthConfigFactory.h
  5594. * src/DownloadEngine.cc
  5595. * src/DownloadEngine.h
  5596. * src/FtpConnection.cc
  5597. * src/FtpConnection.h
  5598. * src/FtpNegotiationCommand.cc
  5599. * src/HttpConnection.cc
  5600. * src/HttpRequest.cc
  5601. * src/HttpRequest.h
  5602. * src/HttpRequestCommand.cc
  5603. * src/HttpResponse.cc
  5604. * src/HttpResponseCommand.cc
  5605. * src/HttpSkipResponseCommand.cc
  5606. * src/MultiUrlRequestInfo.cc
  5607. * src/main.cc
  5608. * test/FtpConnectionTest.cc
  5609. * test/HttpRequestTest.cc
  5610. * test/HttpResponseTest.cc
  5611. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Corrected catched exception type.
  5613. * src/ServerStatMan.cc
  5614. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. DNSCache is now part of DownloadEngine.
  5616. * src/DNSCache.h
  5617. * src/DownloadEngine.cc
  5618. * src/DownloadEngine.h
  5619. * src/InitiateConnectionCommand.cc
  5620. * src/MultiUrlRequestInfo.cc
  5621. * test/Makefile.am
  5622. * test/Makefile.in
  5623. * test/SimpleDNSCacheTest.cc
  5624. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5626. DownloadEngine.
  5627. * src/ActivePeerConnectionCommand.cc
  5628. * src/BtSetup.cc
  5629. * src/CUIDCounter.h
  5630. * src/DHTSetup.cc
  5631. * src/DownloadCommand.cc
  5632. * src/DownloadEngine.cc
  5633. * src/DownloadEngine.h
  5634. * src/DownloadEngineFactory.cc
  5635. * src/FileAllocationDispatcherCommand.cc
  5636. * src/InitiatorMSEHandshakeCommand.cc
  5637. * src/PeerInitiateConnectionCommand.cc
  5638. * src/PeerInteractionCommand.cc
  5639. * src/PeerListenCommand.cc
  5640. * src/RequestGroup.cc
  5641. * src/StreamFileAllocationEntry.cc
  5642. * src/TrackerWatcherCommand.cc
  5643. * src/main.cc
  5644. * test/RequestGroupManTest.cc
  5645. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Implemented commented code in BtSeederStateChoke
  5647. * src/BtSeederStateChoke.cc
  5648. * src/Peer.cc
  5649. * src/Peer.h
  5650. * src/PeerInteractionCommand.cc
  5651. * src/PeerSessionResource.cc
  5652. * src/PeerSessionResource.h
  5653. * test/MockBtMessageDispatcher.h
  5654. * test/PeerSessionResourceTest.cc
  5655. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5657. its object.
  5658. * src/AbstractBtMessage.cc
  5659. * src/ActivePeerConnectionCommand.cc
  5660. * src/ActivePeerConnectionCommand.h
  5661. * src/BtContextAwareCommand.cc
  5662. * src/BtContextAwareCommand.h
  5663. * src/BtExtendedMessage.cc
  5664. * src/BtExtendedMessage.h
  5665. * src/BtInterestedMessage.cc
  5666. * src/BtInterestedMessage.h
  5667. * src/BtNotInterestedMessage.cc
  5668. * src/BtNotInterestedMessage.h
  5669. * src/BtRegistry.cc
  5670. * src/BtRegistry.h
  5671. * src/BtSeederStateChoke.cc
  5672. * src/BtSetup.cc
  5673. * src/DHTGetPeersCommand.cc
  5674. * src/DHTGetPeersCommand.h
  5675. * src/DHTPeerAnnounceEntry.cc
  5676. * src/DHTPeerAnnounceEntry.h
  5677. * src/DHTPeerAnnounceStorage.cc
  5678. * src/DHTPeerAnnounceStorage.h
  5679. * src/DHTPeerLookupTask.cc
  5680. * src/DHTPeerLookupTask.h
  5681. * src/DHTSetup.cc
  5682. * src/DHTSetup.h
  5683. * src/DHTTaskFactory.h
  5684. * src/DHTTaskFactoryImpl.cc
  5685. * src/DHTTaskFactoryImpl.h
  5686. * src/DefaultBtAnnounce.cc
  5687. * src/DefaultBtInteractive.cc
  5688. * src/DefaultBtInteractive.h
  5689. * src/DefaultBtMessageDispatcher.cc
  5690. * src/DefaultBtMessageDispatcher.h
  5691. * src/DefaultBtMessageFactory.cc
  5692. * src/DefaultBtMessageFactory.h
  5693. * src/DefaultBtMessageReceiver.cc
  5694. * src/DefaultBtProgressInfoFile.cc
  5695. * src/DefaultBtProgressInfoFile.h
  5696. * src/DefaultBtRequestFactory.cc
  5697. * src/DefaultBtRequestFactory.h
  5698. * src/DefaultExtensionMessageFactory.cc
  5699. * src/DefaultExtensionMessageFactory.h
  5700. * src/DefaultPeerStorage.cc
  5701. * src/DefaultPeerStorage.h
  5702. * src/DownloadEngine.cc
  5703. * src/DownloadEngine.h
  5704. * src/InitiatorMSEHandshakeCommand.cc
  5705. * src/InitiatorMSEHandshakeCommand.h
  5706. * src/MSEHandshake.cc
  5707. * src/MSEHandshake.h
  5708. * src/Makefile.am
  5709. * src/Makefile.in
  5710. * src/PeerChokeCommand.cc
  5711. * src/PeerChokeCommand.h
  5712. * src/PeerInitiateConnectionCommand.cc
  5713. * src/PeerInitiateConnectionCommand.h
  5714. * src/PeerInteractionCommand.cc
  5715. * src/PeerInteractionCommand.h
  5716. * src/PeerObject.h
  5717. * src/PeerReceiveHandshakeCommand.cc
  5718. * src/PeerReceiveHandshakeCommand.h
  5719. * src/ReceiverMSEHandshakeCommand.cc
  5720. * src/RequestGroup.cc
  5721. * src/RequestGroup.h
  5722. * src/RequestGroupMan.cc
  5723. * src/RequestGroupMan.h
  5724. * src/SeedCheckCommand.cc
  5725. * src/SeedCheckCommand.h
  5726. * src/ShareRatioSeedCriteria.h
  5727. * src/SimpleBtMessage.cc
  5728. * src/TrackerWatcherCommand.cc
  5729. * src/TrackerWatcherCommand.h
  5730. * src/UTPexExtensionMessage.cc
  5731. * src/UTPexExtensionMessage.h
  5732. * test/BtCancelMessageTest.cc
  5733. * test/BtChokeMessageTest.cc
  5734. * test/BtExtendedMessageTest.cc
  5735. * test/BtInterestedMessageTest.cc
  5736. * test/BtNotInterestedMessageTest.cc
  5737. * test/BtPieceMessageTest.cc
  5738. * test/BtPortMessageTest.cc
  5739. * test/BtRegistryTest.cc
  5740. * test/BtRejectMessageTest.cc
  5741. * test/BtRequestMessageTest.cc
  5742. * test/DHTPeerAnnounceEntryTest.cc
  5743. * test/DHTPeerAnnounceStorageTest.cc
  5744. * test/DefaultBtMessageDispatcherTest.cc
  5745. * test/DefaultBtMessageFactoryTest.cc
  5746. * test/DefaultBtProgressInfoFileTest.cc
  5747. * test/DefaultBtRequestFactoryTest.cc
  5748. * test/DefaultExtensionMessageFactoryTest.cc
  5749. * test/MSEHandshakeTest.cc
  5750. * test/MockDHTTaskFactory.h
  5751. * test/ShareRatioSeedCriteriaTest.cc
  5752. * test/UTPexExtensionMessageTest.cc
  5753. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Fixed compiler warning.
  5755. * test/UtilTest.cc
  5756. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5757. Treat Cookie object as session cookie if expiry = 0 is given.
  5758. With this change, you can specify session scoped cookies in an external
  5759. file setting expiry value to 0.
  5760. * src/Cookie.cc
  5761. * src/Cookie.h
  5762. * test/CookieParserTest.cc
  5763. * test/CookieStorageTest.cc
  5764. * test/CookieTest.cc
  5765. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Changed signature of DHTMessageFactory::createResponseMessage().
  5767. Removed unused validateIDMatch.
  5768. * src/DHTMessageFactory.h
  5769. * src/DHTMessageFactoryImpl.cc
  5770. * src/DHTMessageFactoryImpl.h
  5771. * src/DHTMessageTracker.cc
  5772. * test/DHTMessageFactoryImplTest.cc
  5773. * test/MockDHTMessageFactory.h
  5774. Dropped DHT message coming from same ID of localhost.
  5775. * src/DHTMessageReceiver.cc
  5776. Rejected adding node whose ID is the same as localhost's.
  5777. * src/DHTRoutingTable.cc
  5778. * test/BtPortMessageTest.cc
  5779. * test/DHTRoutingTableTest.cc
  5780. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Pool connection when redirection occurs with Content-Length = 0.
  5782. * src/HttpSkipResponseCommand.cc
  5783. * src/HttpSkipResponseCommand.h
  5784. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Fixed the bug that causes time out when redirection occurs with
  5786. content-length 0.
  5787. * src/HttpResponseCommand.cc
  5788. * src/HttpSkipResponseCommand.cc
  5789. * src/HttpSkipResponseCommand.h
  5790. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Now each status legends is shown only when it appears in Download
  5792. Result. If Download Result has no item, then status legend will not
  5793. be printed.
  5794. * src/RequestGroupMan.cc
  5795. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Removed duplicate creation of OptionHandlers.
  5797. * src/option_processing.cc
  5798. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Fixed the bug that causes segmentation fault when accessing files which
  5800. don't exist or are not included in --select-file option while
  5801. validating chunk checksum.
  5802. * src/MultiDiskAdaptor.cc
  5803. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Fixed compiler warning.
  5805. * test/UtilTest.cc
  5806. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5808. * src/IteratableChecksumValidator.cc
  5809. * src/IteratableChunkChecksumValidator.cc
  5810. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. * Release 0.16.2
  5812. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Added Serbian translation. Updated Ukrainian translation.
  5814. Thanks to all translators.
  5815. * po/sr.po
  5816. * po/uk.po
  5817. * po/LINGUAS
  5818. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5819. Bump up version number to 0.16.2
  5820. * configure.ac
  5821. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Added length equality test to operator== to drop a piece message
  5823. whose length does not match to the requested one.
  5824. * src/RequestSlot.cc
  5825. * test/DefaultBtMessageDispatcherTest.cc
  5826. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5828. recieved.
  5829. In this fix, if a request larger than 16KiB length is received, aria2
  5830. disconnects the peer.
  5831. * src/BtConstants.h
  5832. * src/PeerMessageUtil.cc
  5833. * src/PeerMessageUtil.h
  5834. * test/BtRequestMessageTest.cc
  5835. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. * Release 0.16.1
  5837. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5839. * doc/aria2c.1.txt
  5840. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5842. Updated French, Simplified Chinese and Japanese translations.
  5843. Thanks to all translators.
  5844. en@quot and en@boldquot are also added.
  5845. * po/LINGUAS
  5846. * po/fr.po
  5847. * po/ja.po
  5848. * po/uk.po
  5849. * po/vi.po
  5850. * po/zh_CN.po
  5851. * po/zh_TW.po
  5852. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5853. Bump up version number to 0.16.1.
  5854. * configure.ac
  5855. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Updated README.
  5857. * README
  5858. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5860. not to replace '--' with em dash character.
  5861. * doc/aria2c.1.txt
  5862. * doc/makeman
  5863. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5864. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5865. every SEC seconds.
  5866. * src/DownloadEngineFactory.cc
  5867. * src/OptionHandlerFactory.cc
  5868. * src/option_processing.cc
  5869. * src/usage_text.h
  5870. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Fixed compile warning on linux-amd64
  5872. * src/FtpConnection.cc
  5873. * src/IteratableChunkChecksumValidator.cc
  5874. * src/MultiDiskAdaptor.cc
  5875. Fixed the bug that unit test fails on linux-amd64
  5876. * test/UtilTest.cc
  5877. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Added --dht-file-path option to change the path to dht.dat, which is a
  5879. serialized DHT routing table.
  5880. * src/OptionHandlerFactory.cc
  5881. * src/option_processing.cc
  5882. * src/usage_text.h
  5883. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Fixed possible underflow.
  5885. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5886. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5887. Fixed the bug that last character in URI is not encoded.
  5888. * src/Request.cc
  5889. * test/RequestTest.cc
  5890. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Fixed the bug that referer header field contains fragment.
  5892. Now Request class removes fragment part of URI and encodes it
  5893. in Request::setUri() and setReferer().
  5894. * src/Request.h
  5895. * src/Request.cc
  5896. * test/RequestTest.cc
  5897. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. Added missing m4 macros.
  5899. * m4/cppunit.m4
  5900. * m4/libgcrypt.m4
  5901. * m4/libgnutls-extra.m4
  5902. * m4/libgnutls.m4
  5903. * m4/libxml2.m4
  5904. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Fixed compile error with gcc-4.4(snapshot)
  5906. * src/File.cc
  5907. * src/FtpConnection.cc
  5908. * src/OptionHandlerImpl.h
  5909. * src/Util.cc
  5910. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Removed assert()
  5912. * src/SocketBuffer.cc (SocketBuffer::send)
  5913. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5914. Changed the type of _numNewConnection to unsigned int.
  5915. * src/ActivePeerConnectionCommand.cc
  5916. * src/ActivePeerConnectionCommand.h
  5917. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. * Release 0.16.0
  5919. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Updated doc
  5921. * README
  5922. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5924. translations. Thanks to all translators.
  5925. * po/bg.po
  5926. * po/de.po
  5927. * po/fr.po
  5928. * po/ja.po
  5929. * po/zh_CN.po
  5930. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Bump up version number to 0.16.0.
  5932. * configure.ac
  5933. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5934. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5935. int32_t.
  5936. Changed the type of count to int32_t.
  5937. * src/Metalink2RequestGroup.cc
  5938. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Added test for Time::elapsed(time_t).
  5940. * test/TimeTest.cc
  5941. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5943. Util::difftv() should be used instead.
  5944. * src/TimeA2.cc
  5945. * src/TimeA2.h
  5946. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Made socket for dht connections non-blocking
  5948. * src/DHTAbstractMessage.cc
  5949. * src/DHTAbstractMessage.h
  5950. * src/DHTConnection.h
  5951. * src/DHTConnectionImpl.cc
  5952. * src/DHTConnectionImpl.h
  5953. * src/DHTMessage.h
  5954. * src/DHTMessageDispatcherImpl.cc
  5955. * src/DHTMessageDispatcherImpl.h
  5956. * src/DHTUnknownMessage.cc
  5957. * src/DHTUnknownMessage.h
  5958. * src/SocketCore.cc
  5959. * src/SocketCore.h
  5960. * test/MockDHTMessage.h
  5961. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Changed the type of offset to int.
  5963. * src/ParameterizedStringParser.cc
  5964. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Made getAsInt() return int32_t
  5966. * src/Option.h
  5967. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5968. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5969. build.
  5970. * configure.ac
  5971. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5972. Use sqlite3_open if sqlite3_open_v2 is not available.
  5973. * src/Sqlite3MozCookieParser.cc
  5974. * src/Sqlite3MozCookieParser.h
  5975. * m4/sqlite3.m4
  5976. * test/Sqlite3MozCookieParserTest.cc
  5977. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5979. * src/BtPieceMessage.cc
  5980. * src/DHTPeerAnnounceStorage.cc
  5981. * src/DefaultPieceStorage.cc
  5982. * src/DownloadCommand.cc
  5983. * src/DownloadEngine.cc
  5984. * src/FtpConnection.cc
  5985. * src/PeerConnection.cc
  5986. * src/PeerMessageUtil.cc
  5987. * src/RequestGroup.cc
  5988. * src/RequestGroupMan.cc
  5989. * src/SimpleBtMessage.cc
  5990. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5992. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5993. * src/AbstractDiskWriter.cc
  5994. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Don't set Request::supportsPersistentConnection() in HttpConnection
  5996. since this code is also used in AbstractProxyResponseCommand.
  5997. Moved those code to HttpResponse.
  5998. * src/HttpResponse.cc
  5999. * src/HttpResponse.h
  6000. * src/HttpConnection.cc
  6001. * src/HttpConnection.h
  6002. * src/HttpResponseCommand.cc
  6003. * test/HttpResponseTest.cc
  6004. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6006. The configuration is minimum: no torrent, no metalink, so there may be
  6007. other compile error on their code.
  6008. * src/a2netcompat.h
  6009. * src/File.cc
  6010. * src/File.h
  6011. * src/SocketCore.cc
  6012. * src/SocketCore.h
  6013. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Made a socket of incoming peer non-blocking.
  6015. * src/PeerListenCommand.cc
  6016. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6018. whole message data is not sent in one send() call.
  6019. * src/BtPieceMessage.cc
  6020. * src/BtPieceMessage.h
  6021. * src/PeerConnection.cc
  6022. * src/PeerConnection.h
  6023. * src/SimpleBtMessage.cc
  6024. * src/SimpleBtMessage.h
  6025. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6026. Fixed the bug that aria2 downloads faster than max-download-limit when
  6027. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6028. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6029. , instead of sum of them.
  6030. * src/ActivePeerConnectionCommand.cc
  6031. * src/DefaultBtInteractive.cc
  6032. * src/DownloadCommand.cc
  6033. * src/PeerInteractionCommand.cc
  6034. * src/PeerReceiveHandshakeCommand.cc
  6035. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Fixed the bug that HTTPS download fails.
  6037. * src/AbstractCommand.cc
  6038. * src/AbstractCommand.h
  6039. * src/DownloadCommand.cc
  6040. * src/FtpConnection.cc
  6041. * src/HttpConnection.cc
  6042. * src/HttpRequestCommand.cc
  6043. * src/HttpResponseCommand.cc
  6044. * src/HttpSkipResponseCommand.cc
  6045. * src/MSEHandshake.cc
  6046. * src/PeerConnection.cc
  6047. * src/SocketCore.cc
  6048. * src/SocketCore.h
  6049. Fixed the bug that aria2 doesn't download whole content body and cannot
  6050. reuse connection if chunked transfer encoding and gzip content encoding
  6051. are set.
  6052. * src/DownloadCommand.cc
  6053. * src/HttpSkipResponseCommand.cc
  6054. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Updated man page.
  6056. * doc/aria2c.1.txt
  6057. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. When error occurred while aria2 was parsing an .aria2.conf file, print
  6059. the usage of the option that caused error.
  6060. * src/option_processing.cc
  6061. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Fixed compile error on OptionHandlerException
  6063. * src/Makefile.am
  6064. * src/OptionHandlerException.cc
  6065. * src/OptionHandlerException.h
  6066. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Moved message of the error to OptionHandlerException.h
  6068. * src/NameMatchOptionHandler.h
  6069. * src/OptionHandlerException.h
  6070. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. When error occurs while aria2 is parsing an command-line option, print
  6072. the usage of the option.
  6073. * src/Makefile.am
  6074. * src/NameMatchOptionHandler.h
  6075. * src/OptionHandlerException.h
  6076. * src/option_processing.cc
  6077. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Reverted previous change.
  6079. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6080. username is not in URI.
  6081. * src/HttpRequest.cc
  6082. * src/Request.cc
  6083. * test/HttpRequestTest.cc
  6084. * test/RequestTest.cc
  6085. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Now colon is required for username and password in FTP URL, like:
  6087. ftp://username:password@host.
  6088. If colon is not there, aria2 don't parse it as a username. For example,
  6089. aria2 don't retrieve username from ftp://username@host.
  6090. This fix was made in order to login FTP server via non-transparent ftp
  6091. proxy.
  6092. * src/Request.cc
  6093. * test/RequestTest.cc
  6094. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. Use netrc for HTTP.
  6096. Now FTP user/password is sent in Authorization header when
  6097. --ftp-via-http-proxy=get is given.
  6098. * src/AuthConfigFactory.cc
  6099. * src/HttpRequest.cc
  6100. * src/HttpRequest.h
  6101. * src/NetrcAuthResolver.cc
  6102. * src/NetrcAuthResolver.h
  6103. * src/OptionHandlerFactory.cc
  6104. * src/option_processing.cc
  6105. * src/prefs.cc
  6106. * src/prefs.h
  6107. * test/AuthConfigFactoryTest.cc
  6108. * test/HttpRequestTest.cc
  6109. * test/NetrcAuthResolverTest.cc
  6110. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Issue PWD command first and get working directory and use it as a prefix
  6112. for CWD command.
  6113. * src/DownloadEngine.cc
  6114. * src/DownloadEngine.h
  6115. * src/FtpConnection.cc
  6116. * src/FtpConnection.h
  6117. * src/FtpFinishDownloadCommand.cc
  6118. * src/FtpInitiateConnectionCommand.cc
  6119. * src/FtpNegotiationCommand.cc
  6120. * src/FtpNegotiationCommand.h
  6121. * test/FtpConnectionTest.cc
  6122. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Removed default user/pass for FTP user/pass, since it should not have
  6124. precedence over netrc configuration by default.
  6125. * src/OptionHandlerFactory.cc
  6126. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Added debug log for socket event.
  6128. * src/AbstractCommand.cc
  6129. * src/PeerAbstractCommand.cc
  6130. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Log microseconds.
  6132. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6133. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6134. Replaced HelpItem.cc with OptionHandler.cc.
  6135. * po/POTFILES.in
  6136. Updated po files with 'make update-po'
  6137. * po/aria2c.pot
  6138. * po/*.po
  6139. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. Removed possible values from the text.
  6141. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6142. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Removed unused preferences:
  6144. PREF_NO_PREALLOCATION
  6145. PREF_STDOUT_LOG
  6146. PREF_TRACKER_MAX_TRIES
  6147. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6148. PREF_MIN_SEGMENT_SIZE
  6149. * src/option_processing.cc
  6150. * src/prefs.cc
  6151. * src/prefs.h
  6152. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Integrated HelpItem into OptionParser to ease the workload for adding
  6154. new options. Removed default value from usage text.
  6155. * src/HelpItem.cc: Removed.
  6156. * src/HelpItem.h: Removed.
  6157. * src/HelpItemFactory.cc: Removed.
  6158. * src/HelpItemFactory.h: Removed.
  6159. * src/Makefile.am
  6160. * src/Makefile.in
  6161. * src/NameMatchOptionHandler.h
  6162. * src/OptionHandler.cc
  6163. * src/OptionHandler.h
  6164. * src/OptionHandlerFactory.cc
  6165. * src/OptionHandlerImpl.h
  6166. * src/OptionParser.cc
  6167. * src/OptionParser.h
  6168. * src/TagContainer.cc: Removed.
  6169. * src/TagContainer.h: Removed.
  6170. * src/TaggedItem.cc: Removed.
  6171. * src/TaggedItem.h: Removed.
  6172. * src/main.cc
  6173. * src/option_processing.cc
  6174. * src/usage_text.h
  6175. * src/version_usage.cc
  6176. * test/HelpItemTest.cc: Removed.
  6177. * test/Makefile.am
  6178. * test/Makefile.in
  6179. * test/OptionHandlerTest.cc
  6180. * test/OptionParserTest.cc
  6181. * test/TagContainerTest.cc: Removed.
  6182. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6183. Moved `TransferStat stat = ...' to inside the `if' clause.
  6184. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6185. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Fixed the bug that a block in a piece is requested when same block is
  6187. already requested to the same peer in end game mode.
  6188. * src/BtRequestFactory.h
  6189. * src/DefaultBtInteractive.cc
  6190. * src/DefaultBtRequestFactory.cc
  6191. * src/DefaultBtRequestFactory.h
  6192. * src/DefaultPieceStorage.cc
  6193. * src/DefaultPieceStorage.h
  6194. * src/PieceStorage.h
  6195. * src/UnknownLengthPieceStorage.cc
  6196. * src/UnknownLengthPieceStorage.h
  6197. * test/DefaultBtRequestFactoryTest.cc
  6198. * test/DefaultPieceStorageTest.cc
  6199. * test/MockBtRequestFactory.h
  6200. * test/MockPieceStorage.h
  6201. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Removed _uploadLength and _downloadLength from PeerSessionResource
  6203. and use PeerStat::_sessionUploadLength and
  6204. PeerStat::_sessionDownloadLength.
  6205. * src/PeerSessionResource.cc
  6206. * src/PeerSessionResource.h
  6207. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6208. Fixed the bug that prefixLength of split bucket which doesn't include
  6209. local node ID is incremented.
  6210. * src/DHTBucket.cc
  6211. * src/DHTBucket.h
  6212. * test/DHTBucketTest.cc
  6213. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6214. Added cookies.sqlite to EXTRA_DIST
  6215. * test/Makefile.am
  6216. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Added Turkish translation. Updated French, German, Russian and
  6218. Simplified Chinese translations. Thanks to all translators.
  6219. * po/LINGUAS
  6220. * po/de.po
  6221. * po/fr.po
  6222. * po/ru.po
  6223. * po/tr.po
  6224. * po/zh_CN.po
  6225. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Added deliminating text to the beginning of the log so that one can find
  6227. where the log starts easily.
  6228. * src/main.cc
  6229. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6230. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6231. to fix compile error when async DNS is not enabled by configuration.
  6232. * src/AbstractCommand.cc
  6233. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. If establishing conneciton to a server is failed, then mark error on
  6235. its ServerStat.
  6236. Added the cause of error to log when error event occurred.
  6237. Moved message string to message.h for translation.
  6238. * src/AbstractCommand.cc
  6239. * src/AbstractCommand.h
  6240. * src/FtpNegotiationCommand.cc
  6241. * src/HttpRequestCommand.cc
  6242. * src/PeerAbstractCommand.cc
  6243. * src/message.h
  6244. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Added the function to get error message from socket.
  6246. * src/SocketCore.cc
  6247. * src/SocketCore.h
  6248. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6249. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6250. * src/RequestGroupMan.cc
  6251. * src/RequestGroupMan.h
  6252. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. If error event is received in epoll, then abort download immediately.
  6254. * src/AbstractCommand.cc
  6255. * src/Command.cc
  6256. * src/Command.h
  6257. * src/DownloadEngine.cc
  6258. * src/PeerAbstractCommand.cc
  6259. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Added usage message for --uri-selector, --server-stat-of,
  6261. --server-stat-in, --server-stat-timeout options.
  6262. * src/HelpItemFactory.cc
  6263. * src/usage_text.h
  6264. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Added upper limit of FTP response buffer. The current implementation
  6266. uses 4096bytes as a limit.
  6267. * src/FtpConnection.cc
  6268. * src/FtpConnection.h
  6269. * test/FtpConnectionTest.cc
  6270. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6271. Use non-blocking socket for TCP communication to avoid possible
  6272. blocking due to buffer full.
  6273. * src/AbstractProxyRequestCommand.cc
  6274. * src/FtpConnection.cc
  6275. * src/FtpConnection.h
  6276. * src/FtpNegotiationCommand.cc
  6277. * src/FtpNegotiationCommand.h
  6278. * src/HttpConnection.cc
  6279. * src/HttpConnection.h
  6280. * src/HttpRequestCommand.cc
  6281. * src/InitiatorMSEHandshakeCommand.cc
  6282. * src/InitiatorMSEHandshakeCommand.h
  6283. * src/MSEHandshake.cc
  6284. * src/MSEHandshake.h
  6285. * src/Makefile.am
  6286. * src/PeerConnection.cc
  6287. * src/PeerConnection.h
  6288. * src/PeerInteractionCommand.cc
  6289. * src/PeerListenCommand.cc
  6290. * src/ReceiverMSEHandshakeCommand.cc
  6291. * src/ReceiverMSEHandshakeCommand.h
  6292. * src/SocketBuffer.cc
  6293. * src/SocketBuffer.h
  6294. * src/SocketCore.cc
  6295. * src/SocketCore.h
  6296. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Call setStatusRealtime() in constructor.
  6298. * src/RealtimeCommand.cc
  6299. * src/RealtimeCommand.h
  6300. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Call Download::setNoWait(true) to execute newly created command without
  6302. a pause.
  6303. * src/AbstractCommand.cc
  6304. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6306. found' error from HTTP/FTP server NUM times without getting single
  6307. bytes of data, then force the download to fail.
  6308. Basically aria2 tris all URIs available. So if long list of URIs are
  6309. specified in Metalink, then aria2 will take a long time to fail
  6310. eventually if all URIs are outdated. This option eases this situation
  6311. to limit the number of servers to try.
  6312. * src/FtpNegotiationCommand.cc
  6313. * src/HelpItemFactory.cc
  6314. * src/HttpResponseCommand.cc
  6315. * src/OptionHandlerFactory.cc
  6316. * src/PeerStat.h
  6317. * src/RequestGroup.cc
  6318. * src/RequestGroup.h
  6319. * src/SegmentMan.cc
  6320. * src/SegmentMan.h
  6321. * src/option_processing.cc
  6322. * src/prefs.cc
  6323. * src/prefs.h
  6324. * src/usage_text.h
  6325. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6327. response even if more than one response is in it.
  6328. * src/FtpConnection.cc
  6329. * src/FtpConnection.h
  6330. * test/FtpConnectionTest.cc
  6331. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Merged from stable-0.15
  6333. * m4/libcares.m4
  6334. Use pkg-config
  6335. * m4/sqlite3.m4
  6336. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Removed unnecessary if statement.
  6338. * src/DefaultPieceStorage.cc (initPieceStorage)
  6339. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Added --connect-timeout option to specify connect timeout in seconds.
  6341. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6342. connecting to BitTorrent peer is not controlled by this option.
  6343. * src/AbstractProxyRequestCommand.cc
  6344. * src/FtpNegotiationCommand.cc
  6345. * src/HelpItemFactory.cc
  6346. * src/HttpRequestCommand.cc
  6347. * src/OptionHandlerFactory.cc
  6348. * src/option_processing.cc
  6349. * src/prefs.cc
  6350. * src/prefs.h
  6351. * src/usage_text.h
  6352. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Added help message for -R option.
  6354. * src/HelpItemFactory.cc
  6355. * src/usage_text.h
  6356. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Added the message that the time is in local time zone.
  6358. * src/RequestGroup.cc
  6359. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Implemented the ability to get timestamp from remote FTP server using
  6361. MDTM command described in RFC3659.
  6362. * src/FtpConnection.cc
  6363. * src/FtpConnection.h
  6364. * src/FtpNegotiationCommand.cc
  6365. * src/FtpNegotiationCommand.h
  6366. * test/FtpConnectionTest.cc
  6367. * test/Makefile.am
  6368. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6369. Implemented the ability to get timestamp from remote HTTP server and
  6370. apply it to local file. To enable this feature, --remote-time option
  6371. is added. No usage text has been written yet.
  6372. If several servers returns difference timestamp, then aria2 uses latest
  6373. one.
  6374. * src/CopyDiskAdaptor.cc
  6375. * src/CopyDiskAdaptor.h
  6376. * src/DirectDiskAdaptor.cc
  6377. * src/DirectDiskAdaptor.h
  6378. * src/DiskAdaptor.h
  6379. * src/File.cc
  6380. * src/File.h
  6381. * src/HttpHeader.cc
  6382. * src/HttpHeader.h
  6383. * src/HttpResponse.cc
  6384. * src/HttpResponse.h
  6385. * src/HttpResponseCommand.cc
  6386. * src/HttpResponseCommand.h
  6387. * src/MultiDiskAdaptor.cc
  6388. * src/MultiDiskAdaptor.h
  6389. * src/OptionHandlerFactory.cc
  6390. * src/RequestGroup.cc
  6391. * src/RequestGroup.h
  6392. * src/RequestGroupMan.cc
  6393. * src/option_processing.cc
  6394. * src/prefs.cc
  6395. * src/prefs.h
  6396. * test/CopyDiskAdaptorTest.cc
  6397. * test/FileTest.cc
  6398. * test/Makefile.am
  6399. * test/Makefile.in
  6400. * test/MultiDiskAdaptorTest.cc
  6401. * test/TestUtil.cc
  6402. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Fixed the bug that DiskWriterEntry is not created when its
  6404. FileEntry.isRequested() is false and it doesn't share a piece with
  6405. other FileEntries that are requested. This bug causes segmentation fault
  6406. in the end.
  6407. * src/MultiDiskAdaptor.cc
  6408. * src/MultiDiskAdaptor.h
  6409. * src/MultiFileAllocationIterator.cc
  6410. * test/MultiDiskAdaptorTest.cc
  6411. * test/MultiFileAllocationIteratorTest.cc
  6412. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6414. called if the number of file entries are greater than max open files.
  6415. * src/AbstractSingleDiskAdaptor.cc
  6416. * src/AbstractSingleDiskAdaptor.h
  6417. * src/DiskAdaptor.h
  6418. * src/MultiDiskAdaptor.cc
  6419. * src/MultiDiskAdaptor.h
  6420. * test/MultiDiskAdaptorTest.cc
  6421. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Added a constuctor that receives struct timeval.
  6423. Added operator<.
  6424. * src/TimeA2.cc
  6425. * src/TimeA2.h
  6426. * test/TimeTest.cc
  6427. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6429. * src/CookieParser.cc
  6430. * test/CookieParserTest.cc
  6431. * test/HttpResponseTest.cc
  6432. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6433. Implmented the functions to parse date.
  6434. * src/TimeA2.cc
  6435. * src/TimeA2.h
  6436. * test/TimeTest.cc
  6437. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Added "Firefox3 Cookie" feature to FeatureConfig
  6439. * src/FeatureConfig.cc
  6440. * src/FeatureConfig.h
  6441. * test/FeatureConfigTest.cc
  6442. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Bump up version number to 0.16.0b
  6444. * configure.ac
  6445. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Use pkg-config if is is available.
  6447. * m4/openssl.m4
  6448. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6450. * src/BtAnnounce.h
  6451. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. If an error occurred with a URI, remove identical URI from remaining
  6453. URI list because it is likely that same error occurred in the end and it
  6454. is waste of time.
  6455. * src/AbstractCommand.cc
  6456. * src/RequestGroup.cc
  6457. * src/RequestGroup.h
  6458. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Removed wrong comment.
  6460. * src/DefaultPeerStorage.cc
  6461. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6463. Added return value of getpid() to argument of srand() to achieve more
  6464. randomized value.
  6465. * src/SimpleRandomizer.cc
  6466. * src/SimpleRandomizer.h
  6467. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Contact tracker frequently when the number of connections are 0 and
  6469. download is not finished yet.
  6470. * src/ActivePeerConnectionCommand.cc
  6471. * src/BtAnnounce.h
  6472. * src/DefaultBtAnnounce.cc
  6473. * src/DefaultBtAnnounce.h
  6474. * test/MockBtAnnounce.h
  6475. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Moved threshold values to UTPexExtensionMessage.
  6477. * src/DefaultBtInteractive.cc
  6478. * src/Peer.cc
  6479. * src/Peer.h
  6480. * src/UTPexExtensionMessage.cc
  6481. * src/UTPexExtensionMessage.h
  6482. * test/UTPexExtensionMessageTest.cc
  6483. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6484. Added _incoming member to Peer class and made it true if the peer
  6485. initiated connection. Don't add those peer to UTPex message.
  6486. If extended handshake is received, assign _incoming to false.
  6487. * src/DefaultBtInteractive.cc
  6488. * src/HandshakeExtensionMessage.cc
  6489. * src/Peer.cc
  6490. * src/Peer.h
  6491. * src/PeerListenCommand.cc
  6492. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6493. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6494. Encoding Decoder. Removed size threshold for turning off on the fly
  6495. inflation because resulting file may or may not be inflated depending
  6496. on the file size and I think it is not expected by users.
  6497. This change fixes segmentation fault when Metalink file contains gzipped
  6498. file and its filesize is provided.
  6499. * src/HttpResponseCommand.cc
  6500. * src/HttpResponseCommand.h
  6501. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Made Cookie immutable.
  6503. * src/Cookie.cc
  6504. * src/Cookie.h
  6505. * src/CookieParser.cc
  6506. * src/CookieParser.h
  6507. * src/CookieStorage.cc
  6508. * test/CookieParserTest.cc
  6509. * test/CookieStorageTest.cc
  6510. * test/NsCookieParserTest.cc
  6511. * test/Sqlite3MozCookieParserTest.cc
  6512. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Removed CookieBox, CookieBoxFactory.
  6514. * src/CookieBox.cc
  6515. * src/CookieBox.h
  6516. * src/CookieBoxFactory.cc
  6517. * src/CookieBoxFactory.h
  6518. * src/Makefile.am
  6519. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. Use CookieStorage class instead of CookieBox class.
  6521. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6522. * src/AbstractProxyRequestCommand.cc
  6523. * src/CookieStorage.cc
  6524. * src/DownloadEngine.cc
  6525. * src/DownloadEngine.h
  6526. * src/HttpConnection.cc
  6527. * src/HttpConnection.h
  6528. * src/HttpRequest.cc
  6529. * src/HttpRequest.h
  6530. * src/HttpRequestCommand.cc
  6531. * src/HttpResponse.cc
  6532. * src/HttpResponseCommand.cc
  6533. * src/HttpSkipResponseCommand.cc
  6534. * src/Makefile.am
  6535. * src/MultiUrlRequestInfo.cc
  6536. * src/Request.cc
  6537. * src/Request.h
  6538. * src/main.cc
  6539. * test/AllTest.cc
  6540. * test/CookieStorageTest.cc
  6541. * test/CookieTest.cc
  6542. * test/HttpRequestTest.cc
  6543. * test/HttpResponseTest.cc
  6544. * test/Makefile.am
  6545. * test/NsCookieParserTest.cc
  6546. * test/Sqlite3MozCookieParserTest.cc
  6547. * test/nscookietest.txt
  6548. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. Updated
  6550. * test/Cookies.sqlite
  6551. * test/nscookietest.txt
  6552. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. Added tests for CookieStorage::load()
  6554. * test/CookieStorageTest.cc
  6555. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Added CookieStorage class which is based on RFC2109 and manages cookies
  6557. more strictly than CookieBox and CookieBoxFactory class.
  6558. * src/CookieStorage.cc
  6559. * src/CookieStorage.h
  6560. * src/Cookie.cc
  6561. * src/Cookie.h
  6562. * test/CookieStorageTest.cc
  6563. * test/CookieTest.cc
  6564. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. Fixed the bug that commands are created more than the number of pieces.
  6566. * src/RequestGroup.cc
  6567. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Fixed infinite loop bug in FTP when SIZE command failed.
  6569. * src/FtpNegotiationCommand.cc
  6570. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6571. Removed DirectDiskAdaptorTest.h
  6572. * test/Makefile.am
  6573. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6574. Fixed chunk checksum validation cannot detect trailing garbage data.
  6575. BUG#2074141
  6576. * src/AbstractSingleDiskAdaptor.cc
  6577. * src/AbstractSingleDiskAdaptor.h
  6578. * src/CheckIntegrityEntry.cc
  6579. * src/CheckIntegrityEntry.h
  6580. * src/DiskAdaptor.h
  6581. * src/MultiDiskAdaptor.cc
  6582. * src/MultiDiskAdaptor.h
  6583. * src/RequestGroup.cc
  6584. * test/DirectDiskAdaptorTest.cc
  6585. * test/MultiDiskAdaptorTest.cc
  6586. * test/TestUtil.cc
  6587. * test/TestUtil.h
  6588. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Bump up version number of dht.dat file to 3. In version 3 format, time
  6590. is stored in 64bit, network byte order.
  6591. New build can load old format(version 2) but it saves the file in new
  6592. format. It means once you used new build, your dht.dat becomes
  6593. incompatible with older build.
  6594. * src/DHTRoutingTableDeserializer.cc
  6595. * src/DHTRoutingTableSerializer.cc
  6596. * test/DHTRoutingTableSerializerTest.cc
  6597. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6599. * test/Makefile.am
  6600. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Bump up version number of .aria2 control file to 0001.
  6602. New aria2 can still load version 0000 file but it saves the file in
  6603. version 0001 format. It means that new aria2 can resume download
  6604. started by old aria2 but the opposite is not true.
  6605. * src/DefaultBtProgressInfoFile.cc
  6606. * src/DefaultBtProgressInfoFile.h
  6607. * test/DefaultBtProgressInfoFileTest.cc
  6608. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. Added ntoh64 and hton64 as inline functions.
  6610. * src/Util.cc
  6611. * test/UtilTest.cc
  6612. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Added sqlite3 depenency and Firefox3 cookie support.
  6614. * README
  6615. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. State that firefox3 cookie is supported explicitly in the usage.
  6617. * src/usage_text.h
  6618. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Externalized message.
  6620. * src/RequestGroupMan.cc
  6621. * src/message.h
  6622. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Save temporary file first and rename to the destination on success.
  6624. Added test cases.
  6625. * src/RequestGroupMan.cc
  6626. * test/RequestGroupManTest.cc
  6627. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Fixed the bug that the number of connected peer is exceeding the limit
  6629. (55 by default) in seeding mode.
  6630. Multiplied 0.8 to _maxUploadSpeedLimit.
  6631. * src/ActivePeerConnectionCommand.cc
  6632. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Clear table item.
  6634. * src/Dictionary.cc
  6635. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Fixed error handling of lseek.
  6637. * src/AbstractDiskWriter.cc
  6638. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6640. style cookie file.
  6641. * src/usage_text.h
  6642. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6644. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6645. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6646. * src/Util.cc
  6647. * src/Util.h
  6648. * src/CookieParser.cc
  6649. * test/UtilTest.cc
  6650. * test/CookieParserTest.cc
  6651. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Separate the implementation to load old mozilla format of cookie to
  6653. NsCookieParser class.
  6654. * src/CookieBoxFactory.cc
  6655. * src/CookieBoxFactory.h
  6656. * src/NsCookieParser.cc
  6657. * src/NsCookieParser.h
  6658. * test/NsCookieParserTest.cc
  6659. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Made parse() const
  6661. * src/Sqlite3MozCookieParser.cc
  6662. * src/Sqlite3MozCookieParser.h
  6663. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Added firefox3 cookie support based on the patch submitted by
  6665. tizianomueller.
  6666. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6667. this functionality.
  6668. * configure.ac
  6669. * m4/sqlite3.m4
  6670. * src/CookieBoxFactory.cc
  6671. * src/CookieBoxFactory.h
  6672. * src/Makefile.am
  6673. * src/Makefile.in
  6674. * src/Sqlite3MozCookieParser.cc
  6675. * src/Sqlite3MozCookieParser.h
  6676. * src/main.cc
  6677. * test/CookieBoxFactoryTest.cc
  6678. * test/Makefile.am
  6679. * test/Makefile.in
  6680. * test/Sqlite3MozCookieParserTest.cc
  6681. * test/badcookies.sqlite
  6682. * test/cookies.sqlite
  6683. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Added Danish and Greek translations.
  6685. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6686. Great thanks to all translators.
  6687. * po/LINGUAS
  6688. * po/el.po
  6689. * po/da.po
  6690. * po/es.po
  6691. * po/ca.po
  6692. * po/nn.po
  6693. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Fixed man page: --follow-bittorrent should be --follow-torrent
  6695. * doc/aria2c.1.txt
  6696. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Fixed: numCommand is less than the value specified in -C option.
  6698. * src/RequestGroup.cc
  6699. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Fixed occasional assertion failure in PieceSegment.
  6701. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6702. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6703. creation of duplicate segments and one of the segment was finished then
  6704. assertion failure was caused.
  6705. * src/SegmentMan.cc
  6706. * test/SegmentManTest.cc
  6707. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Added options to load/save the server's performance/status to a file
  6709. and the timeout to drop their data.
  6710. --server-stat-of=FILE specifies the file to which performance data
  6711. is saved.
  6712. --server-stat-if=FILE specifies the file to read previously saved
  6713. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6714. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6715. TIMEOUT is specified in seconds and the default value is 24hours.
  6716. * src/MultiUrlRequestInfo.cc
  6717. * src/OptionHandlerFactory.cc
  6718. * src/RequestGroupMan.cc
  6719. * src/RequestGroupMan.h
  6720. * src/ServerStatMan.cc
  6721. * src/ServerStatMan.h
  6722. * src/option_processing.cc
  6723. * src/prefs.cc
  6724. * src/prefs.h
  6725. * test/ServerStatManTest.cc
  6726. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6728. * src/ServerStatMan.cc
  6729. * src/ServerStatMan.h
  6730. * test/ServerStatManTest.cc
  6731. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Implemented ServerStatMan::load(...) function and its test case.
  6733. * src/ServerStat.cc
  6734. * src/ServerStat.h
  6735. * src/ServerStatMan.cc
  6736. * test/ServerStatManTest.cc
  6737. * test/ServerStatTest.cc
  6738. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. Use time_t instead of int32_t. Use int64_t where milli second is
  6740. expected.
  6741. * src/TimeA2.cc
  6742. * src/TimeA2.h
  6743. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Implemented ServerStatMan::save(...) function and its test case.
  6745. * src/ServerStat.cc
  6746. * src/ServerStat.h
  6747. * src/ServerStatMan.cc
  6748. * src/ServerStatMan.h
  6749. * test/ServerStatManTest.cc
  6750. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Now aria2 uses name attribute in Metalink as local filename in
  6752. BitTorrent downloads. BUG#2033999
  6753. * src/BtContext.h
  6754. * src/BtDependency.cc
  6755. * src/DefaultBtContext.cc
  6756. * src/DefaultBtContext.h
  6757. * src/SingleFileDownloadContext.cc
  6758. * src/SingleFileDownloadContext.h
  6759. * test/BtDependencyTest.cc
  6760. * test/DefaultBtContextTest.cc
  6761. * test/MockBtContext.h
  6762. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Added AC_C_BIGENDIAN
  6764. * src/configure.ac
  6765. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Limited numCommand less than or equal to the number of piece.
  6767. * src/RequestGroup.cc
  6768. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6770. directive.
  6771. * test/DefaultPieceStorageTest.cc
  6772. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6773. Fixed memory leak in test code
  6774. * test/AnnounceListTest.cc
  6775. * test/DefaultPeerListProcessorTest.cc
  6776. * test/DefaultPeerStorageTest.cc
  6777. * test/MetaFileUtilTest.cc
  6778. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6780. * src/DefaultPieceStorage.cc
  6781. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Initialized _directIOAllowed
  6783. * src/MultiDiskAdaptor.cc
  6784. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6785. Fixed memory leak
  6786. * src/GZipDecoder.cc
  6787. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Fixed memory leak
  6789. * src/MetalinkParserStateMachine.cc
  6790. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Fixed memory leak
  6792. * src/Dictionary.cc
  6793. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Fixed memory leak
  6795. * src/IteratableChunkChecksumValidator.h
  6796. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Fixed unmatched malloc/free.
  6798. * src/IteratableChunkChecksumValidator.cc
  6799. * src/IteratableChecksumValidator.cc
  6800. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Removed max chunk size check. This change fixes BUG#2040169
  6802. * src/ChunkedDecoder.cc
  6803. * src/ChunkedDecoder.h
  6804. * test/ChunkedDecoderTest.cc
  6805. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Implemented download speed based URI selection algorithm.
  6807. Introduced new option --uri-selector.
  6808. If --uri-selector=feedback is given, aria2 uses download speed observed
  6809. in the previous downloads and chooses fastest server in the URI list.
  6810. Currently at most 10 URIs are considered to introduce randomeness for
  6811. finding better servers. The speed is average download speed in the
  6812. downloads.
  6813. On the other hand, if --uri-selector=inorder is given, which is default,
  6814. URI is tried in order in URI list.
  6815. The usage text for the new option has not been written yet.
  6816. * src/AbstractCommand.cc
  6817. * src/DownloadCommand.cc
  6818. * src/DownloadEngine.cc
  6819. * src/DownloadEngineFactory.cc
  6820. * src/InOrderURISelector.cc
  6821. * src/InOrderURISelector.h
  6822. * src/OptionHandlerFactory.cc
  6823. * src/PeerStat.h
  6824. * src/RequestGroup.cc
  6825. * src/RequestGroup.h
  6826. * src/RequestGroupMan.cc
  6827. * src/RequestGroupMan.h
  6828. * src/SegmentMan.cc
  6829. * src/SegmentMan.h
  6830. * src/ServerStat.cc
  6831. * src/ServerStat.h
  6832. * src/ServerStatMan.cc
  6833. * src/ServerStatMan.h
  6834. * src/ServerStatURISelector.cc
  6835. * src/ServerStatURISelector.h
  6836. * src/URISelector.h
  6837. * src/option_processing.cc
  6838. * src/prefs.cc
  6839. * src/prefs.h
  6840. * test/InOrderURISelectorTest.cc
  6841. * test/RequestGroupManTest.cc
  6842. * test/ServerStatManTest.cc
  6843. * test/ServerStatURISelectorTest.cc
  6844. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. * Release 0.15.1+2
  6846. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Bump up version number to 0.15.1+2
  6848. * configure.ac
  6849. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6850. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6851. * m4/aria2_arg.m4
  6852. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. * Release 0.15.1+1
  6854. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Bump up version number to 0.15.1+1
  6856. * configure.ac
  6857. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Fixed the bug that causes segmentaion fault when resuming download
  6859. using metalink without size tag. Reproducible only using HTTP URI.
  6860. * src/HttpResponseCommand.cc
  6861. * src/FtpNegotiationCommand.cc
  6862. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. * Release 0.15.1
  6864. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Updated Bulgarian and French translations, thanks to all translators.
  6866. * po/bg.po
  6867. * po/fr.po
  6868. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Bump up version number to 0.15.1
  6870. * configure.ac
  6871. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Avoid repeated call of gettimeofday() when calculating speed.
  6873. * src/SpeedCalc.cc
  6874. * src/SpeedCalc.h
  6875. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Removed writable check when socket's send buffer is full in BitTorrent
  6877. downloads to lower CPU usage.
  6878. * src/PeerInteractionCommand.cc
  6879. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Fixed broken gzip inflation.
  6881. Turn off segmented downloading if gzip content is smaller than or equal
  6882. to 1MiB and inflate the data on the fly, because HTTP response header
  6883. doesn't contain the length of inflated file we can't determin where
  6884. the chunk of data should be written.
  6885. On the other hand, if gzip content is larger than 1MB, then turn off
  6886. on the fly inflation, because some servers returns "content-type: gzip"
  6887. for *.tgz, *.gz files.
  6888. * src/DownloadCommand.cc
  6889. * src/HttpResponseCommand.cc
  6890. * src/HttpResponseCommand.h
  6891. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. Applied tizianomueller's patch to fix compile error.
  6893. * test/BitfieldManTest.cc
  6894. * test/BtRequestMessageTest.cc
  6895. * test/DefaultBtContextTest.cc
  6896. * test/DefaultDiskWriterTest.cc
  6897. * test/DefaultPieceStorageTest.cc
  6898. * test/HttpHeaderProcessorTest.cc
  6899. * test/HttpResponseTest.cc
  6900. * test/Metalink2RequestGroupTest.cc
  6901. * test/MetalinkParserControllerTest.cc
  6902. * test/MetalinkProcessorTest.cc
  6903. * test/PeerSessionResourceTest.cc
  6904. * test/UtilTest.cc
  6905. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6906. * Release 0.15.0
  6907. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Reordered src files in POTFILES.in so that usage text appears first.
  6909. * po/POTFILES.in
  6910. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Bump up version number to 0.15.0
  6912. * configure.ac
  6913. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Added Bulgarian translation.
  6915. Updated Catalan, Spanish, French and Japanese translations.
  6916. Thanks to all translators.
  6917. * po/LINGUAS
  6918. * po/bg.po
  6919. * po/ca.po
  6920. * po/es.po
  6921. * po/fr.po
  6922. * po/ja.po
  6923. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Updated feature list. Added libz for dependency section.
  6925. Added a description about unit testing using CppUnit.
  6926. * README
  6927. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Added a test for libz. Quoted where it is necessary.
  6929. * build_test.sh
  6930. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Added GZip to `Enabled Features' list.
  6932. * src/FeatureConfig.cc
  6933. * src/FeatureConfig.h
  6934. * test/FeatureConfigTest.cc
  6935. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6937. the transfer has not yet started.
  6938. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6939. * src/SegmentMan.cc
  6940. * src/SegmentMan.h
  6941. * test/SegmentManTest.cc
  6942. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Cache last calculated average download/upload speed.
  6944. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6945. cached value.
  6946. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6947. * src/PeerStat.h
  6948. * src/SpeedCalc.cc
  6949. * src/SpeedCalc.h
  6950. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. Call parseUrl directly.
  6952. * src/Request.cc (resetUrl)
  6953. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Supported absolute/relative path in Location header field.
  6955. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6956. * src/HttpHeader.cc
  6957. * src/HttpHeader.h
  6958. * src/HttpResponse.cc
  6959. * src/HttpSkipResponseCommand.cc
  6960. * src/Request.cc
  6961. * test/HttpHeaderTest.cc
  6962. * test/HttpResponseTest.cc
  6963. * test/RequestTest.cc
  6964. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Changed help text for --load-cookie option.
  6966. * doc/aria2c.1.txt
  6967. * src/usage_text.h
  6968. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6969. Regenerated test/Makefile.in to remove stale ChangeLog.
  6970. * test/Makefile.in
  6971. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Updated po files.
  6973. * po/aria2c.pot
  6974. * po/*.po
  6975. * po/*.gmo
  6976. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. Bump up version number to 0.15.0b
  6978. * configure.ac
  6979. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. Externalize messages.
  6981. * src/RequestGroupMan.cc
  6982. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6983. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Use File::exists() instead of File::isFile() to allow non-regular file
  6985. such as block special files.
  6986. * src/AbstractDiskWriter.cc
  6987. * src/MultiDiskWriter.cc
  6988. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6989. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6990. * src/gai_strerror.h
  6991. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. Fixed compile error. Thanks gknauf for the patch.
  6993. * src/asctime_r.c
  6994. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Included asctime_r.h from a2time.h.
  6996. * src/a2time.h
  6997. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Added a message "aria2 doesn't verify signature" to log message when
  6999. signature file is saved.
  7000. * src/RequestGroupMan.cc
  7001. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7002. Added the ability to save signature when download is completed if
  7003. signature is available. The filename of signature file is the path to
  7004. download file followed by ".sig". If it already exists, then signature
  7005. will not be saved.
  7006. * src/RequestGroupMan.cc
  7007. * src/Signature.cc
  7008. * test/SignatureTest.cc
  7009. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Updated the descriptions for --bt-seed-unverified.
  7011. * doc/aria2c.1
  7012. * doc/aria2c.1.html
  7013. * doc/aria2c.1.txt
  7014. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7016. that this is not going to verify files using piece hashes.
  7017. * src/HelpItemFactory.cc
  7018. * src/OptionHandlerFactory.cc
  7019. * src/RequestGroup.cc
  7020. * src/option_processing.cc
  7021. * src/prefs.cc
  7022. * src/prefs.h
  7023. * src/usage_text.h
  7024. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Added the ability to retrieve signature from Metalink file.
  7026. A retrieved signature is stored in Signature class and it is held by
  7027. DownloadContext class. Note that aria2 doesn't verify signature.
  7028. * src/DownloadContext.cc
  7029. * src/DownloadContext.h
  7030. * src/Makefile.am
  7031. * src/Makefile.in
  7032. * src/Metalink2RequestGroup.cc
  7033. * src/MetalinkEntry.cc
  7034. * src/MetalinkEntry.h
  7035. * src/MetalinkParserController.cc
  7036. * src/MetalinkParserController.h
  7037. * src/MetalinkParserStateMachine.cc
  7038. * src/MetalinkParserStateMachine.h
  7039. * src/Signature.cc
  7040. * src/Signature.h
  7041. * src/SignatureMetalinkParserState.cc
  7042. * src/SignatureMetalinkParserState.h
  7043. * src/VerificationMetalinkParserState.cc
  7044. * src/VerificationMetalinkParserState.h
  7045. * test/Metalink2RequestGroupTest.cc
  7046. * test/MetalinkParserControllerTest.cc
  7047. * test/MetalinkProcessorTest.cc
  7048. * test/test.xml
  7049. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Close DiskAdaptor after renaming file.
  7051. * src/RequestGroup.cc
  7052. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Corrected indentation
  7054. * src/DefaultBtProgressInfoFile.cc
  7055. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Moved the calls of std::ios::exceptions() inside of try-catch block
  7057. because if an error occurred in constructor of std::fstream, then
  7058. exception is thrown immediately when std::ios::exceptions() is called
  7059. which results unhandled exception and aria2c aborts.
  7060. * src/DefaultBtProgressInfoFile.cc
  7061. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Added the test for the previous change in DefaultBtContext.cc
  7063. * test/DefaultBtContextTest.cc
  7064. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Fixed the bug that causes infinite loop when the number of pieces are
  7066. fewer than allowed fast set size which is 10 by default.
  7067. * src/DefaultBtContext.cc
  7068. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Updated the descriptions for -j, -s. Added --bt-seed.
  7070. * doc/aria2c.1
  7071. * doc/aria2c.1.html
  7072. * doc/aria2c.1.txt
  7073. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7075. aria2 seeds previously downloaded files without validating piece hashs.
  7076. * src/HelpItemFactory.cc
  7077. * src/OptionHandlerFactory.cc
  7078. * src/RequestGroup.cc
  7079. * src/option_processing.cc
  7080. * src/prefs.cc
  7081. * src/prefs.h
  7082. * src/usage_text.h
  7083. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Updated DESCRIPTION of man page.
  7085. * doc/aria2c.1
  7086. * doc/aria2c.1.html
  7087. * doc/aria2c.1.txt
  7088. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7090. Don't define `struct addrinfo' when __sun is defined.
  7091. * src/getaddrinfo.h
  7092. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7094. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7095. second argument is of type `struct _stati64'. Otherwise it is defined as
  7096. `struct stat'.
  7097. * src/AbstractDiskWriter.cc
  7098. * src/File.cc
  7099. * src/File.h
  7100. * src/a2io.h
  7101. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Fixed the compile error in hurd-i386
  7103. See the original bug report:
  7104. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7105. * src/a2io.h
  7106. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. Code cleanup.
  7108. * src/PeerAbstractCommand.cc
  7109. * src/PeerAbstractCommand.h
  7110. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Removed TransferEncoding.
  7112. * src/DownloadCommand.cc
  7113. * src/DownloadCommand.h
  7114. * src/HttpResponseCommand.cc
  7115. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Updated po files.
  7117. * po/aria2c.pot
  7118. * po/*.po
  7119. * po/*.gmo
  7120. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7121. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7122. * src/A2STR.cc
  7123. * src/A2STR.h
  7124. * src/ChunkedDecoder.cc
  7125. * src/ChunkedDecoder.h
  7126. * src/ChunkedEncoding.cc: Removed
  7127. * src/ChunkedEncoding.h: Removed
  7128. * src/DownloadCommand.cc
  7129. * src/DownloadCommand.h
  7130. * src/HttpDownloadCommand.cc
  7131. * src/HttpResponse.cc
  7132. * src/HttpResponse.h
  7133. * src/HttpResponseCommand.cc
  7134. * src/HttpSkipResponseCommand.cc
  7135. * src/HttpSkipResponseCommand.h
  7136. * src/Makefile.am
  7137. * src/TransferEncoding.h: Removed
  7138. * test/ChunkedDecoderTest.cc
  7139. * test/ChunkedEncodingTest.cc: Removed
  7140. * test/HttpResponseTest.cc
  7141. * test/Makefile.am
  7142. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Use append instead of insert.
  7144. * src/GZipDecoder.cc
  7145. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Updated doc
  7147. * src/Decoder.h
  7148. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Updated usage text for -s option.
  7150. * src/usage_text.h
  7151. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7152. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7153. * src/Request.cc
  7154. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. Cleaned up configure.ac.
  7156. * configure.ac
  7157. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7158. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7159. AC_ARG_ENABLE.
  7160. * configure.ac
  7161. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7163. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7164. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7165. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7166. fly and writes decoded data to a local disk.
  7167. * README
  7168. * README.html
  7169. * configure.ac
  7170. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7171. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7172. * m4/libz.m4
  7173. * src/Decoder.h
  7174. * src/DownloadCommand.cc
  7175. * src/DownloadCommand.h
  7176. * src/Exception.h
  7177. * src/GZipDecoder.cc
  7178. * src/GZipDecoder.h
  7179. * src/HttpHeader.cc
  7180. * src/HttpHeader.h
  7181. * src/HttpRequest.cc
  7182. * src/HttpRequest.h
  7183. * src/HttpResponse.cc
  7184. * src/HttpResponse.h
  7185. * src/HttpResponseCommand.cc
  7186. * src/Makefile.am
  7187. * test/GZipDecoderTest.cc
  7188. * test/HttpRequestTest.cc
  7189. * test/HttpResponseTest.cc
  7190. * test/Makefile.am
  7191. * test/Makefile.in
  7192. * test/gzip_decode_test.gz
  7193. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Clarified usage of -j option.
  7195. * src/usage_text.h
  7196. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7197. Disabled getting size from the response of RETR.
  7198. If SIZE command failed, then disable resuming and segmented downloading.
  7199. * src/FtpConnection.cc
  7200. * src/FtpConnection.h
  7201. * src/FtpNegotiationCommand.cc
  7202. * src/FtpNegotiationCommand.h
  7203. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Use digits to find first byte of file size, which makes the intention
  7205. of the code clearer.
  7206. * src/FtpConnection.cc
  7207. Don't call validateTotalLength() when size is 0.
  7208. * src/FtpNegotiationCommand.cc
  7209. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Updated po files.
  7211. * po/aria2c.pot
  7212. * po/*.gmo
  7213. * po/*.po
  7214. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Clarified usage text for --split option.
  7216. * src/usage_text.h
  7217. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Bump up version number to 0.15.0dev. "dev" means "development"
  7219. version, which means I started the development of the next release!
  7220. * src/configure.ac
  7221. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. If FTP server returns negative response with REST raw command and
  7223. requested range is not 0, throw exception. If requested range is 0,
  7224. continue download a file from 0 byte.
  7225. * src/FtpNegotiationCommand.cc
  7226. * src/FtpNegotiationCommand.h
  7227. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Supported FTP server which don't recognize SIZE raw command.
  7229. If SIZE raw command is failed, aria2 will try to get file size
  7230. from the response of RETR raw command. If both attempts are failed,
  7231. then resuming and segmented downloading are disabled.
  7232. * src/FtpConnection.cc
  7233. * src/FtpConnection.h
  7234. * src/FtpNegotiationCommand.cc
  7235. * src/FtpNegotiationCommand.h
  7236. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. * Release 0.14.0+1
  7238. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Bump up version number to 0.14.0+1
  7240. * src/configure.ac
  7241. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Fixed the code that refers static member variable from non-static
  7243. context.
  7244. * src/DefaultPeerStorage.cc
  7245. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. * Release 0.14.0
  7247. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Added build test script
  7249. * build_test.sh
  7250. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Updated ja.po
  7252. * src/ja.po
  7253. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Bump up version number to 0.14.0
  7255. * src/configure.ac
  7256. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Updated ja.po and fr.po. Great thanks for french translators and
  7258. Sebastien WILLEMIJNS.
  7259. * po/fr.po
  7260. * po/ja.po
  7261. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Added configure option to enable/disable epoll support.
  7263. * configure.ac
  7264. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7265. Updated man page.
  7266. * doc/aria2c.1.txt
  7267. * doc/aria2c.1
  7268. * doc/aria2c.1.html
  7269. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Added missing default value '5' to the usage of --split option.
  7271. * src/HelpItemFactory.cc
  7272. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. Filled up pieces based on the number of missing blocks, rather than
  7274. simplay the number of piece * block length.
  7275. * src/BtRequestFactory.h
  7276. * src/DefaultBtInteractive.cc
  7277. * src/DefaultBtInteractive.h
  7278. * src/DefaultBtRequestFactory.cc
  7279. * src/DefaultBtRequestFactory.h
  7280. * src/Piece.cc
  7281. * src/Piece.h
  7282. * test/BitfieldManTest.cc
  7283. * test/DefaultBtRequestFactoryTest.cc
  7284. * test/MockBtRequestFactory.h
  7285. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Made _epEvents a member variable.
  7287. * src/DownloadEngine.cc
  7288. * src/DownloadEngine.h
  7289. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Cancel download if http redirect is bounded more than 20 times.
  7291. * src/AbstractCommand.cc
  7292. * src/HttpSkipResponseCommand.cc
  7293. * src/Request.cc
  7294. * src/Request.h
  7295. * test/RequestTest.cc
  7296. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Fixed unhandled exception(removed keyword `new').
  7298. * src/SocketCore.cc (initEPOLL)
  7299. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Removed visit(const MetaEntry*)
  7301. * src/MetaEntryVisitor.h:
  7302. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7303. and made them virtual.
  7304. * src/BencodeVisitor.h
  7305. * src/BencodeVisitor.cc
  7306. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7307. Updated po files.
  7308. * po/aria2c.pot
  7309. * po/*.po
  7310. * po/*.gmo
  7311. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7313. the number of socket to watch out.
  7314. * src/PeerInteractionCommand.cc
  7315. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7316. When there is not enough space in disk when writing a chunk of data,
  7317. aria2 now prints the message to the console to warn user and aborts
  7318. its download. Not all downloads are canceled because some downloads
  7319. may use another disk or partition. BUG#1640332
  7320. * src/AbstractDiskWriter.cc
  7321. * src/PeerAbstractCommand.cc
  7322. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7323. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7324. setHaltRequested(true) to cancel download.
  7325. * src/PeerInteractionCommand.h
  7326. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7327. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7328. socket from int to sock_t as sockets are unsigned in Windows.
  7329. For AsyncNameResolver, DownloadEngine, I did additional modification
  7330. for the portion of the code changed according to epoll support.
  7331. I defined sock_t in a2netcompat.h to use sock_t without including
  7332. SocketCore.h.
  7333. * src/AsyncNameResolver.cc
  7334. * src/AsyncNameResolver.h
  7335. * src/DownloadEngine.cc
  7336. * src/DownloadEngine.h
  7337. * src/SocketCore.cc
  7338. * src/SocketCore.h
  7339. * src/a2netcompat.h
  7340. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7342. changes in the patch were applied.
  7343. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7344. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7345. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7346. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7348. a2io.h and common.h were modified.
  7349. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7350. MinGW.
  7351. * src/common.h: Changed off_t to 64 bit in MinGW.
  7352. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7354. only a2netcompat.h is modified.
  7355. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7356. directives.
  7357. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7359. only gai_strerror.h is modified.
  7360. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7361. winsock errors in MinGW.
  7362. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7364. follow sources are applied.
  7365. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7366. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7367. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7368. I included locale.h from Platform.cc.
  7369. * src/main.cc: Moved common setup/teardown code to Platform class.
  7370. * test/AllTest.cc: Use Platform class.
  7371. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7372. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7374. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7375. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7376. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7378. aria2-0.13.2+1-mingw-2.patch.
  7379. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7380. systems which don't have termious.h. I moved the directive inside of
  7381. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7382. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7383. anyway.
  7384. * src/asctime_r.h
  7385. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7386. I added 2nd argument to the prototype declaration.
  7387. * src/StringFormat.cc: Get rid of vasprintf.
  7388. * src/getaddrinfo.h: Fixed constants.
  7389. * configure.ac: Added the check for asctime_r function.
  7390. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7391. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Added writable test for Socket when the sending message is in progress.
  7393. Usually the sending message is piece message. Without wriable check,
  7394. upload latency is dropped to more than 1sec.
  7395. * src/PeerInteractionCommand.cc
  7396. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Create only requested files and files which shares a piece with
  7398. requested file in multi-torrent downloads. Directory structures are
  7399. also created in the same rule.
  7400. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7401. DiskWriterEntry as in the previous implementation.
  7402. * src/MultiDiskWriter.cc
  7403. * src/MultiFileAllocationIterator.cc
  7404. * src/MultiFileAllocationIterator.h
  7405. * test/MultiFileAllocationIteratorTest.cc
  7406. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Commented out -lprofiler
  7408. * src/Makefile.am
  7409. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Bump up version number to 0.14.0b.
  7411. * src/configure.ac
  7412. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Actively establish connection to peers in seeding, when peer cache
  7414. is not full and max upload speed limit is not reached.
  7415. * src/ActivePeerConnectionCommand.cc
  7416. * src/ActivePeerConnectionCommand.h
  7417. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7419. to make room more fleshy, recently found peers.
  7420. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7421. it.
  7422. * src/DefaultPeerStorage.cc
  7423. * test/DefaultPeerStorageTest.cc
  7424. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Returns cached data only when the previous receiveHandshake() is called
  7426. with peek = true.
  7427. * src/PeerConnection.cc (receiveHandshake)
  7428. * src/PeerConnection.h (receiveHandshake)
  7429. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Changed default value of -s option from 1 to 5.
  7431. Also max value of -s option is changed from 5 to 16.
  7432. * src/HelpItemFactory.cc
  7433. * src/OptionHandlerFactory.cc
  7434. * src/option_processing.cc
  7435. * src/usage_text.h
  7436. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Changed -s options behavior. Now it means the number of connections
  7438. made simultaneously in each http/ftp download.
  7439. If 1 URL is specified, the behavior is the same with old implementation.
  7440. If -s N is given and more than N URLs are specified, first N URLs are
  7441. used and remaining URLs are used for backup. If less than N URLs are
  7442. specified, some of URLs are used more than once so that totally N
  7443. connections are made simultaneously.
  7444. * src/main.cc
  7445. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Included missing iosfwd or ostream header.
  7447. * src/RequestGroupMan.cc
  7448. * src/TaggedItem.cc
  7449. * src/TaggedItem.h
  7450. * src/Util.cc
  7451. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7453. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7454. * src/HttpConnection.cc: Included missing sstream.
  7455. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Added --bt-max-open-files option.
  7457. * src/DefaultPieceStorage.cc
  7458. * src/HelpItemFactory.cc
  7459. * src/MultiDiskAdaptor.cc
  7460. * src/MultiDiskAdaptor.h
  7461. * src/OptionHandlerFactory.cc
  7462. * src/option_processing.cc
  7463. * src/prefs.cc
  7464. * src/prefs.h
  7465. * src/usage_text.h
  7466. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Fixed the bug that aria2 aborts when a path to a directory is given
  7468. in command-line.
  7469. * src/ProtocolDetector.cc
  7470. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Limited the number files opened in each BitTorrent download. The default
  7472. value is 100. The option to change this value will be added.
  7473. * src/MultiDiskAdaptor.cc
  7474. * src/MultiDiskAdaptor.h
  7475. * src/MultiFileAllocationIterator.cc
  7476. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Fixed the bug that HTTP downloads don't start with old libraries.
  7478. * src/HttpHeaderProcessor.cc
  7479. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Use empty() instead of size() > 0.
  7481. * src/HttpConnection.cc
  7482. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Drop connection if the incoming peer ID is the same with localhost's
  7484. one. The previous implementation drops connection when incoming peer's
  7485. IP address is the same with localhost's one.
  7486. * src/PeerListenCommand.cc
  7487. * src/DefaultBtInteractive.cc
  7488. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Returns cached data without checking whether socket is readable
  7490. if the cache is available.
  7491. * src/PeerConnection.cc (receiveHandshake)
  7492. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Included stdint.h
  7494. * src/common.h
  7495. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7496. Removed duplicate HAVE_GETTIMEOFDAY
  7497. * src/Makefile.am
  7498. * src/Makefile.in
  7499. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Use interval as a minInterval when minInterval is not supplied.
  7501. * src/DefaultBtAnnounce.cc
  7502. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7504. attempt is failed, then 2nd attempt get kicked out more quickly.
  7505. And it is now static const member of DefaultBtAnnounce.
  7506. * src/DefaultBtAnnounce.h
  7507. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7509. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7510. * src/ActivePeerConnectionCommand.cc
  7511. * src/BtConstants.h
  7512. * src/BtRuntime.h
  7513. * src/DHTGetPeersCommand.cc
  7514. * src/DefaultBtAnnounce.cc
  7515. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7516. BtRuntime::MAX_PEERS.
  7517. * src/DefaultPeerStorage.h
  7518. * src/InitiatorMSEHandshakeCommand.cc
  7519. * src/PeerInitiateConnectionCommand.cc
  7520. * src/PeerInteractionCommand.cc
  7521. * src/PeerReceiveHandshakeCommand.cc
  7522. * src/TrackerWatcherCommand.cc
  7523. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Always Connect to _numNewConnection
  7525. * src/ActivePeerConnectionCommand.cc
  7526. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7527. Made `begin' unsigned int.
  7528. * src/GrowSegment.h
  7529. * src/Piece.cc
  7530. * src/Piece.h
  7531. * src/PiecedSegment.cc
  7532. * src/PiecedSegment.h
  7533. * src/Segment.h
  7534. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Calculate piece hash when data is arrived if the data is arrived in
  7536. order. This removes additional read operation for hash calculation.
  7537. If the data is arrived in out of order, the hash is calucated when the
  7538. piece is completed. This is the same behavior as the old implementation.
  7539. * src/BtPieceMessage.cc
  7540. * src/DefaultBtProgressInfoFile.cc
  7541. * src/DefaultPieceStorage.cc
  7542. * src/DownloadCommand.cc
  7543. * src/DownloadCommand.h
  7544. * src/DownloadEngine.cc
  7545. * src/GrowSegment.cc
  7546. * src/GrowSegment.h
  7547. * src/Piece.cc
  7548. * src/Piece.h
  7549. * src/PiecedSegment.cc
  7550. * src/PiecedSegment.h
  7551. * src/Segment.h
  7552. * test/PieceTest.cc
  7553. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Try to keep the ordering of outgoing piece message.
  7555. * src/DefaultBtMessageDispatcher.cc
  7556. (DefaultBtMessageDispatcher::sendMessages)
  7557. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Fixed busy loop when error/hup epoll events occur.
  7559. * src/AbstractCommand.cc
  7560. * src/PeerAbstractCommand.cc
  7561. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Added --bt-request-peer-speed-limit option, which was a constant
  7563. SLOW_SPEED_THRESHOLD.
  7564. * src/ActivePeerConnectionCommand.cc
  7565. * src/ActivePeerConnectionCommand.h
  7566. * src/BtConstants.h
  7567. * src/HelpItemFactory.cc
  7568. * src/OptionHandlerFactory.cc
  7569. * src/PeerReceiveHandshakeCommand.cc
  7570. * src/option_processing.cc
  7571. * src/prefs.cc
  7572. * src/prefs.h
  7573. * src/usage_text.h
  7574. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Removed repeated call of getTopDirPath(). Instead, call it once and
  7576. cache the result.
  7577. * src/MultiDiskAdaptor.cc
  7578. * src/MultiDiskAdaptor.h
  7579. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7580. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Fixed compile error on debian etch.
  7582. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7583. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7584. it is undefined.
  7585. * src/Util.cc (ULLONG_MAX)
  7586. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Added epoll support. Use epoll if it is available. If not, use select.
  7588. When async dns is enabled in compile time, epoll support is enabled
  7589. only when aria2 is built with c-ares. This condition statement is
  7590. defined in a2io.h.
  7591. Currently aria2 supports both c-ares and ares, but ares is maintained
  7592. for quite a while and debian already has c-ares package, ares support
  7593. will be dropped in the future version.
  7594. * configure.ac
  7595. * src/AbstractCommand.cc
  7596. * src/AsyncNameResolver.cc
  7597. * src/AsyncNameResolver.h
  7598. * src/Command.cc
  7599. * src/Command.h
  7600. * src/DownloadEngine.cc
  7601. * src/DownloadEngine.h
  7602. * src/PeerAbstractCommand.cc
  7603. * src/SocketCore.cc
  7604. * src/SocketCore.h
  7605. * src/a2io.h
  7606. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7608. directive.
  7609. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Do not do write operation to /dev/null file.
  7611. * src/LogFactory.cc
  7612. * src/SimpleLogger.cc
  7613. Replaced vasprintf with vsnprintf
  7614. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7615. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. * src/BtRequestMessage.cc
  7617. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7618. for segmentation fault caused by previous commit.
  7619. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7620. Reduced the usage of gettimeofday().
  7621. * src/DefaultBtMessageDispatcher.cc
  7622. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7623. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7624. * src/RequestSlot.cc
  7625. * src/RequestSlot.h
  7626. (RequestSlot::isTimeout)
  7627. Made RequestSlot have a reference to Piece object to avoid find
  7628. Piece repeatedly.
  7629. * src/DefaultBtMessageDispatcher.cc
  7630. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7631. * src/RequestSlot.cc
  7632. * src/RequestSlot.h
  7633. (RequestSlot::getPiece)
  7634. * test/DefaultBtMessageDispatcherTest.cc
  7635. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. * src/TimeA2.cc
  7637. * src/TimeA2.h
  7638. (Time::difference): New function.
  7639. (Time::elapsed): Done optimization.
  7640. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7642. directive.
  7643. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7644. * src/option_processing.cc: Added missing `defined' keyword to #if
  7645. directive.
  7646. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. Bump up version number to 0.13.2+1
  7648. * src/configure.ac
  7649. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Refactored broken outstanding piece handling.
  7651. * src/DefaultPieceStorage.cc
  7652. * src/DefaultPieceStorage.h
  7653. * src/Piece.cc
  7654. * src/Piece.h
  7655. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7657. name collision of static variable and predefined macro.
  7658. * src/BtContext.cc
  7659. * src/BtContext.h
  7660. * src/CookieBoxFactory.cc
  7661. * src/CookieBoxFactory.h
  7662. * src/CookieParser.cc
  7663. * src/CookieParser.h
  7664. * src/DefaultBtContext.cc
  7665. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. * src/RequestGroup.cc
  7667. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7668. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. * Release 0.13.2
  7670. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7672. * po/fr.po
  7673. * po/ja.po
  7674. * po/aria2c.pot
  7675. * po/*.po
  7676. * po/*.gmo
  7677. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Bump up version number to 0.13.2
  7679. * src/configure.ac
  7680. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Refactord.
  7682. * src/RequestGroupMan.cc
  7683. (removeStoppedGroup)
  7684. (fillRequestGroupFromReserver)
  7685. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Fixed compile error on Ubuntu.
  7687. * src/BtPieceMessage.cc
  7688. * src/MessageDigestHelper.cc
  7689. * src/Util.cc
  7690. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Fixed compile error when configured with --disable-bittorrent
  7692. * test/DownloadHandlerFactoryTest.cc
  7693. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Done make update-po
  7695. * po/aria2c.pot
  7696. * po/*.po
  7697. * po/*.gmo
  7698. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. Bump up version number to 0.13.2rc.
  7700. * src/configure.ac
  7701. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Made option name bold. Updated SYNOPSIS to make it more readable.
  7703. * doc/aria2c.1.txt
  7704. * doc/aria2c.1
  7705. * doc/aria2c.1.html
  7706. * src/version_usage.cc
  7707. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Refactored. Use std::string instead of size and char*.
  7709. * Data.cc
  7710. * Data.h
  7711. * test/Data.cc
  7712. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Added trimSelf(). Rewritten trim() to use trimSelf().
  7714. * Util.cc
  7715. * Util.h
  7716. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7718. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Fixed compile error when configured with --disable-metalink.
  7720. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7721. * test/FeatureConfigTest.cc
  7722. * test/DownloadHandlerFactoryTest.cc
  7723. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Fixed compile error when configured with --without-gnutls
  7725. --without-openssl
  7726. * src/main.cc
  7727. * test/DefaultBtProgressInfoFileTest.cc
  7728. * test/SegmentManTest.cc
  7729. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Fixed compile error with OpenSSL.
  7731. * src/IteratableChunkChecksumValidator.cc
  7732. * src/LibsslDHKeyExchange.h
  7733. * src/MessageDigestHelper.cc
  7734. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Revert the default value of --max-concurrent-downloads to 5.
  7736. Revert the default value of --metalink-servers to 5.
  7737. Man pages was also updated.
  7738. * src/option_processing.cc
  7739. * doc/aria2c.1.txt
  7740. * doc/aria2c.1.html
  7741. * doc/aria2c.1
  7742. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7743. Returns const reference:
  7744. DownloadContext::getPieceHash, DownloadContext::getName,
  7745. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7746. BtContext::getInfoHashAsString,
  7747. * src/BtContext.h
  7748. * src/DefaultBtContext.cc
  7749. * src/DefaultBtContext.h
  7750. * src/DownloadContext.h
  7751. * src/SingleFileDownloadContext.h
  7752. * test/MockBtContext.h
  7753. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7754. * src/RequestGroup.h (getDir): Removed.
  7755. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. Returns const reference. The internal urlencode function was optimized
  7757. a little bit.
  7758. * src/Request.cc
  7759. * src/Request.h
  7760. * src/HttpRequest.cc
  7761. * src/HttpRequest.h
  7762. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Defined option name and possible values as std::string to reduce
  7764. temporary string object creation in runtime.
  7765. * src/HelpItemFactory.cc
  7766. * src/LogFactory.cc
  7767. * src/Option.cc
  7768. * src/OptionHandlerFactory.cc
  7769. * src/option_processing.cc
  7770. * src/prefs.cc
  7771. * src/prefs.h
  7772. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Return const reference.
  7774. * src/DownloadHandlerConstants.cc
  7775. * src/DownloadHandlerConstants.h
  7776. (getMetalinkExtensions)
  7777. (getMetalinkContentTypes)
  7778. (getBtExtensions)
  7779. (getBtContentTypes)
  7780. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. * src/HttpHeader.cc (get): Rewritten.
  7782. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Make HttpHeader::getFirst(...) return const reference.
  7784. * src/HttpHeader.cc
  7785. * src/HttpHeader.h
  7786. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7788. it with V_TRUE.
  7789. * src/DefaultPieceStorage.cc
  7790. * src/DownloadCommand.cc
  7791. * src/FtpNegotiationCommand.cc
  7792. * src/HttpRequest.cc
  7793. * src/InitiateConnectionCommand.cc
  7794. * src/RequestGroup.cc
  7795. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Made Option::get(...) return const reference of std::string.
  7797. * src/Option.cc
  7798. * src/Option.h
  7799. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Replaced std:copy with insert.
  7801. * src/DefaultBtMessageDispatcher.cc
  7802. * src/DefaultPieceStorage.cc
  7803. * src/DownloadEngineFactory.cc
  7804. * src/RequestGroup.cc
  7805. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Included SocketCore.h to fix compiler warning.
  7807. * src/InitiateConnectionCommand.cc
  7808. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Put piece selection strategy algorithm to RarestPieceSelector class,
  7810. Added a switch to choose whether randomized selection so that unit
  7811. tests emit same results in, possibly, win32.
  7812. * src/DefaultPieceStorage.cc
  7813. * src/DefaultPieceStorage.h
  7814. * src/RarestPieceSelector.cc
  7815. * src/RarestPieceSelector.h
  7816. * test/DefaultPieceStorageTest.cc
  7817. * test/RarestPieceSelectorTest.cc
  7818. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Don't pool connection if HTTP proxy is enabled.
  7820. * src/FtpFinishDownloadCommand.cc
  7821. * src/FtpNegotiationCommand.cc
  7822. * src/HttpSkipResponseCommand.cc
  7823. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7825. * src/AbstractCommand.cc
  7826. * src/AbstractCommand.h
  7827. * src/ActivePeerConnectionCommand.cc
  7828. * src/FtpInitiateConnectionCommand.cc
  7829. * src/HttpInitiateConnectionCommand.cc
  7830. * src/InitiateConnectionCommandFactory.cc
  7831. * src/PeerAbstractCommand.cc
  7832. * src/PeerAbstractCommand.h
  7833. * src/PeerInitiateConnectionCommand.cc
  7834. * src/TrackerWatcherCommand.cc
  7835. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. Sort RequestSlot in ascending order and manipulate them using
  7837. lower_bound.
  7838. * src/DefaultBtMessageDispatcher.cc
  7839. * src/DefaultBtMessageDispatcher.h
  7840. (getMessageQueue): Added const qualifier.
  7841. (getRequestSlots): Added const qualifier.
  7842. (sendMessages): Use empty() instead of size().
  7843. (doCancelSendingPieceAction): Use HandleEvent object.
  7844. (doAbortOutstandingRequestAction): Rewritten.
  7845. (doChokedAction): Rewritten.
  7846. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7847. (isOutstandingRequest): Rewritten.
  7848. (getOutstandingRequest): Rewritten.
  7849. (removeOutstandingRequest): Rewritten.
  7850. (addOutstandingRequest): Rewritten.
  7851. * src/RequestSlot.cc
  7852. * src/RequestSlot.h
  7853. (operator=): Rewritten.
  7854. (operator!=): New function.
  7855. (operator<): New function.
  7856. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. * src/DefaultBtRequestFactory.cc
  7858. (doChokedAction): Rewritten.
  7859. (removeCompletedPiece): Rewritten.
  7860. (removeTargetPiece): Rewritten.
  7861. (createRequestMessages): Added the debug log.
  7862. (createRequestMessagesOnEndGame: Added the debug log.
  7863. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Added the debug log message.
  7865. * src/BtPieceMessage.cc (doReceivedAction)
  7866. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7868. used lower_bound to process them rather than linear search.
  7869. * src/DHTPeerAnnounceStorage.cc
  7870. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7872. peer has at least one completed piece.
  7873. * src/Peer.cc
  7874. * src/Peer.h
  7875. * src/PeerInteractionCommand.cc
  7876. * src/PeerSessionResource.cc
  7877. * src/PeerSessionResource.h
  7878. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Removed unnecessary sorting
  7880. * src/DefaultPieceStorage (DefaultPieceStorage)
  7881. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Rewritten the portion of the code that mangaes allowed fast indexes.
  7883. * src/PeerSessionResource.cc
  7884. * src/PeerSessionResource.h
  7885. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Removed the invalid string including '\r' from ru.po and
  7887. did make update-po.
  7888. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7889. Added --log-level and --summary-interval to man page.
  7890. * doc/aria2c.1.txt
  7891. * doc/aria2c.1.html
  7892. * doc/aria2c.1
  7893. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Added --log-level option to specify log level. Log messages under
  7895. the specified level are not output. Default value is `debug'.
  7896. * src/HelpItemFactory.cc
  7897. * src/LogFactory.cc
  7898. * src/LogFactory.h
  7899. * src/Logger.h
  7900. * src/OptionHandlerFactory.cc
  7901. * src/SimpleLogger.cc
  7902. * src/SimpleLogger.h
  7903. * src/main.cc
  7904. * src/option_processing.cc
  7905. * src/prefs.h
  7906. * src/usage_text.h
  7907. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Print download progress summary of all parallel downloads in specified
  7909. interval, default 60 secs. While aria2 could download several files
  7910. in parallel (see -j option), it displayed just first download progress,
  7911. and the other downloads are hidden from the users. This new feature
  7912. prints all downloads currently in-progress to the console so that you
  7913. can check the status of all downloads. The interval can be adjusted
  7914. by --summary-interval option.
  7915. The progress readout is now cut so that all fits in the one line of
  7916. console.
  7917. * src/ConsoleStatCalc.cc
  7918. * src/ConsoleStatCalc.h
  7919. * src/HelpItemFactory.cc
  7920. * src/OptionHandlerFactory.cc
  7921. * src/RequestGroupMan.cc
  7922. * src/RequestGroupMan.h
  7923. * src/main.cc
  7924. * src/option_processing.cc
  7925. * src/prefs.h
  7926. * src/usage_text.h
  7927. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7929. * src/DownloadEngine.cc (DownloadEngine)
  7930. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7932. defined.
  7933. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7934. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Use erase+lower_bound+insert instead of sort.
  7936. * src/DefaultPieceStorage.cc (addPieceStats)
  7937. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7939. * src/A2STR.cc
  7940. * src/A2STR.h
  7941. * src/OptionParser.cc (parse)
  7942. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7943. Defined fake filename `[tracker.announce]' as static const std::string.
  7944. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7945. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Defined default filename `index.html' as static const std::string
  7947. * src/SingleFileDownloadContext.cc
  7948. * src/SingleFileDownloadContext.h
  7949. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Defined "[MEMORY]" as static const std::string.
  7951. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7952. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Defined control file's version number as static const std::string.
  7954. * src/DefaultBtProgressInfoFile.cc
  7955. * src/DefaultBtProgressInfoFile.h
  7956. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Use Request::METHOD_GET
  7958. * src/RequestGroup.cc (createNextCommandWithAdj)
  7959. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Defined "OK", "ERR", "INPR" as static const std::string
  7961. * src/RequestGroupMan.cc (showDownloadResults)
  7962. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Defined default client used in extended handshake as static const
  7964. std::string
  7965. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7966. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7968. * src/HttpConnection.cc (eraseConfidentialInfo)
  7969. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Defined default ftp user and password as static const std::string
  7971. * src/AuthConfigFactory.cc
  7972. * src/AuthConfigFactory.h
  7973. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Defined strings used in netrc as static const std::string
  7975. * src/Netrc.cc
  7976. * src/Netrc.h
  7977. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7978. Defined HTTP status as static const std::string
  7979. * src/AbstractProxyResponseCommand.cc
  7980. * src/HttpHeader.cc
  7981. * src/HttpHeader.h
  7982. * src/HttpResponse.cc
  7983. * src/HttpResponseCommand.cc
  7984. * src/HttpSkipResponseCommand.cc
  7985. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Defined "\r\n", "A", "I" as static const std::string
  7987. * src/A2STR.cc
  7988. * src/A2STR.h
  7989. * src/FtpConnection.cc
  7990. * src/FtpConnection.h
  7991. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. Added COLON_C(".") and used it in Request::parseUrl()
  7993. * src/A2STR.cc
  7994. * src/A2STR.h
  7995. * src/Request.cc (parseUrl)
  7996. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Changed the type of padName from `const std::string&' to `const char*'.
  7998. * src/MSEHandshake.cc (verifyPadLength)
  7999. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Defined "sha1" as static const std::string.
  8001. * src/MetalinkParserController.cc
  8002. * src/MetalinkParserController.h
  8003. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Defined message digest algorithm name as static const std::string
  8005. * src/DHTTokenTracker.cc
  8006. * src/DHTUtil.cc
  8007. * src/DefaultBtContext.cc
  8008. * src/MSEHandshake.cc
  8009. * src/MessageDigestHelper.cc
  8010. * src/Peer.cc
  8011. * src/messageDigest.cc
  8012. * src/messageDigest.h
  8013. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Made string literals used in SAX parser static const std::string.
  8015. * src/FileMetalinkParserState.cc
  8016. * src/FileMetalinkParserState.h
  8017. * src/FilesMetalinkParserState.cc
  8018. * src/FilesMetalinkParserState.h
  8019. * src/InitialMetalinkParserState.cc
  8020. * src/InitialMetalinkParserState.h
  8021. * src/MetalinkMetalinkParserState.cc
  8022. * src/MetalinkMetalinkParserState.h
  8023. * src/PiecesMetalinkParserState.cc
  8024. * src/PiecesMetalinkParserState.h
  8025. * src/ResourcesMetalinkParserState.cc
  8026. * src/ResourcesMetalinkParserState.h
  8027. * src/VerificationMetalinkParserState.cc
  8028. * src/VerificationMetalinkParserState.h
  8029. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8031. * src/A2STR.cc
  8032. * src/A2STR.h
  8033. * src/File.cc
  8034. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Defined static const std::string IP("ip"), PORT("port") and use them
  8036. instead of string literals.
  8037. * src/DefaultPeerListProcessor.cc
  8038. * src/DefaultPeerListProcessor.h
  8039. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Made string literals for torrent file processing static const
  8041. std::string.
  8042. * src/BtContext.cc
  8043. * src/BtContext.h
  8044. * src/DefaultBtContext.cc
  8045. * src/DefaultBtContext.h
  8046. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Made string literal for tracker response static const std::string
  8048. * src/BtAnnounce.cc
  8049. * src/BtAnnounce.h
  8050. * src/DefaultBtAnnounce.cc
  8051. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Use DHTMessage::T instead of "t".
  8053. * src/DHTMessageTracker.cc (messageArrived)
  8054. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Made keyName static const. Made trimmed charset static const
  8056. std::string.
  8057. * src/Util.cc (getContentDispositionFilename)
  8058. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Made USER_AGENT const. Made "/" static const std::string.
  8060. * src/A2STR.cc
  8061. * src/A2STR.h
  8062. * src/HttpRequest.cc
  8063. * src/HttpRequest.h
  8064. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Made string listeral to static const std::string:
  8066. "Content-Range", "Content-Length"
  8067. * src/HttpHeader.cc
  8068. * src/HttpHeader.h
  8069. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Made string listeral to static const std::string.
  8071. * src/HttpConnection.cc
  8072. * src/HttpHeader.cc
  8073. * src/HttpHeader.h
  8074. * src/HttpResponse.cc
  8075. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Made string listeral to static const std::string.
  8077. * src/A2STR.cc
  8078. * src/A2STR.h
  8079. * src/SimpleLogger.cc
  8080. * src/SimpleLogger.h
  8081. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Made string literal to static const std::string.
  8083. Rewritten CookieParser::setField.
  8084. * src/A2STR.cc
  8085. * src/A2STR.h
  8086. * src/CookieBoxFactory.cc
  8087. * src/CookieBoxFactory.h
  8088. * src/CookieParser.cc
  8089. * src/CookieParser.h
  8090. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Made string literal to static const std::string
  8092. * src/DHTAbstractMessage.cc
  8093. * src/DHTAnnouncePeerMessage.cc
  8094. * src/DHTAnnouncePeerMessage.h
  8095. * src/DHTAnnouncePeerReplyMessage.cc
  8096. * src/DHTAnnouncePeerReplyMessage.h
  8097. * src/DHTFindNodeMessage.cc
  8098. * src/DHTFindNodeMessage.h
  8099. * src/DHTFindNodeReplyMessage.cc
  8100. * src/DHTFindNodeReplyMessage.h
  8101. * src/DHTGetPeersMessage.cc
  8102. * src/DHTGetPeersMessage.h
  8103. * src/DHTGetPeersReplyMessage.cc
  8104. * src/DHTGetPeersReplyMessage.h
  8105. * src/DHTMessage.cc
  8106. * src/DHTMessage.h
  8107. * src/DHTMessageFactoryImpl.cc
  8108. * src/DHTMessageReceiver.cc
  8109. * src/DHTPingMessage.cc
  8110. * src/DHTPingMessage.h
  8111. * src/DHTPingReplyMessage.cc
  8112. * src/DHTPingReplyMessage.h
  8113. * src/DHTQueryMessage.cc
  8114. * src/DHTQueryMessage.h
  8115. * src/DHTResponseMessage.cc
  8116. * src/DHTResponseMessage.h
  8117. * src/DHTUnknownMessage.cc
  8118. * src/DHTUnknownMessage.h
  8119. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Made string literal to static const std::string
  8121. * src/BtChokeMessage.cc (toString)
  8122. * src/BtHaveAllMessage.cc (toString)
  8123. * src/BtHaveNoneMessage.cc (toString)
  8124. * src/BtInterestedMessage.cc (toString)
  8125. * src/BtNotInterestedMessage.cc (toString)
  8126. * src/BtUnchokeMessage.cc (toString)
  8127. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Replaced "" with static const variable A2STR::NIL.
  8129. Replaced string comparison against "" with std::string::empty().
  8130. Added PROTO_* to Request class and use them as a protocol string
  8131. constant.
  8132. Made "started", "stopped", "completed" static const variable in
  8133. AnnounceList class.
  8134. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Updated translations. Great thanks to translators.
  8136. * po/ca.po
  8137. * po/de.po
  8138. * po/fr.po
  8139. * po/it.po
  8140. * po/ja.po
  8141. * po/ru.po
  8142. * po/zh_CN.po
  8143. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Updated man page; categorized options and fixed typo.
  8145. * doc/aria2c.1.txt
  8146. * doc/aria2c.1.html
  8147. * doc/aria2c.1
  8148. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Removed const ref
  8150. * src/MetalinkEntry.cc (AddProtocolPreference)
  8151. * src/RequestGroup.cc (FindServerHostByHostname)
  8152. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Rewritten Accept-Features handling.
  8154. * src/HttpRequestCommand.cc (createHttpRequest)
  8155. * src/a2functional.h
  8156. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Changed method signature:
  8158. DHTAbstractNodeLookupTask::toEntries
  8159. * src/DHTAbstractNodeLookupTask.cc
  8160. * src/DHTAbstractNodeLookupTask.h
  8161. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Changed method signature:
  8163. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8164. * src/BtContext.h
  8165. * src/DefaultBtContext.cc
  8166. * src/DefaultBtContext.h
  8167. * src/DefaultBtInteractive.cc
  8168. * test/DefaultBtContextTest.cc
  8169. * test/MockBtContext.h
  8170. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Changed method signature:
  8172. MultiFileAllocationIterator::makeDiskWriterEntries
  8173. * src/MultiFileAllocationIterator.cc
  8174. * src/MultiFileAllocationIterator.h
  8175. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Changed method sinature:
  8177. MetalinkEntry::toFileEntry,
  8178. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8179. Metalinker::queryEntry
  8180. * src/Metalink2RequestGroup.cc
  8181. * src/MetalinkEntry.cc
  8182. * src/MetalinkEntry.h
  8183. * src/MetalinkHelper.cc
  8184. * src/MetalinkHelper.h
  8185. * src/Metalinker.cc
  8186. * src/Metalinker.h
  8187. * src/main.cc
  8188. * test/MetalinkHelperTest.cc
  8189. * test/MetalinkerTest.cc
  8190. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Changed method sinature:
  8192. RequestGroup::getURIs
  8193. * src/RequestGroup.cc
  8194. * src/RequestGroup.h
  8195. * test/Metalink2RequestGroupTest.cc
  8196. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. Changed method signature:
  8198. PeerListProcessor::extractPeer
  8199. * src/CompactPeerListProcessor.cc
  8200. * src/CompactPeerListProcessor.h
  8201. * src/DefaultBtAnnounce.cc
  8202. * src/DefaultPeerListProcessor.cc
  8203. * src/DefaultPeerListProcessor.h
  8204. * src/DelegatingPeerListProcessor.cc
  8205. * src/DelegatingPeerListProcessor.h
  8206. * src/PeerListProcessor.h
  8207. * src/UTPexExtensionMessage.cc
  8208. * test/DefaultPeerListProcessorTest.cc
  8209. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8210. Changed method signature:
  8211. BtRequestFactory::createRequestMessages,
  8212. BtRequestFactory::createRequestMessagesOnEndGame
  8213. * src/BtRequestFactory.h
  8214. * src/DefaultBtInteractive.cc
  8215. * src/DefaultBtRequestFactory.cc
  8216. * src/DefaultBtRequestFactory.h
  8217. * test/DefaultBtRequestFactoryTest.cc
  8218. * test/MockBtRequestFactory.h
  8219. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8220. Changed method signature:
  8221. PieceStorage::getInFlightPieces
  8222. * src/DefaultBtProgressInfoFile.cc
  8223. * src/DefaultPieceStorage.cc
  8224. * src/DefaultPieceStorage.h
  8225. * src/PieceStorage.h
  8226. * src/UnknownLengthPieceStorage.cc
  8227. * src/UnknownLengthPieceStorage.h
  8228. * test/DefaultBtProgressInfoFileTest.cc
  8229. * test/MockPieceStorage.h
  8230. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Changed method signature:
  8232. PostDownloadHandler::getNextRequestGroups
  8233. Metalink2RequestGroup::generate
  8234. RequestGroup::postDownloadProcessing
  8235. * src/BtPostDownloadHandler.cc
  8236. * src/BtPostDownloadHandler.h
  8237. * src/Metalink2RequestGroup.cc
  8238. * src/Metalink2RequestGroup.h
  8239. * src/MetalinkPostDownloadHandler.cc
  8240. * src/MetalinkPostDownloadHandler.h
  8241. * src/PostDownloadHandler.h
  8242. * src/RequestGroup.cc
  8243. * src/RequestGroup.h
  8244. * src/RequestGroupMan.cc
  8245. * src/main.cc
  8246. * test/BtPostDownloadHandlerTest.cc
  8247. * test/Metalink2RequestGroupTest.cc
  8248. * test/MetalinkPostDownloadHandlerTest.cc
  8249. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Rewritten AccRequestGroup
  8251. * src/main.cc
  8252. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Rewritten.
  8254. * src/TaggedItem.cc (toTagString)
  8255. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Rewritten Accept-Features handling.
  8257. * src/HttpRequestCommand.cc (createHttpRequest)
  8258. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Rewritten accept types handling.
  8260. * HttpRequest.cc (createRequest)
  8261. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Rewritten
  8263. * src/FeatureConfig.cc (featureSummary)
  8264. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. Changed method signature:
  8266. PeerStorage::getActivePeers
  8267. * src/DHTPeerAnnounceEntry.cc
  8268. * src/DefaultPeerStorage.cc
  8269. * src/DefaultPeerStorage.h
  8270. * src/PeerStorage.h
  8271. * test/DefaultPeerStorageTest.cc
  8272. * test/MockPeerStorage.h
  8273. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Changed method signature:
  8275. DHTPeerAnnounceStorage::getPeers,
  8276. DHTPeerAnnounceEntry::getPeers
  8277. * src/DHTGetPeersMessage.cc
  8278. * src/DHTPeerAnnounceEntry.cc
  8279. * src/DHTPeerAnnounceEntry.h
  8280. * src/DHTPeerAnnounceStorage.cc
  8281. * src/DHTPeerAnnounceStorage.h
  8282. * test/DHTAnnouncePeerMessageTest.cc
  8283. * test/DHTPeerAnnounceEntryTest.cc
  8284. * test/DHTPeerAnnounceStorageTest.cc
  8285. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Changed method signature:
  8287. NameResolver::resolve
  8288. * src/DHTEntryPointNameResolveCommand.cc
  8289. * src/InitiateConnectionCommand.cc
  8290. * src/NameResolver.cc
  8291. * src/NameResolver.h
  8292. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Changed method signature:
  8294. PieceStorage::getAdvertisedPieceIndexes
  8295. * src/DefaultBtInteractive.cc
  8296. * src/DefaultPieceStorage.cc
  8297. * src/DefaultPieceStorage.h
  8298. * src/PieceStorage.h
  8299. * src/UnknownLengthPieceStorage.h
  8300. * test/MockPieceStorage.h
  8301. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Changed method signature:
  8303. SegmentMan::getInFlightSegment
  8304. * src/AbstractCommand.cc
  8305. * src/SegmentMan.cc
  8306. * src/SegmentMan.h
  8307. * test/SegmentManTest.cc
  8308. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Changed method signature:
  8310. DHTAbstractNodeLookupTask::getNodesFromMessage
  8311. * src/DHTAbstractNodeLookupTask.cc
  8312. * src/DHTAbstractNodeLookupTask.h
  8313. * src/DHTNodeLookupTask.cc
  8314. * src/DHTNodeLookupTask.h
  8315. * src/DHTPeerLookupTask.cc
  8316. * src/DHTPeerLookupTask.h
  8317. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8318. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8319. * src/AbstractCommand.cc
  8320. * src/BtCheckIntegrityEntry.cc
  8321. * src/BtCheckIntegrityEntry.h
  8322. * src/BtFileAllocationEntry.cc
  8323. * src/BtFileAllocationEntry.h
  8324. * src/BtSetup.cc
  8325. * src/BtSetup.h
  8326. * src/CheckIntegrityCommand.cc
  8327. * src/CheckIntegrityEntry.h
  8328. * src/ChecksumCheckIntegrityEntry.cc
  8329. * src/ChecksumCheckIntegrityEntry.h
  8330. * src/DHTSetup.cc
  8331. * src/DHTSetup.h
  8332. * src/DownloadEngine.cc
  8333. * src/FileAllocationCommand.cc
  8334. * src/FileAllocationEntry.h
  8335. * src/RequestGroup.cc
  8336. * src/RequestGroup.h
  8337. * src/RequestGroupMan.cc
  8338. * src/RequestGroupMan.h
  8339. * src/StreamCheckIntegrityEntry.cc
  8340. * src/StreamCheckIntegrityEntry.h
  8341. * src/StreamFileAllocationEntry.cc
  8342. * src/StreamFileAllocationEntry.h
  8343. * src/TrackerWatcherCommand.cc
  8344. * src/a2functional.h
  8345. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Changed method signature:
  8347. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8348. DHTBucket::getGoodNodes,
  8349. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8350. * src/BNode.cc
  8351. * src/BNode.h
  8352. * src/DHTAbstractNodeLookupTask.cc
  8353. * src/DHTAutoSaveCommand.cc
  8354. * src/DHTBucket.cc
  8355. * src/DHTBucket.h
  8356. * src/DHTBucketRefreshTask.cc
  8357. * src/DHTFindNodeMessage.cc
  8358. * src/DHTGetPeersMessage.cc
  8359. * src/DHTRoutingTable.cc
  8360. * src/DHTRoutingTable.h
  8361. * test/BNodeTest.cc
  8362. * test/DHTBucketTest.cc
  8363. * test/DHTRoutingTableTest.cc
  8364. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. In piece selection functions, Pass std::deque<...> by reference rather
  8366. than returning it.
  8367. * src/BitfieldMan.cc
  8368. * src/BitfieldMan.h
  8369. * src/DefaultBtRequestFactory.cc
  8370. * src/DefaultPieceStorage.cc
  8371. * src/Piece.cc
  8372. * src/Piece.h
  8373. * test/BitfieldManTest.cc
  8374. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Implemented rarest piece first piece selection strategy.
  8376. * src/AbstractBtMessage.cc
  8377. * src/AbstractBtMessage.h
  8378. * src/BitfieldMan.cc
  8379. * src/BitfieldMan.h
  8380. * src/BtBitfieldMessage.cc
  8381. * src/BtHaveAllMessage.cc
  8382. * src/BtHaveMessage.cc
  8383. * src/DefaultPieceStorage.cc
  8384. * src/DefaultPieceStorage.h
  8385. * src/PeerInteractionCommand.cc
  8386. * src/PieceStorage.h
  8387. * src/UnknownLengthPieceStorage.h
  8388. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Rewritten readData and writeData.
  8390. * src/MultiDiskAdaptor.cc
  8391. * src/MultiDiskAdaptor.h
  8392. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Move \n out of the message "Usage: ...".
  8394. * src/version_usage.cc
  8395. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Bump up version number to 0.13.2b.
  8397. * configure.ac
  8398. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Added const qualifier to argument Exception& e.
  8400. * src/Logger.h
  8401. * src/SimpleLogger.cc
  8402. * src/SimpleLogger.h
  8403. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Pool connection when CWD, SIZE command fails.
  8405. * src/FtpNegotiationCommand.cc
  8406. * src/FtpNegotiationCommand.h
  8407. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8409. * src/HttpResponseCommand.cc
  8410. * src/HttpSkipResponseCommand.cc
  8411. * src/HttpSkipResponseCommand.h
  8412. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Pool connection when a server returns 4xx, 5xx responses.
  8414. * src/HttpNullDownloadCommand.cc
  8415. * src/HttpNullDownloadCommand.h
  8416. * src/HttpResponse.cc
  8417. * src/HttpResponse.h
  8418. * src/HttpResponseCommand.cc
  8419. * src/HttpResponseCommand.h
  8420. * test/HttpResponseTest.cc
  8421. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Print usage when no URL is specifed or bad command-line option is
  8423. specified.
  8424. * src/HelpItemFactory.cc
  8425. * src/help_tags.h
  8426. * src/option_processing.cc
  8427. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8428. Removed duplicate log message.
  8429. * src/AbstractCommand.cc (asyncResolveHostname)
  8430. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8432. Changed -j option's default value from 5 to 1.
  8433. Added new examples using protocol auto detection feature.
  8434. Removed -T, -M usage where it can be omitted.
  8435. * doc/aria2c.1.txt
  8436. * doc/aria2c.1.html
  8437. * doc/aria2c.1.txt
  8438. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Updated command-line usage text, so that it tells users that they
  8440. can specify any number of torrent files and metalink files in
  8441. command-line.
  8442. * src/version_usage.cc
  8443. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Changed the default value of -j option to 1.
  8445. * src/HelpItemFactory.cc
  8446. * src/option_processing.cc
  8447. * src/usage_text.h
  8448. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Added the ability to reuse connection in FTP and it is enabled by
  8450. default. It can be disabled by --ftp-reuse-connection=false option.
  8451. * src/Command.cc
  8452. * src/DownloadCommand.cc
  8453. * src/FtpDownloadCommand.cc
  8454. * src/FtpDownloadCommand.h
  8455. * src/FtpFinishDownloadCommand.cc
  8456. * src/FtpFinishDownloadCommand.h
  8457. * src/FtpInitiateConnectionCommand.cc
  8458. * src/FtpNegotiationCommand.cc
  8459. * src/FtpNegotiationCommand.h
  8460. * src/HelpItemFactory.cc
  8461. * src/Makefile.am
  8462. * src/Makefile.in
  8463. * src/OptionHandlerFactory.cc
  8464. * src/option_processing.cc
  8465. * src/prefs.h
  8466. * src/usage_text.h
  8467. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Call Command::transitStatus() before calling Command::execute(),
  8469. so that the status change made in execute() is not cleared.
  8470. * src/DownloadEngine.cc
  8471. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Removed forward declaration of SocketCore class.
  8473. * src/HttpDownloadCommand.h
  8474. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8476. in InitiateConnectionCommandFactory. They should be set only when
  8477. the protocol is HTTP or HTTPS.
  8478. * src/InitiateConnectionCommandFactory.cc
  8479. * src/RequestGroup.cc
  8480. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Fixed infinite loop in checksum checking.
  8482. * src/IteratableChecksumValidator.cc
  8483. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Set _supportsPersistentConnection to true by default.
  8485. * src/Request.cc
  8486. * src/RequestGroup.cc
  8487. * test/HttpRequestTest.cc
  8488. * test/RequestTest.cc
  8489. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Added timeout to socket pool. The default timeout is 15 seconds,
  8491. which is the same value Apache uses.
  8492. * src/DownloadEngine.cc
  8493. * src/DownloadEngine.h
  8494. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Fixed misuse of multimap::find()
  8496. * src/HttpHeader.cc
  8497. * test/HttpHeaderTest.cc
  8498. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8500. option.
  8501. The asynchronous DNS is not capable of IPv6 yet.
  8502. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8503. least for HTTP download.
  8504. * src/AbstractCommand.cc
  8505. * src/AbstractCommand.h
  8506. * src/AsyncNameResolver.cc
  8507. * src/AsyncNameResolver.h
  8508. * src/DHTEntryPointNameResolveCommand.cc
  8509. * src/DHTEntryPointNameResolveCommand.h
  8510. * src/DownloadEngine.cc
  8511. * src/DownloadEngine.h
  8512. * src/FtpInitiateConnectionCommand.cc
  8513. * src/FtpInitiateConnectionCommand.h
  8514. * src/HelpItemFactory.cc
  8515. * src/HttpInitiateConnectionCommand.cc
  8516. * src/HttpInitiateConnectionCommand.h
  8517. * src/InitiateConnectionCommand.cc
  8518. * src/InitiateConnectionCommand.h
  8519. * src/Makefile.am
  8520. * src/Makefile.in
  8521. * src/NameResolver.cc
  8522. * src/NameResolver.h
  8523. * src/OptionHandlerFactory.cc
  8524. * src/SocketCore.cc
  8525. * src/SocketCore.h
  8526. * src/Util.cc
  8527. * src/Util.h
  8528. * src/option_processing.cc
  8529. * src/prefs.h
  8530. * src/usage_text.h
  8531. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Updated man page: --quiet, --header were added.
  8533. --metalink-servers and --enable-http-keep-alive option were updated.
  8534. * doc/aria2c.1
  8535. * doc/aria2c.1.html
  8536. * doc/aria2c.1.txt
  8537. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Enable HTTP keep-alive by default.
  8539. * src/HelpItemFactory.cc
  8540. * src/option_processing.cc
  8541. * src/usage_text.h
  8542. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Disable http keep-alive if the remote server is not HTTP/1.1.
  8544. * src/HttpConnection.cc
  8545. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Receive content body of 302 response so that the connection can be
  8547. reused later when http keep-alive is enabled.
  8548. * src/HttpNullDownloadCommand.cc
  8549. * src/HttpNullDownloadCommand.h
  8550. * src/HttpResponseCommand.cc
  8551. * src/HttpResponseCommand.h
  8552. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. const SharedHandle<Request> -> const SharedHandle<Request>&
  8554. * src/FtpDowndloadCommand.cc
  8555. * src/FtpDowndloadCommand.h
  8556. * src/HttpDownloadCommand.cc
  8557. * src/HttpDownloadCommand.h
  8558. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Fixed the bug that the control file(.aria2 file) is not renamed
  8560. according to tryAutoFileRenaming().
  8561. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8562. its control file exist, use them and continue download.
  8563. The old implementation didn't take into account of control file's
  8564. existence, so basically you couldn't continue download of renamed file.
  8565. * src/BtProgressInfoFile.h
  8566. * src/DefaultBtProgressInfoFile.cc
  8567. * src/DefaultBtProgressInfoFile.h
  8568. * src/NullProgressInfoFile.h
  8569. * src/RequestGroup.cc
  8570. * test/DefaultBtProgressInfoFileTest.cc
  8571. * test/MockBtProgressInfoFile.h
  8572. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Change the default value of --metalink-servers option from `5' to `1'.
  8574. * src/HelpItemFactory.cc
  8575. * src/option_processing.cc
  8576. * src/usage_text.h
  8577. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Reimplemented transparent metalink using Accept request header.
  8579. * src/HttpRequest.cc
  8580. * src/HttpRequest.h
  8581. * src/HttpRequestCommand.cc
  8582. * src/Metalink2RequestGroup.cc
  8583. * src/RequestGroup.cc
  8584. * src/RequestGroup.h
  8585. * test/HttpRequestTest.cc
  8586. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Bump up version number to 0.13.2a
  8588. * configure.ac
  8589. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Updated configure.ac using the result of autoscan.
  8591. * configure.ac
  8592. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8593. Fixed compilation error without gcrypt/openssl.
  8594. * src/DownloadCommand.cc
  8595. * src/DownloadCommand.h
  8596. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Reorganized version information so that it can be displayed in a
  8598. standard terminal screen without scrolling.
  8599. Removed http, ftp from Configuration section, because they are always
  8600. enabled.
  8601. * src/FeatureConfig.cc
  8602. * src/FeatureConfig.h
  8603. * src/main.cc
  8604. * src/messageDigest.cc
  8605. * src/messageDigest.h
  8606. * src/version_usage.cc
  8607. * test/FeatureConfigTest.cc
  8608. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. Masked user ID in log.
  8610. * src/FtpConnection.cc (sendUser)
  8611. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. Removed query part from filename in HTTP download. The query part means
  8613. the substring after "?" in URL. Firefox seems do the same thing.
  8614. A query part is sometimes very long and not suitable to filename,
  8615. so I think it is better to remove it from filename.
  8616. * src/HttpRequest.cc
  8617. * src/HttpRequest.h
  8618. * src/Request.cc
  8619. * src/Request.h
  8620. * test/HttpRequestTest.cc
  8621. * test/RequestTest.cc
  8622. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Rewritten Exception class. Throw exception object, not its pointer and
  8624. catch by reference, so that remove problematic delete operator for
  8625. catched exception.
  8626. * src/Exception.cc
  8627. * src/Exception.h
  8628. * test/ExceptionTest.cc
  8629. * src/*: All files throwing/catching exception.
  8630. * test/*: All files throwing/catching exception.
  8631. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Now auto protocol detection is enabled without -Z option.
  8633. But there is a important difference between with/without -Z optoin.
  8634. For example, if you type:
  8635. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8636. then, aria2 interprets there are 3 request groups:
  8637. (1) http://host/file, http://mirror/file <-- multi-source download
  8638. (2) file1.torrent
  8639. (3) file2.metalink
  8640. On the other hand, if you invoke above command with -Z option, it is
  8641. interpreted as 4 request groups:
  8642. (1) http://host/file
  8643. (2) file1.torrent
  8644. (3) file2.metalink
  8645. (4) http://mirror/file
  8646. I think usually user don't mix multi-source URLs and torrent files, so
  8647. there is no big problem here.
  8648. * src/main.cc
  8649. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Fixed the bug that causes segmentaion fault when reading XML containing
  8651. unescapsed character like '&'.
  8652. Also a modification was made which avoids adding unnecessary
  8653. characters stack and appending unused string.
  8654. * src/ExpatMetalinkProcessor.cc
  8655. * src/FileMetalinkParserState.h
  8656. * src/FilesMetalinkParserState.h
  8657. * src/FinMetalinkParserState.h
  8658. * src/HashMetalinkParserState.h
  8659. * src/InitialMetalinkParserState.h
  8660. * src/LanguageMetalinkParserState.h
  8661. * src/MetalinkMetalinkParserState.h
  8662. * src/MetalinkParserState.h
  8663. * src/MetalinkParserStateMachine.cc
  8664. * src/MetalinkParserStateMachine.h
  8665. * src/OSMetalinkParserState.h
  8666. * src/PieceHashMetalinkParserState.h
  8667. * src/PiecesMetalinkParserState.h
  8668. * src/ResourcesMetalinkParserState.h
  8669. * src/SizeMetalinkParserState.h
  8670. * src/SkipTagMetalinkParserState.h
  8671. * src/URLMetalinkParserState.h
  8672. * src/VerificationMetalinkParserState.h
  8673. * src/VersionMetalinkParserState.h
  8674. * src/XML2SAXMetalinkProcessor.cc
  8675. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Added StringFormat class, which internally calls vasprintf.
  8677. operator<< is defined for this class, so it can be used with iostream
  8678. classes nicely. SimpleLogger and following functions are rewritten
  8679. using StringFormat class.
  8680. Besides, now Logger class's methods are non-const, many classes
  8681. that has a const Logger* as a member variable are modified to remove
  8682. const qualifier from the variable declaration.
  8683. * src/HelpItemFactory.cc
  8684. * src/Request.cc
  8685. * src/SimpleLogger.cc
  8686. * src/StringFormat.cc
  8687. * src/StringFormat.h
  8688. * src/Util.cc
  8689. * src/option_processing.cc
  8690. * src/version_usage.cc
  8691. * test/StringFormatTest.cc
  8692. * src/*.h: The classes that has const Logger* as a member variable.
  8693. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8695. failed. Also fixed memory link when exception is thrown there.
  8696. * src/main.cc (AccRequestGroup)
  8697. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Added build-in "Accept-Features" support. For now only "metalink" is
  8699. used in this header field.
  8700. This "metalink" value is removed from the list when connecting URLs
  8701. fed by metalink file to avoid loop in "transparent" metlaink.
  8702. * src/HttpRequest.cc
  8703. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8704. header is also held in this variable. Also renamed setUserHeaders as
  8705. addHeader and it was rewritten to add header not just to clear the old
  8706. value.
  8707. * src/HttpRequestCommand.cc
  8708. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8709. from "Accept-Features" list.
  8710. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8711. default.
  8712. * src/RequestGroup.h
  8713. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8714. * src/a2functional.h: Included <string> because Concat class depends on
  8715. it.
  8716. * test/HttpRequestTest.cc
  8717. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Added comment
  8719. * src/RequestGroup.cc (createNextCommand)
  8720. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Capitalized METHOD_GET and METHOD_HEAD
  8722. * src/Request.cc
  8723. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Added getDownloadResults() method
  8725. * src/RequestGroupMan.cc
  8726. * src/RequestGroupMan.h
  8727. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Fixed the bug that aria2 exits when commands is empty() but
  8729. _routineCommands are not.
  8730. * src/DownloadEngine.cc
  8731. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Use the default value pulled from Option object in HelpItemFactory.
  8733. except options whose defualt value is embedded in a usage text.
  8734. * src/HelpItemFactory.cc
  8735. * src/HelpItemFactory.h
  8736. * src/option_processing.cc
  8737. * src/version_usage.cc
  8738. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Added --quiet option to make aria2 quiet (no console output).
  8740. --quiet option is tagged with ADVANCED.
  8741. * src/HelpItemFactory.cc
  8742. * src/LogFactory.cc
  8743. * src/LogFactory.h
  8744. * src/MultiUrlRequestInfo.cc
  8745. * src/MultiUrlRequestInfo.h
  8746. * src/NullStatCalc.h: New class. This class prints nothing.
  8747. * src/OptionHandlerFactory.cc
  8748. * src/main.cc
  8749. * src/option_processing.cc
  8750. * src/prefs.h
  8751. * src/usage_text.h
  8752. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8754. * src/HelpItemFactory.cc (createHelpItems):
  8755. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Fixed compilation error in ExpatMetalinkProcessor.cc
  8757. * src/ExpatMetalinkProcessor.cc
  8758. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Reuse socket if the origin server supports HTTP keep-alive and
  8760. --enable-http-keep-alive or --enable-http-pipelining is given.
  8761. The current implementation doesn't reuse the connections established
  8762. against proxy server.
  8763. * src/AbstractCommand.cc
  8764. * src/DownloadEngine.cc
  8765. * src/DownloadEngine.h
  8766. * src/HttpDownloadCommand.cc
  8767. * src/HttpInitiateConnectionCommand.cc
  8768. * src/HttpResponseCommand.cc
  8769. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. Rewritten HTTP keep-alive and pipelining routine.
  8771. * src/AbstractCommand.cc
  8772. * src/HttpConnection.cc
  8773. * src/HttpDownloadCommand.cc
  8774. * src/HttpRequest.cc
  8775. * src/HttpRequestCommand.cc
  8776. * src/HttpResponseCommand.cc
  8777. * src/Request.cc
  8778. * src/Request.h
  8779. * src/RequestGroup.cc
  8780. * test/HttpRequestTest.cc
  8781. * test/HttpResponseTest.cc
  8782. * test/RequestTest.cc
  8783. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. Added missing setUserHeaders call
  8785. * src/HttpRequestCommand.cc
  8786. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8788. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8789. waste of time because it is more likey false.
  8790. * src/FileAllocationDispatcherCommand.cc (execute)
  8791. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Now HTTP status and version are a member variable of HttpHeader.
  8793. HTTP status is processed as a string, not integer.
  8794. * src/AbstractProxyResponseCommand.cc
  8795. * src/HttpConnection.cc
  8796. * src/HttpHeader.cc
  8797. * src/HttpHeader.h
  8798. * src/HttpHeaderProcessor.cc
  8799. * src/HttpHeaderProcessor.h
  8800. * src/HttpResponse.cc
  8801. * src/HttpResponse.h
  8802. * test/HttpHeaderProcessorTest.cc
  8803. * test/HttpResponseTest.cc
  8804. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Added --header option. You can specify any number of additional HTTP headers
  8806. like:
  8807. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8808. Unlike other commad-line option, you can use --header option multiple times.
  8809. * src/HelpItemFactory.cc
  8810. * src/HttpRequest.{cc, h}
  8811. * src/HttpRequestCommand.cc
  8812. * src/OptionHandlerFactory.cc
  8813. * src/OptionHandlerImpl.h
  8814. * src/option_processing.cc
  8815. * src/prefs.h
  8816. * src/usage_text.h
  8817. * test/HttpRequestTest.cc (testUserHeaders)
  8818. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8819. Eliminates the time lag between sequential downloads and commands in
  8820. the same RequestGroup.
  8821. In old implementation, aria2 occasionally waits 1 seconds before
  8822. executing next command or RequestGroup.
  8823. This is really a waste of time, and new implementation eliminates
  8824. this unnecessary time lag.
  8825. * src/AbstractCommand.cc
  8826. * src/AutoSaveCommand.cc
  8827. * src/CheckIntegrityCommand.cc
  8828. * src/Command.{cc, h}
  8829. * src/DownloadEngine.{cc, h}
  8830. * src/DownloadEngineFactory.cc
  8831. * src/FileAllocationCommand.cc
  8832. * src/FileAllocationDispatcherCommand.cc
  8833. * src/FillRequestGroupCommand.cc
  8834. * src/FtpInitiateConnectionCommand.cc
  8835. * src/HaveEraseCommand.cc
  8836. * src/HttpInitiateConnectionCommand.cc
  8837. * src/HttpResponseCommand.cc
  8838. * src/RealtimeCommand.cc
  8839. * src/RequestGroup.cc
  8840. * src/RequestGroupMan.cc
  8841. * src/StreamFileAllocationEntry.cc
  8842. * src/TimeBasedCommand.{cc, h}
  8843. * src/TimedHaltCommand.cc
  8844. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8846. keyword explicit and SharedHandle's default constructor initializes
  8847. its internal obj to null, old implementation initializes it using
  8848. obj's default constructor.
  8849. To assign null, write SharedHandle<T> x(...); x.reset();
  8850. TODO: test/SharedHandleTest.cc needs more tests.
  8851. * src/SharedHandle.h
  8852. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Fixed type in man page.
  8854. * doc/aria2c.1.txt
  8855. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8857. * src/SimpleLogger.{cc, h}
  8858. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8859. Implemented auto protocol detection.
  8860. Now you can do:
  8861. aria2c -Z http://host/file file1.torrent file2.metalink
  8862. (Note: -Z option is required for auto protcol detection.)
  8863. Then aria2c downloads 3 files simultaneously:
  8864. 1. http://host/file
  8865. 2. file1.torrent <-- read local torrent file
  8866. 3. file2.metalink <-- read local Metalink file.
  8867. Same thing goes with -i option. Assume your uris.txt contans:
  8868. http://host/file
  8869. file1.torrent
  8870. file2.metalink
  8871. Then you can do: aria2c -i uris.txt
  8872. (Note: -Z option is not needed if -i option is given.)
  8873. * src/main.cc
  8874. * src/ProtocolDetector.{cc, h}
  8875. * test/ProtocolDetectorTest.cc
  8876. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8877. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8878. installed
  8879. * src/ARC4Encryptor.h
  8880. * src/ARC4Decryptor.h
  8881. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Renamed argument from 'errno' to 'err', since errno is confused with
  8883. errno defined in errno.h.
  8884. * src/LibgcryptARC4Decryptor.h
  8885. * src/LibgcryptARC4Context.h
  8886. * src/LibgcryptDHKeyExchange.h
  8887. * src/LibgcryptARC4Encryptor.h
  8888. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Rewritten choking algorithm.
  8890. * src/PeerChokeCommand.{cc, h}
  8891. * src/BtInterestedMessage.cc
  8892. * src/PeerSessionResource.{cc, h}
  8893. * src/DefaultPeerStorage.{cc, h}
  8894. * src/BtNotInterestedMessage.cc
  8895. * src/DefaultBtMessageDispatcher.{cc, h}
  8896. * src/BtMessageDispatcher.h
  8897. * src/Peer.{cc, h}
  8898. * src/BtLeecherStateChoke.{cc, h}
  8899. * src/BtSetup.cc
  8900. * src/BtSeederStateChoke.{cc, h}
  8901. * src/PeerStorage.h
  8902. * test/MockPeerStorage.h
  8903. * test/MockBtMessageDispatcher.h
  8904. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8905. Fixed compilation error on x84-64 platform.
  8906. * src/AuthConfig.cc: Included ostream.
  8907. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Rewritten getBasename() and getDirname(), without standard library
  8909. basename(), dirname().
  8910. * src/File.cc
  8911. * test/FileTest.cc
  8912. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Added Simplified Chinese translation. Also updated the following
  8914. translations: Polish, Dutch, German. Great thanks to all translators.
  8915. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Suppress content-range error when 'Content-Range' response header
  8917. doesn't contains bytes-unit specifier 'bytes'
  8918. * src/HttpHeader.cc (getRange)
  8919. * test/HttpHeaderTest.cc
  8920. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Fixed compilation error with g++-4.3
  8922. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Added missing include files for MinGW
  8924. * test/HttpHeaderProcessorTest.cc
  8925. * test/DHTRoutingTableSerializerTest.cc
  8926. * test/DHTRoutingTableDeserializerTest.cc
  8927. * test/UriListParserTest.cc
  8928. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. Now download line is printed nicely with no garbage at the end of
  8930. line. I use ioctl to get the columns of terminal.
  8931. If stdout is redirected to another device, instead of carriage return,
  8932. end of line '\n' character is used. This is feature request#1909659
  8933. * src/ConsoleStatCalc.cc (calculateStat)
  8934. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8935. Included a2time.h
  8936. * src/DHTMessageDispatcher.h
  8937. * src/DHTMessageEntry.h
  8938. * src/DHTReplaceNodeTask.h
  8939. * src/DHTMessageTracker.h
  8940. * src/Util.h
  8941. * src/CookieBox.h
  8942. * src/SocketCore.h
  8943. * src/DefaultBtMessageDispatcher.h
  8944. * src/SocketCore.cc
  8945. * src/Util.cc
  8946. * src/DHTPingTask.h
  8947. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Fixed high memory footprint when DHT is enabled.
  8949. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8950. queued than it is processed and the queue is getting longer. As a
  8951. consequence, momory usage is increased.
  8952. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8953. replacement cache in DHTBucket which is described in Kademlia paper.
  8954. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8955. DHTReplaceNodeTask.
  8956. * src/DHTBucket.{h, cc}
  8957. (cacheNode): New function.
  8958. (getCachedNodes): New function.
  8959. (dropNode): Push back cached node to _nodes.
  8960. * test/DHTBucketTest.cc
  8961. (testCacheNode): New test
  8962. (testDropNode): New test
  8963. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8965. the unused 4KB memory when ssl is not used.
  8966. * src/SocketCore.cc
  8967. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Added summary log for peer announce storage.
  8969. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8970. Removed cast
  8971. * src/DefaultPeerStorage.cc (addPeer)
  8972. Log exception message
  8973. * src/DHTMessageTracker.cc (handleTimeout)
  8974. Fixed casting
  8975. * test/HttpRequestTest.cc
  8976. * test/MetalinkProcessorTest.cc
  8977. * test/PieceTest.cc
  8978. * test/MetalinkEntryTest.cc
  8979. * test/SequenceTest.cc
  8980. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. * src/ParameterizedStringParser.cc (createLoop):
  8982. Removed unused variable sstep.
  8983. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8984. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. * src/Util.{h, cc}
  8986. (parseUInt): New function.
  8987. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8988. The actual range is uint32_t.
  8989. * test/UtilTest.cc
  8990. * src/ParameterizedStringParser.cc:
  8991. Use Util::parseUInt() for loop variables.
  8992. * test/ParameterizedStringParserTest.cc
  8993. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8994. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. Rewritten the functions for binding port.
  8996. * src/DHTConnectionImpl.{h, cc}
  8997. * src/PeerListenCommand.{h, cc}
  8998. * src/DHTSetup.cc
  8999. * src/BtSetup.cc
  9000. * test/DHTConnectionImplTest.cc
  9001. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9002. type cleanup for allmost all remaining files.
  9003. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Type clarification
  9005. * src/PeerSessionResource.{h, cc}
  9006. * src/DefaultPieceStorage.{h, cc}
  9007. * src/Peer.{h, cc}
  9008. * test/PeerSessionResourceTest.cc
  9009. Use div function
  9010. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9011. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9012. Type clarification
  9013. * src/DefaultPeerStorage.{h, cc}
  9014. * test/DefaultPeerStorageTest.cc
  9015. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Type clarification: size_t for length or size, uint64_t for file
  9017. length, off_t for file offset.
  9018. * src/DefaultBtProgressInfoFile.cc
  9019. * src/DefaultBtContext.{h, cc}
  9020. * src/DefaultBtInteractive.cc
  9021. * src/DownloadCommand.{h, cc}
  9022. * src/IteratableChunkChecksumValidator.{h, cc}
  9023. * src/SegmentMan.{h, cc}
  9024. * src/SingleFileDownloadContext.{h, cc}
  9025. * src/IteratableChecksumValidator.{h, cc}
  9026. * src/BtContext.h
  9027. * src/IteratableValidator.h
  9028. * src/DownloadContext.h
  9029. * test/SingleFileDownloadContextTest.cc
  9030. * test/DefaultBtContextTest.cc
  9031. * test/MockBtContext.h
  9032. * test/Metalink2RequestGroupTest.cc
  9033. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Type clarification: size_t for length or size, uint64_t for file
  9035. length, off_t for file offset.
  9036. * src/PiecedSegment.cc
  9037. * src/GrowSegment.h
  9038. * src/DefaultBtRequestFactory.h
  9039. * src/DefaultBtProgressInfoFile.cc
  9040. * src/UnknownLengthPieceStorage.h
  9041. * src/DefaultPieceStorage.cc
  9042. * src/UnknownLengthPieceStorage.cc
  9043. * src/DefaultBtInteractive.cc
  9044. * src/GrowSegment.cc
  9045. * src/BitfieldMan.h
  9046. * src/DownloadCommand.cc
  9047. * src/BtRequestFactory.h
  9048. * src/PiecedSegment.h
  9049. * src/DefaultPieceStorage.h
  9050. * src/Piece.cc
  9051. * src/DefaultBtRequestFactory.cc
  9052. * src/PieceStorage.h
  9053. * src/Segment.h
  9054. * src/Piece.h
  9055. * src/BitfieldMan.cc
  9056. * src/Util.cc
  9057. * test/DefaultBtProgressInfoFileTest.cc
  9058. * test/DefaultPieceStorageTest.cc
  9059. * test/MockPieceStorage.h
  9060. * test/BtRequestMessageTest.cc
  9061. * test/DefaultBtMessageDispatcherTest.cc
  9062. * test/BitfieldManTest.cc
  9063. * test/GrowSegmentTest.cc
  9064. * test/PieceTest.cc
  9065. * test/SegmentTest.cc
  9066. * test/SegmentManTest.cc
  9067. * test/DefaultBtRequestFactoryTest.cc
  9068. * test/MockBtRequestFactory.h
  9069. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Fixed compilation error with --disable-nls
  9071. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9072. in gettext.h causes the problem.
  9073. * src/common.h
  9074. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Removed subPiece related functions.
  9076. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9077. * src/DefaultPieceStorage.{h, cc}
  9078. * test/PieceTest.cc
  9079. * test/DefaultPieceStorageTest.cc
  9080. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9081. Use unsigned char for data store.
  9082. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Bump up version number to 0.13.0+1
  9084. * configure.ac
  9085. * Release 0.13.0+1
  9086. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Changed inactive connection timeout to 120.
  9088. To accept more mulually interested peers, disconnect peer when there
  9089. is no interest between us after certain time passed.
  9090. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9091. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9093. when compiled with async DNS support.
  9094. * src/DownloadEngine.cc
  9095. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9096. value '10' will be a little bit short when some DNS servers are
  9097. offline and several DNS servers are tried. It should be configured
  9098. by command-line option.
  9099. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Merged Ross's mingw patch.
  9101. * src/DHTRoutingTableDeserializer.cc
  9102. * src/DHTRoutingTableSerializer.cc
  9103. * src/Platform.{h, cc}
  9104. * src/timegm.h
  9105. * src/gettimeofday.h
  9106. * src/getaddrinfo.h
  9107. * src/SocketCore.h
  9108. * src/common.h
  9109. * src/inet_aton.h
  9110. * src/DownloadEngine.h
  9111. * src/gai_strerror.h
  9112. * src/a2netcompat.h
  9113. * configure.ac
  9114. * configure
  9115. * aclocal.m4
  9116. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Included missing iostream.
  9118. * test/AllTest.cc
  9119. * test/BtDependencyTest.cc
  9120. * test/BtExtendedMessageTest.cc
  9121. * test/DHTConnectionImplTest.cc
  9122. * test/DHTMessageFactoryImplTest.cc
  9123. * test/DHTMessageTrackerEntryTest.cc
  9124. * test/DHTNodeTest.cc
  9125. * test/DHTRoutingTableSerializerTest.cc
  9126. * test/DefaultBtAnnounceTest.cc
  9127. * test/DefaultBtContextTest.cc
  9128. * test/DefaultBtMessageFactoryTest.cc
  9129. * test/DefaultExtensionMessageFactoryTest.cc
  9130. * test/HandshakeExtensionMessageTest.cc
  9131. * test/HttpResponseTest.cc
  9132. * test/MetalinkProcessorTest.cc
  9133. * test/MultiFileAllocationIteratorTest.cc
  9134. * test/SocketCoreTest.cc
  9135. * test/UTPexExtensionMessageTest.cc
  9136. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Reorganized includes.
  9138. * src/NameResolver.cc
  9139. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Fixed compilation error without ares/c-ares
  9141. * src/NameResolver.h:
  9142. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Added a test for large file.
  9144. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9145. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Fixed the bug that file size is ignored if size > INT32_MAX
  9147. * src/SizeMetalinkParserState.cc (endElement):
  9148. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Bump up version number to 0.13.0
  9150. * configure.ac
  9151. * Release 0.13.0
  9152. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Updated Makfefile.am to make 'make dist' work.
  9154. Now packaged filename is aria2c-VERSION.tar.bz2.
  9155. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9156. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9157. Large file support is now configured by configure script.
  9158. * configure.ac
  9159. Removed unsused source files
  9160. * src/
  9161. * test/
  9162. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9163. Peer.h and BtContext.h respectively.
  9164. * src/Peer.h
  9165. * src/BtContext.h
  9166. Updated translations.
  9167. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9168. translations. Great thanks to all translators!;)
  9169. * po/*.{po, gmo}
  9170. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9172. statically declared sha1 MessageDigestContext.
  9173. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9174. initialization of short-lived MessageDigestContext.
  9175. * src/MessageDigestHelper.{h, cc}
  9176. * src/main.cc
  9177. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9178. the initialization of MessageDigestContext every time in validating
  9179. chunk checksum.
  9180. * src/DownloadCommand.{h, cc}
  9181. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Add a file descriptor which connected to fast peer(latency<1500) to
  9183. select(). This change reduced CPU load.
  9184. * src/PeerInteractionCommand.cc
  9185. * src/DefaultBtInteractive.{h, cc}
  9186. * src/BtInteractive.h
  9187. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Fixed the previous insufficient fix for possible busy loop.
  9189. * src/MSEHandshake.cc (identifyHandshakeType)
  9190. Removed unused functions.
  9191. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9192. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9193. Fixed possible busy loop if first 20 bytes are not received for a few
  9194. minutes.
  9195. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9196. * src/ReceiverMSEHandshakeCommand.cc
  9197. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. Fixed compilation error
  9199. * src/ExpatMetalinkProcessor.cc
  9200. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9202. * src/DHTBucket.cc
  9203. Removed unnecessary cast.
  9204. * src/HandshakeExtensionMessage.cc
  9205. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9207. is missing.
  9208. * src/OptionHandlerFactory.cc
  9209. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Fixed the bug that HAVE message is not sent for a piece they are
  9211. downloaded fom http/ftp server before any BitTorrent handshake is done
  9212. with peers.
  9213. * src/DefaultBtInteractive.cc
  9214. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9216. * src/Makefile.am
  9217. * src/Makefile.in
  9218. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Updated README. Added html version of README and man page.
  9220. * README
  9221. * README.html
  9222. * readme2html: Shell script to generate README.html from README using
  9223. asciidoc.
  9224. * doc/aria2c.1.html
  9225. * doc/makeman: Added the line to generate aria2c.1.html
  9226. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Fixed offset calculation.
  9228. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9229. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9230. Rewritten itos and uitos using template. llitos and ullitos are
  9231. replaced with itos and uitos respectively.
  9232. * src/Util.{h, cc}
  9233. * test/UtilTest.cc
  9234. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9236. of the number of bytes required for storing public key and shared
  9237. secret.
  9238. * src/LibgcryptDHKeyExchange.h
  9239. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9240. * src/MSEHandshake.cc
  9241. * test/DHKeyExchangeTest.cc
  9242. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Removed since they are not used.
  9244. * src/Xml2MetalinkProcessor.{h, cc}
  9245. * src/Socket.cc
  9246. * src/SegmentSplitter.{h, cc}
  9247. * test/Xml2MetalinkProcessorTest.cc
  9248. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9249. Fixed the bug that prevents aria2 from stopping other than by pressing
  9250. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9251. option. aria2 doesn't stop even after --seed-time is satisfied and
  9252. continues to output blank lines in the console.
  9253. * src/ReceiverMSEHandshakeCommand.cc
  9254. * src/PeerReceiveHandshakeCommand.cc
  9255. * src/PeerListenCommand.cc
  9256. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Bump up version number to 0.13.0rc
  9258. * configure.ac
  9259. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Updated man page and some usage text.
  9261. * doc/aria2c.1.txt
  9262. * src/usage_text.h
  9263. * po/*.{po, gmo}
  9264. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9265. Updated translations. Added Finnish and Hebrew translations.
  9266. Great thanks to all translators!
  9267. * po/*.{po, gmo}
  9268. * po/LINGUAS
  9269. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Log more detailed information about each message.
  9271. * src/DHTQueryMessage.{h, cc}
  9272. * src/DHTGetPeersMessage.{h, cc}
  9273. * src/DHTFindNodeReplyMessage.{h, cc}
  9274. * src/DHTGetPeersReplyMessage.{h, cc}
  9275. * src/DHTAnnouncePeerMessage.{h, cc}
  9276. * src/DHTResponseMessage.{h, cc}
  9277. * src/DHTFindNodeMessage.{h, cc}
  9278. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. Use constants defined in prefs.h
  9280. * src/option_processing.cc
  9281. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9283. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Make room for future enchancements for IPv6 addresses.
  9285. Bump up version number of dht.dat file format to 2.
  9286. Not compatible with previous version.
  9287. * src/DHTRoutingTableSerializer.cc
  9288. * src/DHTRoutingTableDeserializer.cc
  9289. * test/DHTRoutingTableSerializerTest.cc
  9290. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9291. Added handling for the return values from
  9292. PeerMessageUtil::createcompact().
  9293. * src/DefaultBtContext.cc (computeFastSet):
  9294. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. Fixed abort when peer's ip address is IPv4-mapped address.
  9296. * src/DefaultBtContext.cc (computeFastSet)
  9297. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9298. cannot handle IPv4-mapped addresses.
  9299. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9300. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Proper return value handling for OpenSSL functions.
  9302. * src/LibsslDHKeyExchange.h
  9303. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Random bytes generation using libgcrypt and OpenSSL.
  9305. * src/DHTUtil.{h, cc}
  9306. * test/DHTUtilTest.cc
  9307. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9309. received.
  9310. * src/DHTMessageReceiver.cc (receiveMessage)
  9311. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9312. Fixed the bug that a return code is always 0. BUG#1897704
  9313. If error occurred during the download or there exist unfinished
  9314. downloads, aria2 returns with code 1.
  9315. * src/RequestGroupMan.{h, cc}
  9316. * src/MultiUrlRequestInfo.{h, cc}
  9317. * src/main.cc
  9318. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. IPv6 support for SocketCore class.
  9320. TODO: In SocketCore::establishConnection(), this is insufficient to
  9321. determin the failure of connect() here because the socket is
  9322. non-blocking state. The next addresses should be tried after select().
  9323. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9324. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9325. instead which address family independent.
  9326. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9327. information in a compact peer format which is for IPv4 only.
  9328. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9329. this is a spec of BitTorrent protocol.
  9330. * src/SocketCore.{h, cc}
  9331. * src/PeerMessageUtil.cc
  9332. * test/SocketCoreTest.cc
  9333. * test/PeerMessageUtilTest.cc
  9334. * test/DHTConnectionImplTest.cc
  9335. Handle IPv4-mapped addresses.
  9336. * src/DHTNode.cc: Now identity is determined by node id.
  9337. * src/DHTMessageTrackerEntry.cc
  9338. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9339. should handle it.
  9340. * src/DHTRoutingTableDeserializer.cc
  9341. * src/DHTMessageFactoryImpl.cc
  9342. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Change the unit of --stop option from a minute to a second.
  9344. * src/usage_text.h
  9345. * src/DownloadEngineFactory.cc
  9346. * src/OptionHandlerFactory.cc
  9347. * src/message.h
  9348. * src/TimedHaltCommand.cc
  9349. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. Make listening socket non-block mode.
  9351. * src/FtpConnection.cc
  9352. * src/FtpNegotiationCommand.{h, cc}
  9353. * src/PeerListenCommand.cc
  9354. Fixed the bug that cause slow ftp negotiation.
  9355. * src/FtpNegotiationCommand.{h, cc}
  9356. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Added basic tag to --enable-dht, --dht-listen-port option.
  9358. * src/HelpItemFactory.cc (createHelpItems)
  9359. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Updated text.
  9361. * src/usage_text.h
  9362. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9363. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9364. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Determin _threadtholdSpeed in each constructor for
  9366. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9367. * src/ActivePeerConnectionCommand.{h, cc}
  9368. * src/PeerReceiveHandshakeCommand.{h, cc}
  9369. * src/BtSetup.cc
  9370. * src/BtConstants.h
  9371. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Added --bt-min-crypto-level and --bt-require-crypto options.
  9373. * src/OptionHandlerFactory.cc
  9374. * src/MSEHandshake.cc
  9375. * src/HelpItemFactory.cc
  9376. * src/option_processing.cc
  9377. * src/ReceiverMSEHandshakeCommand.cc
  9378. * src/prefs.h
  9379. * src/DefaultBtAnnounce.cc
  9380. * src/InitiatorMSEHandshakeCommand.cc
  9381. * src/usage_text.h
  9382. * test/MSEHandshakeTest.cc
  9383. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Bump version number to 0.13.0b
  9385. * configure.ac
  9386. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Updated doc.
  9388. * src/MessageDigestHelper.h:
  9389. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Use raw message digest as a token instead of its hexadecimal
  9391. representation.
  9392. * src/DHTTokenTracker.cc (generateToken)
  9393. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Added Message Stream Encryption(MSE) support.
  9395. Currently, aria2 accepts incoming connections with Obfuscation Header
  9396. and legacy BitTorrent Header and establishes connections with
  9397. Obfuscation Header first and if failed then retry with legacy
  9398. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9399. choose ARC4. The new option to change the default behavior is planned.
  9400. For tracker extension, "supportcrypto=1" is added statically.
  9401. * src/PeerInitiateConnectionCommand.{h, cc}
  9402. * src/PeerConnection.{h, cc}
  9403. * src/HandleRegistry.h
  9404. * src/SocketCore.h
  9405. * src/PeerReceiveHandshakeCommand.{h, cc}
  9406. * src/BtRegistry.{h, cc}
  9407. * src/PeerListenCommand.cc
  9408. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9409. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9410. * src/MSEHandshake.{h, cc}
  9411. * src/ARC4Encryptor.h
  9412. * src/ARC4Decryptor.h
  9413. * src/LibgcryptARC4Encryptor.h
  9414. * src/LibgcryptARC4Decryptor.h
  9415. * src/LibgcryptARC4Context.h
  9416. * src/LibsslARC4Encryptor.h
  9417. * src/LibsslARC4Decryptor.h
  9418. * src/LibsslARC4Context.h
  9419. * src/DHKeyExchange.h
  9420. * src/LibgcryptDHKeyExchange.h
  9421. * src/LibsslDHKeyExchange.h
  9422. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9423. * test/DefaultBtAnnounceTest.cc
  9424. * test/ARC4Test.cc
  9425. * test/DHKeyExchangeTest.cc
  9426. Removed prepareForRetry() because it is not used.
  9427. * src/PeerAbstractCommand.{h, cc}
  9428. * src/PeerInteractionCommand.{h, cc}
  9429. * src/PeerInitiateConnectionCommand.{h, cc}
  9430. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. Added the ability to load nodes from torrent file. These nodes are
  9432. added to the routing table when downloading that torrent.
  9433. * src/BtContext.h
  9434. * src/DefaultBtContext.{h, cc}
  9435. * src/DHTSetup.cc
  9436. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9437. hostname and port pair, and resolves all of them.
  9438. * src/NameResolver.{h, cc}: Added reset().
  9439. * src/RequestGroup.cc
  9440. * test/DefaultBtContextTest.cc
  9441. * test/MockBtContext.h
  9442. Removed assert() from DefaultBtContext and throw exception instead.
  9443. * src/DefaultBtContext.cc
  9444. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Fixed segmentation fault bug when exiting if dht is disabled.
  9446. * src/RequestGroup.cc
  9447. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Fixed typo in log message and define the message in message.h
  9449. * src/TimedHaltCommand.cc
  9450. * src/message.h
  9451. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Included RecoverableException.h to fix compilation error.
  9453. * test/DHTMessageFactoryImplTest.cc
  9454. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9455. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9456. * test/DHTPingMessageTest.cc
  9457. * test/DHTGetPeersMessageTest.cc
  9458. * test/DHTFindNodeMessageTest.cc
  9459. * test/DHTAnnouncePeerMessageTest.cc
  9460. * test/MockDHTMessage.h
  9461. * test/MockDHTMessageFactory.h
  9462. * test/MockDHTMessageDispatcher.h: New class.
  9463. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9465. virtual.
  9466. * src/DHTMessageDispatcher.h
  9467. * src/DHTMessageDispatcherImpl.{h, cc}
  9468. * src/DHTSetup.cc
  9469. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Adding handling of DHT error message. Just log error message and
  9471. throw exception.
  9472. * src/DHTMessageFactoryImpl.cc
  9473. * test/DHTMessageFactoryImplTest.cc
  9474. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Added handling of dynamic cast failure.
  9476. * src/DHTNodeLookupTask.cc
  9477. * src/DHTPeerLookupTask.cc
  9478. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Added the ability to stop aria2 itself when given time has passed
  9480. from start. Use --stop option to specify time in minutes.
  9481. When 0 is given, this feature is disabled.
  9482. * src/OptionHandlerFactory.cc
  9483. * src/TimeBasedCommand.h: Make _interval protected scope.
  9484. * src/HelpItemFactory.cc
  9485. * src/option_processing.cc
  9486. * src/prefs.h
  9487. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9488. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9489. Without this modification, the result list shows "ERR" when aria2 is
  9490. stopped by --stop option. It should be "INPR".
  9491. * src/DownloadEngine.{h, cc}
  9492. * src/DownloadEngineFactory.cc
  9493. * src/usage_text.h
  9494. * src/TimedHaltCommand.{h, cc}: New class.
  9495. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Bootstrap through node added by port message.
  9497. Currently bootstrap is executed if the number of buckets in routing
  9498. table is 1.
  9499. * src/BtPortMessage.{h, cc}
  9500. * src/DefaultBtMessageFactory.{h, cc}
  9501. * src/PeerInteractionCommand.cc
  9502. * test/BtPortMessageTest.cc
  9503. * test/MockDHTTask.h
  9504. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Extract the Peer class's member variables, which are only needed after
  9506. PeerInteractionCommand, into PeerSessionResource class.
  9507. This class is instantiated in PeerInteractionCommand class's ctor and
  9508. released in its dtor.
  9509. This will make Peer class lightweight and uses less memory for peers
  9510. which are not connected and wait in the queue.
  9511. * src/PeerChokeCommand.cc
  9512. * src/PeerSessionResource.{h, cc}
  9513. * src/PeerInteractionCommand.cc
  9514. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9515. * src/DefaultBtInteractive.cc
  9516. * src/BtPieceMessage.cc
  9517. * src/BtInterestedMessage.cc
  9518. * src/BtUnchokeMessage.cc
  9519. * src/DefaultPeerStorage.{h, cc}
  9520. * src/PeerInitiateConnectionCommand.cc
  9521. * src/ActivePeerConnectionCommand.cc
  9522. * src/BtNotInterestedMessage.cc
  9523. * src/DefaultBtMessageDispatcher.cc
  9524. * src/BtChokeMessage.cc
  9525. * src/BtRequestMessage.cc
  9526. * src/Peer.{h, cc}
  9527. * src/BtRegistry.h
  9528. * src/TrackerWatcherCommand.cc
  9529. * src/PeerReceiveHandshakeCommand.cc
  9530. * test/BtExtendedMessageTest.cc
  9531. * test/BtAllowedFastMessageTest.cc
  9532. * test/BtCancelMessageTest.cc
  9533. * test/DefaultPieceStorageTest.cc
  9534. * test/BtBitfieldMessageTest.cc
  9535. * test/BtHaveMessageTest.cc
  9536. * test/BtNotInterestedMessageTest.cc
  9537. * test/BtRequestMessageTest.cc
  9538. * test/PeerSessionResourceTest.cc
  9539. * test/DefaultBtMessageDispatcherTest.cc
  9540. * test/PeerTest.cc
  9541. * test/BtInterestedMessageTest.cc
  9542. * test/BtRejectMessageTest.cc
  9543. * test/BtChokeMessageTest.cc
  9544. * test/DefaultPeerStorageTest.cc
  9545. * test/BtHaveNoneMessageTest.cc
  9546. * test/BtHaveAllMessageTest.cc
  9547. * test/DefaultExtensionMessageFactoryTest.cc
  9548. * test/BtUnchokeMessageTest.cc
  9549. * test/DefaultBtMessageFactoryTest.cc
  9550. * test/HandshakeExtensionMessageTest.cc
  9551. * test/UTPexExtensionMessageTest.cc
  9552. * test/DefaultBtRequestFactoryTest.cc
  9553. * test/BtPieceMessageTest.cc
  9554. Removed typedef PeerStats.
  9555. * src/PeerStat.h
  9556. * src/SegmentMan.cc
  9557. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Added std namespace to copy, remove_copy, back_inserter,
  9559. front_inserter.
  9560. * src/RequestGroupMan.cc
  9561. * src/DefaultPieceStorage.cc
  9562. * src/StreamFileAllocationEntry.cc
  9563. * src/BtFileAllocationEntry.cc
  9564. * src/RequestGroup.cc
  9565. * src/MetalinkEntry.cc
  9566. * src/DelegatingPeerListProcessor.cc
  9567. * src/DefaultBtRequestFactory.cc
  9568. * src/DefaultBtMessageDispatcher.cc
  9569. * src/version_usage.cc: Included <algorithm>
  9570. * src/main.cc
  9571. * src/MetalinkParserController.cc
  9572. * src/DefaultBtContext.cc
  9573. * src/DownloadEngineFactory.cc
  9574. * src/a2algo.h
  9575. Removed.
  9576. * test/StreamUriListParserTest.cc
  9577. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9579. ActivePeerConnectionCommand when it is given and
  9580. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9581. * src/ActivePeerConnectionCommand.{h, cc}
  9582. * src/BtSetup.cc
  9583. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. Only add socket to DownloadEngine's select routine when peer or
  9585. localhost is unchoked and interested. This lowers CPU usage a
  9586. little bit.
  9587. * src/PeerInteractionCommand.cc
  9588. * src/PeerAbstractCommand.{h, cc}
  9589. * src/BtInteractive.h
  9590. * src/DefaultBtInteractive.{h, cc}
  9591. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9592. Revert previous change because get_peers message is needed for
  9593. announce_peer anyway.
  9594. * src/DHTGetPeersCommand.cc
  9595. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Request peers thought DHT only when download hasn't finished.
  9597. * src/DHTGetPeersCommand.cc
  9598. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9600. * src/DHTBucketRefreshTask.{h, cc}
  9601. * src/DHTSetup.cc
  9602. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9604. standard classes.
  9605. Included string.h where mem* function are used.
  9606. Added namespace aria2.
  9607. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Create directory before saving DHT routing table.
  9609. Now ios::failure is now handled properly.
  9610. * src/DHTAutoSaveCommand.cc
  9611. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Removed unnecessary cerr.
  9613. * src/DownloadEngine.cc
  9614. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Catch exception inside DHTMessageReceiver::receiveMessage().
  9616. Log unknown message.
  9617. * src/DHTMessageReceiver.{h, cc}
  9618. * src/DHTMessageFactory.h
  9619. * src/DHTMessageFactoryImpl.{h, cc}
  9620. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9621. * src/DHTInteractionCommand.cc
  9622. * src/DHTUnknownMessage.{h, cc}
  9623. * test/DHTUnknownMessageTest.cc
  9624. * test/MockDHTMessageFactory.h
  9625. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Commented out ip address comparison because a host can have multiple
  9627. ip addresses and it is hard to predict the hostname is resolved into
  9628. which one.
  9629. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9630. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. * po/Makefile.in: Removed since this is generated by configure.
  9632. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Fixed compiler warning about redefinition of SIZE_MAX.
  9634. Use common.h instead of config.h directly here.
  9635. * src/Platform.{h, cc}
  9636. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9637. here.
  9638. * common.h
  9639. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9640. Updated gettext related files.
  9641. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9642. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9643. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9644. Added DHT functionality, compatible with mainline.
  9645. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9646. You may need to specify entry point to DHT network using
  9647. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9648. Use --dht-listen-port to specify port number. Make sure that your
  9649. firewall configuration can pass through UDP traffic to the port.
  9650. The routing table is saved in $HOME/.aria2/dht.dat.
  9651. * src/DHT*
  9652. * src/BNode.{h, cc}
  9653. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9654. particular torrent.
  9655. * src/Data.cc: Rewritten ctor.
  9656. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9657. --dht-entry-point.
  9658. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9659. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9660. ends, remove BtContext from DHTPeerAnnounceStorage.
  9661. * src/BtPortMessage.{h, cc}: Rewritten.
  9662. * src/message.h
  9663. * src/OptionHandlerImpl.cc
  9664. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9665. --dht-entry-point.
  9666. * src/Dictionary.{h, cc} (remove): New function.
  9667. * src/prefs.h
  9668. * src/DefaultBtMessageFactory.h
  9669. * src/BtHandshakeMessage.cc
  9670. * src/ActivePeerConnectionCommand.cc
  9671. * src/SocketCore.{h, cc}: Added datagram socket support.
  9672. * src/DefaultBtMessageFactory.cc
  9673. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9674. Create DHT commands.
  9675. * src/BtMessageFactory.h
  9676. * src/PeerMessageUtil.{h, cc}
  9677. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Fixed the bug that log file is not written when configuration file doesn't exist.
  9679. This is caused by using Logger class before LogFactory is not configured.
  9680. BUG #1875079
  9681. * src/option_processing.cc
  9682. Warning message "configuration doesn't exist" is only printed when --conf is
  9683. given.
  9684. * src/option_processing.cc
  9685. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9687. ShaVisitor is now deprecated and slated to be removed.
  9688. * src/DefaultBtContext.cc
  9689. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9690. Externalize message to message.h
  9691. * src/Platform.cc
  9692. * src/message.h
  9693. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Set default domain and default path to cookie.
  9695. * src/HttpResponse.cc
  9696. * src/CookieBox.{h, cc}
  9697. * src/CookieParser.{h, cc}
  9698. * test/CookieParserTest.cc
  9699. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Added --no-conf and --conf-path command-line option.
  9701. --no-conf option disables loading aria2.conf file.
  9702. --conf-path option changes the configuration file path. The default
  9703. file path is $HOME/.aria2/aria2.conf
  9704. Added a warning message when the configuration file is not found.
  9705. * src/HelpItemFactory.cc
  9706. * src/option_processing.cc
  9707. * src/prefs.h
  9708. * src/usage_text.h
  9709. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9710. Added the message to inform users that other help categories are
  9711. available in -h option.
  9712. * src/version_usage.cc
  9713. * src/TagContainer.{h, cc}
  9714. * test/TagContainerTest.cc
  9715. * src/TaggedItem.{h, cc}
  9716. * test/TaggedItemTest.cc
  9717. * src/HelpItem.h
  9718. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9719. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9720. from PiecedSegment's ctor.
  9721. Previously Piece::getAllMissingBlockIndexes() is called from
  9722. PiecedSegment() but it is rather expensive since only first element is
  9723. used.
  9724. * src/PiecedSegment.cc
  9725. * src/Piece.{h, cc}
  9726. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9728. each time these functions are called.
  9729. * src/BitfieldMan.{h, cc}
  9730. * test/BitfieldManTest.cc
  9731. * src/array_fun.h
  9732. * test/array_funTest.cc
  9733. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9734. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9735. filtered. Removed unnecessary cast to int32_t.
  9736. * src/BitfieldMan.{h, cc}
  9737. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9739. payload length(4bytes) are received. This happens because lenbufLength
  9740. is not updated in this particular case and successive call of
  9741. receiveMessage() overwrites payload length with bytes recieved which
  9742. are payload body.
  9743. * src/PeerConnection.{h, cc}
  9744. * src/message.h
  9745. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9747. peer if there are peers that have same ipaddr and port.
  9748. I've experiened segmentation fault and "pure virtual function was
  9749. called" error.
  9750. * src/Peer.h
  9751. * test/PeerTest.cc
  9752. * src/DefaultPeerStorage.cc
  9753. * test/DefaultPeerStorageTest.cc
  9754. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Removed a call to isPowerOf() because it is no longer necessary here
  9756. and a request block is not always power of 2.
  9757. BUG#1866924
  9758. * src/PeerMessageUtil.cc (checkLength)
  9759. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Fixed the bug that always first found Segment is removed from
  9761. usedSegmentEntries. Removed unused functions.
  9762. * src/SegmentMan.{h, cc}
  9763. * test/SegmentManTest.cc
  9764. Fixed the bug that ServerHost is not removed.
  9765. * src/RequestGroup.cc
  9766. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9767. Fixed the bug that SegmentMan::completeSegment() is not called
  9768. even if Segment is complete when --lowest-speed-limit is enabled.
  9769. BUG#1864525
  9770. * src/DownloadCommand.{h, cc}
  9771. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Fixed: hash algorithm 'sha1' is always used.
  9773. * src/DownloadCommand.cc (validatePieceHash)
  9774. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9775. Added --enable-peer-exchange command-line option.
  9776. * src/OptionHandlerFactory.cc
  9777. * src/HelpItemFactory.cc
  9778. * src/option_processing.cc
  9779. * src/usage_text.h
  9780. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9781. Move extension from BtRuntime to ExtensionMessageFactory, because
  9782. extension can be specified per peer, not per torrent.
  9783. * src/DefaultBtInteractive.cc
  9784. * src/BtRuntime.h
  9785. * src/ExtendedMessagingAware.h
  9786. * src/ExtensionMessageFactory.h
  9787. * src/DefaultExtensionMessageFactory.cc
  9788. * test/DefaultExtensionMessageFactoryTest.cc
  9789. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Added categorized option help. Specify category using --help option.
  9791. Also added the ability to search options in forward match.
  9792. * src/HelpItem.{h, cc}
  9793. * test/HelpItemTest.cc
  9794. * src/HelpItemFactory.{h, cc}
  9795. * src/TagContainer.{h, cc}
  9796. * test/TagContainerTest.cc
  9797. * src/option_processing.cc
  9798. * src/prefs.h
  9799. * src/TaggedItem.{h, cc}
  9800. * test/TaggedItemTest.cc
  9801. * src/version_usage.cc
  9802. * src/help_tags.h
  9803. * src/usage_text.h
  9804. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Fixed segmentation fault when bad torrent metainfo is parsed.
  9806. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9807. and then throw exception or skip it.
  9808. * src/DefaultBtContext.{h, cc}
  9809. * test/DefaultBtContextTest.cc
  9810. * src/AnnounceList.cc
  9811. * src/CompactPeerListProcessor.cc
  9812. * src/message.h
  9813. * src/DefaultBtAnnounce.{h, cc}
  9814. * test/DefaultBtAnnounceTest.cc
  9815. * src/BencodeVisitor.cc
  9816. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Added missing "B"(=Byte). So now the message looks like this:
  9818. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9819. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9820. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9821. Show the seed ratio after torrent downloads.
  9822. For example, after torrent download completed and --seed-time and
  9823. --seed-ratio conditions are fulfilled, following message is printed
  9824. right after "Download complete: .....":
  9825. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9826. * src/RequestGroupMan.cc
  9827. * src/RequestGroup.{h, cc}
  9828. * src/message.h
  9829. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9830. Remove a defunct control file. A defunct control file means that while
  9831. it exists, but the corresponding download file is missing.
  9832. After its removal, a download restarts from the beginning.
  9833. * src/RequestGroup.cc
  9834. * src/message.h
  9835. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. Allocate bitfield in Peer when it is really used. More specifically,
  9837. bitfield in Peer is allocated after the connection is established and
  9838. deallocated when the connection is dropped.
  9839. Since 2 parameters(piece length and total length) was removed from the
  9840. constructor of Peer class, many test classes were modified accordingly.
  9841. See svn log for more detailed information.
  9842. * src/PeerInteractionCommand.cc
  9843. * src/CompactPeerListProcessor.cc
  9844. * src/Peer.cc
  9845. * src/DefaultPeerListProcessor.cc
  9846. * src/PeerListenCommand.cc
  9847. * src/PeerReceiveHandshakeCommand.cc
  9848. Fixed memory leak
  9849. * src/Piece.cc
  9850. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9852. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9853. command-line options.
  9854. * src/option_processing.cc
  9855. * src/ActivePeerConnectionCommand.cc
  9856. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9857. Send have message to peer if it already has the piece.
  9858. * src/BtHaveMessage.{h, cc}
  9859. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9861. port.
  9862. * src/DefaultPeerStorage.{h, cc}
  9863. * test/DefaultPeerStorageTest.cc
  9864. * src/HandshakeExtensionMessage.cc
  9865. * test/HandshakeExtensionMessageTest.cc
  9866. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9867. * src/PeerStorage.h
  9868. * test/MockPeerStorage.h
  9869. * src/PeerListenCommand.cc
  9870. * src/PeerReceiveHandshakeCommand.cc
  9871. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. Added --metalink-enable-unique-protocol option.
  9873. * src/Metalink2RequestGroup.cc
  9874. * src/option_processing.cc
  9875. * src/prefs.h
  9876. * src/version_usage.cc
  9877. * doc/aria2c.1.txt
  9878. * doc/aria2c.1
  9879. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Allow a peer in incomingPeer to be added peers.
  9881. * src/DefaultPeerStorage.cc
  9882. * test/DefaultPeerStorageTest.cc
  9883. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9885. I could reproduce this bug in following procedure:
  9886. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9887. 2. Restart aria2.
  9888. 3. You see the download stopped around 99%.
  9889. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9890. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9891. If timeout is reached, then _nextCommand is unused and it may contains
  9892. segments and they won't be canceled. Actually, timeout is not needed
  9893. here because if the server dropped connection, then retry is made.
  9894. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Added uTorrent compatible Peer Exchange.
  9896. * src/BencodeVisitor.{h, cc}
  9897. * test/BencodeVisitorTest.cc
  9898. * src/BtConstants.h
  9899. * src/BtContext.h: Added 'private' flag.
  9900. * src/BtExtendedMessage.{h, cc}
  9901. * test/BtExtendedMessageTest.cc
  9902. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9903. reserved field.
  9904. * test/BtHandshakeMessageTest.cc
  9905. * src/BtMessageFactory.h
  9906. * src/BtRegistry.h
  9907. * src/BtRuntime.h: This class holds default extension message IDs for
  9908. aria2. By default, aria2 uses ID 8 for ut_pex.
  9909. * src/DefaultBtContext.cc
  9910. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9911. When it is true, aria2 enables ut_pex. This value is set by
  9912. PeerInteractionCommand.
  9913. * src/DefaultBtMessageFactory.{h, cc}
  9914. * test/DefaultBtMessageFactoryTest.cc
  9915. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9916. handling to DefaultBtInteractive class.
  9917. * src/DefaultExtensionMessageFactory.{h, cc}
  9918. * test/DefaultExtensionMessageFactoryTest.cc
  9919. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9920. the container(peers and incomingPeers. The equality is determined by
  9921. Peer::id).
  9922. * test/DefaultPeerStorageTest.cc
  9923. * src/ExtensionMessage.h
  9924. * test/MockExtensionMessage.h
  9925. * src/ExtensionMessageFactory.h
  9926. * test/MockExtensionMessageFactory.h
  9927. * src/HandshakeExtensionMessage.{h, cc}
  9928. * test/HandshakeExtensionMessageTest.cc
  9929. * src/MetaEntry.h
  9930. * src/Peer.{h, cc}
  9931. * src/PeerInteractionCommand.cc
  9932. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9933. addIncomingPeer.
  9934. * src/PeerMessageUtil.{h, cc}
  9935. * src/PeerObject.h
  9936. * src/UTPexExtensionMessage.{h, cc}
  9937. * test/UTPexExtensionMessageTest.cc
  9938. * src/message.h
  9939. * src/prefs.h
  9940. Fixed the bug that returns incomplete data when it contains null
  9941. character. A convenient constructor was also added.
  9942. * src/Data.{h, cc}
  9943. Rewritten.
  9944. * src/CompactPeerListProcessor.cc
  9945. Fixed typos.
  9946. * src/message.h
  9947. * src/MetaFileUtil.cc
  9948. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9949. Added "Status Legend" label to the explanation text of 'stat' in
  9950. download result and moved it to the last. BUG#1848214
  9951. * src/RequestGroupMan.cc
  9952. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9953. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9954. * src/Makefie.am
  9955. * test/Makefile.am
  9956. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9957. Fixed the bug that prevents aria2 from loading cookie file when expire
  9958. value is greater than 2^31-1. BUG#1851066
  9959. * src/CookieBoxFactory.cc
  9960. * test/CookieBoxFactoryTest.cc
  9961. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9962. Fixed possible memory leak when an exception is thrown.
  9963. * src/XML2SAXMetalinkProcessor.cc
  9964. Added Expat support. If both libxml2 and Expat are installed, then
  9965. libxml2 is used by default.
  9966. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9967. ExpatMetalinkProcessor according to the configuration.
  9968. * src/ExpatMetalinkProcessor.{h, cc}
  9969. * src/main.cc: Removed libxml2 specific header and init/free function.
  9970. * src/MetalinkProcessorFactory.{h, cc}
  9971. * src/MetalinkHelper.cc
  9972. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9973. * src/MetalinkProcessor.h
  9974. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9975. MetalinkProcessorTest is used instead.
  9976. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9977. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9978. MetalinkProcessorFactory::newInstance().
  9979. * m4/libexpat.m4
  9980. * configure.ac: Added configuration options for libexpat.
  9981. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Disabled -s option in metalink download.
  9983. * src/Metalink2RequestGroup.cc
  9984. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. If several protocols are available for a mirror in metalink file,
  9986. aria2 now use one of them. --metalink-preferred-protocol option was
  9987. added to specify the preference of protocol.
  9988. * src/AbstractCommand.cc
  9989. * src/OptionHandlerFactory.cc
  9990. * src/ServerHost.{h, cc}
  9991. * src/Metalink2RequestGroup.cc
  9992. * src/RequestGroup.{h, cc}
  9993. * test/RequestGroupTest.cc
  9994. * src/option_processing.cc
  9995. * src/prefs.h
  9996. * src/HttpResponseCommand.cc
  9997. * src/MetalinkResource.{h, cc}
  9998. * src/FtpNegotiationCommand.cc
  9999. * src/MetalinkEntry.{h, cc}
  10000. * src/MetalinkEntryTest.cc
  10001. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Code cleanup and added debug log.
  10003. * src/PeerConnection.cc
  10004. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Compiler error fix: applied the patch by Tiziano Mueller
  10006. * src/RequestGroup.cc
  10007. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10009. in stopped and completed event.
  10010. * src/AnnounceList.{h, cc}
  10011. * test/AnnounceListTest.cc
  10012. * src/DefaultBtAnnounce.cc
  10013. * test/DefaultBtAnnounceTest.cc
  10014. Sorted URLs.
  10015. * test/Metalink2RequestGroupTest.cc
  10016. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Removed unnecessary string copy. Updated doc and corrected indentation.
  10018. * src/Base64.cc
  10019. Fixed compilation warnings
  10020. * test/DataTest.cc
  10021. * test/HttpRequestTest.cc
  10022. * test/MetaFileUtilTest.cc
  10023. * test/RequestTest.cc
  10024. * Release 0.12.0
  10025. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Updated translations
  10027. * po/{de,fr,ja,nl,ru}.po
  10028. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10029. translations. Many thanks to translators.
  10030. * po/{ca,es,it,pt_BR,sv}.po
  10031. * po/LINGUAS
  10032. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Added a notice about URL
  10034. * src/version_usage.cc
  10035. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10036. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10037. aria2 repeatedly sends stopped request when tracker returns error code.
  10038. * src/AnnounceList.cc
  10039. * test/AnnounceListTest.cc
  10040. * src/AnnounceTier.h
  10041. Added a message when ctrl-c is hit.
  10042. Now second ctrl-c is also handled in signal handler.
  10043. * src/RequestGroupMan.{h, cc}
  10044. * src/RequestGroup.{h, cc}
  10045. * src/MultiUrlRequestInfo.cc
  10046. * src/DownloadEngine.cc
  10047. * src/TrackerWatcherCommand.cc
  10048. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. Code cleanup
  10050. * src/Base64.cc (encode)
  10051. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Changed Direct/IO enable/disable procesure in file allocation routine.
  10053. * src/SingleFileAllocationIterator.cc
  10054. (SingleFileAllocationIterator):
  10055. Disable directIO if offset is not multiple of 512.
  10056. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10057. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10058. Enable created SingleFileAllocationIterator's directIO.
  10059. * src/FileAllocationEntry.cc
  10060. (FileAllocationEntry): Enable directIO here.
  10061. (~FileAllocationEntry): Disable directIO here.
  10062. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10064. * src/Peer.{h, cc}
  10065. * src/DefaultPieceStorage.cc
  10066. * test/DefaultPieceStorageTest.cc
  10067. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10068. Rewritten direct I/O support routine
  10069. * src/SingleFileAllocationIterator.cc
  10070. * src/MultiDiskAdaptor.{h, cc}
  10071. * src/ByteArrayDiskWriter.h
  10072. * src/AbstractSingleDiskAdaptor.h
  10073. * src/AbstractDiskWriter.cc
  10074. * src/DefaultPieceStorage.cc
  10075. * src/DiskWriter.h
  10076. * src/BinaryStream.h
  10077. * src/IteratableChunkChecksumValidator.cc
  10078. * src/IteratableChecksumValidator.cc
  10079. * src/CheckIntegrityEntry.cc
  10080. * src/FileAllocationEntry.cc
  10081. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10082. Fixed typo
  10083. * src/version_usage.cc
  10084. Updated doc
  10085. * doc/aria2c.1.txt
  10086. * doc/aria2c.1
  10087. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10088. Fixed compile error without message digest support.
  10089. * src/FileMetalinkParserState.cc
  10090. * src/MetalinkParserController.{h, cc}
  10091. * test/XML2SAXMetalinkProcessorTest.cc
  10092. * test/MetalinkParserControllerTest.cc
  10093. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10094. Enable direct I/O support in checksum checking.
  10095. * src/IteratableChunkChecksumValidator.{h, cc}
  10096. * test/IteratableChunkChecksumValidatorTest.cc
  10097. * src/CheckIntegrityEntry.cc
  10098. * src/PieceHashCheckIntegrityEntry.cc
  10099. * src/IteratableChecksumValidator.{h, cc}
  10100. * src/BtCheckIntegrityEntry.cc: Added doc.
  10101. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. Added --allow-piece-length-change option.
  10103. * src/DefaultBtProgressInfoFile.cc
  10104. * test/DefaultBtProgressInfoFileTest.cc
  10105. * src/OptionHandlerFactory.cc
  10106. * src/option_processing.cc
  10107. * src/prefs.h
  10108. * src/version_usage.cc
  10109. * doc/aria2c.1.txt
  10110. * doc/aria2c.1
  10111. Fixed: duplicated result entry appears when exception is thrown in
  10112. RequestGroup::createInitiateConnectionCommand().
  10113. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10114. Add RequestGroup to _requestGroup after RequetGroup::
  10115. createInitiateConnectionCommand() succeeds.
  10116. Externalized message
  10117. * src/XML2SAXMetalinkProcessor.cc
  10118. * src/message.h
  10119. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Forced download abort when received negative response from http/ftp
  10121. server.
  10122. * src/HttpResponseCommand.cc
  10123. * src/FtpNegotiationCommand.cc
  10124. * src/HttpResponse.cc
  10125. * src/FtpConnection.cc
  10126. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10128. the predecessor, Xml2MetalinkParser class.
  10129. I tested them against 94KB metalink file with 1234 chunk checksums.
  10130. The new one parsed it in 22msec, while it took 6000msec with old one.
  10131. * src/XML2SAXMetalinkProcessor.{h, cc}
  10132. * test/XML2SAXMetalinkProcessorTest.cc
  10133. * src/MetalinkParserController.{h, cc}
  10134. * test/MetalinkParserControllerTest.cc
  10135. * src/MetalinkParserState.h: Also added 16 subclasses.
  10136. * src/main.cc
  10137. * src/Metalink2RequestGroup.cc
  10138. * src/MetalinkHelper.cc
  10139. * src/MetalinkEntry.cc
  10140. * src/ChunkChecksum.h
  10141. Rewritten Base64 class for better performance.
  10142. * src/Base64.{h, cc}
  10143. * test/Base64Test.cc
  10144. * src/HttpRequest.cc
  10145. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. Fixed the bug#1841757: aria2 will connect to server to only get
  10147. file size.
  10148. * src/StreamFileAllocationEntry.cc
  10149. * src/option_processing.cc
  10150. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10151. downloads.
  10152. * src/FtpNegotiationCommand.cc
  10153. Suppressed wrong message when finding PreDownloadHandler
  10154. * src/RequestGroup.cc
  10155. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Updated usage
  10157. * src/version_usage.cc
  10158. Updated man page
  10159. * doc/aria2c.1.txt
  10160. * doc/aria2c.1
  10161. Updated po files
  10162. * po/aria2c.pot
  10163. * po/*.po
  10164. * po/*.gmo
  10165. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10166. Eliminated g++-4.2 warning
  10167. * src/DownloadHandlerConstants.{h, cc}
  10168. * src/Util.cc
  10169. * test/MetaFileUtilTest.cc
  10170. * test/PStringBuildVisitorTest.cc
  10171. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10172. * src/RequestGroup.cc
  10173. * src/BtCheckIntegrityEntry.cc
  10174. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Fixed a2io.h
  10176. * src/a2io.h
  10177. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Added direct I/O support. The current implementation uses O_DIRECT,
  10179. which is not posix standard and is tested on linux 2.6.21.
  10180. Currently only file allocation uses direct I/O.
  10181. * src/SingleFileAllocationIterator.{h, cc}
  10182. * test/SingleFileAllocationIteratorTest.cc
  10183. * src/MultiFileAllocationIterator.{h, cc}
  10184. * test/MultiFileAllocationIteratorTest.cc
  10185. * src/BinaryStream.h
  10186. * src/DiskWriter.h
  10187. * src/AbstractDiskWriter.{h, cc}
  10188. * src/ByteArrayDiskWriter.h
  10189. * src/DiskAdaptor.h
  10190. * src/AbstractSingleDiskAdaptor.{h, cc}
  10191. * src/MultiDiskAdaptor.{h, cc}
  10192. * src/FileAllocationEntry.cc
  10193. * src/Util.{h, cc}
  10194. * src/OptionHandlerFactory.cc
  10195. * src/prefs.h
  10196. * src/version_usage.cc
  10197. * src/option_processing.cc
  10198. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10199. handleException.
  10200. * src/MultiFileAllocationIterator.cc
  10201. Added EINTR handling
  10202. * src/SocketCore.cc
  10203. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10204. Updated usage
  10205. * src/version_usage.cc
  10206. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. Applied Ross's patch for MinGW port.
  10208. * src/DownloadEngine.h
  10209. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. Set Content-Type to SingleFileDownloadContext when http response is
  10211. received.
  10212. * src/HttpResponseCommand.cc
  10213. * src/HttpResponse.{h, cc}
  10214. * test/HttpResponseTest.cc
  10215. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. Rewritten to add content-type support.
  10217. * src/DownloadHandler.{h, cc}
  10218. * src/BtPostDownloadHandler.{h, cc}
  10219. * test/BtPostDownloadHandlerTest.cc
  10220. * src/MetalinkPostDownloadHandler.{h, cc}
  10221. * test/MetalinkPostDownloadHandlerTest.cc
  10222. * src/PostDownloadHandler.{h, cc}
  10223. * src/DownloadHandlerConstants.{h, cc}
  10224. * src/RequestGroup.cc
  10225. * src/HttpResponseCommand.cc
  10226. * src/FtpNegotiationCommand.cc
  10227. * src/SingleFileDownloadContext.{h, cc}
  10228. * src/RequestGroup.h
  10229. * src/RequestGroupCriteria.h
  10230. * src/ContentTypeRequestGroupCriteria.h
  10231. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10232. If it is give, metalink/torrent file is not written to the disk, but
  10233. just is kept in memory. Parsing is occurred on memory.
  10234. * src/MetalinkHelper.{h, cc}
  10235. * src/MetalinkProcessor.h
  10236. * src/Xml2MetalinkProcessor.{h, cc}
  10237. * test/Xml2MetalinkProcessorTest.cc
  10238. * src/DownloadHandlerFactory.{h, cc}
  10239. * test/DownloadHandlerFactoryTest.cc
  10240. * src/PreDownloadHandler.{h, cc}
  10241. * src/OptionHandlerFactory.cc
  10242. * src/DefaultBtContext.{h, cc}
  10243. * test/DefaultBtContextTest.cc
  10244. * src/version_usage.cc
  10245. * src/Metalink2RequestGroup.{h, cc}
  10246. * src/RequestGroup.{h, cc}
  10247. * src/a2functional.h
  10248. * test/a2functionalTest.cc
  10249. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10250. * src/OptionHandlerImpl.h
  10251. * src/prefs.h
  10252. * src/Util.{h, cc}
  10253. * test/UtilTest.cc
  10254. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10255. memory usage.
  10256. * src/RequestGroupMan.{h, cc}
  10257. * src/DownloadEngine.cc
  10258. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10259. WeakHandle to SharedHandle because WeakHandle could be null.
  10260. * src/RequestGroup.{h, cc}
  10261. * src/DownloadEngineFactory.cc
  10262. * src/DownloadResult.h
  10263. Set totalLength after download finished
  10264. * src/UnknownLengthPieceStorage.{h, cc}
  10265. Keep torrent file specified in metalink in memory.
  10266. * src/Metalink2RequestGroup.cc
  10267. * src/BtDependency.cc
  10268. * src/TrueRequestGroupCriteria.h
  10269. Fixed the bug: seekg is used where seekp should be used.
  10270. * src/ByteArrayDiskWriter.cc
  10271. * test/ByteArraydiskWriterTest.cc
  10272. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10273. Fixed syntax error
  10274. * test/SequenceTest.cc
  10275. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10277. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10278. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10279. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10280. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10281. Added the check to see whether ares_host_callback accepts timeouts
  10282. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10283. * src/NameResolver.{h, cc}
  10284. * m4/libcares.m4
  10285. * configure.ac: Set C++ for language choice.
  10286. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. Fixed: compilation fails without c-ares/ares
  10288. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10289. Generate http/ftp commands only when download is incomplete.
  10290. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10291. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. Corrected typo. Examples are removed since they are available in man
  10293. page.
  10294. * src/version_usage.cc
  10295. Updated man page.
  10296. * doc/aria2c.1
  10297. * doc/aria2c.1.txt
  10298. * doc/makeman: Commented out sed command.
  10299. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Throw DlAbortEx when a remote file is not found.
  10301. * src/HttpResponse.cc
  10302. * src/FtpNegotiationCommand.cc
  10303. * src/message.h
  10304. Overwrite an existing file if --allow-overwrite=true is given.
  10305. * src/RequestGroup.cc
  10306. Removed unused functions
  10307. * src/AbstractCommand.h
  10308. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. Removed 'extern' from 'extern typedef ...' in src/*.h
  10310. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Updated usage
  10312. * src/version_usage.cc
  10313. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Trim announce URL
  10315. * src/DefaultBtContext.cc
  10316. * test/ShaVisitorTest.cc
  10317. Trim argument s. Give trimed s to exception constructor.
  10318. * src/Util.cc (parseInt)(parseLLInt)
  10319. * test/UtilTest.cc
  10320. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10321. Set precision back to 1.
  10322. * src/ConsoleStatCalc.cc (calculateStat)
  10323. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Replaced strtol with Util::parseInt
  10325. * src/ChunkedEncoding.cc
  10326. * src/HttpConnection.cc
  10327. * src/CookieBoxFactory.cc
  10328. * src/ParameterizedStringParser.cc
  10329. * src/Util.cc
  10330. * test/UtilTest.cc
  10331. * test/OptionHandlerTest.cc
  10332. * src/Request.cc
  10333. Throw exception when empty string is given. The message for exception
  10334. changed.
  10335. * src/Util.cc (parseInt)(parseLLInt)
  10336. * src/message.h
  10337. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10339. set to 1.
  10340. * src/ConsoleStatCalc.cc (calculateStat)
  10341. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. Preallocate non-requested file which is adjacent forward to requested
  10343. file('requested' files means the files given in --select-file option)
  10344. if they share a same piece.
  10345. This fixes long pause in the file system which doesn't support sparse
  10346. files like FAT32 while downloading.
  10347. * src/MultiFileAllocationIterator.{h, cc}
  10348. * test/MultiFileAllocationIteratorTest.cc
  10349. * src/FileEntry.{h, cc}
  10350. Removed unused _option.
  10351. * src/MultiDiskAdaptor.h
  10352. * test/MultiDiskAdaptorTest.cc
  10353. * src/DefaultPieceStorage.cc
  10354. Set the default value of --seed-ratio to 1.0.
  10355. If 0.0 is given, then seeding continues regardless of share ratio.
  10356. * src/version_usage.cc
  10357. * src/option_processing.cc
  10358. * src/BtSetup.cc
  10359. * doc/aria2c.1.txt
  10360. * doc/aria2c.1
  10361. Fixed: Selective download is not working in BitTorrent
  10362. * src/RequestGroup.cc
  10363. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10364. * src/PieceStorage.h
  10365. * test/MockPieceStorage.h
  10366. * src/UnknownLengthPieceStorage.h
  10367. * src/DefaultPieceStorage.{h, cc}
  10368. * src/Metalink2RequestGroup.cc
  10369. * src/RequestGroup.cc
  10370. * src/Sequence.h
  10371. * test/SequenceTest.cc
  10372. * src/IntSequence.h
  10373. * src/message.h
  10374. * src/Util.{h, cc}
  10375. * test/UtilTest.cc
  10376. Added new function 'parse' to catch exception thrown by subclass's
  10377. parseArg
  10378. * src/OptionHandler.h
  10379. * src/OptionParser.cc
  10380. * src/NameMatchOptionHandler.h
  10381. * src/OptionHandlerImpl.h
  10382. * test/OptionHandlerTest.cc
  10383. Added IntegerRangeOptionHandler. Used for --listen-port and
  10384. --select-file. Now --listen-port accepts range of port.
  10385. * src/OptionHandlerFactory.cc
  10386. * src/version_usage.cc
  10387. * src/OptionHandlerImpl.h
  10388. * src/option_processing.cc
  10389. * src/BtSetup.cc
  10390. * src/PeerListenCommand.{h, cc}
  10391. * doc/aria2c.1.txt
  10392. * doc/aria2c.1
  10393. Implemented operator< for Exception class to provide easy way to print
  10394. exception stack trace.
  10395. * src/Exception.{h, cc}
  10396. * src/main.cc
  10397. * src/option_processing.cc
  10398. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. * src/version_usage.cc
  10400. (showVersion): Reworked.
  10401. (showUsage): Added examples.
  10402. Removed Hint for total length and file name.
  10403. * src/Metalink2RequestGroup.cc
  10404. * src/RequestGroup.{h, cc}
  10405. * src/HttpResponseCommand.cc
  10406. * src/FtpNegotiationCommand.cc
  10407. Now --follow-torrent and --follow-metalink option work properly.
  10408. * src/RequestGroup.cc
  10409. Updated man page
  10410. * doc/aria2c.1.txt
  10411. * doc/aria2c.1
  10412. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10413. Removed.
  10414. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10415. Use Segment::operator==()
  10416. * src/HttpConnection.cc
  10417. * src/Segment.h
  10418. Updated usage
  10419. * src/version_usage.cc
  10420. Added EINTR treatment.
  10421. * src/SocketCore.cc
  10422. * src/AbstractDiskWriter.cc
  10423. Rewritten.
  10424. * src/Util.cc (rangedFileCopy)
  10425. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10426. Fixed typo.
  10427. * src/version_usage.cc
  10428. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Implemented. Now -c option works fine.
  10430. * src/DefaultPieceStorage.cc (markPiecesDone)
  10431. * test/DefaultPieceStorageTest.cc
  10432. Removed.
  10433. * src/SegmentMan.{h, cc}
  10434. (markAllPiecesDone)
  10435. (markPieceDone)
  10436. Synchronized po files with
  10437. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10438. * src/fr.po
  10439. * src/ru.po
  10440. * src/de.po
  10441. * src/ja.po
  10442. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. Added ifdef and some modifications to compile without BitTorrent,
  10444. Metalink, MessageDigest
  10445. support.
  10446. * src/PieceHashCheckIntegrityEntry.cc
  10447. * src/MetalinkEntry.h
  10448. * src/version_usage.cc
  10449. * src/main.cc
  10450. * src/DownloadEngine.{h, cc}
  10451. * src/Metalink2RequestGroup.cc
  10452. * src/Peer.cc
  10453. * src/RequestGroup.cc
  10454. * src/MetalinkHelper.cc
  10455. * test/DefaultPieceStorageTest.cc
  10456. * test/MetalinkPostDownloadHandlerTest.cc
  10457. * test/Metalink2RequestGroupTest.cc
  10458. Hide TOTAL SPD when all downloads complete.
  10459. * src/ConsoleStatCalc.cc
  10460. Log target system information.
  10461. * src/main.cc
  10462. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Now --metalink-location accepts a comma-deliminated list of locations.
  10464. * src/MetalinkEntry.{h, cc}
  10465. * test/MetalinkEntryTest.cc
  10466. * src/version_usage.cc
  10467. * src/Metalink2RequestGroup.cc
  10468. * src/Xml2MetalinkProcessor.cc
  10469. * test/Xml2MetalinkProcessorTest.cc
  10470. * doc/aria2c.1.txt
  10471. * doc/aria2c.1
  10472. * src/Util.cc (toUpper)(toLower): Rewritten.
  10473. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10474. Added the ability to detect duplicate download entry which is about to
  10475. download the same file other RequestGroup is downloading.
  10476. * src/RequestGroup.cc
  10477. * src/HttpResponseCommand.cc
  10478. * src/FtpNegotiationCommand.cc
  10479. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. Recalculates download progress when loading a control file,
  10481. if the piece length of DownloadContext is different from the one saved
  10482. in the control file. Currently in-flight pieces are ignored.
  10483. * src/DefaultBtProgressInfoFile.cc
  10484. * test/DefaultBtProgressInfoFileTest.cc
  10485. * src/Util.{h, cc}
  10486. * test/UtilTest.cc
  10487. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. Do not rotate tiers in announce-list.
  10489. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10490. AnnounceList::allTiersFailed() used instead to detect whether all
  10491. tiers are tried and failed.
  10492. * test/DefaultBtAnnounceTest.cc
  10493. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10494. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10495. * test/AnnounceListTest.cc
  10496. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10497. clause. Catch RecoverableException instead of DlRetryEx instead.
  10498. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Implemented checksum validation feature(1 checksum for each file)
  10500. The validation takes place after the download.
  10501. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10502. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10503. * src/CheckIntegrityCommand.cc: Changed log message.
  10504. * src/Metalink2RequestGroup.cc: Set checksum to
  10505. SingleFileDownloadContext.
  10506. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10507. PieceHashCheckIntegrity class.
  10508. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10509. PieceHashCheckIntegrity class.
  10510. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10511. * src/IteratableValidator.h: New class.
  10512. * src/message.h
  10513. * src/CheckIntegrityEntry.{h, cc}
  10514. * src/IteratableChunkChecksumValidator.{h, cc}
  10515. * src/SingleFileDownloadContext.h
  10516. * src/DownloadCommand.cc
  10517. --allow-overwrite=true is no longer needed to check file integrity
  10518. before download in BitTorrent download.
  10519. * src/RequestGroup.cc (getInitialCommand)
  10520. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10521. throws exception.
  10522. * src/RequestGroupMan.cc (getInitialCommands)
  10523. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. urlencode the given url inside Request::parseUrl(...)
  10525. * src/Request.{h, cc}
  10526. * src/Util.{h, cc}
  10527. * test/RequestTest.cc
  10528. Removed #!metalink3! notation support because it is deleted from
  10529. the metalink specification.
  10530. * src/Request.{h, cc}
  10531. * test/RequestTest.cc
  10532. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. Don't connect server before checking file integrity at startup, if
  10534. filesize and output file path are known.
  10535. * src/AbstractCommand.cc
  10536. * src/StreamFileAllocationEntry.cc
  10537. * src/Metalink2RequestGroup.cc
  10538. * src/RequestGroup.{h, cc}
  10539. * src/HttpResponseCommand.cc
  10540. * src/FtpNegotiationCommand.cc
  10541. Added DownloadFailureException. If it is thrown, RequestGroup should
  10542. halt.
  10543. * src/AbstractCommand.cc
  10544. * src/DownloadFailureException.h
  10545. * src/RequestGroup.cc
  10546. Catch RecoverableException, instead of DlAbortEx.
  10547. * src/RequestGroupMan.cc
  10548. * src/FillRequestGroupCommand.cc
  10549. * src/MetaFileUtil.cc
  10550. * src/IteratableChunkChecksumValidator.cc
  10551. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10552. getGID())
  10553. * src/CheckIntegrityCommand.cc
  10554. * src/message.h
  10555. Print gid instead of idx.
  10556. * src/RequestGroupMan.cc
  10557. Removed exception throwers declaration.
  10558. * src/DirectDiskAdaptor.{h, cc}
  10559. * src/SocketCore.{h, cc}
  10560. * src/MultiDiskAdaptor.{h, cc}
  10561. * src/HttpConnection.{h, cc}
  10562. * src/HttpResponse.{h, cc}
  10563. * src/DiskAdaptor.{h, cc}
  10564. * src/CopyDiskAdaptor.{h, cc}
  10565. * src/MultiDiskAdaptor.{h, cc}
  10566. * src/HttpHeaderProcessor.{h, cc}
  10567. * src/AbstractSingleDiskAdaptor.{h, cc}
  10568. * src/Util.{h, cc}
  10569. * test/UtilTest.cc
  10570. * src/DefaultDiskWriter.{h, cc}
  10571. * src/FtpConnection.{h, cc}
  10572. * src/AbstractDiskWriter.{h, cc}
  10573. Removed duplicate code.
  10574. * src/StreamCheckIntegrityEntry.cc
  10575. Removed unnecessary include.
  10576. * src/DiskWriter.h
  10577. Included Exception.h
  10578. * src/option_processing.cc
  10579. Included 2 files and added doc
  10580. * src/TrackerWatcherCommand.cc
  10581. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10582. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. Changed CheckIntegrityEntry interface so that it can define
  10584. the action when all the chunk checksums are valid.
  10585. * src/CheckIntegrityEntry.h
  10586. * src/StreamCheckIntegrityEntry.{h, cc}
  10587. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10588. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10589. to exit rather than doing seeding. So, it would be good to toggle this
  10590. behavior.
  10591. * src/CheckIntegrityCommand.cc
  10592. * src/AbstractCommand.cc
  10593. * src/RequestGroup.cc
  10594. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. Reflect the download length of in-flight pieces.
  10596. It makes the download length readout more precise.
  10597. * src/DefaultPieceStorage.{h, cc}
  10598. * test/DefaultPieceStorageTest.cc
  10599. * src/a2functional.h
  10600. * test/a2functionalTest.cc
  10601. Lower CPU load when --max-download-limit is used.
  10602. There is up and down in speed indicator when enabling
  10603. http-pipelining but a download goes well. I think the problem is that
  10604. because http-pipelining is enabled, DownloadCommand is created for
  10605. each segment and in its constructor, PeerStat::downloadStart() is
  10606. called. In PeerStat::downloadStart(), speed calculation object is
  10607. reseted, which makes download speed zero.
  10608. * src/DownloadCommand.cc
  10609. Rewritten using accumulate.
  10610. * src/RequestGroupMan.cc (calculateStat)
  10611. Code clearnup.
  10612. * src/FtpNegotiationCommand.cc
  10613. * src/HttpResponseCommand.cc
  10614. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10615. Fixed: Can not resume: aria2 reports download already finished.
  10616. * src/AbstractCommand.{h, cc}
  10617. * src/HttpResponseCommand.cc
  10618. * src/FtpNegotiateCommand.cc
  10619. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10620. Now a file is stored in the directory specified in .metalnk file
  10621. (file[@name]).
  10622. * src/Metalink2RequestGroup.cc
  10623. Create the directory structure when opening the file if it doesn't
  10624. exist.
  10625. * src/AbstractDiskWriter.cc
  10626. * src/Util.{h, cc}
  10627. * src/File.h
  10628. * test/UtilTest.cc
  10629. Removed file name comparison
  10630. * src/Metalink2RequestGroup.cc
  10631. * src/HttpResponseCommand.cc
  10632. Rewritten using Util::mkdirs()
  10633. * src/FileEntry.cc (setupDir)
  10634. * test/FileEntryTest.cc
  10635. Updated doc
  10636. * src/SingleFileDownloadContext.h
  10637. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10638. Now SleepCommand dispatches nextCommand when halt is requested.
  10639. It avoids a possible long wait after hitting CTRL-C.
  10640. * src/SleepCommand.{h, cc}
  10641. * src/RequestGroupAware.{h, cc}
  10642. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10644. to open listen port, then remove the port number from the tracker
  10645. request.
  10646. * src/DefaultBtAnnounce.cc
  10647. * test/DefaultBtAnnounceTest.cc
  10648. * test/MockPieceStorage.h
  10649. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10650. them more testable.
  10651. * src/DefaultBtAnnounce.{h, cc}
  10652. * src/DefaultBtContext.{h, cc}
  10653. * src/Util.{h, cc}
  10654. * test/DefaultBtAnnounceTest.cc
  10655. * test/DefaultBtContextTest.cc
  10656. * test/UtilTest.cc
  10657. Added 'B' to upload bytes readout.
  10658. * src/ConsoleStatCalc.cc
  10659. Now the listen port for BitTorrent download is opened when it is
  10660. needed.
  10661. * src/DownloadEngineFactory.cc
  10662. * src/BtSetup.{h, cc}
  10663. * src/PeerListenCommand.{h, cc}
  10664. Now an exception thrown while parsing tracker response is now logged.
  10665. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10666. called, which means no retry is made in this case, assuming a tracker
  10667. has a problem.
  10668. * src/TrackerWatcherCommand.cc
  10669. Fixed: downloading a file whose length is unkown fails.
  10670. * src/DownloadCommand.cc
  10671. Simplified prepareForNextSegment()
  10672. * src/DownloadCommand.cc
  10673. Updated
  10674. * po/POTFILES.in
  10675. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10676. Re-implemented a file listing for Metalink, which was dropped while
  10677. http/ftp/torrent integration was being implemented.
  10678. * src/MetalinkHelper.{h, cc}: New class.
  10679. * test/MetalinkHelperTest.cc
  10680. * src/main.cc
  10681. * src/Metalink2RequestGroup.cc
  10682. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. Added the ability to display the detailed torrent file information.
  10684. Now -S option gives not only a file listing, but also total download
  10685. length, info hash, announce URI, piece length, the number of pieces,
  10686. and mode(single or multi-torrent).
  10687. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10688. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10689. KiB)
  10690. * test/UtilTest.cc
  10691. * src/main.cc
  10692. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. Added ftp://USER:PASSWD@Servername automatic parsing.
  10694. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10695. _password. Recognize username and password in URI.
  10696. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10697. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10698. * src/RequestFactory.{h, cc}: Removed.
  10699. * src/AuthConfigFactory.{h, cc}: New class.
  10700. * src/FtpConnection.cc: Use AuthConfigFactory.
  10701. * src/HttpRequest.cc: Use AuthConfigFactory.
  10702. * test/HttpRequestTest.cc: Updated.
  10703. * test/RequestTest.cc: Updated.
  10704. * test/AuthConfigFactoryTest.cc: New class.
  10705. * test/RequestFactoryTest.cc: Removed.
  10706. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10707. Use RequestGroup::allDownloadFinished() to decide whether the control
  10708. file should be removed or saved.
  10709. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10710. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10711. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10712. Use File::renameTo()
  10713. * src/DefaultBtProgressInfoFile.cc
  10714. Added --no-file-allocation-limit command-line option.
  10715. * src/version_usage.cc
  10716. * src/option_processing.cc
  10717. * src/OptionHandlerFactory.cc
  10718. * src/RequestGroup.{h, cc}
  10719. * src/BtCheckIntegrityEntry.cc
  10720. * src/StreamCheckIntegrityEntry.cc
  10721. * src/prefs.h
  10722. * doc/aria2c.1.txt
  10723. * doc/aria2c.1
  10724. Now prealloc is the default value for --file-allocation option.
  10725. * src/version_usage.cc
  10726. * src/option_processing.cc
  10727. * doc/aria2c.1.txt
  10728. * doc/aria2c.1
  10729. Don't URL-encode user-agent.
  10730. * src/HttpRequest.cc
  10731. Updated translations
  10732. * po/LINGUAS: Added nl for Dutch translation.
  10733. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10734. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10735. * po/POTFILES.in: Updated.
  10736. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10737. Added the ability to recognize url-list in a torrent file.
  10738. The retrieved URLs are attached to the corresponding FileEntry.
  10739. * src/DefaultBtContext.{h, cc}
  10740. * src/FileEntry.{h, cc}
  10741. * test/DefaultBtContextTest.cc
  10742. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10743. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10744. after the download finishes.
  10745. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10747. the data smaller than block length.
  10748. A block length can be specified by constructor's argument.
  10749. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10750. Get a missing piece in the range of given FileEntry. This function is
  10751. not used in the program yet.
  10752. * src/Util.h: Added some macros.
  10753. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10754. Added HTTP/1.1 keep alive and pipelining support.
  10755. See --enable-http-keep-alive and --enable-http-pipelining option.
  10756. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10757. Segment.
  10758. * src/HttpDownloadCommand.{h, cc}
  10759. * src/OptionHandlerFactory.cc
  10760. * src/HttpConnection.{h, cc}
  10761. * src/version_usage.cc
  10762. * src/HttpInitiateConnectionCommand.cc
  10763. * src/FtpInitiateConnectionCommand.cc
  10764. * src/Segment.h
  10765. * src/HttpRequestCommand.{h, cc}
  10766. * src/option_processing.cc
  10767. * src/prefs.h
  10768. * src/HttpResponseCommand.cc
  10769. * src/SegmentMan.{h, cc}
  10770. * src/FtpNegotiateCommand.cc
  10771. * src/HttpProxyResponseCommand.cc
  10772. * src/Request.cc
  10773. * src/HttpRequest.cc
  10774. * src/DownloadCommand.cc
  10775. * test/HttpRequestTest.cc
  10776. * test/RequestTest.cc
  10777. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10779. finished.
  10780. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10781. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10782. catching it inside the method.
  10783. When no file entry is found in a metalink without querying user
  10784. preferences, throw the exception with the error message that suggests
  10785. metalink file is probably broken.
  10786. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10787. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10789. processed.
  10790. * src/RequestGroupMan.cc (removeStoppedGroup)
  10791. Added debug message.
  10792. * src/BtPostDownloadHandler.cc
  10793. * src/MetalinkPostDownloadHandler.cc
  10794. * src/PostDownloadHandler.{h, cc}
  10795. * src/RequestGroup.cc
  10796. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10797. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10798. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10799. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10800. stops and there are any unfinished or in-progress downloads.
  10801. Added the legend of "stat".
  10802. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10803. Throw exception when chunck checksum verification fails.
  10804. * src/DownloadCommand.cc (validatePieceHash): New function.
  10805. * src/PiecedSegment.{h, cc} (clear): New function.
  10806. * src/GrowSegment.{h, cc} (clear): New function.
  10807. * src/Segment.h (clear): New function.
  10808. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10809. * test/SegmentTest.cc
  10810. * test/GrowSegmentTest.cc
  10811. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Do not send referer when redirected.
  10813. * src/Request.cc (redirectUrl)
  10814. * test/RequestTest.cc
  10815. * test/HttpRequestTest.cc
  10816. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10817. Implemented BitTorrent/http/ftp integrated download.
  10818. I've rewritten lots of files and now some headers have forward
  10819. class declarations to reduce compile time.
  10820. The implementation is extremely alpha stage, I recommend to use this
  10821. for testing purpose only.
  10822. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10823. Fixed the compilation error on 64bit platform.
  10824. * test/HttpHeaderProcessorTest.cc
  10825. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10826. Merged Ross's patch that fixes compilation problem in MinGW
  10827. * test/DefaultBtProgressInfoFileTest.cc
  10828. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10829. Updated fr.po by sebone
  10830. * po/fr.po
  10831. Updated man page.
  10832. * doc/aria2c.1.txt
  10833. * Release 0.11.3
  10834. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10835. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10836. failure in Metalink.
  10837. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10838. Automatically save *.aria2 control file of http/ftp download in every
  10839. 60 seconds.
  10840. * src/AutoSaveCommand.{h, cc}: New class.
  10841. * src/TimeBasedCommand.{h, cc}: New class.
  10842. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10843. Disable parameterized URI support by default. Added -P option to
  10844. enable the feature.
  10845. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10846. * src/OptionHandlerFactory.cc
  10847. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10848. Updated Japanese translation.
  10849. * po/ja.po
  10850. Updated man page.
  10851. * doc/aria2c.1.txt
  10852. * Release 0.11.3-rc
  10853. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10855. it is successful, then renamed to *.aria2.
  10856. This prevents *.aria2 file from being truncated or corrupted when
  10857. file system becomes out of space.
  10858. * src/DefaultBtProgressInfoFile.cc (save)
  10859. * src/SegmentMan.cc (save)
  10860. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10861. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10862. Reduced the fragmentation of bitfield in http/ftp download.
  10863. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10864. * test/BitfieldManTest.cc
  10865. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. Added the ability to disable segmented download in .metalink.
  10867. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10868. 'url' tag.
  10869. * src/MetalinkEntry.{h, cc}
  10870. * src/RequestResource.{h, cc}
  10871. * src/MetalinkRequestInfo.cc
  10872. * src/Xml2MetalinkProcessor.cc
  10873. * test/Xml2MetalinkProcessorTest.cc
  10874. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. Added parameterized URI support.
  10876. * src/main.cc: -Z option added.
  10877. * src/OptionHandlerFactory.cc
  10878. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10879. * src/PStringDatum.h: New class.
  10880. * src/PStringSegment.{h,cc}: New class.
  10881. * src/PStringNumLoop.h: New class.
  10882. * src/PStringSelect.h: New class.
  10883. * src/NumberDecorator.h: New class.
  10884. * src/FixedWidthNumberDecorator.h: New class.
  10885. * src/AlphaNumberDecorator.h: New class.
  10886. * src/PStringVisitor.h: New class.
  10887. * src/PStringBuildVisitor.{h,cc}: New class.
  10888. * src/ParameterizedStringParser.{h,cc}: New class.
  10889. * src/Util.{h,cc}
  10890. (isNumber): New function.
  10891. (isLowercase): New function.
  10892. (isUppercase): New function.
  10893. (alphaToNum): New function.
  10894. * test/ParameterizedStringParserTest.cc: New class.
  10895. * test/AlphaNumberDecoratorTest.cc: New class.
  10896. * test/PStringBuildVisitorTest.cc: New class.
  10897. * test/UtilTest.cc
  10898. (testIsNumber): New function.
  10899. (testIsLowercase): New function.
  10900. (testIsUppercase): New function.
  10901. (testAlphaToNum): New function.
  10902. Added '\n' after the error message
  10903. * src/RequestInfo.h (printDownloadAbortMessage)
  10904. Added auto file renaming feature in http(s)/ftp download.
  10905. * src/main.cc: Added --auto-file-renaming command-line option.
  10906. * src/OptionHandlerFactory.cc
  10907. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10908. * src/RequestGroup.{h, cc}
  10909. (shouldCancelDownloadForSafety): Rewritten
  10910. (tryAutoFileRenaming): New function.
  10911. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10912. * src/HttpResponseCommand.cc
  10913. (executeInternal): Removed the call to RequestGroupMan::
  10914. isSameFileBeingDownloaded()
  10915. * src/FtpNegotiateCommand.cc
  10916. (recvSize): Removed the call to RequestGroupMan::
  10917. isSameFileBeingDownloaded()
  10918. * test/RequestGroupTest.cc: New class.
  10919. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10920. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10921. IO.
  10922. * src/DefaultBtProgressInfoFile.cc
  10923. * src/MetaFileUtil.cc
  10924. * src/SimpleLogger.cc
  10925. * src/SegmentMan.cc
  10926. * src/Util.cc
  10927. * src/Platform.cc
  10928. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10930. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10931. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10932. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10933. Fixed the bug that prevents file allocation is not done when
  10934. dowloading multi-torrent file.
  10935. * src/AbstractDiskWriter.cc (openFile)
  10936. Increase the maximum number of -j option from 15 to 45.
  10937. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10938. Added fr.po, thanks to Charles Landemaine.
  10939. * po/fr.po
  10940. * po/LINGUAS
  10941. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10942. gcc 3.4.4 support:
  10943. * src/DefaultBtContext.cc: int32_t -> int
  10944. * src/main.cc: int -> int32_t, int32_t -> int
  10945. * src/messageDigest.h: uint32_t -> unsigned int
  10946. * src/NameResolver.h: int32_t -> int
  10947. * src/PeerConnection.cc: int -> int32_t
  10948. * src/SpeedCalc.cc: int32_t -> int
  10949. * src/TrackerUpdateCommand.h: int -> int32_t
  10950. * src/Util.cc: int32_t -> int
  10951. * src/Util.h: int32_t -> int
  10952. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10953. * test/AnnounceListTest.cc: int -> int32_t
  10954. * test/ChunkedEncodingTest.cc: int -> int32_t
  10955. * test/DataTest.cc: int -> int32_t
  10956. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10957. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10958. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10959. * test/FeatureConfigTest.cc: int -> int32_t
  10960. * test/MetalinkEntryTest.cc: int -> int32_t
  10961. * test/MockBtRequestFactory.h: int -> int32_t
  10962. * test/MockPieceStorage.h: int -> int32_t
  10963. * test/OptionTest.cc: int -> int32_t
  10964. * test/RequestTest.cc: int -> int32_t
  10965. * test/SegmentManTest.cc: int -> int32_t
  10966. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10967. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10968. Move sleep functions to Util class:
  10969. * src/Util.cc
  10970. (sleep): New function.
  10971. (usleep): New function.
  10972. * src/DownloadCommand.cc: sleep -> Util::sleep
  10973. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10974. MinGW build enhancements. The following files are added:
  10975. * src/timegm.{c,h}
  10976. Changes to support the above new files:
  10977. * configure.ac
  10978. * src/Makefile.am
  10979. * src/a2time.h
  10980. * src/Util.cc:
  10981. * src/strptime.c: Added support for %Z option.
  10982. Fixed MinGW non-blocking bug.
  10983. * src/SocketCore.cc
  10984. * src/HttpRequestCommand.cc
  10985. Miscellenous build fixes/enhancements.
  10986. * configure.ac: Added summary report.
  10987. * src/Platform.h: Tweaked #include's.
  10988. * src/a2netcompat.h: Tweaked #include's.
  10989. * src/strptime.h: Tweaked #include's.
  10990. * src/gai_strerror.c: Tweaked #include's.
  10991. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10992. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10993. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10994. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Increased the initial connection size in BitTorrent download to 40.
  10996. * src/BtRuntime.h
  10997. Added the usage message of --peer-id-prefix option.
  10998. * src/main.cc
  10999. * Release 0.11.2
  11000. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11001. MessageDigestHelper is introduced in order to simplify the use
  11002. of message digest. Removed repeated code.
  11003. The message digest algorithm is now specified by string, like "sha1",
  11004. "md5".
  11005. * src/messageDigest.{h, cc}
  11006. * src/MessageDigestHelper.{h, cc}: New class.
  11007. * src/DefaultPieceStorage.cc
  11008. * src/DefaultBtContext.{h, cc}
  11009. (computeFastSet): New function.
  11010. (setInfoHash): Added for unit testing.
  11011. (setNumPieces): Added for unit testing.
  11012. * src/DefaultBtInteractive.cc
  11013. * src/BtPieceMessage.cc
  11014. * src/Peer.cc
  11015. * src/Checksum.h
  11016. * src/message.h
  11017. * src/IteratableChecksumValidator.h
  11018. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11019. inside it.
  11020. * src/SegmentMan.{h, cc}
  11021. (checkIntegrity): Removed.
  11022. * src/IteratableChunkChecksumValidator.{h, cc}
  11023. * src/Util.h
  11024. (sha1Sum): Removed.
  11025. (simpleMessageDigest): Removed.
  11026. (fileChecksum): Removed.
  11027. (computeFastSet): Removed.
  11028. * src/ShaVisitor.cc
  11029. * src/ChunkChecksum.h
  11030. * src/DownloadCommand.cc
  11031. Removed messageDigest virtual functions.
  11032. * src/MultiDiskAdaptor.{h, cc}
  11033. * src/DiskAdaptor.h
  11034. * src/ByteArrayDiskWriter.h
  11035. * src/DiskWriter.h
  11036. * src/DiskAdaptorWriter.h
  11037. * src/AbstractSingleDiskAdaptor.{h, cc}
  11038. * src/AbstractDiskWriter.{h, cc}
  11039. Fixed comilation error when message digest is disabled.
  11040. * src/MetalinkEntry.{h, cc}
  11041. * src/MetalinkRequestInfo.cc
  11042. Removed srandom and random.
  11043. * src/SimpleRandomizer.h
  11044. Added size() virtual function to DiskAdaptor
  11045. * src/MultiDiskAdaptor.h
  11046. Fixed the bug that causes that files are not opened correctly in
  11047. multi-file torrent.
  11048. * src/TorrentRequestInfo.cc
  11049. * src/MultiDiskAdaptor.cc
  11050. Added SHA256 support
  11051. * src/messageDigest.cc
  11052. * src/Xml2MetalinkProcessor.cc
  11053. Show supported message digest algorithms
  11054. * src/main.cc
  11055. Updated contact info.
  11056. * src/main.cc
  11057. Applied Ross's patch
  11058. * src/a2netcompat.h
  11059. * src/main.cc
  11060. Fixed the bug that prevents a remote metalink from not being processed
  11061. even if '-o foo.metalink' is specified.
  11062. * src/MetalinkRequestInfo.cc
  11063. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11064. Merged Dan's patch:
  11065. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11066. Use va_copy to avoid core dump on amd64:
  11067. * src/SimpleLogger.cc
  11068. Updated contact info.
  11069. * src/main.cc
  11070. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11071. digest is not available.
  11072. * src/MetalinkEntry.h
  11073. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. Make a2netcompat.h include a2io.h to fix compilation error:
  11075. * src/a2netcompat.h
  11076. * src/SocketCore.cc: Removed include of a2io.h
  11077. * src/Util.cc: Removed include of a2io.h
  11078. Gather time related functions to a2time.h:
  11079. * src/a2time.h: New file.
  11080. * src/DefaultPeerStorage.cc
  11081. * src/SimpleLogger.cc
  11082. * src/Util.{h, cc}
  11083. * src/SimpleRandomizer.h
  11084. * src/TimeA2.{h,cc}
  11085. * src/DownloadCommand.cc
  11086. * src/main.cc
  11087. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11088. a2netcompat.h:
  11089. * src/NameResolver.cc
  11090. Fixed compilation error without openssl:
  11091. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11092. Added default block to suppress compiler warnings:
  11093. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11094. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11095. MinGW build enhancements. The following files are added:
  11096. * src/gai_strerror.{c,h}
  11097. * src/gettimeofday.{c,h}
  11098. Changes to support the above new files:
  11099. * configure.ac
  11100. * src/Makefile.am
  11101. * src/a2netcompat.h
  11102. * src/TimeA2.cc
  11103. * src/DefaultPeerStorage.cc
  11104. * src/NameResolver.cc: removed mingw_strerror() function.
  11105. * src/SocketCore.cc: removed mingw_strerror() function.
  11106. Miscellaneous MinGW build fixes.
  11107. * src/a2io.h: Use _lseeki64() instead of lseek()
  11108. * src/common.h
  11109. * src/DefaultFileAllocator.cc
  11110. * src/GlowFileAllocator.cc
  11111. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11112. * src/NameResolver.cc
  11113. (callback): Changed int32_t to int.
  11114. (resolve): Changed int32_t to int.
  11115. * src/Platform.cc
  11116. * src/Platform.h
  11117. * test/MultiDiskWriterTest.cc
  11118. * test/PeerMessageUtilTest.cc
  11119. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11120. Other enhancements and fixes.
  11121. * src/HttpRequestCommand.cc
  11122. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11123. * src/SocketCore.cc:
  11124. (error): New function to abstract errno/WSAGetLastError().
  11125. (errorMsg): New function to abstract errno/WSAGetLastError().
  11126. (initiateSecureConnection): Added more detailed error reporting.
  11127. * src/SocketCore.h: Added private variable blocking, to allow
  11128. proper handling of OpenSSL psuedo-errors.
  11129. * src/message.h
  11130. (EX_SSL_INIT_FAILURE)
  11131. (EX_SSL_IO_ERROR)
  11132. (EX_SSL_PROTOCOL_ERROR)
  11133. (EX_SSL_UNKNOWN_ERROR)
  11134. (EX_SSL_CONNECT_ERROR)
  11135. (EX_SOCKET_BLOCKING)
  11136. (EX_SOCKET_NONBLOCKING)
  11137. (EX_SOCKET_UNKNOWN_ERROR)
  11138. * src/Util.cc
  11139. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11140. reserved name.
  11141. (httpGMT): Fixed typo.
  11142. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11143. Merged Ross's win32 patch(manually)
  11144. In the course of merging, following files are added.
  11145. * src/strptime.{h,c}
  11146. * src/libgen.{h,c}
  11147. * src/inet_aton.{h,c}
  11148. * src/Platform.{h,cc}
  11149. * src/localtime_r.{h,c}
  11150. * src/getaddrinfo.{h,c}
  11151. I've gethered network related things, and put them to following file:
  11152. * src/a2netcompat.h
  11153. Also io related things are put to following file:
  11154. * src/a2io.h
  11155. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11156. * src/message.h
  11157. (MSG_ALLOCATION_COMPLETED)
  11158. (EX_TOO_LARGE_FILE)
  11159. (EX_SIZE_MISMATCH)
  11160. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11161. (EX_INVALID_CHUNK_CHECKSUM)
  11162. (EX_INVALID_RANGE_HEADER)
  11163. * src/FileAllocationCommand.cc
  11164. * src/HttpResponse.cc
  11165. * src/RequestGroup.cc
  11166. * src/MultiDiskAdaptor.cc
  11167. * src/OptionHandlerImpl.h
  11168. * src/HttpResponseCommand.cc
  11169. * src/FtpNegotiateCommand.cc
  11170. * src/IteratableChecksumValidator.cc
  11171. * src/SegmentMan.cc
  11172. * src/ChunkChecksumValidator.cc
  11173. Added Randomizer::getRandomNumber(long int)
  11174. * src/Randomizer.h (getRandomNumber)
  11175. * src/SimpleRandomizer.h (getRandomNumber)
  11176. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11177. * src/Util.cc (randomAlpha): Use this new function.
  11178. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11179. Converted int's to in32_t. long long int's are also converted to
  11180. int64_t
  11181. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. Fixed the bug that prevents cookies from being sent to the server
  11183. if the domain of cookie is FQDN and starts with ".".
  11184. * src/Cookie.cc (match)
  11185. To add the ability to change peer id.
  11186. * src/DefaultBtContext.h
  11187. (_peerIdPrefix): New variable
  11188. (setPeerIdPrefix): New function.
  11189. * src/torrentRequestInfo.cc
  11190. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11191. DefaultBtContext.
  11192. * src/main.cc (main): Added peer-id-prefix command-line option.
  11193. The usage message is not added yet.
  11194. * src/DefaultBtContext.cc
  11195. (generatePeerId): Use _peerIdPrefix.
  11196. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11197. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11198. Fixed the bug that prevents filename in content-disposition from
  11199. being retrieved when filename is not quoted.
  11200. * src/Util.cc (getContentDispositionFilename)
  11201. Fixed the bug that causes infinate loop and memory leak when file open
  11202. operation failed.
  11203. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11204. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11205. Fixed the bug that causes segfault when all URIs specified are
  11206. unsupported.
  11207. * src/RequestGroupMan.cc (getInitialCommands)
  11208. Check if RequestGroup::createNextCommand() returns empty list of
  11209. commands.
  11210. * src/RequestGroup.cc (createNextCommand)
  11211. Change log level from info to error so that users can notice that
  11212. an error occurred.
  11213. Fixed the bug that causes segfault when a zero-sized file is
  11214. downloaded.
  11215. * src/BitfieldMan.cc (isAllBitSet)
  11216. Return true if bitfieldLength is 0.
  11217. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11218. * src/main.cc
  11219. (showUsage): Added 3 usage examples for metalink download.
  11220. Replace MetalinkChunkChecksum with ChunkChecksum.
  11221. * src/MetalinkChunkChecksum.h: Removed.
  11222. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11223. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11224. * src/Xml2MetalinkProcessor.cc
  11225. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11226. * src/MetalinkRequestInfo.cc (execute)
  11227. * Release 0.11.1
  11228. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. Reads URIs from stdin when "-i -" is specified.
  11230. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11231. * src/UriListParser.h, src/UriListParser.cc: New class.
  11232. * src/StreamUriListParser.h: New class.
  11233. * src/FileUriListParser.h: New class.
  11234. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11235. instead of UriFileListParser.
  11236. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Made console readout more readable.
  11238. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11239. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11240. Fix the bug that causes -s option not to work.
  11241. * src/main.cc (main)
  11242. * src/a2algo.h: New file.
  11243. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11244. Create directory structure specified in metalink file.
  11245. * src/RequestGroup.h, src/RequestGroup.cc
  11246. (initAndOpenFile): Create a directory to store files if it does not
  11247. exist.
  11248. (getDir): New function.
  11249. Added ETA and download speed for an individual file to readout.
  11250. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11251. * src/RequestGroup.h
  11252. (calculateDownloadSpeed): New function.
  11253. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11254. Made -S option work with metalink file and provided selective download
  11255. to metalink.
  11256. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11257. (filename): Removed.
  11258. (file): New variable.
  11259. (size): Removed.
  11260. (operator=): Updated.
  11261. (getPath): New function.
  11262. (getLength): New function.
  11263. (toFileEntry): New function.
  11264. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11265. (execute): Use toStream.
  11266. (showFileEntry): Removed.
  11267. * src/MetalinkRequestInfo.h
  11268. (targetFiles): New variable.
  11269. (setTargetFiles): New variable.
  11270. * src/MetalinkRequestInfo.cc
  11271. (execute): Added the ability to print file information included in
  11272. a metalink file.
  11273. Added selective download mode to metalink.
  11274. * src/main.cc
  11275. (showUsage): Updated to denote that -S and --select-file options are
  11276. applicable to metalink.
  11277. * src/FileEntry.h
  11278. (operator=): New function.
  11279. (getBasename): New function.
  11280. (getDirname): New function.
  11281. * src/Util.h, src/Util.cc
  11282. (toStream): New function.
  11283. * src/Xml2MetalinkProcessor.cc: Updated.
  11284. Made aria2 work with metalink with directory structure.
  11285. * src/File.h, src/File.cc
  11286. (getBasename): New function.
  11287. (getDirname): New function.
  11288. * src/RequestGroup.h, src/RequestGroup.cc
  11289. (_topDir): New variable.
  11290. (setTopDir): New function.
  11291. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11292. Rewrote HTTP header parsing with stringstream.
  11293. * src/HttpConnection.h, src/HttpConnection.cc
  11294. (HttpRequestEntry): New class.
  11295. (headerBuf): Removed.
  11296. (headerBufLength): Removed.
  11297. (outstandingHttpRequests): Now its element type is
  11298. HttpRequestEntryHandle.
  11299. (findEndOfHeader): Removed.
  11300. (receiveResponse): Rewritten.
  11301. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11302. Updated doc for -j option to notice that it should be used with -i
  11303. option.
  11304. * src/main.cc (showUsage)
  11305. Removed unused classes.
  11306. * src/RequestInfo.h
  11307. (FileInfo): Removed.
  11308. (checksum): Removed.
  11309. (fileInfo): Removed.
  11310. (setChecksum): Removed.
  11311. (getChecksum): Removed.
  11312. (getFileInfo): Removed.
  11313. Use ISO units.
  11314. * src/ConsoleDownloadEngine.cc
  11315. * src/TorrentConsoleDownloadEngine.cc
  11316. * src/Util.cc (abbrevSize)
  11317. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. Added the default listening ports to the help message.
  11319. * src/main.cc (showUsage)
  11320. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11321. Reduce the number of calls to gettimeofday to lower CPU load.
  11322. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11323. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11324. * src/Peer.h (calculateUploadSpeed): New function.
  11325. (calculateDownloadSpeed): New function.
  11326. * src/DefaultPeerStorage.cc
  11327. (CalculateStat): Added _now variable.
  11328. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11329. and Peer::calculateUploadSpeed(const struct timeval&)
  11330. Drop connection if no request or piece message is exchanged in
  11331. a certain interval.
  11332. * src/DefaultBtInteractive.h
  11333. (btRuntime): New variable.
  11334. (inactiveCheckPoint): New variable.
  11335. (checkActiveInteraction): New function.
  11336. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11337. request or piece message is received.
  11338. (checkActiveInteraction): New function.
  11339. (doInteractionProcessing): Call checkActiveInteraction.
  11340. Fixed the bug that causes remote Metalink and Torrent files are not
  11341. processed.
  11342. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11343. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Changed format of log file.
  11345. * src/SimpleLogger.cc
  11346. * Release 0.11.0
  11347. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11348. * src/AbstractCommand.cc
  11349. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11350. MSG_MAX_TRY from error to info.
  11351. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11352. * src/message.h
  11353. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11354. (MSG_DOWNLOAD_ABORTED): Added %s.
  11355. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11356. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11357. * src/PeerAbstractCommand.cc
  11358. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11359. * src/Request.h
  11360. (cookieBox): Made ShardHandle.
  11361. * src/RequestGroup.h, src/RequestGroup.cc
  11362. (createNextCommandWithAdj): New function.
  11363. * src/FileAllocationCommand.cc
  11364. (executeInternal): Use createNextCommandWithAdj().
  11365. * src/CheckIntegrityCommand.cc
  11366. (executeInternal): Use createNextCommandWithAdj().
  11367. Added --load-cookies command-option.
  11368. * src/OptionHandlerFactory.cc
  11369. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11370. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11371. Now aria2 can handle cookie's expiration date.
  11372. * src/Cookie.h (expires): Changed its type to time_t.
  11373. * src/main.cc: Added --load-cookies command-line option.
  11374. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11375. * src/Util.h, src/Util.cc (httpGMT): New function.
  11376. * src/Request.cc (Request): Initialize cookieBox using
  11377. CookieBoxFactory.
  11378. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11379. * src/CookieParser.h, src/CookieParser.cc: New class.
  11380. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11381. * src/HttpResponseCommand.cc
  11382. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11383. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11384. download.
  11385. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11386. Added -j command-line option.
  11387. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11388. * src/main.cc
  11389. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11390. Rewritten using stringstream.
  11391. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11392. Rewritten using stringstream.
  11393. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. Make download size shown in MB, KB.
  11395. * src/ConsoleDownloadEngine.h (sendStatistics)
  11396. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11397. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11398. Accept incoming connections if download rate is low.
  11399. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11400. (_lowestSpeedLimit): New variable.
  11401. (setLowestSpeedLimit): New function.
  11402. (execute): Accept incoming connections if download rate is low.
  11403. MAX_PEERS is ignored in this case.
  11404. Disable PREF_OUT in multiple concurrent download:
  11405. * src/RequestGroup.h, src/RequestGroup.cc
  11406. (setUserDefinedFilename): New function.
  11407. * src/DownloadEngineFactory.cc
  11408. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11409. concurrent download.
  11410. * src/DefaultSegmentManFactory.cc
  11411. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11412. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11414. Added its overloaded method.
  11415. * src/RequestGroup.h
  11416. (_numConcurrentCommand): New variable.
  11417. (setNumConcurrentCommand): New function.
  11418. * src/RequestGroup.cc
  11419. Abort download if same file is being downloaded concurrently.
  11420. * src/RequestGroup.h, src/RequestGroupMan.cc
  11421. (isSameFileBeingDownloaded): New function.
  11422. * src/HttpResponseCommand.cc (executeInternal)
  11423. * src/FtpNegotiateCommand.cc (recvSize)
  11424. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11425. * main.cc: Added help message for -i option.
  11426. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11427. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11428. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11429. * src/MetalinkEntry.h
  11430. (checksum): Changed to ChecksumHandle
  11431. * src/MetalinkRequestInfo.cc
  11432. (checksum): Changed to ChecksumHandle
  11433. * src/File.cc
  11434. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11435. * src/common.h
  11436. (DIR_OPEN_MODE): New definition
  11437. * src/RequestGroup.cc
  11438. (prepareForNextAction): Added an argument.
  11439. * src/message.h
  11440. (MSG_GOOD_CHECKSUM): New definition
  11441. (MSG_BAD_CHECKSUM): New definition
  11442. * src/HttpResponseCommand.cc
  11443. (handleDefaultEncoding): Continue download sequence in new
  11444. non-segmented download.
  11445. * src/FileAllocationEntry.h
  11446. (_nextDownloadCommand): New variable.
  11447. * src/DownloadCommand.cc
  11448. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11449. available.
  11450. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11451. * src/IteratableChecksumValidator.h,
  11452. src/IteratableChecksumValidator.cc: New class.
  11453. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11454. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. Change file mode to 666:
  11456. * src/common.h (OPEN_MODE): New definition.
  11457. * src/File.cc
  11458. * src/Util.cc
  11459. * src/Directry.cc
  11460. * src/AbstractDiskWriter.cc
  11461. Change the level of log message "download aborted" to debug:
  11462. * src/PeerAbstractCommand.cc (execute)
  11463. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11464. * src/TrackerWatcherCommand.cc
  11465. (createCommand): Sleep some seconds after request failed.
  11466. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11467. then abort tracker request.
  11468. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11469. * Added the simultaneous download feature.
  11470. * src/main.cc: Print "Exception caught: " when exception is caught.
  11471. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11472. * src/ActivePeerConnectionCommand.cc
  11473. * src/PeerInteractionCommand.cc
  11474. * src/BtRuntime.h
  11475. (cuidCounter): Removed.
  11476. (getNewCuid): Removed.
  11477. * src/DownloadEngineFactory.cc
  11478. * src/PeerListenCommand.cc
  11479. * src/TrackerUpdateCommand.cc
  11480. * src/PeerInitiateConnectionCommand.cc
  11481. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. * src/PeerAbstractCommand.cc
  11483. (onAbort): Call PeerStorage::returnPeer()
  11484. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11485. (incomingPeers): New variable.
  11486. (addIncomingPeer): New function.
  11487. (returnPeer): New function.
  11488. (onErasingPeer): New function.
  11489. (addPeer): push_back -> push_front
  11490. (getActivePeers): Rewritten.
  11491. (calculateStat): Rewritten.
  11492. * src/PeerStorage.h
  11493. (TransferStat::copy): New function.
  11494. (TransferStat::TransferStat): New function.
  11495. (TransferStat::operator=): New function.
  11496. (addIncomingPeer): New function.
  11497. (returnPeer): New function.
  11498. * src/PeerListenCommand.cc
  11499. (execute): Use PeerStorage::addIncomingPeer() instead of
  11500. Peer::addPeer().
  11501. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11502. Connect to a peer actively when download speed is lower than specified
  11503. speed in torrent download:
  11504. * src/ActivePeerConnectionCommand.h: New class.
  11505. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11506. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11507. * src/main.cc: Fixed the bug that prevents download if .netrc
  11508. doesn't exist.
  11509. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. To cache resolved hostname:
  11511. * src/AbstractCommand.h, src/AbstractCommand.cc
  11512. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11513. Added dns cache.
  11514. * src/FtpInitiateConnectionCommand.cc
  11515. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11516. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11517. NameResolver working without ares.
  11518. * src/TorrentRequestInfo.cc
  11519. (execute): Don't cache dns in torrent download.
  11520. * src/HttpInitiateConnectionCommand.cc
  11521. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11522. * src/DNSCache.h: New class.
  11523. * src/UrlRequestInfo.cc
  11524. (execute): Use dns cache.
  11525. In http request, suppress port number in http request header if port
  11526. is 80 or 443:
  11527. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11528. request header if port is 80 or 443.
  11529. (createProxyRequest): Allways send port number.
  11530. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11531. To add the command-line option which disables netrc support:
  11532. * src/OptionHandlerFactory.cc
  11533. (createOptionHandlers): Added PREF_NO_NETRC.
  11534. * src/main.cc: Added -n option.
  11535. * src/prefs.h (PREF_NO_NETRC): New definition.
  11536. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11537. V_TRUE.
  11538. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11539. is V_FALSE. This may get configurable in the future release.
  11540. To clear peer's error status by time basis:
  11541. * src/PeerAbstractCommand.cc
  11542. (onAbort): Call Peer::startBadCondition().
  11543. * src/Peer.h, src/Peer.cc
  11544. (error): Removed.
  11545. (_badConditionStartTime): New variable.
  11546. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11547. (startBadCondition): New function.
  11548. (isGood): New function.
  11549. * src/DefaultPeerStorage.cc
  11550. (addPeer): Use Peer::isGood().
  11551. (FindFinePeer): Use Peer::isGood().
  11552. Always include port number in http request header:
  11553. * src/HttpRequest.cc (getHostText): Always include port number in
  11554. http request header.
  11555. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11556. To the ability to read options from a config file:
  11557. * src/main.cc: Command-line parameter validation is delegated to
  11558. OptionHandler class.
  11559. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11560. * src/Option.h, src/Option.cc (clear): New function.
  11561. * src/OptionParser.h, src/OptionParser.cc: New class.
  11562. * src/OptionHandler.h: New class.
  11563. * src/NameMatchOptionHandler.h: New class.
  11564. * src/OptionHandlerImpl.h: New classes.
  11565. * src/prefs.h: '_' -> '-'
  11566. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11567. (FTP_PASV): New definition.
  11568. * src/Util.h, src/Util.cc (getRealSize): New function.
  11569. To disable netrc support if .netrc file does not have correct
  11570. permissions:
  11571. * src/File.h, src/File.cc (mode): New function.
  11572. To prevent confidential information to be logged:
  11573. * src/HttpConnection.h, src/HttpConnection.cc
  11574. (eraseConfidentialInfo): New function.
  11575. (sendRequest): Call eraseConfidentialInfo().
  11576. (sendProxyRequest): Call eraseConfidentialInfo().
  11577. * src/main.cc: Validate permissions of .netrc file.
  11578. To add --user-agent command-line option:
  11579. * src/main.cc: Added new command line option: --user-agent
  11580. * src/prefs.h (PREF_USER_AGENT): New definition.
  11581. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11582. parameter to HttpRequest object.
  11583. * src/AbstractProxyRequestCommand.cc
  11584. (executeInternal): Set user-agent option parameter to HttpRequest
  11585. object.
  11586. Marged the patches from Dan Fandrich.
  11587. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Use filename and size from Metalink file instead of sending HEAD
  11589. request:
  11590. * src/UrlRequestInfo.h
  11591. (_filename): New variable.
  11592. (_totalLength): New variable.
  11593. (setTotalLength): New variable.
  11594. (setFilename): New variable.
  11595. * src/MetalinkRequestInfo.cc
  11596. (execute): Set filename and size to UrlRequestInfo
  11597. * src/UrlRequestInfo.cc
  11598. (execute): Use filename and size from Metalink instead of seding
  11599. HEAD request to servers.
  11600. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11601. To add the ability to resume downloading a partially downloaded file
  11602. which is downloaded from the beginning:
  11603. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11604. takes this role.
  11605. * src/main.cc: Added -c option.
  11606. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11607. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11608. * src/prefs.h (PREF_CONTINUE): New definition.
  11609. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11610. * src/DefaultDiskWriter.cc
  11611. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11612. * src/AbstractDiskWriter.h
  11613. (glowFileAllocator): New variable.
  11614. * src/AbstractDiskWriter.cc
  11615. (openExistingFile): Now preallocate file space from the end of the
  11616. existing file if totalLength argument is specified and grater than 0.
  11617. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11618. to download exists in local, continue the download of the file.
  11619. --allow-overwrite=true is assumed in this context.
  11620. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11621. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11622. Throw exception if --check-integrity=true is specified but chunk
  11623. checksums are not provided:
  11624. * src/UrlRequestInfo.cc
  11625. Do not print URLs to stdout:
  11626. * src/UrlRequestInfo.cc
  11627. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11628. * src/Request.h: Use AuthResolver to get authentication information.
  11629. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11630. set to RequestFactory object.
  11631. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11632. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11633. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11634. create Request object.
  11635. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11636. To integrate Netrc into exsiting classes:
  11637. * src/Request.h
  11638. (_userDefinedAuthConfig): New variable.
  11639. (findNetrcAuthenticator): New function.
  11640. (segment): Removed.
  11641. (setUserDefinedAuthConfig): New function.
  11642. (resolveHttpAuthConfigItem): New function.
  11643. (resolveFtpAuthConfigItem): New function.
  11644. (resolveHttpProxyAuthConfigItem): New function.
  11645. * src/HttpRequest.h
  11646. (authConfig): Removed.
  11647. (proxyAuthConfig): Removed.
  11648. (setAuthConfig): Removed.
  11649. (setProxyAuthConfig): Removed.
  11650. * src/UrlRequest.h
  11651. (getHeadResult): Added a parameter: authConfigHandle
  11652. * src/common.h
  11653. (SingletonHolder.h): New include.
  11654. * src/main.cc
  11655. (Netrc.h): New include.
  11656. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11657. Added initial value of PREF_NETRC_PATH.
  11658. Added the initialization of netrc.
  11659. * src/AuthConfig.h: New class.
  11660. * src/prefs.h
  11661. (PREF_NETRC_PATH): New definition.
  11662. * src/HttpAuthConfig.h: Removed.
  11663. * src/Netrc.cc
  11664. (getRequiredNextToken): New function.
  11665. (skipMacdef): New function.
  11666. (parse): Rewritten.
  11667. * src/Netrc.h
  11668. (getRequiredNextToken): New function.
  11669. (skipMacdef): New function.
  11670. * src/Util.h, src/Util.cc
  11671. (getHomeDir): New function.
  11672. * src/TrackerWatcherComand.cc
  11673. (createRequestCommand): Use AuthConfig.
  11674. * src/FtpConnection.cc
  11675. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11676. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11677. * src/Request.cc
  11678. (findNetrcAuthenticator): New function.
  11679. (resolveHttpAuthConfigItem): New function.
  11680. (resolveFtpAuthConfigItem): New function.
  11681. (resolveHttpProxyAuthConfigItem): New function.
  11682. * src/UrlRequestInfo.cc: Use AuthConfig.
  11683. * src/HttpRequest.cc
  11684. (createRequest): Use authConfig.
  11685. (getProxyAuthString): Use authConfig.
  11686. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11687. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11688. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11689. To reduce overhead to find commands whose socket is either
  11690. readable or writable in the download engine loop:
  11691. * src/Command.h, src/Command.cc
  11692. (STATUS): New enum.
  11693. (status): New variable.
  11694. (statusMatch): New function.
  11695. (setStatusActive): New function.
  11696. (setStatusInactive): New function.
  11697. * src/DownloadEngine.h, src/DownloadEngine.cc
  11698. (executeCommand): New function.
  11699. (run): Simplified.
  11700. (waitData): Call Command::setStatusActive() when command's socket is
  11701. readable or writable.
  11702. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11703. To handle Segment as SegmentHandle:
  11704. * src/AbstractCommand.cc (execute): Rewritten.
  11705. * src/SegmentMan.h: Segment -> SegmentHandle
  11706. Introducded HttpResponse class, HttpRequest class to improve code
  11707. extensiveness and make it clear:
  11708. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11709. HttpResponse class.
  11710. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11711. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11712. * src/HttpConnection.cc: Contruction of http request were moved to
  11713. HttpRequest class.
  11714. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11715. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11716. * src/HttpAuthConfig.h: New class.
  11717. * src/Range.h: New class.
  11718. To make FtpTunnel{Request, Response}Command and
  11719. HttpProxy{Request, Response}Command derived from
  11720. AbstractProxy{Request, Response}Command:
  11721. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11722. Derived from AbstractProxyRequestCommand class.
  11723. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11724. Derived from AbstractProxyResponseCommand class.
  11725. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11726. Derived from AbstractProxyRequestCommand class.
  11727. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11728. Derived from AbstractProxyResponseCommand class.
  11729. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11730. : New class.
  11731. * src/AbstractProxyResponseCommand.h,
  11732. src/AbstractProxyResponseCommand.cc: New class.
  11733. To add netrc support:
  11734. * src/Netrc.h, src/Netrc.cc: New class.
  11735. * src/Util.h, src/Util.cc (split): New function.
  11736. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11737. "Content-Range" header instead of "Range" header.
  11738. * src/HttpHeader.h
  11739. (getStatus): Removed.
  11740. (setStatus): Removed.
  11741. * src/Segment.h
  11742. (getPositionToWrite): New function.
  11743. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11744. * src/HttpHeader.h
  11745. (Range.h): New include.
  11746. (status): New variable.
  11747. (HttpHeader): Initialized status with 0.
  11748. (getStatus): New function.
  11749. (setStatus): New function.
  11750. (getRange): New function.
  11751. (HttpHeaderHandle): New function.
  11752. * src/HttpHeader.cc
  11753. (getRange): New function.
  11754. * src/Request.h
  11755. (RequestWeakHandle): New definition.
  11756. * src/HttpConnection.h
  11757. (HttpConnectionHandle): New type definition.
  11758. * src/HttpConnection.cc
  11759. (receiveResponse): Set HTTP status to headers.
  11760. * src/main.cc
  11761. (showUsage): Fixed typo.
  11762. * src/Segment.h
  11763. (SegmentHandle): New type definition.
  11764. * src/BitfieldMan.h
  11765. (getMissingUnusedLength): New function.
  11766. * src/BitfieldMan.cc
  11767. (getMissingUnusedLength): New function.
  11768. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11769. To fix static initialization order problem:
  11770. * src/BitfieldManFactory.h
  11771. (defaultRandomizer): Removed.
  11772. (factory): New variable.
  11773. (getNewFactory): Removed.
  11774. (getFactoryInstance): New function.
  11775. (setDefaultRandomizer): Rewritten.
  11776. (getDefaultRandomizer): Rewritten.
  11777. * src/BitfieldManFactory.cc
  11778. (defaultRandomizer): Removed.
  11779. (factory): Initialized to 0.
  11780. (BitfieldManFactory): Initialized randomizer to 0.
  11781. * src/DefaultPieceStorage.cc
  11782. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11783. * src/Peer.cc
  11784. (Peer): getNewFactory() -> getFactoryInstance()
  11785. * src/SegmentMan.cc
  11786. (initBitfield): getNewFactory() -> getFactoryInstance()
  11787. * src/Piece.cc
  11788. (Piece): getNewFactory() -> getFactoryInstance()
  11789. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11790. To fix the bug that causes crash on Max OS X:
  11791. * src/SimpleRandomizer.h
  11792. (getInstance): Create new instance if the static variable is null.
  11793. * src/SimpleRandomizer.cc
  11794. (randomizer): Initialized to 0.
  11795. * src/BitfieldManFactory.h
  11796. (getNewFactory): Removed the call to setRandomizer().
  11797. To fix the miscalculation of the range of checksum:
  11798. * src/BitfieldMan.h
  11799. (isBitSetOffsetRange): New function.
  11800. * src/BitfieldMan.cc
  11801. (isBitSetOffsetRange): New function.
  11802. * src/SegmentMan.cc
  11803. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11804. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11805. * Release 0.10.1
  11806. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11807. To lower CPU usage in BitTorrent download when --max-upload-limit
  11808. command-line option specified:
  11809. * src/DefaultBtMessageDispatcher.cc
  11810. (sendMessages): Calculate uploading speed only when current message
  11811. is uploading data and is not sent yet.
  11812. * src/DefaultPeerStorage.h
  11813. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11814. * src/HttpResponseCommand.cc
  11815. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11816. This fixes compile error in Soralis 10.
  11817. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11818. To fix segfault in Metalink download:
  11819. * src/UrlRequestInfo.h
  11820. (filename): Removed.
  11821. (totalLength): Removed.
  11822. (setTotalLength): Removed.
  11823. (setFilename): Removed.
  11824. * src/MetalinkRequestInfo.cc
  11825. (execute): Do not set filename and totalLength to reqInfo.
  11826. Set chunk checksum to reqInfo if it is not null.
  11827. * src/HttpResponseCommand.cc
  11828. (executeInternal): Fixed filename in log.
  11829. (handleDefaultEncoding): Removed the call to initBitfield() and
  11830. markAllPiecesDone().
  11831. (handleOtherEncoding): Added HEAD method handling.
  11832. * src/FtpNegotiateCommand.cc
  11833. (executeInternal): Added SEQ_HEAD_OK handling.
  11834. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11835. return false.
  11836. * src/FtpNegotiateCommand.h
  11837. (SEQ_HEAD_OK): New definition.
  11838. * src/SegmentMan.cc
  11839. (initBitfield): Delete bitfield.
  11840. (isChunkChecksumValidationReady): Fixed the condition.
  11841. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11842. works fine.
  11843. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. * src/Xml2MetalinkProcessor.h
  11845. (xpathExists): New function.
  11846. * src/Xml2MetalinkProcessor.cc
  11847. (xpathExists): New function.
  11848. Not to send HEAD request if filename and size are available in Metalink
  11849. file:
  11850. * src/UrlRequestInfo.h
  11851. (filename): New variable.
  11852. (totalLength): New variable.
  11853. (setTotalLength): New function.
  11854. (setFilename): New function.
  11855. * src/MetalinkRequestInfo.cc
  11856. (execute): Set filename and size to UrlRequestInfo.
  11857. * src/MetalinkEntry.cc
  11858. (MetalinkEntry): Initialize size with 0.
  11859. * src/UrlRequestInfo.cc
  11860. (execute): Set filename and size to SegmentMan.
  11861. Not to download rest of the files after selected files are downloaded
  11862. in BitTorrent:
  11863. * src/PieceStorage.h
  11864. (allDownloadFinished): New function.
  11865. * src/DefaultBtAnnounce.cc
  11866. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11867. downloadFinished.
  11868. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11869. * src/DefaultPieceStorage.cc
  11870. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11871. Commented out the call to finishSelectiveDownloadingMode().
  11872. (downloadFinished): Call isFilteredAllBitSet() instead of
  11873. isAllBitSet().
  11874. (allDownloadFinished): New function.
  11875. * src/DefaultBtInteractive.cc
  11876. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11877. downloadFinished().
  11878. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11879. * src/TorrentDownloadEngine.cc
  11880. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11881. * src/BitfieldMan.h
  11882. (isFilteredAllBitSet): New function.
  11883. * src/ShareRatioSeedCriteria.h
  11884. (PieceStorage.h): New include.
  11885. (pieceStorage): New variable.
  11886. (evaluate):
  11887. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11888. * src/BitfieldMan.cc
  11889. (isFilteredAllBitSet): New function.
  11890. (isAllBitSet): Filter is not took into account.
  11891. Rename --force-truncate as --allow-overwrite:
  11892. * src/TorrentRequestInfo.cc
  11893. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11894. * src/main.cc
  11895. (showUsage): --force-truncate -> --allow-overwrite
  11896. * src/message.h
  11897. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11898. * src/prefs.h
  11899. (PREF_FORCE_TRUNCATE): Removed.
  11900. (PREF_ALLOW_OVERWRITE): New definition.
  11901. * src/SegmentMan.cc
  11902. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11903. * src/MetalinkRequestInfo.cc
  11904. (execute): Queueing message are now logged in info level.
  11905. * src/common.h
  11906. (LONG_LONG_MAX): Removed.
  11907. (LONG_LONG_MIN): Removed.
  11908. * src/HttpResponseCommand.cc
  11909. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11910. * src/FtpNegotiateCommand.cc
  11911. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11912. * src/main.cc
  11913. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11914. command-line option.
  11915. (main): Added --check-integriy and --realtime-chunk-checksum
  11916. command-line option.
  11917. --force-truncate -> --allow-overwrite
  11918. Set initial value of --check-integrity option to false.
  11919. Don't show usage when error occurs while persing command-line options.
  11920. Removed deprecated --upload-limit option.
  11921. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11922. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11923. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11924. * src/BtAllowedFastMessage.cc:
  11925. * src/BtBitfieldMessage.cc
  11926. * src/BtCancelMessage.cc
  11927. * src/BtChokeMessage.cc
  11928. * src/BtHaveAllMessage.cc
  11929. * src/BtHaveMessage.cc
  11930. * src/BtHaveNoneMessage.cc
  11931. * src/BtInterestedMessage.cc
  11932. * src/BtNotInterestedMessage.cc
  11933. * src/BtPieceMessage.cc
  11934. * src/BtPortMessage.cc
  11935. * src/BtRejectMessage.cc
  11936. * src/BtRequestMessage.cc
  11937. * src/BtSuggestPieceMessage.cc
  11938. * src/BtUnchokeMessage.cc
  11939. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11940. files are affected.
  11941. * src/ChunkChecksumValidator.cc
  11942. * src/SegmentMan.cc
  11943. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11944. To add chunk checksum validation:
  11945. * src/MetalinkEntry.h
  11946. (MetalinkChunkChecksum.h): New include.
  11947. (chunkChecksum): New variable.
  11948. * src/Request.h
  11949. (method): New variable.
  11950. (setMethod): New function.
  11951. (getMethod): New function.
  11952. (METHOD_GET): New static constant.
  11953. (METHOD_HEAD): New static constant.
  11954. * src/Xml2MetalinkProcessor.h
  11955. (getPieceHash): New function.
  11956. * src/PieceStorage.h
  11957. (markAllPiecesDone): New function.
  11958. (checkIntegrity): New function.
  11959. * src/FileAllocator.h
  11960. (NullFileAllocationMonitor.h): New include.
  11961. (FileAllocator): Initialize fileAllocationMonitor with new
  11962. NullFileAllocationMonitor().
  11963. * src/MultiDiskAdaptor.h
  11964. (messageDigest.h): Remove include.
  11965. (ctx): Removed.
  11966. (hashUpdate): Added ctx.
  11967. (MultiDiskAdaptor): Removed ctx.
  11968. (sha1Sum): Renamed as messageDigest.
  11969. (messageDigest): New function.
  11970. * src/UrlRequestInfo.h
  11971. (HeadResult): New class.
  11972. (digestAlgo): New variable.
  11973. (chunkChecksumLength): New variable.
  11974. (chunkChecksums): New variable.
  11975. (getHeadResult): New function.
  11976. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11977. (setDigestAlgo): New function.
  11978. (setChunkChecksumLength): New function.
  11979. (setChunkChecksums): New function.
  11980. * src/DefaultPieceStorage.cc
  11981. (DiskAdaptorWriter.h): New include.
  11982. (ChunkChecksumValidator.h): New include.
  11983. (markAllPiecesDone): New function.
  11984. (checkIntegrity): New function.
  11985. * src/DefaultBtContext.h
  11986. (getPieceHashes): New function.
  11987. * src/TorrentRequestInfo.cc
  11988. (execute): Try to validate chunk checksum if file already exists and
  11989. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11990. * src/messageDigest.h
  11991. (~MessageDigestContext): Added digestFree().
  11992. * src/MetalinkRequestInfo.cc
  11993. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11994. * src/DiskAdaptor.h
  11995. (messageDigest.h): New include.
  11996. (sha1Sum): Renamed as messageDigest.
  11997. (messageDigest): New function.
  11998. * src/DownloadCommand.h
  11999. (PeerStat.h): New include.
  12000. (maxDownloadSpeedLimit): New variable.
  12001. (startupIdleTime): New variable.
  12002. (lowestDownloadSpeedLimit): New variable.
  12003. (peerStat): New variable.
  12004. (setMaxDownloadSpeedLimit): New function.
  12005. (setStartupIdleTime): New function.
  12006. (setLowestDownloadSPeedLimit): New function.
  12007. * src/BtContext.h
  12008. (getPieceHashes): New function.
  12009. * src/main.cc
  12010. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12011. option to true for testing purpose.
  12012. * src/BtPieceMessage.cc
  12013. (checkPieceHash): Use messageDigest
  12014. * src/DownloadEngine.cc
  12015. (SetDescriptor): Removed.
  12016. (AccumulateActiveCommand): Removed.
  12017. (waitData): Rewritten.
  12018. (updateFdSet): Rewritten.
  12019. * src/MultiDiskAdaptor.cc
  12020. (hashUpdate): Added ctx.
  12021. (sha1Sum): Renamed as messageDigest.
  12022. (messageDigest): New function.
  12023. * src/BitfieldMan.h
  12024. (isBitRangeSet): New function.
  12025. (unsetBitRange): New function.
  12026. * src/ByteArrayDiskWriter.h
  12027. (sha1Sum): Renamed as messageDigest.
  12028. (messageDigest): New function.
  12029. * src/ConsoleDownloadEngine.cc
  12030. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12031. * src/DiskWriter.h
  12032. (messageDigest.h): New include.
  12033. (sha1Sum): Renamed as messageDigest.
  12034. (messageDigest): New function.
  12035. * src/ChunkChecksumValidator.h: New class.
  12036. * src/DiskAdaptorWriter.h: New class.
  12037. * src/prefs.h
  12038. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12039. (PREF_CHECK_INTEGRITY): New definition.
  12040. * src/HttpResponseCommand.cc
  12041. (handleDefaultEncoding): Added method "HEAD" handling.
  12042. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12043. (handleOtherEncoding):
  12044. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12045. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12046. startupIdleTime, lowestDownloadSpeedLimit to command.
  12047. * src/SegmentMan.h
  12048. (getSegmentEntryByIndex): New function.
  12049. (getSegmentEntryByCuid): New function.
  12050. (getSegmentEntryIteratorByCuid): New function.
  12051. (diskWriter): DiskWriter -> DiskWriterHandle
  12052. (pieceHashes): New variable.
  12053. (chunkHashLength): New variable.
  12054. (digestAlgo): New variable.
  12055. (FindPeerStat): Removed.
  12056. (getPeerStat): Rewritten.
  12057. (markAllPiecesDone): New function.
  12058. (checkIntegrity): New function.
  12059. (tryChunkChecksumValidation): New function.
  12060. (isChunkChecksumValidationReady): New function.
  12061. * src/BitfieldMan.cc
  12062. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12063. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12064. blocks to 0.
  12065. (isBitRangeSet): New function.
  12066. (unsetBitRange): New function.
  12067. * src/FtpNegotiateCommand.cc
  12068. (executeInternal): Set maxDownloadSpeedLimit,
  12069. startupIdleTime, lowestDownloadSpeedLimit to command.
  12070. (recvSize): Added method "HEAD" handling.
  12071. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12072. * src/AbstractSingleDiskAdaptor.cc
  12073. (sha1Sum): Renamed as messageDigest.
  12074. (messageDigest): New function.
  12075. * src/AbstractSingleDiskAdaptor.h
  12076. (sha1Sum): Renamed as messageDigest.
  12077. (messageDigest): New function.
  12078. * src/Util.h
  12079. (indexRange): New function.
  12080. * src/MetalinkEntry.cc
  12081. (MetalinkEntry): Initialized chunkChecksum to 0.
  12082. * src/ShaVisitor.cc
  12083. (~ShaVisitor): Removed the call to ctx.digestFree().
  12084. * src/SegmentMan.cc
  12085. (ChunkChecksumValidator.h): New include.
  12086. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12087. to DIGEST_ALGO_SHA1.
  12088. (~SegmentMan): Removed diskWriter.
  12089. (FindSegmentEntryByIndex): Removed.
  12090. (FindSegmentEntryByCuid): Removed.
  12091. (checkoutSegment): Rewritten.
  12092. (findSlowerSegmentEntry): Rewritten.
  12093. (getSegment): Rewritten.
  12094. (updateSegment): Rewritten.
  12095. (completeSegment): Rewritten.
  12096. (markAllPiecesDone): New function.
  12097. (checkIntegrity): New function.
  12098. (isChunkChecksumValidationReady): New function.
  12099. (tryChunkChecksumValidation): New function.
  12100. * src/Xml2MetalinkProcessor.cc
  12101. (getEntry): Get size and set it to entry.
  12102. Get chunk checksum and set it to entry.
  12103. (getPieceHash): New function.
  12104. * src/Util.cc
  12105. (sha1Sum): Removed ctx.digestFree()
  12106. (fileChecksum): Removed ctx.digestFree()
  12107. (indexRange): New function.
  12108. * src/Request.cc
  12109. (METHOD_GET): New variable.
  12110. (METHOD_HEAD): New variable.
  12111. (Request): Added method.
  12112. * src/UrlRequestInfo.cc
  12113. (FatalException.h): New include.
  12114. (message.h): New include.
  12115. (operator<<): Added operator<< for class HeadResult.
  12116. (getHeadResult): New function.
  12117. (execute): Get filename and size in separate download engine.
  12118. * src/ChunkChecksumValidator.cc: New class.
  12119. * src/DownloadCommand.cc:
  12120. (DownloadCommand): Added peerStat.
  12121. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12122. the value from Option.
  12123. The buffer size is now 16KB.
  12124. Use peerStat member instead of getting it from SegmentMan.
  12125. Use startupIdleTime member instead of gettingit from Option.
  12126. Added chunk checksum validation.
  12127. * src/AbstractDiskWriter.cc
  12128. (AbstractDiskWriter): Removed ctx.
  12129. (~AbstractDiskWriter): Removed ctx.digestFree()
  12130. (writeDataInternal): Returns the return value of write.
  12131. (readDataInternal): Returns the return value of read.
  12132. (sha1Sum): Renamed as messageDigest
  12133. (messageDigest): New function.
  12134. * src/AbstractDiwkWriter.h
  12135. (messageDigest.h): Removed include.
  12136. (ctx): Removed.
  12137. (sha1Sum): Renamed as messageDigest
  12138. (messageDigest): New function.
  12139. * src/DefaultPieceStorage.h
  12140. (markAllPiecesDone): New function.
  12141. (checkIntegrity): New function.
  12142. * src/NullFileAllocationMonitor.h: New class.
  12143. * src/MetalinkChunkChecksum.h: New class.
  12144. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12145. To decrease CPU usage in bittorrent download, calculation results in
  12146. BitfieldMan were cached and realtime fetching PeerObject was removed
  12147. with WeakHandle introduced. Option values are set to the objects
  12148. by setter before download begins.
  12149. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12150. * src/DefaultBtRequestFactory.h
  12151. (dispatcher): BtMessageDispatcherHandle ->
  12152. BtMessageDispatcherWeakHandle.
  12153. (messageFactory): New variable.
  12154. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12155. BtMessageDispatcherWeakHandle.
  12156. (setBtMessageFactory): New function.
  12157. * src/DefaultBtMessageDispatcher.cc:
  12158. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12159. from Option.
  12160. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12161. feating the value from Option.
  12162. Use messageFactory member.
  12163. * src/PeerInteractionCommand.cc
  12164. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12165. Add reverse dependencies to factory object.
  12166. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12167. dispatcher.
  12168. Set messageFactory to receiver.
  12169. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12170. btInteractive.
  12171. Set receiver to peerObject.
  12172. Set maxDownloadSpeedLimit to this.
  12173. (executeInternal): Use maxDownloadSpeedLimit member.
  12174. * src/BtChokeMessage.cc
  12175. (doReceivedAction): Use dispatcher, requestFactory member.
  12176. (onSendComplete): Use dispatcher member.
  12177. * src/PeerInteractionCommand.h
  12178. (maxDownloadSpeedLimit): New variable.
  12179. * src/DefaultBtMessageReceiver.h
  12180. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12181. (dispatcher):
  12182. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12183. (messageFactory): New variable.
  12184. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12185. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12186. (setDispatcher):
  12187. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12188. (setBtMessageFactory): New function.
  12189. * src/DefaultBtInteractive.cc
  12190. (initiateHandshake): Use messageFactory member.
  12191. (addBitfieldMessageToQueue): Use messageFactory member.
  12192. (addAllowedFastMessageToQueue): Use messageFactory member.
  12193. (decideChoking): Use messageFactory member.
  12194. (checkHave): Use messageFactory member.
  12195. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12196. (receiveMessages): Use maxDownloadSpeedLimit member.
  12197. (decideInterest): Use messageFactory member.
  12198. * src/BtRequestMessage.cc
  12199. (doReceivedAction): Use messageFactory, dispatcher member.
  12200. (onQueued): Use dispatcher member.
  12201. * src/BtPieceMessage.cc
  12202. (doReceivedAction): Use dispatcher member.
  12203. (send): Use peerConnection member.
  12204. (onWrongPiece): Use requestFactory member.
  12205. (handleChokingEvent): Use messageFactory, dispatcher member.
  12206. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12207. * src/BtMessageDispatcher.h
  12208. (BtMessageDispatcherWeakHandle): New type definition.
  12209. * src/SimpleBtMessage.cc
  12210. (send): Use peerConnection member.
  12211. * src/BtRejectMessage.cc
  12212. (doReceivedAction): Use dispatcher member.
  12213. * src/DefaultBtMessageDispatcher.h
  12214. (Option.h): Removed include.
  12215. (messageFactory): New variable.
  12216. (option): Removed.
  12217. (maxUploadSpeedLimit): New variable.
  12218. (requestTimeout): New variable.
  12219. (DefaultBtMessageDispatcher): Removed option.
  12220. Added maxUploadSpeedLimit, requestTimeout.
  12221. (setOption): Removed.
  12222. (getOption): Removed.
  12223. (setMaxUploadSpeedLimit): New function.
  12224. (setRequestTimeout): New function.
  12225. (setBtMessageFactory): New function.
  12226. * src/DefaultBtInteractive.h
  12227. (btMessageReceiver):
  12228. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12229. (dispatcher):
  12230. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12231. (btRequestFactory):
  12232. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12233. (peerConnection):
  12234. PeerConnectionHandle -> PeerConnectionWeakHandle
  12235. (messageFactory): New variable.
  12236. (option): Removed.
  12237. (keepAliveInterval): New variable.
  12238. (maxDownloadSpeedLimit): New variable.
  12239. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12240. (setBtMessageReceiver):
  12241. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12242. (setDispatcher):
  12243. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12244. (setBtRequestFactory):
  12245. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12246. (setPeerConnection):
  12247. PeerConnectionHandle -> PeerConnectionWeakHandle
  12248. (setOption): Removed.
  12249. (setKeepAliveInterval): New function.
  12250. (setMaxDownloadSpeedLimit): New function.
  12251. (setBtMessageFactory): New function.
  12252. * src/BitfieldMan.h
  12253. (cachedNumMissingBlock): New variable.
  12254. (cachedNumFilteredBlock): New variable.
  12255. (cachedCompletedLength): New variable.
  12256. (cachedFilteredComletedLength): New variable.
  12257. (cachedFilteredTotalLength): New variable.
  12258. (countMissingBlockNow): New function.
  12259. (countFilteredBlockNow): New function.
  12260. (getFilteredTotalLengthNow): New function.
  12261. (getCompletedLengthNow): New function.
  12262. (getFilteredCompletedLengthNow): New function.
  12263. (updateCache): New function.
  12264. * src/AbstractBtMessage.h
  12265. (BtMessageDispatcher.h): New include.
  12266. (PeerConnection.h): New include.
  12267. (BtRequestFactory.h): New include
  12268. (BtMessageFactory.h): New include.
  12269. (dispatcher): New variable.
  12270. (messageFactory): New variable.
  12271. (peerConnection: New variable.
  12272. (setBtMessageDispatcher): New function.
  12273. (setPeerConnection): New function.
  12274. (setBtMessageFactory): New function.
  12275. (setBtRequestFactory): New function.
  12276. * src/DefaultBtMessageFactory.cc
  12277. (setCommonProperty): Set dispatcher, requestFactory, this,
  12278. peerConnection to msg.
  12279. * src/BtRegistry.h
  12280. (BT_MESSAGE_RECEIVER): New macro.
  12281. * src/PeerConnection.h
  12282. (PeerConnectionWeakHandle): New type definition.
  12283. * src/BtMessageFactory.h
  12284. (BtMessageFactoryWeakHandle): New type definition.
  12285. * src/BitfieldMan.cc
  12286. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12287. cachedCompletedLength, cachedFilteredComletedLength,
  12288. cachedFilteredTotalLength.
  12289. Call updateCache().
  12290. (countMissingBlock): Return cachedNumMissingBlock.
  12291. (countMissingBlockNow): New function.
  12292. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12293. (countFilteredBlockNow): New function.
  12294. (setBit): Call updateCache().
  12295. (unsetBit): Call updateCache().
  12296. (setBitfield): Call updateCache().
  12297. (clearAllBit): Call updateCache().
  12298. (setAllBit): Use setBitInternal instead of setBit.
  12299. Call updateCache().
  12300. (addFilter): Call updateCache().
  12301. (enableFilter): Call updateCache().
  12302. (disableFilter): Call updateCache().
  12303. (clearFilter): Call updateCache().
  12304. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12305. (getFilteredTotalLengthNow): New function.
  12306. (getCompletedLength): Return cachedCompletedLength.
  12307. (getCompletedLengthNow): New function.
  12308. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12309. (getFilteredCompletedLengthNow): New function.
  12310. (updateCache): New function.
  12311. * src/BtMessageReceiver.h
  12312. (BtMessageReceiverWeakHandle): New type definition.
  12313. * src/DefaultBtMessageReceiver.cc
  12314. (receiveHandshake): Use messageFactory member.
  12315. (sendHandshake): Use messageFactory member.
  12316. (receiveMessage): Use messageFactory member.
  12317. * src/DefaultBtMessageFactory.h
  12318. (dispatcher): New variable.
  12319. (requestFactory): New variable.
  12320. (peerConnection): New variablle.
  12321. (setBtMessageDispatcher): New function.
  12322. (setBtRequestFactory): New function.
  12323. (setPeerConnection): New function.
  12324. * src/SharedHandle.h
  12325. (RefCount): New class.
  12326. (WeakHandle): New class.
  12327. * src/PeerObject.h
  12328. (BtMessageReceiver.h): New include.
  12329. (PeerObject): Added btMessageReceiver.
  12330. (btMessageReceiver): New variable.
  12331. * src/Util.cc
  12332. (countBit): Simplified.
  12333. * src/BtCancelMessage.cc
  12334. (doReceivedAction): Use dispatcher member.
  12335. * src/BtRequestFactory.h
  12336. (BtRequestFactoryWeakHandle): New type definition.
  12337. * src/PeerStorage.h
  12338. (downloadSpeed): int -> uint32_t
  12339. (uploadSpeed): int -> uint32_t
  12340. (sessionDownloadLength): long long int -> uint64_t
  12341. (sessionUploadLength): long long int -> uint64_t
  12342. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12343. To add RecoverableException, FatalException:
  12344. * src/AbstractCommand.cc
  12345. (onAbort): Exception -> RecoverableException
  12346. * src/PeerAbstractCommand.h
  12347. (RecoverableException.h): New include.
  12348. (onAbort): Exception -> RecoverableException.
  12349. * src/PeerInteractionCommand.cc
  12350. (onAbort): Exception -> RecoverableException.
  12351. * src/PeerAbstractCommand.cc
  12352. (execute): Exception -> RecoverableException.
  12353. (onAbort): Exception -> RecoverableException.
  12354. * src/TorrentRequestInfo.cc
  12355. (execute): Exception -> RecoverableException.
  12356. * src/MetalinkRequestInfo.cc
  12357. (execute): Exception -> RecoverableException.
  12358. * src/MetaFileUtil.cc: RecoverableException.
  12359. * src/AbstractCommand.h
  12360. (onAbort): Exception -> RecoverableException.
  12361. * src/DlRetryEx.h: Exception -> RecoverableException.
  12362. * src/DlAbortEx.h: Exception -> RecoverableException.
  12363. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12364. * src/Util.cc: Exception -> RecoverableException.
  12365. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12366. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12367. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12368. To make ID static const int
  12369. * src/BtInterestedMessage.h
  12370. (ID_t): Removed.
  12371. (ID): New variable.
  12372. (getId): Made non-const.
  12373. * src/BtPieceMessage.h
  12374. (ID_t): Removed.
  12375. (ID): New variable.
  12376. (getId): Made non-const.
  12377. * src/BtChokeMessage.h
  12378. (ID_t): Removed.
  12379. (ID): New variable.
  12380. (getId): Made non-const.
  12381. * src/BtHaveAllMessage.h
  12382. (ID_t): Removed.
  12383. (ID): New variable.
  12384. (getId): Made non-const.
  12385. * src/BtKeepAliveMessage.h
  12386. (ID_t): Removed.
  12387. (ID): New variable.
  12388. (getId): Made non-const.
  12389. * src/BtHandshakeMessage.h
  12390. (ID): New variable.
  12391. (getId): Made non-const.
  12392. * src/BtSuggestPieceMessage.h
  12393. (ID_t): Removed.
  12394. (ID): New variable.
  12395. (getId): Made non-const.
  12396. * src/BtPortMessage.h
  12397. (ID_t): Removed.
  12398. (ID): New variable.
  12399. (getId): Made non-const.
  12400. * src/AbstractBtMessage.h
  12401. (id): Removed.
  12402. (AbstractBtMessage): Removed id.
  12403. (getId): Removed.
  12404. * src/BtHaveMessage.h
  12405. (ID_t): Removed.
  12406. (ID): New variable.
  12407. (getId): Made non-const.
  12408. * src/BtAllowedFastMessage.h
  12409. (ID_t): Removed.
  12410. (ID): New variable.
  12411. (getId): Made non-const.
  12412. * src/BtCancelMessage.h
  12413. (ID_t): Removed.
  12414. (ID): New variable.
  12415. (getId): Made non-const.
  12416. * src/BtNotInterestedMessage.h
  12417. (ID_t): Removed.
  12418. (ID): New variable.
  12419. (getId): Made non-const.
  12420. * src/BtChokeMessage.h
  12421. (ID_t): Removed.
  12422. (ID): New variable.
  12423. (getId): Made non-const.
  12424. * src/BtRejectMessage.h
  12425. (ID_t): Removed.
  12426. (ID): New variable.
  12427. (getId): Made non-const.
  12428. * src/BtBitfieldMessage.h
  12429. (ID_t): Removed.
  12430. (ID): New variable.
  12431. (getId): Made non-const.
  12432. * src/BtUnchokeMessage.h
  12433. (ID_t): Removed.
  12434. (ID): New variable.
  12435. (getId): Made non-const.
  12436. * src/BtRequestMessage.h
  12437. (ID_t): Removed.
  12438. (ID): New variable.
  12439. (getId): Made non-const.
  12440. * src/BtHaveMessage.h
  12441. (ID_t): Removed.
  12442. (ID): New variable.
  12443. (getId): Made non-const.
  12444. To add --force-truncate command-line option and a check whether
  12445. the file already exists:
  12446. * src/DirectDiskAdaptor.h
  12447. (getFilePath): Made virtual public.
  12448. * src/MultiDiskAdaptor.h
  12449. (File.h): New include.
  12450. (DiskWriterEntry::fileEntry): Made private.
  12451. (DiskWriterEntry::fileExists): New function.
  12452. (DiskWriterEntry::getFileEntry): New function.
  12453. (fileExists): New function.
  12454. (getFilePath): New function.
  12455. * src/TorrentRequestInfo.cc
  12456. (FatalException.h): New include.
  12457. (message.h): New include.
  12458. (RecoverableException.h): New include.
  12459. (execute): Added a check whether file is already exists or not.
  12460. * src/DiskAdaptor.h
  12461. (fileExists): New function.
  12462. (getFilePath): New function.
  12463. * src/main.cc
  12464. (showUsage): Added an explanation of --force-truncate command-line
  12465. option.
  12466. (main): Added --force-truncate command-line option.
  12467. * src/Exception.h
  12468. (setMsg): buf[256] -> buf[1024]
  12469. * src/CopyDiskWriter.h
  12470. (getFilePath): Made public virtual.
  12471. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12472. (fileExists): New function.
  12473. * src/DownloadEngineFactory.cc
  12474. (newTorrentConsoleEngine): Don't open file here.
  12475. * src/message.h
  12476. (EX_FILE_ALREADY_EXISTS): New definition.
  12477. * src/prefs.h
  12478. (PREF_FOECE_TRUNCATE): New definition.
  12479. * src/HttpResponseCommand.cc
  12480. (handleDefaultEncoding): Added a check whether the file already exists.
  12481. * src/SegmentMan.h
  12482. (fileExists): New function.
  12483. (shouldCancelDownloadForSafety): New function.
  12484. * src/FtpNegotiateCommand.cc
  12485. (recvSize): Added a check whether the file already exists.
  12486. * src/AbstractSingleDiskAdaptor.cc
  12487. (File.h): New include.
  12488. (fileExists): New function.
  12489. * src/AbstractSingleDiskAdaptor.h
  12490. (getFilePath): Removed.
  12491. (fileExists): New function.
  12492. * src/SegmentMan.cc
  12493. (fileExists): New function.
  12494. (shouldCancelDownloadForSafety): New function.
  12495. To fix regression bug in torrent downloading:
  12496. * src/DefaultBtRequestFactory.cc
  12497. (doChokedAction): New function.
  12498. * src/DefaultBtRequestFactory.h
  12499. (doChokedAction): New function.
  12500. * src/DefaultBtMessageDispatcher.cc
  12501. (doChokedAction): Do not delete request if its target is in allowed
  12502. fast set.
  12503. * src/DefaultBtInteractive.cc
  12504. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12505. (sendKeepAlive): Send keep alive message even if the outgoing message
  12506. queue is not empty.
  12507. (decideInterest): Simplified the code.
  12508. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12509. it is already called when BtChokeMessage is received from a peer.
  12510. * src/BtRequestFactory.h
  12511. (doChokedAction): New function.
  12512. To clean up code:
  12513. * src/PeerInteractionCommand.h
  12514. (executeInternal): Added virtual keyword explicitly.
  12515. (prepareForRetry): Added virtual keyword explicitly.
  12516. (prepareForNextPeer): Added virtual keyword explicitly.
  12517. (onAbort): Added virtual keyword explicitly.
  12518. * src/RequestSlot.cc
  12519. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12520. * src/BtPieceMessage.cc
  12521. (doReceivedAction): Added a debug log of piece's bitfield.
  12522. * src/Piece.h
  12523. (getBitfieldLength): New function.
  12524. * src/ByteArrayDiskWriter.cc
  12525. (clear): Added buf = 0 to avoid double free corruption.
  12526. * src/FileAllocator.cc
  12527. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12528. Added cp.reset().
  12529. * src/BitfieldMan.h
  12530. (operator=): Rewritten.
  12531. * src/BitfieldMan.cc
  12532. (BitfieldMan): Initialized bitfield, useBitfield.
  12533. * src/PeerConnection.cc
  12534. (receiveMessage): Added a call to socket->readable() after getting
  12535. message length to avoid possible EOF.
  12536. * src/Util.cc
  12537. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12538. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12539. To add an ability to pre-allocate file space:
  12540. * src/DirectDiskAdaptor.h: Rewritten.
  12541. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12542. * src/MultiDiskAdaptor.h: Rewritten.
  12543. * src/DefaultPieceStorage.cc
  12544. (MultiDiskWriter.h): Removed include.
  12545. (PreAllocationDiskWriter.h): Removed include.
  12546. (FileAllocationMonitor.h): New include.
  12547. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12548. (initStorage): Rewritten.
  12549. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12550. * src/FileAllocator.h: New class.
  12551. * src/FileAllocator.cc: New class.
  12552. * src/FileAllocationMonitor.h: New class.
  12553. * src/FileAllocationMonitor.cc: New class.
  12554. * src/ConsoleFileAllocationMonitor.h: New class.
  12555. * src/ConsoleFileAllocationMonitor.cc: New class.
  12556. * src/AbstractSingleDiskAdaptor.h: New class.
  12557. * src/AbstractSingleDiskAdaptor.cc: New class.
  12558. * src/DiskAdaptor.h
  12559. (Directory.h): Removed include.
  12560. (DiskWriter.h): Removed include.
  12561. (FileEntry.h): Removed include.
  12562. (diskWriter): Removed.
  12563. (DiskAdaptor): Removed diskWriter.
  12564. (openFile): Made pure virtual.
  12565. (closeFile): Made pure virtual.
  12566. (openExistingFile): Made pure virtual.
  12567. (initAndOpenFile): Made pure virtual.
  12568. (writeData): Made pure virtual.
  12569. (readData): Made pure virtual.
  12570. (sha1Sum): Made pure virtual.
  12571. (getStoreDir): Returns const reference of storeDir.
  12572. (DiskAdaptorHandle): New type definition.
  12573. * src/main.cc
  12574. (ConsoleFileAllocationMonitor.h): New include.
  12575. (showUsage): Added default value description of -s option.
  12576. Added the description of --file-allocation option.
  12577. (main): Set default value of --file-allocation option to 'none'.
  12578. Added --file-allocation command-line option.
  12579. Setup FileAllocationMonitorFactory.
  12580. * src/FtpInitiateConnectionCommand.cc
  12581. (executeInternal): Removed diskWriter related processing, which was
  12582. moved to FtpNegotiationCommand.cc.
  12583. * src/DirectDiskAdaptor.cc
  12584. (getFilePath): Made non-const.
  12585. * src/CopyDiskAdaptor.h
  12586. (DiskAdaptor.h): Removed include.
  12587. (DiskWriter.h): Removed include.
  12588. (AbstractSingleDiskAdaptor.h): New include.
  12589. (getFilePath): Made non-const. Added virtual keyword.
  12590. (CopyDiskAdaptor): Removed diskWriter.
  12591. (getTempFile): Returns const reference.
  12592. (CopyDiskAdaptorHandle): New type definition.
  12593. * src/ByteArrayDiskWriter.cc
  12594. (clear): Simplified.
  12595. (initAndOpenFile): Rewritten.
  12596. (openFile): Call initAndOpenFile()
  12597. * src/MultiDiskAdaptor.cc: Rewritten.
  12598. * src/DownloadEngineFactory.cc
  12599. (FileAllocator.h): New include.
  12600. (FileAllocationMonitor.h): New include.
  12601. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12602. create DefaultDiskWriter with file allocator.
  12603. * src/DiskWriter.h
  12604. (initAndOpenFile): Added totalLength argument.
  12605. (openFile): Added totalLength argument.
  12606. * src/prefs.h
  12607. (PREF_FILE_ALLOCATION): New definition.
  12608. (V_PREALLOC): New definition.
  12609. (V_NONE): New definition.
  12610. * src/HttpResponseCommand.cc
  12611. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12612. size.
  12613. * src/FtpNegotiateCommand.cc
  12614. (Util.h): New include.
  12615. (recvSize): Open file here.
  12616. * src/Util.h
  12617. (ullitos): New function.
  12618. * src/CopyDiskWriter.h
  12619. (getFilePath): Made non-const.
  12620. * src/DefaultDiskWriter.h
  12621. (Option.h): New include.
  12622. (totalLength): Removed.
  12623. (DefaultDiskWriter): Removed totalLength.
  12624. (initAndOpenFile): Added totalLength argument.
  12625. (DefaultDiskWriterHandle): New type definition.
  12626. (createNewDiskWriter): New function.
  12627. * src/Util.cc
  12628. (ullitos): New function.
  12629. * src/DefaultDiskWriter.cc
  12630. (message.h): New include.
  12631. (FileAllocator.h): New include.
  12632. (prefs.h): New include.
  12633. (Util.h): New include.
  12634. (DefaultDiskWriter): Removed totalLength.
  12635. (initAndOpenFile): Added file allocation.
  12636. (createNewDiskWriter): New function. Just for temporary solution.
  12637. It will be rewritten later.
  12638. * src/DiskAdaptor.cc
  12639. (DiskAdaptor): Removed diskWriter.
  12640. * src/AbstractDiskWriter.cc
  12641. (LogFactory.h): New include.
  12642. (AbstractDiskWriter): Added fileAllocator, logger.
  12643. (openFile): Added totalLength argument.
  12644. * src/AbstractDiskWriter.h
  12645. (FileAllocator.h): New include.
  12646. (Logger.h): New include.
  12647. (fileAllocator): New variable.
  12648. (logger): New variable.
  12649. (openFile): Added totalLength argument. Added virtual keyword
  12650. explicitly.
  12651. (openExistingFile): Added totalLength argument. Added virtual keyword
  12652. explicitly.
  12653. (closeFile): Added virtual keyword explicitly.
  12654. (sha1Sum): Added virtual keyword explicitly.
  12655. (writeData): Added virtual keyword explicitly.
  12656. (readData): Added virtual keyword explicitly.
  12657. (setFileAllocator): New function.
  12658. * src/DefaultPieceStorage.h
  12659. (FileAllocator.h): New include.
  12660. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12661. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12662. * src/FileProgressMonitor.h: New class.
  12663. To compile aria2 on PC-BSD:
  12664. * src/DefaultBtContext.cc
  12665. (libgen.h): New include.
  12666. To fix memory leak:
  12667. * src/Exception.h
  12668. (~Exception): Delete cause. Fixed memory leak.
  12669. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12670. Rewritten a portion of bittorrent implementation:
  12671. * src/BtMessageValidator.h: New class.
  12672. * src/BtBitfieldMessageValidator.h: New class.
  12673. * src/BtHandshakeMessageValidator.h: New class.
  12674. * src/BtRequestMessageValidator.h: New class.
  12675. * src/BtSuggestPieceMessageValidator.h: New class.
  12676. * src/BtAllowedFastMessageValidator.h: New class.
  12677. * src/BtRejectMessageValidator.h: New class.
  12678. * src/BtCancelMessageValidator.h: New class.
  12679. * src/BtPieceMessageValidator.h: New class.
  12680. * src/BtHaveMessageValidator.h: New class.
  12681. * src/BtEventListener.h: New class.
  12682. * src/AbstractBtEventListener.h: New class.
  12683. * src/BtEvent.h: New class.
  12684. * src/BtChokingEvent.h: New class.
  12685. * src/BtChokedEvent.h: New class.
  12686. * src/BtCancelSendingPieceEvent.h: New class.
  12687. * src/BtAbortOutstandingRequestEvent.h: New class.
  12688. * src/Randomizer.h: New class.
  12689. * src/SimpleRandomizer.h: New class.
  12690. * src/BtMessage.h: New class.
  12691. * src/AbstractBtMessage.h: New class.
  12692. * src/SimpleBtMessage.h: New class.
  12693. * src/BtHaveMessage.h: New class.
  12694. * src/BtInterestedMessage.h: New class.
  12695. * src/BtAllowedFastMessage.h: New class.
  12696. * src/BtUnchokeMessage.h: New class.
  12697. * src/BtCancelMessage.h: New class.
  12698. * src/BtNotInterestedMessage.h: New class.
  12699. * src/BtChokeMessage.h: New class.
  12700. * src/BtHaveNoneMessage.h: New class.
  12701. * src/BtHandshakeMessage.h: New class.
  12702. * src/BtSuggestPieceMessage.h: New class.
  12703. * src/BtHaveMessage.h: New class.
  12704. * src/BtPieceMessage.h: New class.
  12705. * src/BtHaveAllMessage.h: New class.
  12706. * src/BtKeepAliveMessage.h: New class.
  12707. * src/BtPortMessage.h: New class.
  12708. * src/BtRejectMessage.h: New class.
  12709. * src/BtBitfieldMessage.h: New class.
  12710. * src/BtRequestMessage.h: New class.
  12711. * src/DefaultBtRequestFactory.h: New class.
  12712. * src/DefaultBtMessageReceiver.h: New class.
  12713. * src/BtInteractive.h: New class.
  12714. * src/BtMessageDispatcher.h: New class.
  12715. * src/DefaultBtMessageDispatcher.h: New class.
  12716. * src/DefaultBtInteractive.h: New class.
  12717. * src/BitfieldManFactory.h: New class.
  12718. * src/HandleRegistry.h: New class.
  12719. * src/BtMessageFactory.h: New class.
  12720. * src/BtMessageReceiver.h: New class.
  12721. * src/DefaultBtMessageFactory.h: New class.
  12722. * src/PeerObject.h: New class.
  12723. * src/BtRequestFactory.h: New class.
  12724. * src/SuggestPieceMessage.h: Removed.
  12725. * src/PortMessage.h: Removed.
  12726. * src/SuggestPieceMessage.h: Removed.
  12727. * src/KeepAliveMessage.h: Removed.
  12728. * src/HandshakeMessage.h: Removed.
  12729. * src/PeerInteraction.h: Removed.
  12730. * src/UnchokeMessage.h: Removed.
  12731. * src/PieceMessage.h: Removed.
  12732. * src/RequestMessage.h: Removed.
  12733. * src/InterestedMessage.h: Removed.
  12734. * src/HaveMessage.h: Removed.
  12735. * src/CancelMessage.h: Removed.
  12736. * src/RejectMessage.h: Removed.
  12737. * src/AllowedFastMessage.h: Removed.
  12738. * src/HaveNoneMessage.h: Removed.
  12739. * src/SimplePeerMessage.h: Removed.
  12740. * src/HaveAllMessage.h: Removed.
  12741. * src/BitfieldMessage.h: Removed.
  12742. * src/PeerMessageFactory.h: Removed.
  12743. * src/NotInterestedMessage.h: Removed.
  12744. * src/ChokeMessage.h: Removed.
  12745. * src/PeerMessage.h: Removed.
  12746. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12747. To know root cause of exception:
  12748. * src/Exception.h
  12749. (cause): New variable.
  12750. (Exception): Added a parameter.
  12751. (getMsg): Return const reference to msg.
  12752. (getCause): New function.
  12753. * src/DlRetryEx.h
  12754. (DlRetryEx): Added a parameter 'cause'.
  12755. Added an overloaded constructor.
  12756. (DlAbortEx): Added a parameter 'cause'.
  12757. Added an overloaded constructor.
  12758. * src/SimpleLogger.cc
  12759. (writeLog): Log nested exception messages recursively.
  12760. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12761. * src/DefaultBtProgressInfoFile.cc
  12762. (load): Fixed memory leak when the infohash doesn't match.
  12763. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12764. * src/DefaultPeerStorage.cc
  12765. (calculateStat): Simplified the code by combining 2 loops into 1.
  12766. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12767. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12768. for BitTorrent download:
  12769. * src/PeerAbstractCommand.cc
  12770. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12771. * src/main.cc:
  12772. (timeoutSpecified): Removed.
  12773. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12774. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12775. * src/TorrentRequestInfo.cc
  12776. (timeoutSpecified): Removed.
  12777. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12778. timeout value.
  12779. * src/prefs.h
  12780. (PREF_BT_TIMEOUT): New definition.
  12781. Delete unused variables:
  12782. * src/TorrentRequestInfo.cc
  12783. (requestInfo): Removed.
  12784. Move setSignalHander to Util::setGlobalSignalHandler:
  12785. * src/TorrentRequestInfo.cc:
  12786. setSignalHander -> Util::setGlobalSignalHandler
  12787. * src/main.cc
  12788. (setSignalHander): Removed.
  12789. (main): setSignalHander -> Util::setGlobalSignalHandler
  12790. * src/Util.h
  12791. (setGlobalSignalHandler): New function.
  12792. * src/Util.cc
  12793. (setGlobalSignalHandler): New function.
  12794. * src/UrlRequestInfo.cc:
  12795. setSignalHander -> Util::setGlobalSignalHandler
  12796. Reset peer status in order to exit gracefully:
  12797. * src/PeerAbstractCommand.cc
  12798. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12799. To fix the bug that causes the number of bytes uploaded is not saved
  12800. to .aria2 file:
  12801. * src/DefaultPeerStorage.h
  12802. (removedPeerSessionDownloadLength): New variable.
  12803. (removedPeerSessionUploadLength): New variable.
  12804. * src/DefaultPeerStorage.cc
  12805. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12806. removedPeerSessionUploadLength(0).
  12807. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12808. through all peers, and then add removedPeerSessionDownloadLength(
  12809. removedPeerSessionUploadLength) to it.
  12810. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12811. (to) the peer to removedPeerSessionDownloadLength
  12812. (removedPeerSessionUploadLength).
  12813. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12814. To add Metalink location option:
  12815. * src/MetalinkRequestInfo.cc
  12816. (execute): Call MetalinkEntry::setLocationPreference()
  12817. * src/main.cc
  12818. (showUsage): Added the help message for --metalink-location option.
  12819. (main): Added --metalink-location option.
  12820. * src/prefs.h
  12821. (PREF_METALINK_LOCATION): New definition.
  12822. * src/MetalinkEntry.cc
  12823. (AddLocationPreference): New function object.
  12824. (setLocationPreference): New function.
  12825. * src/Xml2MetalinkProcessor.cc
  12826. (getResource): Set location attribute to MetalinkResource
  12827. To show URLs to download
  12828. * src/UrlRequestInfo.h
  12829. (printUrls): New function.
  12830. To add multiple <file> Metalink support:
  12831. * src/MetalinkEntry.h
  12832. (MetalinkResources): Removed.
  12833. (setLocationPreference): New function.
  12834. (MetalinkEntryHandle): New type definition.
  12835. (MetalinkEntries): New type definition.
  12836. * src/Xml2MetalinkProcessor.h
  12837. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12838. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12839. (parseFile): Metalinker* -> MetalinkerHandle
  12840. * src/UrlRequestInfo.h
  12841. (execute): RequestInfo* -> RequestInfos
  12842. * src/MetalinkRequestInfo.cc
  12843. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12844. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12845. (execute): RequestInfo* -> RequestInfos
  12846. Added multiple <file> support. Print filename when it is queued.
  12847. * src/MetalinkRequestInfo.h
  12848. (execute): RequestInfo* -> RequestInfos
  12849. (getDownloadEngine): Removed.
  12850. * src/RequestInfo.h
  12851. (RequestInfoHandle): New type definition.
  12852. (RequestInfos): New type definition.
  12853. (execute): RequestInfo* -> RequestInfos
  12854. (getDownloadEngine): Removed.
  12855. * src/MetalinkResource.h
  12856. (MetalinkResourceHandle): New type definition.
  12857. (MetalinkResources): New type definition.
  12858. * src/MetalinkEntry.cc
  12859. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12860. because the element is now of type MetalinkResourceHandle.
  12861. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12862. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12863. (dropUnsupportedResource): Removed the deletion of the elements of
  12864. resources because the element is now of type MetalinkResourceHandle.
  12865. * src/Xml2MetalinkProcessor.cc
  12866. (parseFile): Metalinker* -> MetalinkerHandle
  12867. MetalinkEntry* -> MetalinkEntryHandle
  12868. Removed try-catch block.
  12869. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12870. MetalinkResource* -> MetalinkResourceHandle
  12871. Removed try-catch block.
  12872. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12873. Free result by using xmlXPathFreeObject()
  12874. * src/Metalinker.cc
  12875. (~Metalinker): Removed the deletion of entries.
  12876. MetalinkEntry* -> MetalinkEntryHandle
  12877. (queryEntry): Add multiple <file> Metalink support.
  12878. * src/Metalinker.h
  12879. (MetalinkEntries): Removed.
  12880. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12881. * src/MetalinkProcessor.h
  12882. (parseFile): Metalinker* -> MetalinkerHandle
  12883. Bug fixes:
  12884. * src/PeerChokeCommand.cc
  12885. (execute): cat01->cat02
  12886. * src/DefaultPieceStorage.cc
  12887. (DefaultPieceStorage): Added diskAdaptor(0)
  12888. * src/TrackerWatcherComand.cc:
  12889. (execute): Use btAnnounce->noMoreAnnounce()
  12890. to determin whether the function returns true or not.
  12891. * src/TrackerUpdateCommand.cc:
  12892. (execute): Use btAnnounce->noMoreAnnounce()
  12893. to determin whether the function returns true or not.
  12894. * src/FtpConnection.cc
  12895. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12896. This is the fix of the busy loop bug.
  12897. * src/DownloadCommand.cc
  12898. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12899. cached PeerStat.
  12900. The value of "name" entry in torrent file is now set by
  12901. *DiskAdaptor::setTopDir(...) methods.
  12902. * src/MultiDiskAdaptor.h
  12903. (topDir): New variable.
  12904. (setTopDir): New function.
  12905. (getTopDir): New function.
  12906. * src/MultiDiskAdaptor.cc
  12907. (getFilePath): Concat storDir, "/" and topDir.
  12908. (mkdir): Use getFilePath() to get the directory path for output.
  12909. * src/DefaultPieceStorage.cc
  12910. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12911. CopyDiskAdaptor.
  12912. * src/CopyDiskAdaptor.h
  12913. (topDir): New variable.
  12914. (setTopDir): New function.
  12915. (getTopDir): New function.
  12916. * src/CopyDiskAdaptor.cc
  12917. (fixFilename): Updated.
  12918. Misc
  12919. * src/UrlRequestInfo.h
  12920. (e): Removed.
  12921. (UrlRequestInfo): Removed e.
  12922. (getDownloadEngine): Removed.
  12923. * src/UrlRequestInfo.cc
  12924. (handler): Rewritten.
  12925. (printUrls): New function.
  12926. (execute): Call printUrls().
  12927. * src/HandshakeMessage.cc
  12928. (check): peerinteraction->getBtContext() -> btContext
  12929. * src/PeerInteraction.h
  12930. (getBtContext): Removed.
  12931. * src/TorrentRequestInfo.h
  12932. (execute): RequestInfo* -> RequestInfos
  12933. (getDownloadEngine): Removed.
  12934. * src/TorrentRequestInfo.cc
  12935. (haltRequested): Removed.
  12936. (btHaltRequested): New variable.
  12937. (torrentHandler): haltRequested -> btHaltRequested
  12938. (execute): RequestInfo* -> RequestInfos
  12939. * src/TorrentConsoleDownloadEngine.cc
  12940. (afterEachIteration): haltRequested -> btHaltRequested.
  12941. * src/ConsoleDownloadEngine.h
  12942. (initStatistics): Added virtual.
  12943. (calculateStatistics): Added virtual.
  12944. (onEndOfRun): Added virtual.
  12945. (afterEachIteration): Added virtual.
  12946. * src/ConsoleDownloadEngine.cc
  12947. (haltRequested): New variable.
  12948. (afterEachIteration): New function.
  12949. * src/main.cc
  12950. (requestInfo): Removed.
  12951. * src/SegmentMan.cc
  12952. (findSlowerSegmentEntry): Refactored.
  12953. * Release 0.9.0
  12954. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12955. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12956. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12957. * src/TorrentMan.h: Removed.
  12958. * src/TorrentMan.cc: Removed.
  12959. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12960. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12961. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12962. * src/PeerAbstractCommand.cc: Use btRuntime.
  12963. * src/BtContextAwareCommand.h: New class.
  12964. * src/FileEntry.h: Added accessor methods for following variables.
  12965. (path): Made private.
  12966. (length): Made private.
  12967. (offset): Made private.
  12968. (extracted): Made private.
  12969. (requested): Made private.
  12970. (FileEntries): New definition.
  12971. (FileEntryHandle): New definition.
  12972. * src/FileEntry.cc: New file.
  12973. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12974. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12975. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12976. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12977. * src/PieceStorage.h: New file.
  12978. * src/PeerInteractionCommand.h: Use btContext.
  12979. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12980. btRuntime.
  12981. * src/DefaultBtProgressInfoFile.h: New file.
  12982. * src/DefaultBtProgressInfoFile.cc: New file.
  12983. * src/File.cc
  12984. (Util.h): New include.
  12985. (mkdirs): New function.
  12986. * src/MultiDiskAdaptor.h
  12987. (mkdir): New function.
  12988. * src/PeerListProcessor.h
  12989. (Peers): Removed.
  12990. * src/PeerInteraction.h
  12991. (torrentMan): Removed.
  12992. (btContext): New variable.
  12993. (peerStorage): New variable.
  12994. (pieceStorage): New variable.
  12995. (btAnnounce): New variable.
  12996. (getTorrentMan): Removed.
  12997. (getBtContext): New function.
  12998. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12999. btAnnounce.
  13000. * src/HandshakeMessage.h
  13001. (TorrentMan.h): Removed.
  13002. * src/HandshakeMessage.cc: Use btContext.
  13003. * src/DefaultBtAnnounce.cc: New file.
  13004. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13005. * src/DefaultPieceStorage.cc: New file.
  13006. * src/DefaultBtContext.h: New file.
  13007. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13008. Use the accessor methods of FileEntry.
  13009. * src/CookieBox.cc: Updated to use Util::slice().
  13010. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13011. * src/common.h (SharedHandle.h): New include.
  13012. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13013. pieceStorage.
  13014. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13015. * src/DiskAdaptor.h
  13016. (topDir): Removed.
  13017. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13018. (setTopDir): Removed.
  13019. (getTopDir): Removed.
  13020. * src/BtContext.h: New file.
  13021. * src/DefaultPeerStorage.h: New file.
  13022. * src/PieceMessage.h (TorrentMan.h): Removed.
  13023. * src/RequestMessage.h (TorrentMan.h): Removed.
  13024. * src/TorrentDownloadEngine.h
  13025. (uploadLength): New variable.
  13026. (btContext): New variable.
  13027. (btRuntime): New variable.
  13028. (pieceStorage): New variable.
  13029. (peerStorage): New variable.
  13030. (btAnnounce): New variable.
  13031. (btProgressInfoFile): New variable.
  13032. (torrentMan): Removed.
  13033. (setBtContext): New function.
  13034. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13035. peerStorage, btAnnounce, btProgressInfoFile.
  13036. * src/Piece.h
  13037. (toString): New function.
  13038. (Pieces): New type definition.
  13039. * src/Peer.h
  13040. (active): New variable.
  13041. (Peer): Added active.
  13042. (activate): Set active to true.
  13043. (deactivate): Set active to false.
  13044. (isActive): New function.
  13045. (Peers): New type definition.
  13046. * src/DirectDiskAdaptor.cc
  13047. (getFilePath): Use the accessor methods of FileEntry.
  13048. * src/TorrentConsoleDownloadEngine.h
  13049. (afterEachIteration): New function.
  13050. * src/TorrentConsoleDownloadEngine.cc
  13051. (haltRequested): New variable.
  13052. (sendStatistics): Use pieceStorage, btRuntime.
  13053. (afterEachIteration): New function.
  13054. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13055. * src/Directry.h
  13056. (Directory): New function.
  13057. (DirectoryHandle): New type definition.
  13058. * src/BtProgressInfoFile.h: New file.
  13059. * src/RequestMessage.cc: Use pieceStorage.
  13060. * src/BtRuntime.h: New file.
  13061. * src/DefaultBtContext.cc: New file.
  13062. * src/BitfieldMan.h
  13063. (getCompletedLength): New function(private).
  13064. (getCompletedLength): New function.
  13065. (getFilteredCompletedLength): New function.
  13066. * src/BitfieldMan.h
  13067. (getCompletedLength): New function(private).
  13068. (getCompletedLength): New function.
  13069. (getFilteredCompletedLength): New function.
  13070. * src/MultiDiskAdaptor.cc
  13071. (mkdir): New function.
  13072. (openFile): Call mkdir().
  13073. (initAndOpenFile): Call mkdir().
  13074. * src/CancelMessage.h
  13075. (TorrentMan.h): Removed.
  13076. * src/RejectMessage.h
  13077. (TorrentMan.h): Removed.
  13078. * src/DownloadEngineFactory.cc
  13079. (DefaultPieceStorage.h): New include.
  13080. (DefaultPeerStorage.h): New include.
  13081. (DefaultBtAnnounce.h): New include.
  13082. (DefaultBtProgressInfoFile.h): New include.
  13083. (newTorrentConsoleEngine): Rewritten.
  13084. * src/ShareRatioSeedCriteria.h
  13085. (torrentMan): Removed.
  13086. (btContext): New variable.
  13087. (peerStorage): New variable.
  13088. (btRuntime): New variable.
  13089. (evaluate): Use btContext, btRuntime, peerStorage.
  13090. * src/AnnounceTier.h: New file.
  13091. * src/BtAnnounce.h: New file.
  13092. * src/BtRegistry.h: New file.
  13093. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13094. * src/PeerConnection.h (TorrentMan.h): Removed.
  13095. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13096. * src/Util.h
  13097. (slice): Added an argument.
  13098. * src/Util.cc
  13099. (slice): Added an argument to control whether trim is made or not.
  13100. * src/PeerStorage.h: New file.
  13101. * src/BtRegistry.cc: New file.
  13102. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13103. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13104. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13105. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13106. * src/TorrentRequestInfo.h
  13107. (e): Removed.
  13108. (showFileEntry): Added an argument.
  13109. (getDownloadEngine): Return 0.
  13110. * src/DefaultBtAnnounce.h: New file.
  13111. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13112. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13113. * src/PeerMessageFactory.h
  13114. (btContext): New variable.
  13115. (pieceStorage): New variable.
  13116. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13117. btAnnounce.
  13118. * src/DiskAdaptor.cc
  13119. (DiskAdaptor): Removed topDir.
  13120. (~DiskAdaptor): Removed topDir.
  13121. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13122. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13123. * src/File.h (mkdirs): New function.
  13124. * src/DefaultPeerStorage): New file.
  13125. * src/DownloadEngineFactory.h
  13126. (newTorrentConsoleEngine): Use btContext.
  13127. * src/BtContextAwareCommand.cc: New file.
  13128. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13129. * src/PeerMessage.h
  13130. (btContext): New variable.
  13131. (peerStorage): New variable.
  13132. (pieceStorage): New variable.
  13133. (setBtContext): New function.
  13134. * src/Directry.cc
  13135. (Directory): New function.
  13136. (createDir): Do nothing if name.size() == 0.
  13137. * src/AnnounceList.h
  13138. (AnnounceTier): Removed.
  13139. (AnnounceTiers): Removed.
  13140. * src/DefaultPieceStorage.h: New file.
  13141. * src/Piece.cc (toString): New function.
  13142. To fix typo:
  13143. * src/main.cc (showVersion): Fixed typo.
  13144. To fix compile warning:
  13145. * src/DelegatingPeerListProcessor.cc
  13146. (canHandle): Added "return false".
  13147. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13148. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13149. make the process of announce request testable.
  13150. * src/TrackerWatcherCommand.h
  13151. (TimeA2.h): Removed.
  13152. (interval): Removed.
  13153. (checkPoint): Removed.
  13154. (createRequestCommand): Added an argument 'url'.
  13155. (TrackerWatherCommand): Removed interval.
  13156. (createCommand): New function.
  13157. * src/DownloadEngineFactory.cc
  13158. (newTorrentConsoleEngine): Updated according to the changes in
  13159. TrackerWatherCommand.
  13160. * src/TorrentMan.cc
  13161. (DelegatingPeerListProcessor.h): New includes.
  13162. (TorrentMan): Added the initialization of announceInterval.
  13163. (isStoppedAnnounceReady): New function.
  13164. (isCompletedAnnounceReady): New function.
  13165. (isDefaultAnnounceReady): New function.
  13166. (isAnnounceReady): New function.
  13167. (getAnnounceUrl): New function.
  13168. (announceStart): New function.
  13169. (announceFailure): New function.
  13170. (announceSuccess): New function.
  13171. (isAllAnnounceFailed): New function.
  13172. (resetAnnounce): New function.
  13173. (processAnnounceResponse): New function.
  13174. (needMorePeerConnection): New function.
  13175. (noMoreAnnounce): New function.
  13176. * src/TrackerUpdateCommand.h
  13177. (getTrackerResponse): int->size_t
  13178. * src/TorrentMan.h
  13179. (isStoppedAnnounceReady): New function.
  13180. (isCompletedAnnounceReady): New function.
  13181. (isDefaultAnnounceReady): New function.
  13182. (announceInterval): New variable.
  13183. (isAnnounceReady): New function.
  13184. (getAnnounceUrl): New function.
  13185. (announceStart): New function.
  13186. (announceFailure): New function.
  13187. (announceSuccess): New function.
  13188. (isAllAnnounceFailed): New function.
  13189. (resetAnnounce): New function.
  13190. (processAnnounceResponse): New function.
  13191. (needMorePeerConnection): New function.
  13192. (noMoreAnnounce): New function.
  13193. * src/TrackerWatcherCommand.cc
  13194. (TrackerWatherCommand): Removed interval and checkPoint.
  13195. (execute): Rewritten.
  13196. (createCommand): New function.
  13197. (createRequestCommand): Rewritten.
  13198. * src/TrackerUpdateCommand.cc
  13199. (MetaFileUtil.h): Removed.
  13200. (DelegatingPeerListProcessor.h): Removed.
  13201. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13202. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13203. Request -> RequestHandle:
  13204. * src/HttpResponseCommand.h: Request->RequestHandle
  13205. * src/AbstractCommand.cc: Request->RequestHandle
  13206. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13207. * src/HttpRequestCommand.cc: Request->RequestHandle
  13208. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13209. * src/AbstractCommand.h: Request->RequestHandle
  13210. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13211. * src/HttpResponseCommand.cc: Request->RequestHandle
  13212. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13213. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13214. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13215. * src/HttpConnection.h: Request->RequestHandle
  13216. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13217. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13218. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13219. * src/DownloadCommand.h: Request->RequestHandle
  13220. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13221. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13222. * src/HttpRequestCommand.h: Request->RequestHandle
  13223. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13224. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13225. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13226. * src/HttpDownloadCommand.h: Request->RequestHandle
  13227. * src/FtpConnection.cc: Request->RequestHandle
  13228. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13229. * src/UrlRequestInfo.cc: Request->RequestHandle
  13230. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13231. * src/HttpConnection.h: Request->RequestHandle
  13232. * src/DownloadCommand.cc: Request->RequestHandle
  13233. * src/FtpConnection.h: Request->RequestHandle
  13234. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13235. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13236. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13237. * src/Request.h
  13238. (SharedHandle.h): New include.
  13239. (RequestHandle): New type definition.
  13240. (Requests): Redefined.
  13241. To add MULTITRACKER support:
  13242. * src/TrackerWatcherCommand.h
  13243. (createRequestCommand): New function.
  13244. * src/DownloadEngineFactory.cc
  13245. (newTorrentConsoleEngine): Removed req.
  13246. * src/prefs.h
  13247. (PREF_TRACKER_MAX_TRIES): New definition.
  13248. * src/TorrentMan.cc
  13249. (TorrentMan): Removed req. Added trackerNumTry.
  13250. (~TorrentMan): Removed req.
  13251. (setupInternal1): Added announceList.
  13252. * src/TorrentRequestInfo.cc
  13253. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13254. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13255. * src/main.cc
  13256. (main): Added PREF_TRACKER_MAX_TRIES.
  13257. * src/TorrentMan.h
  13258. (Request.h): Removed.
  13259. (AnnounceList.h): New include.
  13260. (trackerNumTry): New variable.
  13261. (req): Removed.
  13262. (announceList): New variable.
  13263. * src/TrackerWatcherCommand.cc
  13264. (execute): Rewritten.
  13265. (createRequestCommand): New function.
  13266. * src/TrackerUpdateCommand.cc
  13267. (execute): Updated with the use of AnnounceList.
  13268. * src/AnnounceList.cc: New class.
  13269. * src/AnnounceList.h: New class.
  13270. To fix typo:
  13271. * src/prefs.h
  13272. (PREF_MAX_TRIES): max_try->max_tries
  13273. To not to decode "+" as space in URL decode:
  13274. * src/Util.cc
  13275. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13276. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13277. To add timeout to async name resolution:
  13278. * src/AbstractCommand.h
  13279. (nameResolveFinished): New function. This is not elegant way. It needs
  13280. to be more refined.
  13281. (nameResolverCheck): New variable.
  13282. * src/AbstractCommand.cc
  13283. (AbstractCommand): Added nameResolverCheck.
  13284. (execute): Added the check whether the name resolution has finished.
  13285. (setNameResolverCheck): Set nameResolverCheck to true.
  13286. (disableNameResolverCheck): Set nameResolverCheck to false.
  13287. (nameResolverFinished): New function.
  13288. * src/FtpInitiateConnectionCommand.h
  13289. (nameResolverFinished): New function.
  13290. * src/FtpInitiateConnectionCommand.cc
  13291. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13292. * src/HttpInitiateConnectionCommand.h
  13293. (nameResolverFinished): New function.
  13294. * src/HttpInitiateConnectionCommand.cc
  13295. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13296. * src/prefs.h
  13297. (PREF_DNS_TIMEOUT): New definition.
  13298. * src/main.cc
  13299. (main): Added PREF_DNS_TIMEOUT.
  13300. To add the support for a non-compact response from a tracker:
  13301. * src/PeerListProcessor.h: New class.
  13302. * src/DefaultPeerListProcessor.h: New class.
  13303. * src/DefaultPeerListProcessor.cc: New class.
  13304. * src/CompactPeerListProcessor.h: New class.
  13305. * src/CompactPeerListProcessor.cc: New class.
  13306. * src/DelegatingPeerListProcessor.h: New class.
  13307. * src/DelegatingPeerListProcessor.cc: New class.
  13308. * src/TorrentMan.cc
  13309. (addPeer): New function(overload).
  13310. (addPeer): Delete unused peers only when new peer is added.
  13311. * src/TorrentMan.h
  13312. (PeerListProcessor.h): Included.
  13313. (Peers): Removed.
  13314. (addPeer): New function(overload).
  13315. * src/TrackerUpdateCommand.cc
  13316. (netinet/in.h): Removed.
  13317. (DelegatingPeerListProcessor.h): Included.
  13318. (execute): Updated to use DelegatingPeerListProcessor.
  13319. To fix the memory leak in TorrentMan::peers:
  13320. * src/PeerAbstractCommand.cc
  13321. (onAbort): Added peer->resetStatus().
  13322. * src/Peer.h
  13323. (resetStatus): Made public.
  13324. To improve the precision of the speed calculation:
  13325. * src/SpeedCalc.h
  13326. (nextInterval): New variable.
  13327. * src/SpeedCalc.cc
  13328. (reset): Added nextInterval.
  13329. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13330. (changeSw): Set nextInterval to 15 seconds relative to the current
  13331. instant time.
  13332. * src/main.cc
  13333. (showVersion): Updated.
  13334. (showUsage): Updated.
  13335. * Release 0.8.1
  13336. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13337. * src/main.cc
  13338. (showUsage): Commented out --min-segment-size option.
  13339. (main): Commented out --min-segment-size option.
  13340. * Release 0.8.0
  13341. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13342. * src/*.{h,cc}:
  13343. Added an exception to the license which allows linking with OpenSSL.
  13344. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13345. * src/AbstractCommand.cc
  13346. (execute): Check whether the download has finished before checking
  13347. socket status.
  13348. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13349. Do not exit even if no segment is available.
  13350. * src/prefs.h
  13351. (PREF_STARTUP_IDLE_TIME): New definition.
  13352. * src/PeerInteractionCommand.cc
  13353. (executeInternal): Removed max speed limit. Because it performs bad.
  13354. (receiveMessages): Added max speed limit. This was better than above,
  13355. but still a little bit to be desired. Sometimes the download speed
  13356. became much faster than I specified.
  13357. * src/SpeedCalc.h
  13358. (start): New variable.
  13359. (accumulatedLength): New variable.
  13360. (getAvgSpeed): New function.
  13361. * src/SpeedCalc.cc
  13362. (reset): Added start, accumulatedLength.
  13363. (update): Added calculation of an average speed.
  13364. (getAvgSpeed): New function.
  13365. * src/DownloadCommand.h
  13366. (sw): Removed.
  13367. * src/main.cc
  13368. (main): Added PREF_STARTUP_IDLE_TIME.
  13369. * src/PeerStat.h
  13370. (STATUS): Added REQUEST_IDLE.
  13371. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13372. (getAvgDownloadSpeed): New function
  13373. (requestIdle): New function.
  13374. * src/SegmentMan.h
  13375. (SegmentEntryHandle): New type definition.
  13376. (SegmentEntries): Now holds SegmentEntryHandle.
  13377. (findSlowerSegmentEntry): New funtion.
  13378. * src/SegmentMan.cc
  13379. (save): Updated according to the changes in SegmentEntries.
  13380. (read): Updated according to the changes in SegmentEntries.
  13381. (FindSegmentEntryByIndex): Updated according to the changes in
  13382. SegmentEntries.
  13383. (FindSegmentEntryByCuid): Updated according to the changes in
  13384. SegmentEntries.
  13385. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13386. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13387. Renamed uitr as itr.
  13388. (findSlowerSegmentEntry): New function.
  13389. (getSegment): Updated according to the changes in SegmentEntries.
  13390. Added the feature that cancels the segment with slow server and fast
  13391. one takes it over.
  13392. (cancelSegment): Updated according to the changes in SegmentEntries.
  13393. (getDownloadLength): Updated according to the changes in
  13394. SegmentEntries.
  13395. (init): Assigned 0 to bitfield after deleting it.
  13396. * src/DownloadCommand.cc
  13397. (STARTUP_IDLE_TIME): Removed.
  13398. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13399. * src/PeerChokeCommand.cc
  13400. (optUnchokingPeer): Updated according to the changes in Peer.
  13401. (ResetDelta): Removed.
  13402. (UploadFaster): Updated according to the changes in Peer.
  13403. (DownloadFaster): Updated according to the changes in Peer.
  13404. (execute): I clarify the meaning of "upload" and "download" here.
  13405. "upload" means the transfer from localhost to remote host.
  13406. "download" means the transfer from remote host to localhost.
  13407. Based on this rule, I swapped orderByUploadRate and
  13408. orderByDownloadRate.
  13409. * src/PeerInteractionCommand.cc
  13410. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13411. (executeInternal): Removed the argument of
  13412. peerInteraction->sendMessages().
  13413. (receiveMessages): Rewritten download speed limit.
  13414. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13415. * src/HttpResponseCommand.cc
  13416. (handleDefaultEncoding): If file size is unknown in torrent request,
  13417. do not call segmentMan->initBitfield() here.
  13418. Disabled persistent connection feature in torrent request.
  13419. * src/UrlRequestInfo.h
  13420. (UrlRequestInfo): Removed const qualifier from option.
  13421. * src/TorrentMan.h
  13422. (TransferStat): New class.
  13423. (deltaDownloadLength): Removed.
  13424. (deltaUploadLength): Removed.
  13425. (addDeltaDownloadLength): Removed.
  13426. (getDeltaDownloadLength): Removed.
  13427. (resetDeltaDownloadLength): Removed.
  13428. (addDeltaUploadLength): Removed.
  13429. (getDeltaUploadLength): Removed.
  13430. (resetDeltaUploadLength): Removed.
  13431. (addActivePeer): Added peer->activate().
  13432. (deleteActivePeer): Added peer->deactivate().
  13433. (calculateStat): New function.
  13434. * src/TorrentMan.cc
  13435. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13436. (calculateStat): New function.
  13437. * src/PeerInteraction.h
  13438. (uploadLimit): Removed.
  13439. (option): New variable.
  13440. (setUploadLimit): Removed.
  13441. (getUploadSpeed): Removed.
  13442. (sendMessages): Removed the argument "currentUploadSpeed".
  13443. * src/PeerInteraction.cc
  13444. (prefs.h): Included.
  13445. (PeerInteraction): Removed uploadLimit. Added option.
  13446. (sendMessages): Rewritten upload speed limit.
  13447. (sendHandshake): Removed the argument from sendMessages().
  13448. (sendBitfield): Removed the argument from sendMessages().
  13449. * src/PeerAbstractCommand.cc
  13450. (execute): Commented out the portion of upload limit.
  13451. (onAbort): Removed peer->resetStatus().
  13452. * src/TorrentRequestInfo.cc
  13453. (timeoutSpecified): Declared extern.
  13454. (execute): Set timeout to 180 if timeout is not specified by.
  13455. command-line.
  13456. * src/PieceMessage.cc
  13457. (receivedAction): Added peer->updateDownloadLength().
  13458. Removed peer->addPeerUpload().
  13459. Removed torrentMan->addDeltaDownloadLength().
  13460. (send): Added peer->updateUploadLength().
  13461. Removed peer->addPeerDownload().
  13462. Removed torrentMan->addDeltaUploadLength().
  13463. * src/main.cc
  13464. (timeoutSpecified): New variable.
  13465. (main): Set timeoutSpecified to false.
  13466. If the command-line option "--upload-limit" is specified, then
  13467. timeoutSpecified is set to true. This option will remain in the next
  13468. release, but be deprecated in the future release.
  13469. * src/TorrentRequestInfo.h
  13470. (TorrentRequestInfo): Removed const qualifier from op.
  13471. * src/PeerStat.h
  13472. (uploadSpeed): New variable.
  13473. (PeerStat): Added default value to cuid.
  13474. (calculateUploadSpeed): New function.
  13475. (updateUploadLength): New function.
  13476. (getMaxUploadSpeed): New function.
  13477. (getAvgUploadSpeed): New function.
  13478. (reset): Added uploadSpeed. Set status to IDLE.
  13479. * src/TorrentDownloadEngine.h
  13480. (cp): Declared as Time.
  13481. (sessionDownloadLengthArray): Removed.
  13482. (sessionUploadLengthArray): Removed.
  13483. (currentCp): Removed.
  13484. (lastCalcStat): New variable
  13485. (lastElapsed): Removed.
  13486. (sessionDownloadLength): Removed.
  13487. (calculateStat): New function.
  13488. * src/TorrentDownloadEngine.cc
  13489. (initStatistics): Removed lastElapsed, cp[],
  13490. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13491. currentCp, sessionDownloadLength.
  13492. Added cp.reset() and lastCalcStat.reset().
  13493. (calculateSpeed): Changed the name of the argument.
  13494. (calculateStatistics): Rewritten.
  13495. (calculateStat): New function.
  13496. * src/Peer.h
  13497. (PeerStat.h): Included.
  13498. (peerUpload): Removed.
  13499. (peerDownload): Removed.
  13500. (peerStat): New variable.
  13501. (sessionUploadLength): New variable.
  13502. (sessionDownloadLength): New variable.
  13503. (deltaUpload): Removed.
  13504. (deltaDownload): Removed.
  13505. (resetStatus): Made private.
  13506. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13507. Removed peerUpload, peerDownload.
  13508. (updateUploadLength): New function.
  13509. (addDeltaUpload): Removed.
  13510. (updateDownloadLength): New function.
  13511. (resetDeltaUpload): Removed.
  13512. (getDeltaUpload): Removed.
  13513. (addDeltaDownload): Removed.
  13514. (calculateUploadSpeed): New function.
  13515. (resetDeltaDownload): Removed.
  13516. (getDeltaDownload): Removed.
  13517. (calculateDownloadSpeed): New function.
  13518. (getSessionUploadLength): New function.
  13519. (getSessionDownloadLength): New function.
  13520. (activate): New function.
  13521. (deactivate): New function.
  13522. (addPeerUpload): Removed.
  13523. (setPeerUpload): Removed.
  13524. (getPeerUpload): Removed.
  13525. (addPeerDownload): Removed.
  13526. (setPeerDownload): Removed.
  13527. (getPeerDownload): Removed.
  13528. * src/Peer.cc
  13529. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13530. * src/MetalinkRequestInfo.h
  13531. (MetalinkRequestInfo): Removed const qualifier from op.
  13532. * src/RequestInfo.h
  13533. (op): Removed const qualifier.
  13534. (RequestInfo): Removed const qualifier from op.
  13535. * src/prefs.h
  13536. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13537. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13538. * src/PeerInteractionCommand.cc
  13539. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13540. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13541. * src/PeerInteraction.cc
  13542. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13543. * src/main.cc
  13544. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13545. Added the description of "--max-download-limit" option.
  13546. Removed the description of "--upload-limit" option.
  13547. Added the description of "--max-upload-limit" option.
  13548. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13549. Added "--max-download-limit" option and "--max-upload-limit" option.
  13550. Added the warning message if "--upload-limit" option is used.
  13551. * src/DownloadCommand.cc
  13552. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13553. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13554. To rewrite segment download mechanism for HTTP/FTP download.
  13555. Use BitfieldMan to manage segment download.
  13556. * src/HttpResponseCommand.h
  13557. (executeInternal): Pass the reference of segment.
  13558. * src/AbstractCommand.cc
  13559. (prepareForRetry): Call segmentMan->cancelSegment here.
  13560. (onAbort): Call segmentMan->cancelSegment here.
  13561. * src/HttpDownloadCommand.cc
  13562. (prepareForNextSegment): New function.
  13563. * src/DownloadEngineFactory.cc
  13564. (newConsoleEngine): Removed splitter.
  13565. (newTorrentConsoleEngine): Removed splitter.
  13566. * src/Request.h
  13567. (segment): Renamed from seg.
  13568. * src/FtpInitiateConnectionCommand.h
  13569. (executeInternal): Pass the reference of segment.
  13570. * src/AbstractCommand.h
  13571. (executeInternal): Pass the reference of segment.
  13572. * src/pref.h
  13573. (PREF_SEGMENT_SIZE): New definition.
  13574. * src/HttpProxyRequestCommand.h
  13575. (executeInternal): Pass the reference of segment.
  13576. * src/HttpResponseCommand.cc
  13577. (checkResponse): Allowed status 206 when a request range starts 0.
  13578. (handleDefaultEncoding): Rewritten the code related to Segment.
  13579. (handleOtherEncoding): Rewritten the code related to Segment.
  13580. * src/SegmentMan.h
  13581. (SegmentEntry): New class.
  13582. (SegmentEntries): New type definition.
  13583. (bitfield): New variable.
  13584. (usedSegmentEntries): New variable.
  13585. (onNullBitfield): New function.
  13586. (checkoutSegment): New function.
  13587. (segments): Removed.
  13588. (splitter): Removed.
  13589. (unregisterId): Removed.
  13590. (getSegment): New function(overload)
  13591. (getDownloadedSize): Removed.
  13592. (cancelSegment): New function.
  13593. (completeSegment): New function.
  13594. (initBitfield): New function.
  13595. (hasSegment): New function.
  13596. (getDownloadLength): New function.
  13597. * src/BitfieldMan.h
  13598. (getStartIndex): New function.
  13599. (getEndIndex): New function.
  13600. (getMissingUnusedIndex): New function(overload).
  13601. (getSparseMissingUnusedIndex): New function.
  13602. * src/BitfieldMan.cc
  13603. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13604. (getMissingUnusedIndex): New function(overload).
  13605. (Range): New class.
  13606. (getStartIndex): New function.
  13607. (getEndIndex): New function.
  13608. (getSparseMissingUnusedIndex): New function.
  13609. (isBitSetInternal): Return false if the given index is less than 0.
  13610. * src/HttpInitiateConnectionCommand.h
  13611. (executeInternal): Pass the reference of segment.
  13612. * src/FtpNegotiateCommand.h
  13613. (executeInternal): Pass the reference of segment.
  13614. * src/FtpNegotiateCommand.cc
  13615. (recvSize): Initialize bitfield here.
  13616. * src/FtpTunnelResponseCommand.h
  13617. (executeInternal): Pass the reference of segment.
  13618. * src/HttpConnection.cc
  13619. (createRequest): Rewritten range header processing.
  13620. * src/DownloadCommand.h
  13621. (executeInternal): Pass the reference of segment.
  13622. (prepareForRetry): Removed.
  13623. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13624. function.
  13625. * src/main.cc
  13626. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13627. * src/SegmentMan.cc
  13628. (SegmentMan): Added bitfield. Removed splitter.
  13629. (~SegmentMan): Added bitfield. Removed splitter.
  13630. (unregisterId): Removed.
  13631. (getSegment): Rewritten.
  13632. (updateSegment): Rewritten.
  13633. (save): Rewritten.
  13634. (read): Rewritten.
  13635. (finished): Rewritten.
  13636. (getDownloadedSize): Removed.
  13637. (initBitfield): New function.
  13638. (FindSegmentEntryByIndex): New function object.
  13639. (FindSegmentEntryByCuid): New function object.
  13640. (checkoutSegment): New function.
  13641. (onNullBitfield): New function.
  13642. (getSegment): New function(overload).
  13643. (CancelSegment): New function object.
  13644. (cancelSegment): New function.
  13645. (completeSegment): New function.
  13646. (hasSegment): New function.
  13647. (getDownloadLength): New function.
  13648. * src/FtpInitiateConnectionCommand.cc
  13649. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13650. * src/Segment.h: Rewritten.
  13651. * src/Segment.cc (operator<<): New function.
  13652. * src/HttpDownloadCommand.h
  13653. (prepareForNextSegment): New function.
  13654. * src/Request.cc
  13655. (resetUrl): Made segment null.
  13656. * src/DownloadEngine.cc
  13657. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13658. * src/HttpProxyRequestCommand.h
  13659. (executeInternal): Pass the reference of segment.
  13660. * src/DownloadCommand.cc
  13661. (executeInternal): Rewritten the code related to Segment.
  13662. (prepareForRetry): Removed.
  13663. (prepareForNextSegment): Rewritten.
  13664. * src/FtpTunnelResponseCommand.h
  13665. (executeInternal): Pass the reference of segment.
  13666. To add HTTP 1.1 persistent connection support(experimental)
  13667. * src/HttpRequestCommand.cc
  13668. (executeInternal): Disable keep alive if it is disabled by
  13669. configuration.
  13670. * src/Request.h
  13671. (keepAlive): New variable.
  13672. (isKeepAlive): New function.
  13673. (setKeepAlive): New function.
  13674. * src/pref.h
  13675. (PREF_HTTP_KEEP_ALIVE): New definition.
  13676. * src/HttpResponseCommand.cc
  13677. (executeInternal): Check the remote server supports keep alive.
  13678. * src/HttpConnection.cc
  13679. (createRequest): Send "Connection: close" only if keep alive is
  13680. disabled.
  13681. * src/main.cc
  13682. (main):
  13683. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13684. To add max download speed limit:
  13685. * src/pref.h
  13686. (PREF_MAX_SPEED_LIMIT): New definition.
  13687. * src/PeerInteractionCommand.cc
  13688. (executeInternal): Added max download speed limit. Not tested yet.
  13689. * src/SegmentMan.h
  13690. (PeerStats): New type definition.
  13691. (peerStats): New variable.
  13692. (registerPeerStat): New function.
  13693. (FindPeerStat): New function object.
  13694. (getPeerStat): New function.
  13695. (calculateDownloadSpeed): New function.
  13696. * src/SpeedCalc.h: New class.
  13697. * src/SpeedCalc.cc: New class.
  13698. * src/main.cc
  13699. (main):
  13700. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13701. download speed is not restricted).
  13702. * src/PeerStat.h: New class.
  13703. * src/SegmentMan.cc
  13704. (registerPeerStat): New function.
  13705. (calculateDownloadSpeed): New function.
  13706. * src/DownloadCommand.cc
  13707. (STARTUP_IDLE_TIME): New definition.
  13708. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13709. downloadStart.
  13710. (~DownloadCommand): Call peerStat->downloadStop.
  13711. (executeInternal): Added download speed limitter. Rewritten lowest
  13712. speed limitter.
  13713. * src/HttpConnection.cc
  13714. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13715. * src/AbstractCommand.cc
  13716. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13717. Added hostname to the error message.
  13718. * src/ConsoleDownloadEngine.cc
  13719. (calculateStatistics): Initialize psize with dlSize.
  13720. * src/PieceMessage.cc
  13721. (receivedAction): Do not call peerInteraction->abortPiece here.
  13722. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13723. * src/BitfieldMan.h
  13724. (clearAllUseBit): New function.
  13725. (setAllUseBit): New function.
  13726. * src/BitfieldMan.cc
  13727. (clearAllBit): Do not clear useBitfield here.
  13728. (clearAllUseBit): New function.
  13729. (setAllUseBit): New function.
  13730. * src/Piece.cc
  13731. (clearAllBlock): Call bitfield->clearAllUseBit().
  13732. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13733. To make filename URL-decoded:
  13734. * src/HttpResponseCommand.h: Updated doc.
  13735. * src/HttpResponseCommand.cc
  13736. (determinFilename): Made filename URL-decoded.
  13737. * src/FtpInitiateConnectionCommand.cc
  13738. (executeInternal): Made filename URL-decoded.
  13739. * src/Util.h (urldecode): New function.
  13740. * src/Util.cc (urldecode): New function.
  13741. To fix a bug that caused assertion failure in ares_strerror:
  13742. * src/NameResolver.cc (callback): Fixed the bug.
  13743. * Release 0.7.3
  13744. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13745. To add --seed-time and --seed-ratio command-line option:
  13746. * src/Option.h (getAsDouble): New function.
  13747. * src/Option.cc (getAsDouble): New function.
  13748. * src/SeedCheckCommand.h: New class.
  13749. * src/SeedCheckCommand.cc: New class.
  13750. * src/DownloadEngineFactory.cc
  13751. (SeedCheckCommand.h): Included.
  13752. (UnionSeedCriteria.h): Included.
  13753. (TimeSeedCriteria.h): Included.
  13754. (ShareRatioSeedCriteria.h): Included.
  13755. (newTorrentConsoleEngine): Added the processing of seed option.
  13756. * src/SeedCriteria.h: New class.
  13757. * src/ShareRatioSeedCriteria.h: New class.
  13758. * src/TimeSeedCriteria.h: New class.
  13759. * src/UnionSeedCriteria.h: New class.
  13760. * src/prefs.h
  13761. (PREF_SEED_TIME): New definition.
  13762. (PREF_SEED_RATIO): New definition.
  13763. * src/main.cc
  13764. (showUsage): Added --seed-time and --seed-ratio option.
  13765. (main): Added --seed-time and --seed-ratio option.
  13766. Made default log file name "/dev/null".
  13767. * src/SharedHandle.h
  13768. (SharedHandle): Copy constructor. Made it assignable from the
  13769. SharedHandle of the subclasses.
  13770. (operator=): Made it assignable from the SharedHandle of the
  13771. subclasses.
  13772. (getRefCount): New function.
  13773. To add notice log level and the switch to write log to stdout. This
  13774. switch is configurable per log level.
  13775. * src/Logger.h
  13776. (notice): New function.
  13777. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13778. constant.
  13779. * src/LogFactory.cc
  13780. (getInstance): The use of NullLogger was removed. A log message with
  13781. notice log level was made written to stdout along with log file.
  13782. * src/NullLogger.h
  13783. (notice): New function.
  13784. * src/SimpleLogger.h
  13785. (writeHeader): Added the 'file' argument.
  13786. (writeLog): Added the 'file' argument.
  13787. (writeFile): New function.
  13788. (stdoutField): New variable.
  13789. (SimpleLogger): Removed the default constructor.
  13790. (SimpleLogger): Made the default value of logfile 0.
  13791. (debug): Added 'virtual' keyword.
  13792. (info): Added 'virtual' keyword.
  13793. (warn): Added 'virtual' keyword.
  13794. (error): Added 'virtual' keyword.
  13795. (notice): New function.
  13796. (setStdout): New function.
  13797. * src/SimpleLogger.cc
  13798. (WRITE_LOG): Replaced writeLog with writeFile.
  13799. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13800. (SimpleLogger): Removed the default constructor.
  13801. (setStdout): New function.
  13802. (writeLog): Added the handling of NOTICE log level.
  13803. (writeFile): New function.
  13804. (notice): New function.
  13805. * src/TorrentMan.h: Updated doc.
  13806. * src/BitfieldMan.h: Updated doc.
  13807. * src/TrackerWatcherCommand.cc
  13808. (execute): Return true if error occurred in the request to the tracker
  13809. and halt is requested.
  13810. * src/TrackerUpdateCommand.cc
  13811. (execute): Return true if error occurred in the request to the tracker
  13812. and halt is requested.
  13813. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13814. DownloadEngine:
  13815. * src/TorrentConsoleDownloadEngine.h
  13816. (onSelectiveDownloadingCompletes): Removed.
  13817. * src/TorrentConsoleDownloadEngine.cc
  13818. (onSelectiveDownloadingCompletes): Removed.
  13819. * src/TorrentDownloadEngine.h
  13820. (onEndOfRun): Added 'virtual' keyword.
  13821. (afterEachIteration): Removed.
  13822. (onSelectiveDownloadingCompletes): Removed.
  13823. * src/TorrentDownloadEngine.cc
  13824. (onEndOfRun): Removed filenameFixed.
  13825. (afterEachIteration): Removed.
  13826. * src/TorrentMan.cc
  13827. (completePiece): Call onDownloadComplete here.
  13828. (onDownloadComplete): Added 2 log messages.
  13829. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13830. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13831. * src/NameResolver.h: Added the prototype declaration of callback().
  13832. To support c-ares library:
  13833. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13834. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13835. * src/FtpInitiateConnectionCommand.h:
  13836. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13837. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13838. * src/HttpInitiateConnectionCommand.h:
  13839. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13840. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13841. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13842. #1542285 by tizianomueller)
  13843. * src/HttpInitiateConnectionCommand.cc:
  13844. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13845. * src/FtpInitiateConnectionCommand.cc:
  13846. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13847. * src/DownloadEngine.h:
  13848. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13849. * src/DownloadEngine.cc:
  13850. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13851. To fix the bug that causes compilation failure with metalink-support
  13852. disabled(bug#1543587):
  13853. * src/main.cc: Fixed with the patch by tizianomueller.
  13854. * Release 0.7.2
  13855. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13856. * src/main.cc
  13857. (main): Added a message to inform users that aria2 is starting to
  13858. verify checksum.
  13859. * src/RequestInfo.cc
  13860. (printDownloadAbortMessage): Added a message to inform users that
  13861. transfer can be resumed.
  13862. * src/FeatureConfig.cc
  13863. (FEATURE_ASYNC_DNS): New definition.
  13864. (FeatureConfig): Added aysnc DNS entry.
  13865. To replace CommandUuid with Command* in SocketEntry and
  13866. NameResolverEntry:
  13867. * src/DownloadEngine.h
  13868. (CommandUuids): Removed.
  13869. (SocketEntry::commandUuid): Removed.
  13870. (SocketEntry::command): New variable.
  13871. (SocketEntry::SocketEntry): Updated.
  13872. (SocketEntry::operator==): Updated.
  13873. (NameResolverEntry::commandUuid): Removed.
  13874. (NameResolverEntry::command): New variable.
  13875. (NameResolverEntry::NameResolverEntry): Updated.
  13876. (NameResolverEntry::operator==): Updated.
  13877. (waitData): Changed the argument type.
  13878. (addSocketForReadCheck): Changed the argument type.
  13879. (deleteSocketForReadCheck): Changed the argument type.
  13880. (addSocketForWriteCheck): Changed the argument type.
  13881. (deleteSocketForWriteCheck): Changed the argument type.
  13882. (addNameResolverCheck): Changed the argument type.
  13883. (deleteNameResolverCheck): Changed the argument type.
  13884. * src/DownloadEngine.cc
  13885. (FindCommand): Removed.
  13886. (run): Removed activeUuid. Added activeCommands instead.
  13887. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13888. (AccumulateActiveCommand): New function object.
  13889. (waitData): Use AccumulateActiveCommand.
  13890. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13891. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13892. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13893. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13894. (addNameResolverCheck): Use Command instead of CommandUuid.
  13895. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13896. * src/AbstractCommand.cc
  13897. (disableReadCheckSocket): Updated according to the changes in
  13898. DownloadEngine.
  13899. (setReadCheckSocket): Updated according to the changes in
  13900. DownloadEngine.
  13901. (disableWriteCheckSocket): Updated according to the changes in
  13902. DownloadEngine.
  13903. (setWriteCheckSocket): Updated according to the changes in
  13904. DownloadEngine.
  13905. (setNameResolverCheck): Updated according to the changes in
  13906. DownloadEngine.
  13907. (disableNameResolverCheck): Updated according to the changes in
  13908. DownloadEngine.
  13909. * src/AbstractCommand.cc
  13910. (disableReadCheckSocket): Updated according to the changes in
  13911. DownloadEngine.
  13912. (setReadCheckSocket): Updated according to the changes in
  13913. DownloadEngine.
  13914. (disableWriteCheckSocket): Updated according to the changes in
  13915. DownloadEngine.
  13916. (setWriteCheckSocket): Updated according to the changes in
  13917. DownloadEngine.
  13918. * release 0.7.1
  13919. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13920. To handle the case where some BitTorrent tracker requires all letters
  13921. except for [A-Za-z0-9] is URL encoded.
  13922. * src/Util.h
  13923. (torrentUrlencode): New function.
  13924. * src/Util.cc
  13925. (ctype.h): Included.
  13926. (torrentUrlencode): New function.
  13927. * src/TrackerWatcherCommand.cc
  13928. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13929. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13930. To add asynchronous DNS support(libares):
  13931. * src/AbstractCommand.h
  13932. (setNameResolverCheck): New function.
  13933. (disableNameResolverCheck): New function
  13934. (resolveHostname): New function.
  13935. * src/AbstractCommand.cc
  13936. (setNameResolverCheck): New function.
  13937. (disableNameResolverCheck): New function
  13938. (resolveHostname): New function.
  13939. * src/FtpInitiateConnectionCommand.h
  13940. (nameResolver): New function.
  13941. * src/FtpInitiateConnectionCommand.cc
  13942. (Util.h): Included.
  13943. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13944. disableWriteCheckSocket.
  13945. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13946. (executeInternal): Added async DNS support.
  13947. * src/HttpInitiateConnectionCommand.h
  13948. (nameResolver): New function.
  13949. * src/HttpInitiateConnectionCommand.cc
  13950. (DlRetryEx.h): Included.
  13951. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13952. disableWriteCheckSocket.
  13953. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13954. (executeInternal): Added async DNS support.
  13955. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13956. by extern "C" declaration.
  13957. * src/NameResolver.cc: New class.
  13958. * src/Util.h:
  13959. (isNumberAndDotsNotation): New function
  13960. * src/Util.cc
  13961. (isNumberAndDotsNotation): New function.
  13962. * src/DownloadEngine.h
  13963. (NameResolver.h): Included.
  13964. (NameResolverEntry): New class.
  13965. (NameResolverEntries): New type definition.
  13966. (addNameResolverCheck): New function.
  13967. (deleteNameResolverCheck): New function.
  13968. * src/DownloadEngine.cc
  13969. (run): Initialize cp with 0.
  13970. (SetDescriptor::operator()): Added for NameResolverEntry.
  13971. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13972. (waitData): Check nameResolver entries.
  13973. (updateFdSet): Update fds in nameResolver entries.
  13974. (addNameResolverCheck): New function.
  13975. (deleteNameResolverCheck): new function.
  13976. * src/PeerInteractionCommand.cc
  13977. (executeInternal): Fixed wrong socket handling.
  13978. * src/main.cc
  13979. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13980. * src/Util.cc
  13981. (fileChecksum): Removed the call to ctx.digestReset().
  13982. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13983. * po/ru.po: Azamat sent me Russian translation.
  13984. * src/FtpNegotiateCommand.cc
  13985. (recvGreeting): Call disableWriteCheckSocket just after
  13986. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13987. (recvRetr): Recognized status code 125 as a acceptable response code.
  13988. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13989. case-insesitive filesystem(BUG#1531057).
  13990. * src/Time.h: Renamed as TimeA2.h.
  13991. * src/Time.cc: Renamed as TimeA2.cc.
  13992. * src/TimeA2.h: New class.
  13993. * src/TimeA2.cc: New class.
  13994. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13995. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13996. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13997. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13998. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13999. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14000. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14001. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14002. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14003. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14004. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14005. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14006. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14007. * release 0.7.0
  14008. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14009. * src/PeerChokeCommand.h
  14010. (PeerChokeCommand): Rearranged the arguments.
  14011. * src/PeerChokeCommand.cc
  14012. (PeerChokeCommand): Rearranged the arguments.
  14013. * src/MetalinkEntry.h
  14014. (Checksum.h): Included.
  14015. (md5): Removed.
  14016. (sha1): Removed.
  14017. (checksum): New variable.
  14018. (operator=): Updated.
  14019. (check): Removed.
  14020. * src/prefs.h
  14021. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14022. (PREF_FOLLOW_TORRENT): New definition.
  14023. (PREF_SELECT_FILE): New definition.
  14024. (PREF_FOLLOW_METALINK): New definition.
  14025. * src/MetalinkResource.h
  14026. (TYPE_HTTPS): Added to enum TYPE.
  14027. * src/TorrentMan.cc
  14028. (~TorrentMan): Rewritten.
  14029. * src/MultiDiskWriter.cc
  14030. (MultiDiskAdaptor): Updated according to the changes in
  14031. MessageDigestContext.
  14032. (~MultiDiskAdaptor): Updated according to the changes in
  14033. MessageDigestContext.
  14034. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14035. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14036. * src/Util.h
  14037. (fileChecksum): Updated according to the changes in
  14038. MessageDigestContext.
  14039. * src/Util.cc
  14040. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14041. (fileChecksum): Updated according to the changes in
  14042. MessageDigestContext.
  14043. * src/messageDigest.h: Rewritten.
  14044. * src/MetalinkEntry.cc
  14045. (check): Removed.
  14046. (Supported): Updated.
  14047. (dropUnsupportedResource): Fixed a memory leak.
  14048. * src/ShaVisitor.cc
  14049. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14050. (~ShaVisitor): Updated according to the changes in
  14051. MessageDigestContext.
  14052. (visit): Updated according to the changes in MessageDigestContext.
  14053. * src/main.cc
  14054. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14055. command-line option added.
  14056. * src/DownloadEngine.h
  14057. (SocketEntry): New class.
  14058. (SocketEntries): New definition.
  14059. (PairFind): Removed.
  14060. (SockCmdMap): Removed.
  14061. * src/DownloadEngine.cc
  14062. (DownloadEngine): Rewritten.
  14063. (~DownloadEngine): Rewritten.
  14064. (run): Renamed activeCommandUuids as activeUuids.
  14065. (SetDescriptor): Rewritten.
  14066. (AccumulateActiveCommandUuid): Removed.
  14067. (AccumulateActiveUuid): New function object.
  14068. (waitData): Rewritten.
  14069. (updateFdSet): Rewritten.
  14070. (addSocket): Rewritten.
  14071. (deleteSocket): Rewritten.
  14072. (addSocketForReadCheck): Rewritten.
  14073. (deleteSocketForReadCheck): Rewritten.
  14074. (addSocketForWriteCheck): Rewritten.
  14075. (deleteSocketForWriteCheck): Rewritten.
  14076. * src/Xml2MetalinkProcessor.cc
  14077. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14078. * src/DownloadCommand.cc
  14079. (executeInternal): Added the check routine for lowest speed limit.
  14080. * src/AbstractDiskWriter.cc
  14081. (AbstractDiskWriter): Updated according to the changes in
  14082. MessageDigestContext.
  14083. (~AbstractDiskWriter): Updated according to the changes in
  14084. MessageDigestContext.
  14085. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14086. * src/RequestInfo.h: New class.
  14087. * src/UrlRequestInfo.h: New class.
  14088. * src/UrlRequestInfo.cc: New class.
  14089. * src/TorrentRequestInfo.h: New class.
  14090. * src/TorrentRequestInfo.cc: New class.
  14091. * src/MetalinkRequestInfo.h: New class.
  14092. * src/MetalinkRequestInfo.cc: New class.
  14093. * src/Checksum.h: New class.
  14094. * src/DownloadEngineFactory.h: New class.
  14095. * src/DownloadEngineFactory.cc: New class.
  14096. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14097. * src/Option.h
  14098. (getAsBool): New function.
  14099. * src/Option.cc
  14100. (prefs.h): Included.
  14101. (defined): 0-length value is now recognized as undefined.
  14102. (getAsInt): Rewritten.
  14103. (getAsLLInt): Rewritten.
  14104. (getAsBool): New function.
  14105. * src/FeatureConfig.h: Rewritten.
  14106. * src/FeatureConfig.cc: Rewritten.
  14107. * src/prefs.h
  14108. (PREF_STDOUT_LOG): New definition.
  14109. (PREF_LOG): New definition.
  14110. (PREF_DIR): New definition.
  14111. (PREF_OUT): New definition.
  14112. (PREF_SPLIT): New definition.
  14113. (PREF_DAEMON): New definition.
  14114. (PREF_REFERER): New definition.
  14115. (PREF_TORRENT_FILE): New definition.
  14116. (PREF_LISTEN_PORT): New definition.
  14117. (PREF_METALINK_FILE): New definition.
  14118. (PREF_METALINK_VERSION): New definition.
  14119. (PREF_METALINK_LANGUAGE): New definition.
  14120. (PREF_METALINK_OS): New definition.
  14121. (PREF_METALINK_SERVERS): New definition.
  14122. * src/main.cc
  14123. (main): Following command-line parameters are now put into Option
  14124. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14125. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14126. metalinkLanguage, metalinkOs, metalinkServers
  14127. To fix the bug that aria2 can not handle http response header properly.
  14128. * src/HttpHeader.cc
  14129. (put): Made name lowercased.
  14130. (defined): Made name lowercased.
  14131. (getFirst): Made name lowercased.
  14132. (get): Made name lowercased.
  14133. (getFirstAsInt): Rewritten.
  14134. (getFirstAsLLInt): Rewritten.
  14135. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14136. * src/TorrentMan.h:
  14137. (advertisePiece): Updated doc.
  14138. (getAdvertisedPieceIndexes): Updated doc.
  14139. (removeAdvertisedPiece); New function.
  14140. * src/TorrentMan.cc
  14141. (FindElapsedHave): New function object.
  14142. (removeAdvertisedPiece): New function.
  14143. * src/HaveEraseCommand.h: New class.
  14144. * src/HaveEraseCommand.cc: New class.
  14145. * src/FeatureConfig.h: New class.
  14146. * src/FeatureConfig.cc: New class.
  14147. * src/Request.h
  14148. (defaultPorts): Removed.
  14149. * src/Request.cc
  14150. (FeatureConfig.h): Included.
  14151. (Request): Removed the statements related to defaultPorts.
  14152. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14153. A default port number is now retrieved from FeatureConfig.
  14154. * src/main.cc
  14155. (HaveEraseCommand.h): Included.
  14156. (showVersion): Added the output of feature list.
  14157. (main): Added HaveEraseCommand to command queue in BitTorrent
  14158. downloading.
  14159. * src/PeerInteractionCommand.h
  14160. (chokeCheckPoint): Commented out.
  14161. (periodicExecPoint): New variable.
  14162. * src/PeerInteractionCommand.cc
  14163. (executeInternal): Following methods are now called in at least every
  14164. 0.5 seconds to reduce CPU usage:
  14165. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14166. checkHave(), sendKeepAlive().
  14167. (checkLongTimePeerChoking): Commented out.
  14168. * src/BitfieldMan.h
  14169. (getNthBitIndex): Changed the method signature.
  14170. (getMissingIndexRandomly): Changed the method signature.
  14171. * src/BitfieldMan.cc
  14172. (getNthBitIndex): Rewritten
  14173. (getMissingIndexRandomly): Rewritten.
  14174. (hasMissingPiece): Rewritten.
  14175. (getMissingIndex): Refactored.
  14176. (getMissingUnusedIndex); Refactored.
  14177. (getMissingIndex): Refactored.
  14178. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14179. * src/PeerMessage.h
  14180. (Piece.h): Included.
  14181. (SharedHandle.h): Included.
  14182. (invalidate): New variable.
  14183. (uploading): New variable.
  14184. (isInvalidate): New function.
  14185. (isUploading): New function.
  14186. (onPush): New function.
  14187. (onChoked): New function.
  14188. (onCanceled): New function.
  14189. (onAbortPiece): New function.
  14190. (PeerMessageHandle): New type definition.
  14191. * src/PeerMessage.cc
  14192. (PeerMessage): Added the initialization for invalidate and uploading.
  14193. * src/CancelMessage.h
  14194. (CancelMessage): Rewritten.
  14195. * src/RejectMessage.h
  14196. (RejectMessage): Rewritten.
  14197. * src/Metalinker.h
  14198. (operator=): Defined.
  14199. * src/MetaEntry.h
  14200. (operator=): Defined.
  14201. * src/MetalinkResource.h
  14202. (operator=): Defined.
  14203. * src/AllowedFastMessage.h
  14204. (AllowedFastMessage): Rewritten.
  14205. * src/HandshakeMessage.h
  14206. (HandshakeMessage): New function(overload).
  14207. * src/HandshakeMessage.cc
  14208. (HandshakeMessage): Rewritten.
  14209. (init): New function.
  14210. * src/HaveMessage.h
  14211. (HaveMessage): Rewritten.
  14212. * src/Time.h
  14213. (operator=): Defined the function body here.
  14214. * src/Time.cc
  14215. (operator=): Removed.
  14216. * src/SocketCore.h
  14217. (operator==): Defined here.
  14218. (operator!=): Defined here.
  14219. (operator<): Defined here.
  14220. * src/SocketCore.cc
  14221. (operator==): Removed.
  14222. (operator<): Removed.
  14223. * src/BitfieldMan.h
  14224. (operator=): Defined the function body here.
  14225. * src/BitfieldMan.cc
  14226. (operator=): Removed.
  14227. * src/TorrentMan.h
  14228. (deleteErrorPeer): Removed.
  14229. (deleteUnusedPeer); New function.
  14230. * src/TorrentMan.cc
  14231. (addPeer): Call deleteUnusedPeer.
  14232. (deleteErrorPeer): Removed.
  14233. (deleteUnusedPeer): New function.
  14234. * src/PeerAbstractCommand.h
  14235. (setNoCheck): New function.
  14236. (noCheck): New variable.
  14237. * src/PeerAbstractCommand.cc
  14238. (PeerAbstractCommand): Added the initialization of noCheck.
  14239. (execute): Added a check for noCheck.
  14240. (setNoCheck): New function.
  14241. * src/Util.h
  14242. (stdio.h): Included.
  14243. * src/Util.cc
  14244. (unistd.h): Included.
  14245. * src/DefaultDiskWriter.cc
  14246. (unistd.h): Included.
  14247. * src/Peer.h
  14248. (operator==): Defined the function body here.
  14249. (operator!=): Defined the function body here.
  14250. * src/Peer.cc
  14251. (operator==): Removed.
  14252. (operator!=): Removed.
  14253. * src/Piece.h
  14254. (Piece): Defined the function body here(copy constructor).
  14255. (operator=): Defined the function body here.
  14256. (operator==): Defined the function body here.
  14257. * src/Piece.cc
  14258. (Piece): Removed(copy constructor).
  14259. (operator=): Removed.
  14260. (operator==): Removed.
  14261. * src/PeerMessageUtil.h
  14262. (ChokeMessage.h): Removed.
  14263. (UnchokeMessage.h): Removed.
  14264. (InterestedMessage.h): Removed.
  14265. (NotInterestedMessage.h): Removed.
  14266. (HaveMessage.h): Removed.
  14267. (BitfieldMessage.h): Removed.
  14268. (RequestMessage.h): Removed.
  14269. (CancelMessage.h): Removed.
  14270. (PieceMessage.h): Removed.
  14271. (HandshakeMessage.h): Removed.
  14272. (KeepAliveMessage.h): Removed.
  14273. (PortMessage.h): Removed.
  14274. (HaveAllMessage.h): Removed.
  14275. (HaveNoneMessage.h): Removed.
  14276. (PeerConnection.h): Removed.
  14277. (HandshakeMessage.h): Included.
  14278. * src/BitfieldMessage.h
  14279. (init): New function.
  14280. (BitfieldMessage): Rewritten.
  14281. (BitfieldMessage): New function(overload).
  14282. * src/RequestSlot.h
  14283. (operator=): Defined the function body here.
  14284. (operator==): Defined the function body here.
  14285. * src/RequestSlot.cc
  14286. (operator=): Removed.
  14287. (operator==): Removed.
  14288. To remove the dependency on the PeerMessage subclass from
  14289. PeerInteraction:
  14290. * src/PeerMessageFactory.h: New class.
  14291. * src/PeerMessageFactory.cc: New class.
  14292. * src/SimplePeerMessage.cc
  14293. (send): If invalidate is true then do nothing.
  14294. * src/PeerInteractionCommand.cc
  14295. (HandshakeMessage.h): Included.
  14296. (KeepAliveMessage.h): Included.
  14297. (ChokeMessage.h): Included.
  14298. (UnchokeMessage.h): Included.
  14299. (HaveMessage.h): Included.
  14300. (executeInternal): Call setNoCheck().
  14301. Removed setWriteCheckSocket(socket).
  14302. * src/PeerInteraction.h
  14303. (ChokeMessage.h): Removed.
  14304. (UnchokeMessage.h): Removed.
  14305. (InterestedMessage.h): Removed.
  14306. (NotInterestedMessage.h): Removed.
  14307. (HaveMessage.h): Removed.
  14308. (BitfieldMessage.h): Removed.
  14309. (RequestMessage.h): Removed.
  14310. (CancelMessage.h): Removed.
  14311. (PieceMessage.h): Removed.
  14312. (HandshakeMessage.h): Removed.
  14313. (KeepAliveMessage.h): Removed.
  14314. (PortMessage.h): Removed.
  14315. (HaveAllMessage.h): Removed.
  14316. (HaveNoneMessage.h): Removed.
  14317. (RejectMessage.h): Removed.
  14318. (AllowedFastMessage.h): Removed.
  14319. (SuggestPieceMessage.h): Removed.
  14320. (PeerMessageFactory.h): Included.
  14321. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14322. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14323. (PeerMessageFactory): New variable.
  14324. (createPeerMessage): Removed.
  14325. (createHandshakeMessage): Removed.
  14326. (setPeerMessageCommonProperty): Removed.
  14327. (addRequestSlot): New function.
  14328. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14329. (getPeerMessageFactory): New function.
  14330. (createRequestMessage): Removed.
  14331. (createCancelMessage): Removed.
  14332. (createPieceMessage): Removed.
  14333. (createHaveMessage): Removed.
  14334. (createChokeMessage): Removed.
  14335. (createUnchokeMessage): Removed.
  14336. (createInterestedMessage): Removed.
  14337. (createNotInterestedMessage): Removed.
  14338. (createBitfieldMessage): Removed.
  14339. (createKeepAliveMessage): Removed.
  14340. (createHaveAllMessage): Removed.
  14341. (createHaveNoneMessage): Removed.
  14342. (createRejectMessage): Removed.
  14343. (createAllowedFastMessage): Removed.
  14344. * src/PeerInteraction.cc
  14345. (PeerInteraction): Allocate PeerMessageFactory here.
  14346. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14347. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14348. PieceMessage::ID.
  14349. (addMessage): Simplified by using PeerMessage::onPush().
  14350. (addRequestSlot): New function.
  14351. (rejectAllPieceMessageInQueue): Simplified by using
  14352. PeerMessage::onChoked().
  14353. (rejectPieceMessageInQueue): Simplified by using
  14354. PeerMessage::onCanceled().
  14355. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14356. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14357. (createHandshakeMessage): Removed.
  14358. (createPeerMessage): Removed.
  14359. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14360. (setPeerMessageCommonProperty): Removed.
  14361. (createRequestMessage): Removed.
  14362. (createCancelMessage): Removed.
  14363. (createPieceMessage): Removed.
  14364. (createHaveMessage): Removed.
  14365. (createChokeMessage): Removed.
  14366. (createUnchokeMessage): Removed.
  14367. (createInterestedMessage): Removed.
  14368. (createNotInterestedMessage): Removed.
  14369. (createBitfieldMessage): Removed.
  14370. (createKeepAliveMessage): Removed.
  14371. (createHaveAllMessage): Removed.
  14372. (createHaveNoneMessage): Removed.
  14373. (createRejectMessage): Removed.
  14374. (createAllowedFastMessage): Removed.
  14375. * src/PieceMessage.h
  14376. (createRejectMessage): New function.
  14377. (PieceMessage): Rewritten.
  14378. (onChoked): New function.
  14379. (onCanceled): New function.
  14380. * src/PieceMessage.cc
  14381. (send): If invalidate is true then do nothing, just return.
  14382. (createRejectMessage): New function.
  14383. (onChoked): New function.
  14384. (onCanceled): New function.
  14385. * src/RequestMessage.h
  14386. (RequestMessage): Rewritten.
  14387. (onPush): New function.
  14388. (onAbortPiece): New function.
  14389. * src/RequestMessage.cc
  14390. (onPush): New function.
  14391. (onAbortPiece): New function.
  14392. Update fd_set when a socket is added or deleted in order to improve
  14393. performance:
  14394. * src/DownloadEngine.h
  14395. (rfdset): New variable.
  14396. (wfdset): New variable.
  14397. (updateFdSet): New function.
  14398. * src/DownloadEngine.cc
  14399. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14400. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14401. (waitData): Copy rfdset and wfdset.
  14402. (updateFdSet): New function.
  14403. (addSocket): Call updateFdSet.
  14404. (deleteSocket): Call updateFdSet.
  14405. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14406. To add the support for Metalink3.0 backward compatible links:
  14407. * src/Request.h
  14408. (SAFE_CHARS): Added '#'.
  14409. (METALINK_MARK): New definition.
  14410. * src/Request.cc
  14411. (parseUrl): Added the support for Metalink3.0 backward compatible
  14412. links.
  14413. etc
  14414. * src/PeerInteraction.cc
  14415. (MsgPushBack): Removed.
  14416. (sendMessages): Use STL copy and back_inserter.
  14417. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14418. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14419. * src/TorrentMan.h
  14420. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14421. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14422. * src/SharedHandle.h: New class.
  14423. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14424. * src/HttpResponseCommand.h
  14425. (HttpResponseCommand): Wrapped Socket.
  14426. * src/SocketCore.h
  14427. (operator==): New function.
  14428. (operator!=): New function.
  14429. (operator<): New function.
  14430. (getSockfd): New function.
  14431. (isOpen): New function.
  14432. (writeData): New function.
  14433. * src/SocketCore.cc
  14434. (operator==): New function.
  14435. (operator!=): New function.
  14436. (operator<): New function.
  14437. * src/AbstractCommand.h
  14438. (socket): Changed its type to SocketHandle.
  14439. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14440. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14441. (disableReadCheckSocket): New function.
  14442. (disableWriteCheckSocket): New function.
  14443. (readCheckTarget): Changed its type to SocketHandle.
  14444. (writeCheckTarget): Changed its type to SocketHandle.
  14445. (AbstractCommand): Replaced Socket with SocketHandle.
  14446. * src/AbstractCommand.cc
  14447. (AbstractCommand): Replaced Socket with SocketHandle.
  14448. (~AbstractCommand): Removed the deallocation for Socket object.
  14449. (disableReadCheckSocket): New function.
  14450. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14451. (disableWriteCheckSocket): New function.
  14452. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14453. * src/HttpDownloadCommand.cc
  14454. (DownloadCommand): Replaced Socket with SocketHandle.
  14455. * src/PeerAbstractCommand.h
  14456. (socket): Changed its type to SocketHandle.
  14457. (peer): Changed its type to PeerHandle.
  14458. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14459. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14460. (disableReadCheckSocket): New function.
  14461. (disableWriteCheckSocket): New function.
  14462. (readCheckTarget): Changed its type to SocketHandle.
  14463. (writeCheckTarget): Changed its type to SocketHandle.
  14464. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14465. Replaced Peer with PeerHandle.
  14466. * src/HttpRequestCommand.cc
  14467. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14468. Use disableReadCheckSocket.
  14469. * src/PeerInitiateConnectionCommand.h
  14470. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14471. * src/PeerChokeCommand.cc
  14472. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14473. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14474. (execute): Use PeerHandle.
  14475. * src/PeerConnection.h
  14476. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14477. (socket): Changed its type to SocketHandle.
  14478. (PeerConnection): Replaced Socket with SocketHandle.
  14479. * src/PeerConnection.cc
  14480. (PeerConnection): Replaced Socket with SocketHandle.
  14481. * src/PeerInteractionCommand.h
  14482. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14483. Replaced Peer with PeerHandle.
  14484. * src/PeerInteractionCommand.cc
  14485. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14486. Replaced Peer with PeerHandle.
  14487. (executeInternal): Use disableWriteCheckSocket.
  14488. Use HandshakeMessageHandle.
  14489. (receiveMessages): Use PeerMessageHandle.
  14490. (prepareForNextPeer): Use PeerHandle.
  14491. * src/HttpProxyRequestCommand.h
  14492. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14493. * src/HttpResponseCommand.cc
  14494. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14495. * src/TorrentMan.cc
  14496. (nullPeer): Added external reference.
  14497. (~TorrentMan): Removed the deallocation of the elements of peers.
  14498. (addPeer): Rewritten.
  14499. (isPeerAvailable): Use nullPeer.
  14500. (deleteOldpeers): Replaced with deleteErrorPeer.
  14501. (deleteErrorPeer): New function.
  14502. (getPeer): Use PeerHandle and nullPeer.
  14503. (hasMissingPiece): Replaced Peer with PeerHandle.
  14504. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14505. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14506. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14507. (getMissingPiece): Replaced Peer with PeerHandle.
  14508. * src/FtpNegotiateCommand.cc
  14509. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14510. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14511. (recvGreeting): Use disableWriteCheckSocket.
  14512. (recvPasv): Removed the allocation of Socket.
  14513. Use disableReadCheckSocket.
  14514. (sendRestPasv): Use disableWriteCheckSocket.
  14515. (recvRetr): Changed assertion.
  14516. * src/PeerInteraction.h
  14517. (SharedHandle.h): Included SharedHandle.h.
  14518. (PeerMessageHandle): New type definition.
  14519. (HandshakeMessageHandle): New type definition.
  14520. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14521. (peer): Changed its type to PeerHandle.
  14522. (createHandshakeMessage): Replaced HandshakeMessage with
  14523. HandshakeMessageHandle.
  14524. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14525. (PeerInteraction): Replaced Peer with PeerHandle.
  14526. Replaced Socket with SocketHandle.
  14527. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14528. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14529. (receiveHandshake): Replaced HandshakeMessage with
  14530. HandshakeMessageHandle.
  14531. * src/PeerInteraction.cc
  14532. (PeerInteraction): Replaced Peer with PeerHandle.
  14533. Replaced Socket with SocketHandle.
  14534. (~PeerInteraction): Removed the deallocation of the elements of
  14535. messageQueue.
  14536. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14537. (isSendingMessageInProgress): Replaced PeerMessage with
  14538. PeerMessageHandle.
  14539. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14540. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14541. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14542. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14543. (abortPiece): Use PeerMessageHandle.
  14544. (receiveHandshake): Replaced HandshakeMessage with
  14545. HandshakeMessageHandle. Removed try-catch block.
  14546. (createHandshakeMessage): Replaced HandshakeMessage with
  14547. HandshakeMessageHandle.
  14548. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14549. Removed try-catch block.
  14550. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14551. * src/HttpProxyResponseCommand.cc
  14552. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14553. * src/FtpTunnelResponseCommand.h
  14554. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14555. * src/HttpConnection.cc
  14556. (HttpConnection): Replaced Socket with SocketHandle.
  14557. * src/PeerAbstractCommand.cc
  14558. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14559. (~PeerAbstractCommand): Removed the deallocation of socket.
  14560. Use disableReadCheckSocket, disableWriteCheckSocket.
  14561. (disableReadCheckSocket): New function.
  14562. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14563. (disableWriteCheckSocket): New function.
  14564. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14565. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14566. * src/FtpTunnelRequestCommand.cc
  14567. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14568. (~FtpTunnelRequestCommand): Corrected indentation.
  14569. * src/DownloadCommand.h
  14570. (DownloadCommand): Replaced Socket with SocketHandle.
  14571. * src/PeerListenCommand.cc
  14572. (PeerListenCommand): Removed the initialization of socket.
  14573. (~PeerListenCommand): Removed the deallocation of socket.
  14574. (bindPort): Use SocketHandle.
  14575. (execute): Use SocketHandle and PeerHandle.
  14576. * src/FtpDowndloadCommand.cc
  14577. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14578. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14579. * src/main.cc
  14580. (main): Corrected indentation.
  14581. * src/HttpInitiateConnectionCommand.cc
  14582. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14583. (executeInternal): Removed the allocation of socket.
  14584. * src/HttpRequestCommand.h
  14585. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14586. * src/FtpNegotiationCommand.h
  14587. (dataSocket): Changed its type to SocketHandle.
  14588. (serverSocket): Changed its type to SocketHandle.
  14589. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14590. * src/TorrentMan.h
  14591. (MAX_PEER_UPDATE): Removed.
  14592. (MAX_PEERS): New definition.
  14593. (Peers): The element is now of type PeerHandle.
  14594. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14595. (getPeer): Replaced Peer with PeerHandle.
  14596. (deleteOldErrorPeers): Removed.
  14597. (deleteErrorPeer): New function.
  14598. (hasMissingPiece): Replaced Peer with PeerHandle.
  14599. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14600. (getMissingPiece): Replaced Peer with PeerHandle.
  14601. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14602. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14603. (addActivePeer): Replaced Peer with PeerHandle.
  14604. (deleteActivePeer): Replaced Peer with PeerHandle.
  14605. Added a check for the return value of find.
  14606. * src/FtpTunnelResponseCommand.cc
  14607. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14608. * src/FtpInitiateConnectionCommand.cc
  14609. (executeInternal): Removed the allocation of socket.
  14610. * src/DownloadEngine.h
  14611. (Sockets): An element is now of type SocketHandle.
  14612. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14613. (CommandUuids): New type definition.
  14614. (rsockets): Changed its type to SockCmdMap.
  14615. (wsockets): Changed its type to SockCmdMap.
  14616. (addSocket): Rewritten.
  14617. (deleteSocket): Rewritten.
  14618. (addSocketForReadCheck): Rewritten.
  14619. (deleteSocketForReadCheck): Rewritten.
  14620. (addSocketForWriteCheck): Rewritten.
  14621. (deleteSocketForWriteCheck): Rewritten.
  14622. (PairFind): New template class.
  14623. * src/HttpDownloadCommand.h
  14624. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14625. * src/FtpConnection.cc
  14626. (FtpConnection): Replaced Socket with SocketHandle.
  14627. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14628. block.
  14629. * src/InitiateConnectionCommandFactory.cc
  14630. (DlAbortEx.h): Included DlAbortEx.h.
  14631. (createInitiateConnectionCommand): Throw exception if the protocol of
  14632. requested URI is not supported.
  14633. * src/Peer.cc
  14634. (nullPeer): Changed its type to PeerHandle.
  14635. (operator==): New function.
  14636. (operator!=): New function.
  14637. * src/Peer.h
  14638. (SharedHandle.h): Included SharedHandle.h.
  14639. (operator==): New function.
  14640. (operator!=): New function.
  14641. (Peer): Added the default constructor.
  14642. Use resetStatus() to initialize member variables.
  14643. (nullPeer): Removed.
  14644. * src/TrackerUpdateCommand.cc
  14645. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14646. with MIN_PEERS.
  14647. * src/PeerListenCommand.h
  14648. (socket): Changed its type to SocketHandle.
  14649. * src/Command.h
  14650. (CommandUuid): New type definition.
  14651. (uuid): New variable.
  14652. (uuidGen): New variable.
  14653. (Command): Added the initialization of uuid.
  14654. (getUuid): New function.
  14655. * src/Socket.h
  14656. (Socket): Removed.
  14657. (SocketHandle): New type definition.
  14658. * src/DownloadEngine.h
  14659. (FindCommand): New function object.
  14660. (run): The portion of socket check was rewritten.
  14661. (SetDescriptor): New function object.
  14662. (AccumulateActiveCommandUuid): New function object.
  14663. (waitData): Rewritten.
  14664. (addSocket): Rewritten.
  14665. (deleteSocket): Rewritten.
  14666. (addSocketForReadCheck): Rewritten.
  14667. (addSocketForWriteCheck): Rewritten.
  14668. (deleteSocketForReadCheck): Rewritten.
  14669. (deleteSocketForWriteCheck): Rewritten.
  14670. * src/HttpProxyResponseCommand.h
  14671. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14672. * src/HttpConnection.h
  14673. (socket): Changed its type to SocketHandle.
  14674. (HttpConnection): Replaced Socket with SocketHandle.
  14675. * src/PeerInitiateConnectionCommand.cc
  14676. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14677. (executeInternal): Removed the allocation of socket.
  14678. (prepareForNextPeer): Use PeerHandle.
  14679. * src/PeerMessage.h
  14680. (peer): Changed its type to PeerHandle.
  14681. (getPeer): Replaced Peer with PeerHandle.
  14682. (setPeer): Replaced Peer with PeerHandle.
  14683. * src/DownloadCommand.cc
  14684. (DownloadCommand): Replaced Socket with SocketHandle.
  14685. * src/FtpConnection.h
  14686. (socket): Changed its type to SocketHandle.
  14687. (FtpConnection): Replaced Socket with SocketHandle.
  14688. (sendPort); Replaced Socket with SocketHandle.
  14689. * src/FtpDowndloadCommand.h
  14690. (ctrlSocket): Changed its type to SocketHandle.
  14691. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14692. * src/HttpProxyRequestCommand.cc
  14693. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14694. * src/FtpTunnelRequestCommand.h
  14695. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14696. etc
  14697. * src/PeerChokeCommand.h
  14698. (setAllPeerChoked): Removed.
  14699. (setAllPeerResetDelta): Removed.
  14700. * src/PeerChokeCommand.cc
  14701. (setAllPeerChoked): Removed.
  14702. (ChokePeer): New function object.
  14703. (setAllPeerResetDelta): Removed.
  14704. (ResetDelta): New function object.
  14705. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14706. (execute): Show download speed when the local node is a seeder.
  14707. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14708. using STL.
  14709. * src/TrackerWatcherCommand.h
  14710. (MIN_PEERS): Removed.
  14711. * src/TorrentMan.cc
  14712. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14713. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14714. To fix the bug that .aria2 file is not saved if downloading is stopped
  14715. by the errors:it results that aria2 can not resume downloading:
  14716. * src/main.cc
  14717. (normalDownload): Added the call to save().
  14718. (main): Added the deletion of the elements in 'reserved'.
  14719. To fix log:
  14720. * src/PeerInteraction.cc
  14721. (receiveHandshake): Fixed log.
  14722. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14723. To improve download performance in BitTorrent:
  14724. * src/TorrentMan.cc
  14725. (getPeer): Check the number of connections. Return nullPeer if
  14726. it is greater than MAX_PEER_UPDATE.
  14727. This code was originally here, but was removed in 0.5.1.
  14728. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14729. To improve the conditional compilation:
  14730. * src/MultiDiskWriter.h:
  14731. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14732. * src/MultiDiskWriter.cc:
  14733. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14734. * src/Util.h:
  14735. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14736. Added ENABLE_BITTORRENT around computeFastSet().
  14737. * src/Util.cc:
  14738. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14739. Added ENABLE_BITTORRENT around computeFastSet().
  14740. * src/messageDigest.h:
  14741. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14742. * src/ShaVisitor.h:
  14743. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14744. * src/ShaVisitor.cc:
  14745. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14746. * src/main.cc:
  14747. Added ENABLE_BITTORRENT around includes and blocks related to
  14748. BitTorrent.
  14749. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14750. digest support is not available.
  14751. * src/AbstractDiskWriter.h:
  14752. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14753. * src/AbstractDiskWriter.cc:
  14754. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14755. * src/MetalinkEntry.cc
  14756. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14757. support is not available.
  14758. To add command-line options for Metalink:
  14759. * src/main.cc:
  14760. Added metalink-version, metalink-language, metalink-os,
  14761. follow-metalink.
  14762. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14763. * src/main.cc: Use these definition.
  14764. * Release 0.6.0
  14765. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14766. To add Metalink support(http/ftp only):
  14767. * src/AbstractCommand.h
  14768. (tryReserved): New function.
  14769. * src/AbstractCommand.cc
  14770. (execute): Call tryReserved().
  14771. (tryReserved): New function.
  14772. * src/Request.h
  14773. (Requests): New type definition.
  14774. * src/SegmentMan.h
  14775. (reserved): New variable.
  14776. * src/Util.h
  14777. (fileChecksum): New function.
  14778. (toUpper): New function.
  14779. (toLower): New function.
  14780. * src/Util.cc
  14781. (messageDigest.h): Included.
  14782. (trim): Trim \r\n\t.
  14783. (fileChecksum): New function.
  14784. (toUpper): New function.
  14785. (toLower): New function.
  14786. * src/main.cc
  14787. (normalDownload): New function.
  14788. (main): Added 2 command-line options: metalink-file,
  14789. metalink-connection. Their usage has not been written yet.
  14790. * src/MetalinkProcessor.h: New class.
  14791. * src/Xml2MetalinkProcessor.h: New class.
  14792. * src/Xml2MetalinkProcessor.cc: New class.
  14793. * src/MetalinkEntry.h: New class.
  14794. * src/MetalinkEntry.cc: New class.
  14795. * src/MetalinkResource.h: New class.
  14796. * src/MetalinkResource.cc: New class.
  14797. To add md5 message digest checking:
  14798. * src/messageDigest.h: Rewritten.
  14799. * src/MultiDiskWriter.cc: Updated according to the changes in
  14800. messageDigest.h.
  14801. * src/ShaVisitor.cc: Updated according to the changes in
  14802. messageDigest.h.
  14803. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14804. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14805. messageDigest.h.
  14806. To fix a bug that causes segfault when the payload length in peer
  14807. message is less than 0:
  14808. * src/PeerConnection.cc:
  14809. (receiveMessage): Fixed the bug.
  14810. * src/PeerMessageUtil.cc
  14811. (checkLength): Throw an exception if length is less than or equals to
  14812. 0.
  14813. To add new interfaces to Base64 encoding/decoding:
  14814. * src/Base64.h
  14815. (part_encode): Changed the method signature.
  14816. (encode): New function(overload).
  14817. (decode): New function(overload).
  14818. * src/Base64.cc
  14819. (part_encode): Rewritten.
  14820. (encode): Rewritten.
  14821. (encode): New function(overload).
  14822. To prevent a peer to download same piece if there is an error in
  14823. checksum:
  14824. * src/PieceMessage.cc
  14825. (receivedAction): Call peerInteraction->abortPiece().
  14826. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14827. To fix the bug that causes same have message is sent many times to
  14828. a single peer.
  14829. * src/Time.cc
  14830. (isNewer): Use Util::difftv().
  14831. * src/Util.cc
  14832. (difftv): Added a cast to (long long int).
  14833. * src/TorrentMan.cc
  14834. (advertisePiece): Use push_front.
  14835. (getAdvertisedPieceIndexes): A performance improvement was made.
  14836. To fix the bug that sends tracker requests without a sleep interval
  14837. when the number of connections is less than 15.
  14838. * src/TrackerWatcherCommand.cc
  14839. (execute): Now the number of connections is not a factor to decide
  14840. whether or not a tracker request should be sent or not.
  14841. * src/Time.h
  14842. (setTimeInSec): New function.
  14843. * src/Time.cc
  14844. (setTimeInSec): New function.
  14845. etc.
  14846. * src/ChokeMessage.cc
  14847. (receivedAction): Removed peer->snubbing = false
  14848. * src/PeerConnection.h
  14849. (receiveHandshake): Updated doc.
  14850. * src/TorrentMan.h
  14851. (getAdvertisedPieceIndexes): Updated the method signature.
  14852. * src/TorrentMan.cc
  14853. (getAdvertisedPieceIndexes): Updated the method signature.
  14854. * src/Time.h
  14855. (getTimeInMicros): Added a cast to (long long int).
  14856. (getTimeInMillis): Added a cast to (long long int).
  14857. * Release 0.5.2
  14858. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14859. To make a listening socket non-block:
  14860. * src/SocketCore.h
  14861. (setNonBlockingMode): New function.
  14862. * src/SocketCore.cc
  14863. (setNonBlockingMode): New function.
  14864. (beginListen): Added a call to setNonBlockingMode().
  14865. (acceptConnection): Call setNonBlockingMode().
  14866. (setBlockingMode): Updated.
  14867. To handle tracker's NAT-checking:
  14868. * src/PeerConnection.cc
  14869. (receiveHandshake): 'msg' param is filled with received data and
  14870. its length is assigned to 'length' param, even if all handshake
  14871. message is not yet received.
  14872. * src/PeerInteractionCommand.cc
  14873. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14874. a new peer connects to localhost.
  14875. A call to peerInteraction->sendHandshake() was removed because
  14876. it is called from peerInteraction->receiveHandshake(true).
  14877. * src/PeerInteraction.h
  14878. (quickReplied): New variable.
  14879. (receiveHandshake): Added an argument.
  14880. * src/PeerInteraction.cc
  14881. (PeerInteraction): Added the initialization of quickReplied.
  14882. (receiveHandshake): Send handshake message as soon as the info hash
  14883. in a handshake message from a peer is correct.
  14884. To change the random part of peer id and key parameter:
  14885. * src/TorrentMan.h
  14886. (key): New variable.
  14887. * src/TorrentMan.cc
  14888. (setupInternal1): Use Util::randomAlpha() to generate random part
  14889. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14890. key is also generated by Util::randomAlpha() and it is now 8 character
  14891. long.
  14892. * src/Util.h
  14893. (randomAlpha): New function.
  14894. * src/Util.cc
  14895. (randomAlpha): New function.
  14896. * src/TrackerWatcherCommand.cc
  14897. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14898. Added no_peer_id=1.
  14899. Set snubbing flag to false when a choke message is received from a
  14900. snubbed peer.
  14901. * src/ChokeMessage.cc
  14902. (receivedAction): Set snubbing flag to false.
  14903. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14904. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14905. * src/SimpleLogger.h (writeHeader): New function.
  14906. * src/SimpleLogger.cc (writeHeader): New function.
  14907. (writeLog): Fixed the bug that causes segfaults if exception message
  14908. contains an unescaped "%" character.
  14909. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14910. when a tracker request fails.
  14911. * src/Request.cc (parseUrl): Query string is now handled properly.
  14912. * Release 0.5.1
  14913. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14914. To add Time class which represents a specific instant in time and
  14915. its precision is microseconds. Time checking procedures were rewritten
  14916. using this object.
  14917. * src/Time.h: New class.
  14918. * src/Time.cc: New class.
  14919. * src/AbstractCommand.h
  14920. (updateCheckPoint): Removed.
  14921. (isTimeoutDetected): Removed.
  14922. (checkPoint): Changed the type to Time.
  14923. (timeout): New variable.
  14924. (setTimeout): New function.
  14925. * src/AbstractCommand.cc
  14926. (AbstractCommand): Removed the initialization of checkPoint.
  14927. Added the initialization of timeout.
  14928. (updateCheckPoint): Removed.
  14929. (isTimeoutDetected): Removed.
  14930. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14931. * src/PeerChokeCommand.h
  14932. (checkPoint): Changed the type to Time.
  14933. * src/PeerChokeCommand.cc
  14934. (PeerChokeCommand): Removed the initialization of checkPoint.
  14935. (execute): Rewritten using Time object.
  14936. * src/TrackerWatcherCommand.h
  14937. (checkPoint): Changed the type to Time.
  14938. * src/TrackerWatcherCommand.cc
  14939. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14940. (execute): Rewritten.
  14941. * src/ConsoleDownloadEngine.h
  14942. (cp): Changed the type to Time.
  14943. (startup): Changed the type to Time.
  14944. * src/ConsoleDownloadEngine.cc
  14945. (initStatistics): Use cp.reset(), startup.reset().
  14946. (calculateStatistics): Rewritten using Time object.
  14947. * src/PeerAbstractCommand.h
  14948. (updateCheckPoint): Removed.
  14949. (isTimeoutDetected): Removed.
  14950. (checkPoint): Changed the type to Time.
  14951. * src/PeerAbstractCommand.cc
  14952. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14953. (updateCheckPoint): Removed.
  14954. (isTimeoutDetected): Removed.
  14955. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14956. * src/PeerInteractionCommand.cc
  14957. (PeerInteractionCommand): Removed the initializations of struct
  14958. timeval variables.
  14959. * src/PeerInteractionCommand.h
  14960. (keepAliveCheckPoint): Changed the type to Time.
  14961. (chokeCheckPoint): Changed the type to Time.
  14962. (freqCheckPoint): Changed the type to Time.
  14963. (haveCheckTime): Changed the type to Time.
  14964. * src/PeerInteractionCommand.cc
  14965. (executeInternal): Rewritten using Time object.
  14966. (detectMessageFlooding): Rewritten using Time object.
  14967. (checkLongTimePeerChoking): Rewritten using Time object.
  14968. (sendKeepAlive): Rewritten using Time object.
  14969. (checkHave): Rewritten using Time object.
  14970. * src/SleepCommand.h
  14971. (checkPoint): Changed the type to Time.
  14972. * src/SleepCommand.cc
  14973. (SleepCommand): Removed the initialization of checkPoint.
  14974. (execute): Rewritten using Time object.
  14975. * src/TorrentAutoSaveCommand.h
  14976. (checkPoint): Changed the type to Time.
  14977. * src/TorrentAutoSaveCommand.cc
  14978. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14979. (execute): Rewritten.
  14980. * src/DownloadCommand.h
  14981. (sw): Changed the type to Time.
  14982. * src/DownloadCommand.cc
  14983. (DownloadCommand): Removed the initialization of sw.
  14984. (executeInternal): Rewritten.
  14985. * src/RequestSlot.h
  14986. (dispatchedTime): Changed the type to Time.
  14987. * src/RequestSlot.cc
  14988. (RequestSlot): Removed the call to setDispatchedTime().
  14989. (setDispatchedTime): Rewirtten.
  14990. (isTimeout): Rewritten.
  14991. (getLatencyInMillis): Rewritten.
  14992. * src/TorrentDownloadEngine.h
  14993. (cp): Changed the type to Time[2].
  14994. (startup): Changed the type to Time.
  14995. * src/TorrentDownloadEngine.cc
  14996. (initStatistics): Rewritten.
  14997. (calculateStatistics): Rewritten.
  14998. * src/DownloadEngine.cc
  14999. (run): Rewritten.
  15000. To detect all attempts to connect to the tracker are failed:
  15001. * src/AbstractCommand.cc
  15002. (execute): Increment e->segmentMan->errors if a command aborted.
  15003. * src/SegmentMan.h
  15004. (errors): New variable.
  15005. * src/SegmentMan.cc
  15006. (SegmentMan): Added the initialization of errors.
  15007. (init): Added the initialization of errors.
  15008. * src/TrackerWatcherCommand.cc
  15009. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15010. request was failed.
  15011. To handle snubbed peers:
  15012. * src/PeerChokeCommand.cc
  15013. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15014. (execute): Snubbed peers don't get unchoked.
  15015. * src/PeerInteraction.h
  15016. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15017. * src/PeerInteraction.cc
  15018. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15019. back the requested 16k block in 60 seconds.
  15020. * src/PieceMessage.cc
  15021. (receivedAction): A peer's snubbed state is cleard if it sends
  15022. the requested 16k block in 60 seconds.
  15023. * src/Peer.h
  15024. (snubbing): New variable.
  15025. * src/Peer.cc
  15026. (resetStatus): Added snubbed = false.
  15027. To fix the bug that causes have message is not sent:
  15028. * src/PeerInteractionCommand.cc
  15029. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15030. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15031. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15032. * src/TorrentMan.h
  15033. (HaveEntry): New class.
  15034. (advertisePiece): Rewritten.
  15035. (getAdvertisedPieceIndexes): Rewritten.
  15036. (Haves): Changed the type.
  15037. (getAdvertisedPieceIndexes): Added an argument.
  15038. Others:
  15039. * src/TorrentMan.h
  15040. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15041. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15042. * src/TorrentMan.cc
  15043. (getPeer): Don't check the number of connections here.
  15044. (setupInternal1): Changed peerId.
  15045. * src/PeerInteractionCommand.h
  15046. (KEEP_ALIVE_INTERVAL): New definition.
  15047. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15048. * src/main.cc
  15049. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15050. * src/DownloadEngine.h: Removed unnecessary header includes.
  15051. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15052. To fix the bug that causes segfaults if a tracker returns a zero-length
  15053. list as "peers":
  15054. * src/TrackerUpdateCommand.cc
  15055. (execute): Added a check to see wether the type of peers is Data*.
  15056. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15057. * Release 0.5.0
  15058. To fix compile issue with gcc3:
  15059. * src/CancelMessage.h
  15060. (ID): Renamed as ID_t
  15061. (ID_t): New enum.
  15062. * src/RejectMessage.h
  15063. (ID): Renamed as ID_t
  15064. (ID_t): New enum.
  15065. * src/SuggestPieceMessage.h
  15066. (ID): Renamed as ID_t
  15067. (ID_t): New enum.
  15068. * src/AllowedFastMessage.h
  15069. (ID): Renamed as ID_t
  15070. (ID_t): New enum.
  15071. * src/PortMessage.h
  15072. (ID): Renamed as ID_t
  15073. (ID_t): New enum.
  15074. * src/HaveNoneMessage.h
  15075. (ID): Renamed as ID_t
  15076. (ID_t): New enum.
  15077. * src/KeepAliveMessage.h
  15078. (ID): Renamed as ID_t
  15079. (ID_t): New enum.
  15080. * src/HaveAllMessage.h
  15081. (ID): Renamed as ID_t
  15082. (ID_t): New enum.
  15083. * src/UnchokeMessage.h
  15084. (ID): Renamed as ID_t
  15085. (ID_t): New enum.
  15086. * src/BitfieldMessage.h
  15087. (ID): Renamed as ID_t
  15088. (ID_t): New enum.
  15089. * src/PieceMessage.h
  15090. (ID): Renamed as ID_t
  15091. (ID_t): New enum.
  15092. * src/RequestMessage.h
  15093. (ID): Renamed as ID_t
  15094. (ID_t): New enum.
  15095. * src/NotInterestedMessage.h
  15096. (ID): Renamed as ID_t
  15097. (ID_t): New enum.
  15098. * src/ChokeMessage.h
  15099. (ID): Renamed as ID_t
  15100. (ID_t): New enum.
  15101. * src/InterestedMessage.h
  15102. (ID): Renamed as ID_t
  15103. (ID_t): New enum.
  15104. * src/HaveMessage.h
  15105. (ID): Renamed as ID_t
  15106. (ID_t): New enum.
  15107. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15108. * src/PeerAbstractCommand.h
  15109. (beforeSocketCheck): Removed.
  15110. * src/PeerAbstractCommand.cc
  15111. Modified in order to call executeInternal() even if socket check
  15112. and upload limit check fail.
  15113. * src/PeerInteractionCommand.h
  15114. (keepAlive): Removed.
  15115. (sendKeepAlive): New function.
  15116. (checkHave): New function.
  15117. (beforeSocketCheck): Removed.
  15118. * src/PeerInteractionCommand.cc
  15119. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15120. calls to checkHave() and sendKeepAlive().
  15121. (keepAlive): Renamed to sendKeepAlive().
  15122. (sendKeepAlive): New function.
  15123. (beforeSocketCheck): Removed.
  15124. (checkHave): New function.
  15125. * src/BitfieldMan.cc
  15126. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15127. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15128. 0.
  15129. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15130. * src/TorrentMan.h
  15131. (UsedPieces): Removed.
  15132. (Pieces): New type definition.
  15133. * src/Piece.h: Updated doc.
  15134. * src/Peer.h
  15135. (totalLength): Removed.
  15136. * src/Peer.cc
  15137. (updateLatency): Fixed the latency calculation.
  15138. * src/TorrentMan.cc
  15139. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15140. than or equal to MAX_PEER_LIST_SIZE.
  15141. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15142. then return false.
  15143. (deleteOldErrorPeers): Rewritten.
  15144. (deleteUsedPiece): Fixed the miss use of STL remove.
  15145. * src/PeerInteraction.h
  15146. (Pieces): Removed.
  15147. (deleteTimeoutRequestSlot): Removed.
  15148. (deleteCompletedRequestSlot): Removed.
  15149. (checkRequestSlot): New function.
  15150. * src/PeerInteraction.cc
  15151. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15152. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15153. (checkRequestSlot): New function.
  15154. * src/DownloadEngine.cc
  15155. (run): Clear activeSockets before calling waitData().
  15156. (waitData): Removed a call to activeSockets.clear().
  15157. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15158. To attempt to handle EINTR:
  15159. * src/SocketCore.cc
  15160. (isReadable): Added EINTR handling.
  15161. (isWritable): Added EINTR handling.
  15162. To improve the performance:
  15163. * src/AbstractCommand.cc
  15164. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15165. * src/PeerInteractionCommand.h
  15166. (receiveMessage): Renamed as receiveMessages().
  15167. (receiveMessages): New function.
  15168. * src/PeerInteractionCommand.cc
  15169. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15170. () function. detectMessageFlooding() is moved here.
  15171. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15172. (). The flooding detection for have message is comment out.
  15173. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15174. Util::difftv().
  15175. (receiveMessage): Renamed as receiveMessages().
  15176. (receiveMessages): New function.
  15177. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15178. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15179. * src/SleepCommand.cc
  15180. (execute): Use Util::difftvsec() instead of Util::difftv().
  15181. * src/BitfieldMan.h
  15182. (getNthBitIndex): New function.
  15183. (hasMissingPiece): New function.
  15184. (getAllMissingIndexes): New function.
  15185. * src/BitfieldMan.cc
  15186. (countSetBit): Rewritten.
  15187. (getNthBitIndex): New function.
  15188. (getMissingIndexRandomly): Rewritten.
  15189. (hasMissingPiece): New function.
  15190. (getAllMissingIndexes): New function.
  15191. * src/TorrentMan.cc
  15192. (hasMissingPiece): New function.
  15193. (deleteUsedPiece): Rewritten using STL.
  15194. * src/PeerInteraction.cc
  15195. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15196. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15197. (addRequests): Updated the number of pending requests.
  15198. * src/PeerAbstractCommand.cc
  15199. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15200. (execute): Returns true if TorrentMan::isHalt() is true.
  15201. Corrected the condition of upload limit checking.
  15202. * src/Util.h
  15203. (countBit): New function.
  15204. * src/Util.cc
  15205. (nbits): New variable.
  15206. (countBit): New function.
  15207. * src/DownloadEngine.h
  15208. (SockCmdMap): New type definition.
  15209. (waitData): Added an argument.
  15210. (addSocket): Added an argument.
  15211. (addSocketForReadCheck): Added an argument.
  15212. (addSocketForWriteCheck): Added an argument.
  15213. * src/DownloadEngine.cc
  15214. (run): Executes only commands whose sockets are ready to read or write.
  15215. All commands are executed in every 1 second.
  15216. (waitData): Calls select() again if it returned
  15217. EINTR.
  15218. (addSocket): Saves socket and command object pair to the map.
  15219. (deleteSocket): Deletes socket and command object pair from the map.
  15220. (addSocketForReadCheck): Added an argument.
  15221. (addSocketForWriteCheck): Added an argument.
  15222. * src/DownloadCommand.cc
  15223. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15224. To send "event=stopped" to the tracker when the application finishes:
  15225. * src/PeerChokeCommand.h
  15226. (checkPoint): New variable.
  15227. * src/PeerChokeCommand.cc
  15228. (PeerChokeCommand): Added the initialization of checkPoint.
  15229. (execute): The interval check is now done by checkPoint, not
  15230. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15231. * src/TorrentMan.h
  15232. (halt): New function.
  15233. (hasMissingPiece): New function.
  15234. (isHalt): New function.
  15235. (setHalt): New function.
  15236. * src/TorrentMan.cc
  15237. (TorrentMan): Added the initialization of halt.
  15238. * src/TorrentAutoSaveCommand.h
  15239. (checkPoint): New variable.
  15240. * src/PeerListenCommand.cc
  15241. (execute): Returns true if TorrentMan::isHalt() is true.
  15242. * src/main.cc
  15243. (setSignalHander): Added flags argument.
  15244. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15245. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15246. Removed printDownloadAbortMessage() after torrent downloading loop.
  15247. * src/TorrentAutoSaveCommand.cc
  15248. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15249. (execute): Returns true if TorrentMan::isHalt() is true.
  15250. The interval check is now done by checkPoint, not SleepCommand.
  15251. * src/TrackerWatcherCommand.cc
  15252. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15253. event=stopped.
  15254. * src/TrackerUpdateCommand.cc
  15255. (prepareForRetry): Do not use SleepCommand here.
  15256. (execute): Returns true if TorrentMan::isHalt() is true.
  15257. Others:
  15258. * src/TorrentMan.cc
  15259. (getMissingPieceIndex): Updated log message.
  15260. * src/PeerInteraction.cc
  15261. (createPeerMessag): Updated log message.
  15262. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15263. To add the ability to download several pieces in mix in a command and
  15264. increase the number of request slots according to request-cancel
  15265. latency:
  15266. * src/PeerInteractionCommand.cc
  15267. (executeInternal): The number of messages to be received at a time
  15268. is increased from 10 to 50.
  15269. * src/LogFactory
  15270. (getInstance): Added NullLogger.
  15271. * src/NullLogger.h: New class.
  15272. * src/BitfieldMan.h
  15273. (getMissingIndex): New function.
  15274. * src/BitfieldMan.cc
  15275. (getMissingIndex): New function.
  15276. * src/TorrentMan.h
  15277. (checkOutPiece): New function.
  15278. (getMissingPieceIndex): New function.
  15279. (getMissingFastPieceIndex): New function.
  15280. (getMissingFastPiece): New function.
  15281. * src/TorrentMan.cc
  15282. (updatePiece): Rewritten using STL.
  15283. (syncPiece): Rewritten using STL.
  15284. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15285. checkOutPiece().
  15286. (getMissingPieceIndex): New function.
  15287. (getMissingFastPieceIndex): New function.
  15288. (getMissingFastPiece): New function.
  15289. (checkOutPiece): New function.
  15290. * src/PeerInteraction.h
  15291. (Pieces): New type definition.
  15292. (piece): Removed.
  15293. (pieces): New variable.
  15294. (getNewPieceAndSendInterest): Added the "piece" argument.
  15295. (abortPiece): Added the "piece" argument.
  15296. (abortAllPieces): New function.
  15297. (isInRequestSlot): New function.
  15298. (hasDownloadPiece): Added the "index" argument.
  15299. (setDownloadPiece): Removed.
  15300. (getDownloadPiece): Added the "index" argument.
  15301. (updatePiece): New function.
  15302. (createRequestMessage): Added the "index" argument.
  15303. * src/PeerInteraction.cc
  15304. (onChoked): Rewritten.
  15305. (abortPiece): Rewirtten.
  15306. (abortAllPieces): New function.
  15307. (deleteTimeoutRequestSlot): Rewritten.
  15308. Clarified code a little bit.
  15309. (deleteCompletedRequestSlot): Rewritten.
  15310. (isInRequestSlot): New function.
  15311. (syncPiece): Rewritten.
  15312. (updatePiece): New function.
  15313. (getNewPieceAndSendInterest): Rewritten.
  15314. (addRequests): Rewritten.
  15315. (getDownloadPiece): Rewritten.
  15316. (hasDownloadPiece): Rewritten.
  15317. (createRequestMessage): Added the "index" argument.
  15318. * src/common.h
  15319. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15320. (DIV_FLOOR): New definition.
  15321. * src/PieceMessage.cc
  15322. (receivedAction): Update request-piece latency here.
  15323. * src/RequestSlot.h
  15324. (getLatencyInMillis): New function.
  15325. * src/RequestSlot.cc
  15326. (isTimeout): Rewritten using getLatencyInMillis.
  15327. (getLatencyInMillis): New function.
  15328. * src/Piece.h
  15329. (operator==): New function.
  15330. (getMissingBlockIndex): New function.
  15331. * src/Piece.cc
  15332. (operator==): New function.
  15333. (getMissingBlockIndex): New function.
  15334. * src/Peer.h
  15335. (DEFAULT_LATENCY): New definition.
  15336. (latency): New variable.
  15337. (updateLatency): New function.
  15338. (getLatency): New function.
  15339. * src/Peer.cc
  15340. (resetStatus): Reset latecy.
  15341. (updateLatency): New function.
  15342. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15343. * src/SocketCore.cc
  15344. (isReadable): Added secure to the condition.
  15345. * src/HttpConnection.cc
  15346. (receiveResponse): Fixed a bug that causes no response header
  15347. exception.
  15348. * src/Peer.h
  15349. (getFastSet): Fixed the return value type.
  15350. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15351. To remove a wait from download loop:
  15352. * src/DownloadEngine.cc
  15353. (run): Comment out shortSleep.
  15354. To rewrite the message handling:
  15355. * src/SimplePeerMessage.h: New class.
  15356. * src/SimplePeerMessage.cc: New class.
  15357. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15358. (msg): New variable.
  15359. (create): New function.
  15360. (send): Removed.
  15361. (getMessage): New function.
  15362. (getMessageLength): New function.
  15363. * src/CancelMessage.cc
  15364. (create): New function.
  15365. (receivedAction): Replaced deleteRequestMessageInQueue with
  15366. rejectPieceMessageInQueue.
  15367. (send): Removed.
  15368. (getMessage): New function.
  15369. (getMessageLength): New function.
  15370. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15371. (msg): New variable.
  15372. (msgLength): New variable.
  15373. (~BitfieldMessage): Deleted msg.
  15374. (send): Removed.
  15375. (getMessage): New function.
  15376. (getMessageLength): New function.
  15377. * src/BitfieldMessage.cc
  15378. (create): New function.
  15379. (send): Removed.
  15380. (getMessage): New function.
  15381. (getMessageLength): New function.
  15382. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15383. (msg): New variable.
  15384. (sendPredicate): New function.
  15385. (onSendComplete): New function.
  15386. (send): Removed.
  15387. (getMessage): New function.
  15388. (getMessageLength): New function.
  15389. (create): New function.
  15390. * src/ChokeMessage.cc
  15391. (create): New function.
  15392. (send): Removed.
  15393. (sendPredicate): New function.
  15394. (getMessage): New function.
  15395. (getMessageLength): New function.
  15396. (onSendComplete): New function.
  15397. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15398. (msg): New variable.
  15399. (send): Removed.
  15400. (getMessage): New function.
  15401. (getMessageLength): New function.
  15402. * src/KeepAliveMessage.cc
  15403. (send): Removed.
  15404. (getMessage): New function.
  15405. (getMessageLength): New function.
  15406. * src/PortMessage.h
  15407. (create): New function.
  15408. (receivedAction): Updated log message.
  15409. * src/PortMessage.cc: New file.
  15410. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15411. (msg): New variable.
  15412. (sendPredicate): New function.
  15413. (onSendComplete): New function.
  15414. (create): New function.
  15415. (send): Removed.
  15416. (getMessage): New function.
  15417. (getMessageLength): New function.
  15418. * src/UnchokeMessage.cc
  15419. (create): New function.
  15420. (send): Removed.
  15421. (sendPredicate): New function.
  15422. (getMessage): New function.
  15423. (getMessageLength): New function.
  15424. (onSendComplete): New function.
  15425. * src/PieceMessage.h
  15426. (leftPieceDataLength): Removed.
  15427. (leftDataLength): New variable.
  15428. (headerSend): New variable.
  15429. (pendingCount): New variable.
  15430. (msgHeader): New variable.
  15431. (sendPieceData): New function.
  15432. (incrementPendingCount): New function.
  15433. (isPendingCountMax): New function.
  15434. (create): New function.
  15435. (getMessageHeader): New function.
  15436. (getMessageHeaderLength): New function.
  15437. * src/PieceMessage.cc
  15438. (create): New function.
  15439. (getMessageHeader): New function.
  15440. (getMessageHeaderLength): New function.
  15441. (send): Rewritten.
  15442. (sendPieceData): New function.
  15443. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15444. (msg): New variable.
  15445. (create): New function.
  15446. (getMessage): New function.
  15447. (getMessageLength): New function.
  15448. * src/HaveMessage.cc
  15449. (create): New function.
  15450. (send): Removed.
  15451. (sendPieceData): New function.
  15452. (getMessage): New function.
  15453. (getMessageLength): New function.
  15454. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15455. (msg): New variable.
  15456. (create): New function.
  15457. (send): Removed.
  15458. (getMessage): New function.
  15459. (getMessageLength): New function.
  15460. * src/RequestMessage.cc
  15461. (create): New function.
  15462. (receivedAction): Added the handling of fast extension.
  15463. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15464. (send): Removed.
  15465. (getMessage): New function.
  15466. (getMessageLength): New function.
  15467. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15468. (msg): New variable.
  15469. (sendPredicate): New function.
  15470. (onSendComplete): New function.
  15471. (create): New function.
  15472. (getMessage): New function.
  15473. (getMessageLength): New function.
  15474. * src/InterestedMessage.cc
  15475. (create): New function.
  15476. (send): Removed.
  15477. (sendPieceData): New function.
  15478. (getMessage): New function.
  15479. (getMessageLength): New function.
  15480. (onSendComplete): New function.
  15481. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15482. (msg): New variable.
  15483. (sendPieceData): New function.
  15484. (onSendComplete): New function.
  15485. (create): New function.
  15486. (send): Removed.
  15487. (getMessage): New function.
  15488. (getMessageLength): New function.
  15489. * src/NotInterestedMessage.cc
  15490. (create): New function.
  15491. (send): Removed.
  15492. (sendPredicate): New function.
  15493. (getMessage): New function.
  15494. (getMessageLength): New function.
  15495. (onSendComplete): New function.
  15496. * src/AllowedFastMessage.h: New class.
  15497. * src/AllowedFastMessage.cc: New class.
  15498. * src/RejectMessage.h: New class.
  15499. * src/RejectMessage.cc: New class.
  15500. * src/SuggestPieceMessage.h: New class.
  15501. * src/SuggestPieceMessage.cc: New class.
  15502. * src/HaveAllMessage.h: New class.
  15503. * src/HaveAllMessage.cc: New class.
  15504. * src/HaveNoneMessage.h: New class.
  15505. * src/HaveNoneMessage.cc: New class.
  15506. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15507. (msg): New variable.
  15508. (reserved): New variable.
  15509. (create): New function.
  15510. (getId): New function.
  15511. (receivedAction): New function.
  15512. (getMessage): New function.
  15513. (getMessageLength): New function.
  15514. (isFastExtensionSupported): New function.
  15515. * src/HandshakeMessage.cc
  15516. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15517. (create): New function.
  15518. (getMessage): New function.
  15519. (getMessageLength): New function.
  15520. (toString): Added the output of reserved field.
  15521. (check): Added const qualifier.
  15522. (isFastExtensionSupported): New function.
  15523. * src/PeerMessageUtil.h
  15524. (createChokeMessage): Removed.
  15525. (createUnchokeMessage): Removed.
  15526. (createInterestedMessage): Removed.
  15527. (createNotInterestedMessage): Removed.
  15528. (createHaveMessage): Removed.
  15529. (createBitfieldMessage): Removed.
  15530. (createRequestMessage): Removed.
  15531. (createCancelMessage): Removed.
  15532. (createPieceMessage): Removed.
  15533. (createPortMessage): Removed.
  15534. (createChokeMessage): Removed.
  15535. (createUnchokeMessage): Removed.
  15536. (createInterestedMessage): Removed.
  15537. (createNotInterestedMessage): Removed.
  15538. (createHaveMessage): Removed.
  15539. (createBitfieldMessage): Removed.
  15540. (createRequestMessage): Removed.
  15541. (createCancelMessage): Removed.
  15542. (createPieceMessage): Removed.
  15543. (createKeepAliveMessage): Removed.
  15544. (createHandshakeMessage): Removed.
  15545. (setIntParam): New function.
  15546. (createPeerMessageString): New function.
  15547. * src/PeerMessageUtil.cc
  15548. (createChokeMessage): Removed.
  15549. (createUnchokeMessage): Removed.
  15550. (createInterestedMessage): Removed.
  15551. (createNotInterestedMessage): Removed.
  15552. (createHaveMessage): Removed.
  15553. (createBitfieldMessage): Removed.
  15554. (createRequestMessage): Removed.
  15555. (createCancelMessage): Removed.
  15556. (createPieceMessage): Removed.
  15557. (createPortMessage): Removed.
  15558. (createRequestMessage): Removed.
  15559. (createCancelMessage): Removed.
  15560. (createPieceMessage): Removed.
  15561. (createHaveMessage): Removed.
  15562. (createChokeMessage): Removed.
  15563. (createUnchokeMessage): Removed.
  15564. (createInterestedMessage): Removed.
  15565. (createNotInterestedMessage): Removed.
  15566. (createBitfieldMessage): Removed.
  15567. (createKeepAliveMessage): Removed.
  15568. (createHandshakeMessage): Removed.
  15569. (setIntParam): New function.
  15570. (createPeerMessageString): New function.
  15571. * src/PeerConnection.h
  15572. (peer): Removed.
  15573. (torrentMan): Removed.
  15574. (createNLengthMessage): Removed.
  15575. (setIntParam): Removed.
  15576. (writeOutgoingMessageLog): Removed all overloaded functions.
  15577. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15578. (sendMessage): New function.
  15579. (sendHandshake): Removed.
  15580. (sendKeepAlive): Removed.
  15581. (sendChoke): Removed.
  15582. (sendUnchoke): Removed.
  15583. (sendInterested): Removed.
  15584. (sendNotInterested): Removed.
  15585. (sendHave): Removed.
  15586. (sendBitfield): Removed.
  15587. (sendRequest): Removed.
  15588. (sendPiece): Removed.
  15589. (sendPieceHeader): Removed.
  15590. (sendPieceData): Removed.
  15591. (sendCancel): Removed.
  15592. (getPeer): Removed.
  15593. * src/PeerConnection.cc
  15594. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15595. (sendHandshake): Removed.
  15596. (sendKeepAlive): Removed.
  15597. (createNLengthMessage): Removed.
  15598. (setIntParam): Removed.
  15599. (writeOutgoingMessageLog): Removed all overloaded functions.
  15600. (sendChoke): Removed.
  15601. (sendUnchoke): Removed.
  15602. (sendInterested): Removed.
  15603. (sendNotInterested): Removed.
  15604. (sendHave): Removed.
  15605. (sendBitfield): Removed.
  15606. (sendRequest): Removed.
  15607. (sendPiece): Removed.
  15608. (sendPieceHeader): Removed.
  15609. (sendPieceData): Removed.
  15610. (sendMessage): New function.
  15611. (sendCancel): Removed.
  15612. * src/PeerInteractionCommand.cc
  15613. (PeerInteractionCommand): Call setUploadLimit.
  15614. (executeInternal): Call setUploadLimit.
  15615. Added the handling of "inProgress" state of handshake message.
  15616. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15617. sendNow().
  15618. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15619. sendNow().
  15620. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15621. * src/TorrentMan.h
  15622. (PEER_ID_LENGTH): New definition.
  15623. (hasAllPieces): New function.
  15624. * src/TorrentMan.cc
  15625. (getMissingPiece): Added the handling of fast extension.
  15626. (cancelPiece): Call updatePiece().
  15627. (hasAllPieces): New function.
  15628. * src/PeerInteraction.h
  15629. (fastSet): New variable.
  15630. (getNewPieceAndSendInterest): Changed the return type to void.
  15631. (send): Renamed as sendMessages.
  15632. (deleteAllRequestSlot): Removed.
  15633. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15634. (cancelAllRequest): Removed all overloaded functions.
  15635. (deleteAllRequestSlot): Removed.
  15636. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15637. (rejectPieceMessageInQueue): New function.
  15638. (rejectAllPieceMessageInQueue): New function.
  15639. (onChoked): New function.
  15640. (isSendingMessageInProgress): New function.
  15641. (getCorrespondingRequestSlot): Changed its arguments.
  15642. (isInFastSet): New function.
  15643. (addFastSetIndex): New function.
  15644. (addRequests): New function.
  15645. (sendNow): Removed.
  15646. (trySendNow): Removed.
  15647. (sendBitfield): New function.
  15648. (sendAllowdFast): New function.
  15649. (createHaveAllMessage): New function.
  15650. (createHaveNoneMessage): New function.
  15651. (createRejectMessage): New function.
  15652. (createAllowedFastMessage): New function.
  15653. * src/PeerInteraction.cc
  15654. (send): Renamed as sendMessages.
  15655. (sendMessages): New function.
  15656. (MsgPushBack): New class.
  15657. (isSendingMessageInProgress): New function.
  15658. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15659. (rejectAllPieceMessageInQueue): New function.
  15660. Added the handling of fast extension.
  15661. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15662. (rejectPieceMessageInQueue): New function.
  15663. Added the handling of fast extension.
  15664. (deleteRequestSlot): Replaced for loop with std::find.
  15665. (onChoked): New function.
  15666. (deleteAllRequestSlot): Removed.
  15667. (abortPiece): Rewirtten.
  15668. (deleteTimeoutRequestSlot): Updated log messages.
  15669. (getCorrespondingRequestSlot): Changed its arguments.
  15670. (cancelAllRequest): Removed all overloaded functions.
  15671. (receiveHandshake): Added the check to see whether an incoming peer
  15672. supports fast extension.
  15673. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15674. PeerMessageUtil.
  15675. (createPeerMessage): Use create() of each message class instead of
  15676. PeerMessageUtil.
  15677. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15678. AllowedFastMessage were added.
  15679. (getNewPieceAndSendInterest): Changed its return value type to void.
  15680. Added the handling of fast extension.
  15681. (addRequests): New function.
  15682. (sendNow): Removed.
  15683. (sendHandshake): Rewritten.
  15684. (trySendNow): Removed.
  15685. (sendBitfield): New function.
  15686. (sendAllowdFast): New function.
  15687. (isInFastSet): New function.
  15688. (addFastSetIndex): New function.
  15689. (createRequestMessage): Use RequestMessage::create instead of
  15690. PeerMessageUtil.
  15691. (createCancelMessage): Use CancelMessage::create instead of
  15692. PeerMessageUtil.
  15693. (createPieceMessage): Use PieceMessage::create instead of
  15694. PeerMessageUtil.
  15695. (createHaveMessage): Use HaveMessage::create instead of
  15696. PeerMessageUtil.
  15697. (createChokeMessage): Use ChokeMessage::create instead of
  15698. PeerMessageUtil.
  15699. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15700. PeerMessageUtil.
  15701. (createInterestedMessage): Use InterestedMessage::create instead of
  15702. PeerMessageUtil.
  15703. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15704. of PeerMessageUtil.
  15705. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15706. PeerMessageUtil.
  15707. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15708. PeerMessageUtil.
  15709. (createHaveAllMessage): New function.
  15710. (createHaveNoneMessage): New function.
  15711. (createRejectMessage): New function.
  15712. (createAllowedFastMessage: New function.
  15713. * src/Util.h
  15714. (sha1Sum): New function.
  15715. (computeFastSet): New function.
  15716. * src/Util.cc
  15717. (sha1Sum): New function.
  15718. (computeFastSet): New function.
  15719. * src/Peer.h
  15720. (fastExtensionEnabled): New variable.
  15721. (fastSet): New variable.
  15722. (setAllBitfield): New function.
  15723. (setFastExtensionEnabled): New function.
  15724. (isFastExtensionEnabled): New function.
  15725. (addFastSetIndex): New function.
  15726. (getFastSet): New function.
  15727. (isInFastSet): New function.
  15728. (countFastSet): New function.
  15729. * src/Peer.cc
  15730. (isInFastSet): New function.
  15731. (addFastSetIndex): New function.
  15732. (setAllBitfield): New function.
  15733. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15734. sockets.
  15735. * src/PeerAbstractCommand.cc
  15736. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15737. and uploadLimit.
  15738. (execute): Changed the procedure of checking sockets. The upload speed
  15739. checking were added.
  15740. (setUploadLimit): New function.
  15741. (setUploadLimitCheck): New function.
  15742. * src/PeerAbstractCommand.h
  15743. (setUploadLimit): New function.
  15744. (setUploadLimitCheck): New function.
  15745. (uploadLimit): New variable.
  15746. (uploadLimitCheck): New variable.
  15747. To contact a tracker regularly:
  15748. * src/TrackerWatcherCommand.h (interval): New variable.
  15749. (checkPoint): New variable.
  15750. (TrackerWatcherCommand): Added interval argument.
  15751. * src/TrackerWatcherCommand.cc
  15752. (TrackerWatcherCommand): Initialized checkPoint.
  15753. (execute): Now a tracker is contacted in every specified period.
  15754. If peer list is not needed, send request with numwant=0.
  15755. * src/TrackerUpdateCommand.cc
  15756. (execute): Updated log messages.
  15757. * src/DownloadEngine.cc
  15758. (~DownloadEngine): Removed two asserts.
  15759. (waitData): Uncommented wfds. May be a bug fix.
  15760. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15761. * src/PeerInteractionCommand.h
  15762. (checkInactiveConnection): Removed.
  15763. * src/PeerInteractionCommand.cc
  15764. (executeInternal): Removed following function calls:
  15765. detectMessageFlooding(), checkLongTimePeerChoking and
  15766. checkInactiveConnection().
  15767. (checkInactiveConnection): Removed.
  15768. (detectMessageFlooding): Removed function call to
  15769. checkInactiveConnection().
  15770. * src/PeerMessageUtil.h
  15771. (createChokeMessage): New function. Overload.
  15772. (createUnchokeMessage): New function. Overload.
  15773. (createInterestedMessage): New function. Overload.
  15774. (createNotInterestedMessage): New function. Overload.
  15775. (createHaveMessage): New function. Overload.
  15776. (createBitfieldMessage): New function. Overload.
  15777. (createRequestMessage): New function. Overload.
  15778. (createCancelMessage): New function. Overload.
  15779. (createPieceMessage): New function. Overload.
  15780. (createKeepAliveMessage): New function. Overload.
  15781. * src/PeerMessageUtil.cc
  15782. (createChokeMessage): New function. Overload.
  15783. (createUnchokeMessage): New function. Overload.
  15784. (createInterestedMessage): New function. Overload.
  15785. (createNotInterestedMessage): New function. Overload.
  15786. (createHaveMessage): New function. Overload.
  15787. (createBitfieldMessage): New function. Overload.
  15788. (createRequestMessage): New function. Overload.
  15789. (createCancelMessage): New function. Overload.
  15790. (createPieceMessage): New function. Overload.
  15791. (createKeepAliveMessage): New function. Overload.
  15792. * src/SendMessageQueue.cc
  15793. (createRequestMessage): Use PeerMessageUtil.
  15794. (createCancelMessage): Use PeerMessageUtil.
  15795. (createPieceMessage): Use PeerMessageUtil.
  15796. (createHaveMessage): Use PeerMessageUtil.
  15797. (createChokeMessage): Use PeerMessageUtil.
  15798. (createUnchokeMessage): Use PeerMessageUtil.
  15799. (createInterestedMessage): Use PeerMessageUtil.
  15800. (createNotInterestedMessage): Use PeerMessageUtil.
  15801. (createBitfieldMessage): Use PeerMessageUtil.
  15802. (createKeepAliveMessage): Use PeerMessageUtil.
  15803. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15804. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15805. * src/PeerInteraction.h: New class.
  15806. * src/PeerInteraction.cc: New class.
  15807. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15808. Each peer message has its own class.
  15809. * src/PendingMessages.h: Removed.
  15810. * src/PendingMessages.cc: Removed. The sending process was moved to
  15811. each message class.
  15812. * src/RequestSlotMan.h: Removed.
  15813. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15814. SendMessageQueue.
  15815. * src/RequestMessage.h: New class.
  15816. * src/RequestMessage.cc: New class.
  15817. * src/CancelMessage.h: New class.
  15818. * src/CancelMessage.cc: New class.
  15819. * src/BitfieldMessage.h: New class.
  15820. * src/BitfieldMessage.cc: New class.
  15821. * src/ChokeMessage.h: New class.
  15822. * src/ChokeMessage.cc: New class.
  15823. * src/KeepAliveMessage.h: New class.
  15824. * src/KeepAliveMessage.cc: New class.
  15825. * src/PortMessage.h: New class.
  15826. * src/UnchokeMessage.h: New class.
  15827. * src/UnchokeMessage.cc: New class.
  15828. * src/PieceMessage.h: New class.
  15829. * src/PieceMessage.cc: New class.
  15830. * src/HaveMessage.h: New class.
  15831. * src/HaveMessage.cc: New class.
  15832. * src/BitfieldMessage.h: New class.
  15833. * src/BitfieldMessage.cc: New class.
  15834. * src/NotInterestedMessage.h: New class.
  15835. * src/NotInterestedMessage.cc: New class.
  15836. * src/InterestedMessage.h: New class.
  15837. * src/InterestedMessage.cc: New class.
  15838. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15839. (getSendMessageQueue): New function.
  15840. (setSendMessageQueue): New function.
  15841. * src/HandshakeMessage.cc: New class.
  15842. * src/PeerConnection.h (receiveMessage): Changed return value and
  15843. arguments.
  15844. (receiveHandshake): Changed return value and arguments.
  15845. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15846. here.
  15847. (receiveHandshake): Do not create handshake class here.
  15848. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15849. (piece): Removed.
  15850. (syncPiece): Removed.
  15851. (sendInterest): Removed.
  15852. (sendMessages): Removed.
  15853. (createRequestPendingMessage): Removed.
  15854. (checkPieceHash): Removed.
  15855. (erasePieceOnDisk): Removed.
  15856. (getNewPieceAndSendInterest): Removed.
  15857. (onGotNewPice): Removed.
  15858. (onGotWrongPiece): Removed.
  15859. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15860. Removed peerConnection, piece.
  15861. (~PeerInteractionCommand): Removed peerConnection.
  15862. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15863. (syncPiece): Moved to SendMessageQueue.
  15864. (decideChoking): Removed PendingMessage.
  15865. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15866. The action after receiving peer message was moved to each message
  15867. class.
  15868. (onGotNewPice): Moved to SendMessageQueue.
  15869. (onGotWrongPiece): Moved to SendMessageQueue.
  15870. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15871. (sendInterest): Moved to SendMessageQueue.
  15872. (createRequestPendingMessage): Removed.
  15873. (sendMessages): Moved to SendMessageQueue.
  15874. (onAbort): Use SendMessageQueue::abortPiece()
  15875. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15876. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15877. (checkPieceHash): Moved to SendMessageQueue.
  15878. (erasePieceOnDisk): Moved to SendMessageQueue.
  15879. * src/PeerMessageUtil.h
  15880. (createBitfieldMessage): Removed.
  15881. (createHaveMessage): Changed return value and arguments.
  15882. (createBitfieldMessage): Changed return value and arguments.
  15883. (createRequestCancelMessage): Removed.
  15884. (createPieceMessage): Changed return value and arguments.
  15885. (getShortIntParam): New function.
  15886. (checkIndex): Changed arguments.
  15887. (checkBegin): Changed arguments.
  15888. (checkLength): Changed arguments.
  15889. (checkPieceOffset): Removed.
  15890. (checkRange): New function.
  15891. (checkBitfield): Changed arguments.
  15892. (createPeerMessage): Removed.
  15893. (checkIntegrity): Removed.
  15894. (createHandshakeMessage): Changed arguments.
  15895. (createChokeMessage): New function.
  15896. (createUnchokeMessage): New function.
  15897. (createInterestedMessage): New function.
  15898. (createNotInterestedMessage): New function.
  15899. (createRequestMessage): New function.
  15900. (createCancelMessage): New function.
  15901. (createPortMessage): New function.
  15902. * src/PeerMessageUtil.cc
  15903. (createBitfieldMessage): Removed.
  15904. (createHaveMessage): Changed return value and arguments.
  15905. (createBitfieldMessage): Changed return value and arguments.
  15906. (createRequestCancelMessage): Removed.
  15907. (createPieceMessage): Changed return value and arguments.
  15908. (getShortIntParam): New function.
  15909. (checkIndex): Changed arguments.
  15910. (checkBegin): Changed arguments.
  15911. (checkLength): Changed arguments.
  15912. (checkPieceOffset): Removed.
  15913. (checkRange): New function.
  15914. (checkBitfield): Changed arguments.
  15915. (createPeerMessage): Removed.
  15916. (checkIntegrity): Removed.
  15917. (createHandshakeMessage): Changed arguments.
  15918. (createChokeMessage): New function.
  15919. (createUnchokeMessage): New function.
  15920. (createInterestedMessage): New function.
  15921. (createNotInterestedMessage): New function.
  15922. (createRequestMessage): New function.
  15923. (createCancelMessage): New function.
  15924. (createPortMessage): New function.
  15925. * src/PeerMessage.h
  15926. (id): Removed.
  15927. (index): Removed.
  15928. (begin): Removed.
  15929. (length): Removed.
  15930. (bitfield): Removed.
  15931. (bitfieldLength): Removed.
  15932. (block): Removed.
  15933. (blockLength): Removed.
  15934. (inProgress): New variable.
  15935. (cuid): New variable.
  15936. (peer): New variable.
  15937. (sendMessageQueue): New variable.
  15938. (logger): New variable.
  15939. (setBitfield): Removed.
  15940. (getBitfield): Removed.
  15941. (setBlock): Removed.
  15942. (getBlock): Removed.
  15943. (getBitfieldLength): Removed.
  15944. (getBlockLength): Removed.
  15945. (isInProgress): New function.
  15946. (toString): Made pure virtual.
  15947. (check): New function.
  15948. (send): New function.
  15949. (receivedAction): New function.
  15950. (getId): Made pure virtual.
  15951. (setId): Removed.
  15952. (getIndex): Removed.
  15953. (setIndex): Removed.
  15954. (getBegin): Removed.
  15955. (setBegin): Removed.
  15956. (getLength): Removed.
  15957. (setLength): Removed.
  15958. (getCuid): New function.
  15959. (setCuid): New function.
  15960. (getPeer): New function.
  15961. (setPeer): New function.
  15962. (getSendMessageQueue): New function.
  15963. (setSendMessageQueue): New function.
  15964. (ID): Removed.
  15965. * src/PeerMessage.cc
  15966. (setBitfield): Removed.
  15967. (setBlock): Removed.
  15968. (toString): Removed.
  15969. * src/TorrentMan.h
  15970. (getPieceLength): New function.
  15971. (getPieceLength): New function.
  15972. * src/SendMessageQueue.h
  15973. (REQUEST_TIME_OUT): New definition.
  15974. (RequestSlots): New definition.
  15975. (MessageQueue): New definition.
  15976. (requestSlotMan): Removed.
  15977. (pendingMessages): Removed.
  15978. (requestSlots): New variable.
  15979. (messageQueue): New variable.
  15980. (torrentMan): New variable.
  15981. (peerConnection): New variable.
  15982. (peer): New variable.
  15983. (piece): New variable.
  15984. (getNewPieceAndSendInterest): New function.
  15985. (createPeerMessage): New function.
  15986. (createHandshakeMessage): New function.
  15987. (send): Made private.
  15988. (setPeerMessageCommonProperty): New function.
  15989. (deleteAllRequestSlot): New function.
  15990. (deleteRequestMessageInQueue): New function.
  15991. (cancelAllRequest): Made private.
  15992. (cancelAllRequest): Made private.
  15993. (countRequestSlot): Made private.
  15994. (addPendingMessage): Removed.
  15995. (deletePendingPieceMessage): Removed.
  15996. (deletePendingRequestMessage): Removed.
  15997. (addMessage): New function.
  15998. (deletePieceMessageInQueue): New function.
  15999. (deleteTimeoutRequestSlot): Changed argument.
  16000. (deleteCompletedRequestSlot): Changed argument.
  16001. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16002. (getCorrespondingRequestSlot): New function.
  16003. (countPendingMessage): Removed.
  16004. (countMessageInQueue): New function.
  16005. (getTorrentMan): New function.
  16006. (getPeerConnection): New function.
  16007. (hasDownloadPiece): New function.
  16008. (getDownloadPiece): New function.
  16009. (setDownloadPiece): New function.
  16010. (syncPiece): New function.
  16011. (sendMessages): New function.
  16012. (sendNow): New function.
  16013. (trySendNow): New function.
  16014. (abortPiece): New function.
  16015. (sendHandshake): New function.
  16016. (receiveMessage): New function.
  16017. (receiveHandshake): New function.
  16018. (createRequestMessage): New function.
  16019. (createCancelMessage): New function.
  16020. (createPieceMessage): New function.
  16021. (createHaveMessage): New function.
  16022. (createChokeMessage): New function.
  16023. (createUnchokeMessage): New function.
  16024. (createInterestedMessage): New function.
  16025. (createNotInterestedMessage): New function.
  16026. (createBitfieldMessage): New function.
  16027. (createKeepAliveMessage): New function.
  16028. * src/SendMessageQueue.cc
  16029. (SendMessageQueue): Removed requestSlotMan.
  16030. Instantiated peerConnection here.
  16031. (~SendMessageQueue): Removed requestSlotMan.
  16032. Added deletion of peerConnection and the contents of messageQueue.
  16033. (send): Updated according to the change of messageQueue.
  16034. (addPendingMessage): Renamed to addMessage.
  16035. (addMessage): New function.
  16036. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16037. (deletePieceMessageInQueue): New function.
  16038. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16039. (deleteRequestMessageInQueue): New function.
  16040. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16041. here.
  16042. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16043. (...) was moved here.
  16044. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16045. moved here.
  16046. (deleteCompletedRequestSlot):
  16047. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16048. (getCorrespondingRequestSlot):
  16049. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16050. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16051. (countPendingMessage): Renamed to countMessageInQueue.
  16052. (countMessageInQueue): New function.
  16053. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16054. (receiveHandshake): New function.
  16055. (createHandshakeMessage): New function.
  16056. (receiveMessage): New function.
  16057. (createPeerMessage): New function.
  16058. (syncPiece): New function.
  16059. (getNewPieceAndSendInterest): New function.
  16060. (sendMessages): New function.
  16061. (sendNow): New function.
  16062. (trySendNow): New function.
  16063. (sendHandshake): New function.
  16064. (abortPiece): New function.
  16065. (getDownloadPiece): New function.
  16066. (getPeerMessageCommonProperty): New function.
  16067. (createRequestMessage): New function.
  16068. (createCancelMessage): New function.
  16069. (createPieceMessage): New function.
  16070. (createHaveMessage): New function.
  16071. (createChokeMessage): New function.
  16072. (createUnchokeMessage): New function.
  16073. (createInterestedMessage): New function.
  16074. (createNotInterestedMessage): New function.
  16075. (createBitfieldMessage): New function.
  16076. (createKeepAliveMessage): New function.
  16077. To add simple Content-Disposition support:
  16078. * src/HttpResponseCommand.h (determinFilename): New function.
  16079. * src/HttpResponseCommand.cc (executeInternal):
  16080. Use determinFilename(headers) instead of req->getFile() when comparing
  16081. filename.
  16082. (determinFilename): New function.
  16083. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16084. req->getFile().
  16085. (handleOtherEncoding): Use determinFilename(headers) instead of
  16086. req->getFile().
  16087. * src/Util.h (getContentDispositionFilename): New function.
  16088. * src/Util.cc (getContentDispositionFilename): New function.
  16089. * src/LogFactory.h (release): New function.
  16090. * src/LogFactory.cc (release): New function.
  16091. To fix a bug that causes out-of-bound exception when HTTP status
  16092. line is wrong:
  16093. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16094. size.
  16095. * src/common.h (Deleter): New class.
  16096. * src/SegmentMan.cc
  16097. (~SegmentMan): Added deletion of splitter and diskWriter.
  16098. * src/DownloadEngine.h
  16099. (Commands): Use deque.
  16100. (clearQueue): New function.
  16101. * src/DownloadEngine.cc
  16102. (~DownloadEngine): Added deletion of segmentMan.
  16103. (cleanQueue): New function.
  16104. * src/TorrentDownloadEngine.h
  16105. (TorrentDownloadEngine): The implementation was moved to
  16106. TorrentDownloadEngine.cc.
  16107. (~TorrentDownloadEngine): The implementation was moved to
  16108. TorrentDownloadEngine.cc.
  16109. * src/TorrentDownloadEngine.cc
  16110. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16111. * src/main.cc
  16112. (clearRequest): Removed.
  16113. (handler): Added deletion of e.
  16114. (torrentHandler): Added deletion of te.
  16115. (main): Do not share splitter.
  16116. Use Deleter instead of clearRequest.
  16117. Deletion of classes were updated.
  16118. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16119. * src/main.cc (main): Fixed typo.
  16120. * src/message.h: Fixed typo.
  16121. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16122. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16123. To add --select-file command-line option:
  16124. * src/Util.cc
  16125. (unfoldRange): New function.
  16126. (getNum): New function.
  16127. (unfoldSubRange): New function
  16128. * src/main.cc
  16129. (showUsage): Added help message.
  16130. (main): Added --select-file command-line option. Updated the layout of
  16131. file listing.
  16132. * src/common.h
  16133. (Integers): New definition.
  16134. * src/SocketCore.cc
  16135. (writeData): Removed timeout argument.
  16136. (readData): Removed timeout argument.
  16137. (peekData): Removed timeout argument.
  16138. * src/Socket.cc
  16139. (writeData): Removed timeout argument.
  16140. (readData): Removed timeout argument.
  16141. (peekData): Removed timeout argument.
  16142. * Release 0.4.1
  16143. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16144. To deploy upload rate based choking algorithm:
  16145. * src/PeerInteractionCommand.cc
  16146. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16147. peer currently used.
  16148. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16149. download completes. Simplified.
  16150. (receiveMessage): Updated.
  16151. * src/TorrentMan.h
  16152. (activePeers): New variable.
  16153. (addActivePeer): New function.
  16154. (getActivePeers): New function.
  16155. (deleteActivePeer): New function.
  16156. * src/TorrentMan.cc
  16157. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16158. * src/PeerAbstractCommand.cc
  16159. (onAbort): Use peer->resetStatus().
  16160. * src/main.cc
  16161. (PeerChokeCommand.h): Included.
  16162. (main): Added the instance of ChokingCommand to the command queue.
  16163. * src/Peer.h
  16164. (amChoking): Renamed from amChocking
  16165. (chokingRequired): New variable.
  16166. (optUnchoking): New variable.
  16167. (deltaUpload): New variable.
  16168. (deltaDownload): New variable.
  16169. (addDeltaUpload): New function.
  16170. (resetDeltaUpload): New function.
  16171. (addDeltaDownload): New function.
  16172. (resetDeltaDownload): New function.
  16173. (addPeerUpload): Added a call to addDeltaUpload.
  16174. (addPeerDownload): Added a call to addDeltaDownload.
  16175. * src/Peer.cc
  16176. (shouldBeChoking): Renamed from shouldChoke.
  16177. (resetStatus): New function.
  16178. * src/PeerChokeCommand.h: New class.
  16179. * src/PeerChokeCommand.cc: New class.
  16180. To add lazy upload speed limiter:
  16181. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16182. statistics calculation to TorrentDownloadEngine.
  16183. * src/TorrentConsoleDownloadEngine.cc
  16184. (sendStatistics): Renamed from printStatistics.
  16185. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16186. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16187. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16188. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16189. calculation.
  16190. (sendStatistics): New function as pure virtual function.
  16191. (getUploadSpeed): New function.
  16192. * src/TorrentDownloadEngine.cc
  16193. (initStatistics): New function.
  16194. (calculateSpeed): New function.
  16195. (calculateStatistics): New function.
  16196. * src/SendMessageQueue.h
  16197. (uploadLength): New variable.
  16198. (send): Added an argument.
  16199. (setUploadLimit): New function.
  16200. (getUploadLimit): New function.
  16201. * src/SendMessageQueue.cc
  16202. (send): Added upload speed limiter.
  16203. * src/prefs.h
  16204. (PREF_UPLOAD_LIMIT): New definition.
  16205. * src/PeerInteractionCommand.cc
  16206. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16207. * src/main.cc
  16208. (main): Added --upload-limit option
  16209. For bug fixes:
  16210. * src/main.cc
  16211. (showUsage): Corrected --listen-port help
  16212. Other changes:
  16213. * src/TorrentMan.cc
  16214. (getPeer): Return nullPeer if connection is grather than
  16215. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16216. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16217. To add some useful information to the exception message:
  16218. * src/SocketCore.cc : Updated messages.
  16219. * src/SegmentMan.cc :
  16220. * src/TorrentMan.cc : Updated messages.
  16221. * src/MultiDiskWriter.cc : Updated messages.
  16222. * src/Util.cc : Updated messages.
  16223. * src/AbstractDiskWriter.cc : Updated messages.
  16224. * src/PreAllocationDiskWriter.cc : Updated messages.
  16225. * src/message.cc : Added new messages. Updated some messages.
  16226. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16227. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16228. Updated threshold from 30 to 15.
  16229. * src/AbstractDiskWriter.h (filename): New variable.
  16230. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16231. (createFile): Assigned filename.
  16232. * src/main.cc: Updated the help message for http-auth-scheme.
  16233. * Release 0.4.0
  16234. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16235. To add TrackerUpdateCommand with which replaces
  16236. CompactTrackerResponseProcessor:
  16237. * src/TrackerWatcherCommand.h (req): Removed.
  16238. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16239. if the number of peer connections are less than 30.
  16240. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16241. * src/SegmentMan.h (diskWriter): New function.
  16242. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16243. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16244. (main): Use TrackerUpdateCommand.
  16245. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16246. (req): New variable.
  16247. (setTrackerResponseProcessor): Removed.
  16248. (getTrackerResponseProcessor): Removed.
  16249. (processTrackerResponse): Removed.
  16250. * src/DownloadEngine.h (diskWriter): Removed.
  16251. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16252. to torrentMan->processTrackerResponse().
  16253. To add Util::expandBuffer:
  16254. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16255. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16256. * src/Util.h (expandBuffer): New function.
  16257. To fix the bug that causes segmentation fault when "-l ." is specified
  16258. in command-line option:
  16259. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16260. (openFile): New function.
  16261. (closeFile): New function.
  16262. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16263. (~SimpleLogger): Call closeFile();
  16264. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16265. * src/main.cc (main): Added a check to see logger is configured
  16266. properly.
  16267. To enable HTTP authentication without specifying "--http-auth-scheme"
  16268. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16269. * src/HttpConnection.cc (createRequest): Send Authorization header
  16270. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16271. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16272. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16273. * src/Peer.cc (shouldChoke): Updated algorithm.
  16274. * src/message.h (EX_AUTH_FAILED): New definition.
  16275. (EX_FILE_OPEN): New definition.
  16276. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16277. if status == 401.
  16278. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16279. if req->isTorrent == true.
  16280. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16281. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16282. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16283. (createFile): Updated message.
  16284. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16285. To add a readout of estimated remaining time to normal HTTP/FTP
  16286. downloads:
  16287. * src/ConsoleDownloadEngine.h (startup): New variable.
  16288. (startupLength): New variable.
  16289. (isStartupLengthSet): New variable.
  16290. (avgSpeed): New variable.
  16291. (eta): New variable.
  16292. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16293. estimated remaining time.
  16294. (initStatistics): Initialized newly added variables.
  16295. (calculateStatistics): Calculate average speed and estimated remaining
  16296. time.
  16297. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16298. * src/TrackerDownloadCommand.h: Removed.
  16299. * src/TrackerDownloadCommand.cc: Removed.
  16300. * src/TrackerInitCommand.h: Removed.
  16301. * src/TrackerInitCommand.cc: Removed.
  16302. * src/TrackerUpdateCommand.h: Removed.
  16303. * src/TrackerUpdateCommand.cc: Removed.
  16304. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16305. url written in TrackerInitCommand was moved here. Do not create
  16306. tracker request command if torrentMan->trackers != 0.
  16307. * src/CompactTrackerResponseProcessor.h: New class.
  16308. * src/CompactTrackerResponseProcessor.cc: New class.
  16309. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16310. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16311. Decoupled TorrentDownloadEngine from this.
  16312. * src/SegmentMan.h (init): New function.
  16313. * src/SegmentMan.cc (init): New function.
  16314. * src/TorrentMan.h (responseProcessor): New variable.
  16315. (trackers): New variable.
  16316. (setTrackerResponseProcessor): New function.
  16317. (getTrackerResponseProcessor): New function.
  16318. (processTrackerResponse): New function.
  16319. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16320. (processTrackerResponse): New function.
  16321. * src/main.cc (main): Use ByteArrayDiskWriter and
  16322. CompactTrackerResponseProcessor.
  16323. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16324. processTrackerResponse().
  16325. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16326. readout.
  16327. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16328. which indicates download has completed.
  16329. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16330. (closeFile): fd >= 0, not fd > 0
  16331. * src/main.cc (main): Added short cut for show-files.
  16332. Added short cut for torrent-file.
  16333. Added new command-line option listen-port.
  16334. Updated i18n messages.
  16335. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16336. To add LogFactory which creates singleton logger:
  16337. * src/LogFactory.h: New class.
  16338. * src/LogFactory.cc: New class.
  16339. * src/Command.h (logger): New variable.
  16340. (Constructor): Use LogFactory.
  16341. * src/AbstractCommand.cc: Use Command::logger
  16342. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16343. Use LogFactory.
  16344. * src/SegmentSplitter.h : Made logger protected.
  16345. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16346. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16347. * src/DownloadEngine.h : Made logger protected.
  16348. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16349. * src/PeerInteractionCommand.cc : Use Command::logger.
  16350. * src/HttpResponseCommand.cc : Use Command::logger.
  16351. * src/SegmentMan.h : Made logger private.
  16352. * src/TorrentMan.h : Made logger private.
  16353. * src/TorrentMan.cc : Use LogFactory.
  16354. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16355. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16356. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16357. Use LogFactory.
  16358. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16359. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16360. Use LogFactory.
  16361. * src/DownloadCommand.cc : Use Command::logger.
  16362. * src/PeerAbstractCommand.cc : Use Command::logger.
  16363. * src/PeerListenCommand.cc : Use Command::logger.
  16364. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16365. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16366. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16367. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16368. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16369. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16370. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16371. Use LogFactory.
  16372. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16373. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16374. Use LogFactory.
  16375. * src/main.cc (main): Use LogFactory.
  16376. * src/DiskAdaptor.h (logger): New variable.
  16377. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16378. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16379. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16380. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16381. parameter to a tracker request.
  16382. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16383. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16384. * src/main.cc (setSignalHander): New function.
  16385. (main): Added a handler for SIGTERM.
  16386. (handler): Updated message.
  16387. (torrentHandler): Updated message.
  16388. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16389. * src/TorrentConsoleDownloadEngine.cc
  16390. (onPartialDownloadingCompletes): Renamed as
  16391. onSelectiveDownloadingCompletes.
  16392. (onSelectiveDownloadingCompletes): Updated message.
  16393. To add DiskAdaptor which abstract DiskWriter family:
  16394. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16395. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16396. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16397. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16398. MultiDiskAdaptor.h.
  16399. (readFileEntry): Changed its arguments.
  16400. (setup): setupDiskWriter is merged into this function.
  16401. (setupDiskWriter): Removed.
  16402. (setFileFilter): New function.
  16403. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16404. made in readFileEntry.
  16405. (getFilePath): Removed.
  16406. (getTempFilePath): Removed.
  16407. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16408. (fixFilename): Removed.
  16409. (copySingleFile): Removed.
  16410. (splitMultiFile): Removed.
  16411. (deleteTempFile): Removed.
  16412. (setFileEntriesToDownload): Removed.
  16413. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16414. (isSelectiveDownloadingMode): New function.
  16415. (setAllMultiFileRequestedState): Removed.
  16416. (finishPartialDownloadingMode): Renamed as
  16417. finishSelectiveDownloadingMode.
  16418. (finishSelectiveDownloadingMode): New function.
  16419. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16420. (getSelectedTotalLength): New function.
  16421. (onDownloadComplete): Use diskAdaptor.
  16422. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16423. (Range): Removed.
  16424. (setMultiFileEntries): Renamed as setFileEntries.
  16425. (setFileEntries): New function.
  16426. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16427. (pieceLength): New variable.
  16428. * src/main.cc (printDownloadCompeleteMessage): New function.
  16429. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16430. (main): Renamed torrent-show-files to show-files.
  16431. Rewritten file contents listing.
  16432. * src/TorrentMan.h (FileEntry): Removed.
  16433. (multiFileTopDir): Removed.
  16434. (multiFileEntries): Removed.
  16435. (diskWriter): Removed.
  16436. (diskAdaptor): New variable.
  16437. * src/DefaultDiskWriter.h (totalLength): New variable.
  16438. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16439. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16440. diskWriter.
  16441. * src/TorrentConsoleDownloadEngine.h
  16442. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16443. (partialTotalLength): Renamed as selectedTotalLength.
  16444. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16445. openExistingFile, otherwise call initAndOpenFile.
  16446. (closeFile): fd > 0, not fd != 0.
  16447. * src/DirectDiskAdaptor.h: New class.
  16448. * src/DirectDiskAdaptor.cc: New class.
  16449. * src/MultiDiskAdaptor.h: New class.
  16450. * src/MultiDiskAdaptor.cc: New class.
  16451. * src/CopyDiskAdaptor.h: New class.
  16452. * src/CopyDiskAdaptor.cc: New class.
  16453. * src/DiskAdaptor.h: New class.
  16454. * src/DiskAdaptor.cc: New class.
  16455. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16456. (PREF_SHOW_FILES): New definition.
  16457. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16458. To add the ability to download multi torrent into respective files
  16459. directly:
  16460. * src/DiskWriter.h (openFile): New function.
  16461. (seek): Removed.
  16462. * src/MultiDiskWriter.h: New class.
  16463. * src/MultiDiskWriter.cc: New class.
  16464. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16465. protected.
  16466. (openFile): New function.
  16467. * src/AbstractDiskWriter.cc (openFile): New function.
  16468. * src/prefs.h (V_FALSE): New definition.
  16469. (PREF_DIRECT_FILE_MAPPING): New definition.
  16470. * src/TorrentMan.h (setupDiskWriter): New function.
  16471. (setAllMultiFileRequestedState): New function.
  16472. (onDownloadComplete): New function.
  16473. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16474. (setupDiskWriter): New function.
  16475. (getFilePath): Updated.
  16476. (getTempFilePath): Updated.
  16477. (getSegmentFilePath): Updated.
  16478. (fixFilename): Updated.
  16479. (deleteTempFile): Updated.
  16480. (setAllMultiFileRequestedState): New function.
  16481. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16482. (finishPartialDownloadingMode): Reset requested flags.
  16483. (onDownloadComplete): New function.
  16484. * src/main.cc: Added --direct-file-mapping option.
  16485. Use TorrentMan::setupDiskWriter().
  16486. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16487. onDownloadComplete().
  16488. To fix ETA bug:
  16489. * src/Util.h (difftvsec): New function.
  16490. * src/Util.cc (difftvsec): New function.
  16491. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16492. type of "elapsed" instead of long long int.
  16493. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16494. The updates of statistics takes place every 1 seconds.
  16495. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16496. (calculateSpeed): Changed its argument signature.
  16497. * src/PeerMessage.cc (toString): Fixed message.
  16498. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16499. To print ETA:
  16500. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16501. completion handling when dealing with
  16502. TorrentMan::isPartialDownloadingMode() == true.
  16503. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16504. New function.
  16505. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16506. (sessionDownloadLength): New variable.
  16507. (avgSpeed): New variable.
  16508. (eta): New variable.
  16509. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16510. new variables: eta, avgSpeed, startup.
  16511. (calculateSpeed): Calculate average speed and ETA.
  16512. (printStatistics): Added ETA.
  16513. * src/Util.h (secfmt): New function.
  16514. * src/Util.cc (secfmt): New function.
  16515. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16516. To detect "keep alive" flooding:
  16517. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16518. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16519. variable: keepAliveCount.
  16520. (detectMessageFlooding): Added "keep alive" flooding detection.
  16521. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16522. received.
  16523. To add the ability to download only specified files in multi-file
  16524. torrent:
  16525. * src/BitfieldMan.h (filterBitfield): New variable.
  16526. (filterEnabled): New variable.
  16527. (setFilterBit): New function.
  16528. (enableFilter): New function.
  16529. (disableFilter): New function.
  16530. (isFilterEnabled): New function.
  16531. (getFilteredTotalLength): New function.
  16532. (getCompletedLength): New function.
  16533. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16534. filterBitfield, filterEnabled.
  16535. (CopyConstructor): Added filterBitfield and filterEnabled.
  16536. (operator==): Added filterBitfield and filterEnabled.
  16537. (Destructor): Added filterBitfield.
  16538. (getMissingIndex): Use filterBitfield.
  16539. (getMissingUnusedIndex): Use filterBitfield.
  16540. (getFirstMissingUnusedIndex): Use filterBitfield.
  16541. (getFirstMissingUnusedIndex): Use filterBitfield.
  16542. (getAllMissingIndexes): Use filterBitfield.
  16543. (countMissingBlock): Use filterBitfield.
  16544. (countBlock): Use filterBitfield.
  16545. (setBitInternal): Added new argument on.
  16546. (setUseBit): Use setBitInternal.
  16547. (unsetUseBit): Use setBitInternal.
  16548. (setBit): Use setBitInternal.
  16549. (unsetBit): Use setBitInternal.
  16550. (isAllBitSet): Use filterBitfield.
  16551. (setFilterBit): New function.
  16552. (addFilter): New function.
  16553. (enableFilter): New function.
  16554. (disableFilter): New function.
  16555. (clearFilter): New function.
  16556. (isFilterEnabled): New function.
  16557. (getFilteredTotalLength): New function.
  16558. (getCompletedLength): New function.
  16559. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16560. Initalized newly added variables.
  16561. [FileEntry](offset): New variable.
  16562. [FileEntry](extracted): New variable.
  16563. [FileEntry](requested): New variable.
  16564. (readFileEntry): New function.
  16565. (option): New variable.
  16566. (splitMultiFile): Removed const qualifier.
  16567. (fixFilename): Removed const qualifier.
  16568. (readFileEntryFromMetaInfoFile): New function.
  16569. (finishPartialDownloadingMode): New function.
  16570. (isPartialDownloadingMode): New function.
  16571. (setFileEntriesToDownload): New function.
  16572. (getCompletedLength): New function.
  16573. (getPartialTotalLength): New function.
  16574. * src/TorrentMan.cc (readFileEntry): New function.
  16575. (setup): Use readFileEntry. If no-preallocation option is specified,
  16576. use DefaultDiskWriter.
  16577. (readFileEntryFromMetaInfoFile): New function.
  16578. (fixFilename): Removed const qualifier.
  16579. (splitMultiFile): Removed const qualifier.
  16580. (setFileEntriesToDownload): New function.
  16581. (isPartialDownloadingMode): New function.
  16582. (finishPartialDownloadingMode): New function.
  16583. (getCompletedLength): New function.
  16584. (getPartialTotalLength): New function.
  16585. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16586. New variable.
  16587. (partialTotalLength): New variable.
  16588. (downloadLength): New variable.
  16589. (totalLength): New variable.
  16590. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16591. Added log.
  16592. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16593. partialTotalLength, downloadLength, totalLength.
  16594. (calculate): Calculate downloadLength and totalLength.
  16595. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16596. * src/main.cc (addCommand): Changed argument signature.
  16597. (main): Added new variable: args. Added new option "torrent-show-files"
  16598. "no-preallocation". Usage is not updated yet.
  16599. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16600. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16601. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16602. Attempt to add the ability to listing file entries in a .torrent file.
  16603. This feature is not yet complete.
  16604. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16605. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16606. (getName): New function.
  16607. * src/TorrentMan.h (getMultiFileEntries): New function.
  16608. (getName): New function.
  16609. * src/main.cc (main): Use above 2 funtion.
  16610. * Release 0.3.2
  16611. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16612. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16613. (detectMessageFlooding): Updated threshold value.
  16614. (checkLongTimePeerChoking): Updated timeout value.
  16615. (getNewPieceAndSendInterest): Added debug log.
  16616. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16617. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16618. (getPeer): Updated.
  16619. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16620. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16621. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16622. is localhost.
  16623. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16624. * src/PendingMessage.cc (processMessage): Not to send piece message
  16625. if peer is not interested in the pieces localhost has.
  16626. * src/Peer.cc (shouldChoke): Updated.
  16627. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16628. * src/Util.cc (isPowerOf): New function.
  16629. * src/Util.h (isPowerOf): New function.
  16630. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16631. whether or not it is power of 2.
  16632. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16633. Added new class SendMessageQueue that includes PendingMessages and
  16634. RequestSlotMan.
  16635. * src/SendMessageQueue.h: New class.
  16636. * src/SendMessageQueue.cc: New class.
  16637. * src/PendingMessage.h: Added new member variable blockIndex and its
  16638. accessors.
  16639. (createRequestMessage): Updated.
  16640. * src/PendingMessage.cc (createRequestMessage): Updated.
  16641. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16642. SendMessageQueue.
  16643. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16644. (receiveMessage): Updated with SendMessageQueue.
  16645. (deletePendingPieceMessage): Removed.
  16646. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16647. (sendInterest): Updated with SendMessageQueue.
  16648. (createRequestPendingMessage): Updated with SendMessageQueue.
  16649. (sendMessages): Updated with SendMessageQueue.
  16650. (onAbort): Updated with SendMessageQueue.
  16651. (keepAlive): Updated with SendMessageQueue.
  16652. (beforeSocketCheck): Updated SendMessageQueue.
  16653. * src/PeerInteractionCommand (sendMessages): Shuffle
  16654. missingBLockIndexes before using it.
  16655. Added its own timeout for peer connection.
  16656. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16657. setter.
  16658. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16659. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16660. Added setTimeout() call.
  16661. (executeInternal): Added setTimeout() call.
  16662. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16663. Added timeout.
  16664. (isTimeoutDetected): Updated.
  16665. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16666. option.
  16667. Added *simple* message flooding checker.
  16668. * src/PeerInteractionCommand.cc (executeInternal):
  16669. Added detectMessageFlooding() call.
  16670. (detectMessageFlooding): New function.
  16671. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16672. (beforeSocketCheck): Added detectMessageFlooding() call.
  16673. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16674. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16675. Removed deletePendingPieceMessage(), getRequestSlot(),
  16676. deleteRequestSlot(), deleteAllRequestSlot().
  16677. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16678. Added checkLongTimePeerChoking() call.
  16679. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16680. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16681. if duplicate == false.
  16682. The parameter "uploaded" and "downloaded" in the tracker request are
  16683. the size since the client sent the "started" event to the tracker.
  16684. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16685. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16686. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16687. getSessionDownloadedSize(), getSessionUploadedSize().
  16688. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16689. getSessionUploadedSize() instead of getDownloadedSize(),
  16690. getUploadedSize().
  16691. * src/PendingMessage.cc (processMessage): Do not send request message
  16692. if the peer is choking the client.
  16693. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16694. less than interval.
  16695. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16696. * configure.in: Added gnutls support. Added several CPP macros.
  16697. * m4/openssl.m4: Added.
  16698. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16699. readData(), peekData(). Added gnutls support.
  16700. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16701. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16702. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16703. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16704. Instead, added a check for whether setup method has executed
  16705. successfully.
  16706. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16707. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16708. * src/Makefile.am: Updated.
  16709. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16710. using whether OpenSSL or gcrypt, depending on the result of configure
  16711. script.
  16712. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16713. messageDigest.h.
  16714. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16715. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16716. Fixed memory leak.
  16717. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16718. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16719. Removed instantiation of TrackerInitCommand. Instead,
  16720. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16721. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16722. ENABLE_SSL.
  16723. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16724. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16725. If a piece is already acquired by another command, delete the request
  16726. slots for the piece.
  16727. * src/TrackerUpdateCommand.cc (execute):
  16728. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16729. Added a check whether peer list is null.
  16730. Fixed the bug that causes sending completed event to the tracker
  16731. several times.
  16732. * src/TrackerInitCommand.cc (execute):
  16733. Fixed the bug that causes sending completed event to the tracker
  16734. several times.
  16735. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16736. by using messageDigest.h.
  16737. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16738. * PeerConnection.cc: Replaced log message "keep-alive" with
  16739. "keep alive".
  16740. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16741. localhost long time.
  16742. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16743. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16744. at most 100 failure entry from the list. If with duplicate = false,
  16745. MAX_PEER_LIST is not checked.
  16746. * PeerListenCommand.cc: Fixed the argument order of log message.
  16747. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16748. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16749. Added warn().
  16750. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16751. Implemented warn().
  16752. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16753. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16754. * Request.h: Added AFTER_COMPLETED event.
  16755. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16756. instead of downloaded size and progress(%) after download completes.
  16757. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16758. message to the peer if it is interested in what localhost has
  16759. downloaded.
  16760. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16761. destination instead of just renaming it.
  16762. * TorrentMan.cc: Added deleteTempFile().
  16763. * PeerAbstractCommand.cc: do not stop execution after download
  16764. completes. This makes localhost a seeder.
  16765. * Util.{h,cc}: Added fileCopy().
  16766. * PeerListenCommand.cc: do not stop execution after download completes.
  16767. This makes localhost a seeder.
  16768. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16769. Added TorrentMan::deleteTempFile() to torrentHandler.
  16770. Initialized the variable dir as ".".
  16771. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16772. Deleted renameSingleFile().
  16773. Added copySingleFile(), deleteTempFile().
  16774. * DownloadEngine.h: Added virtual function afterEachIteration().
  16775. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16776. in onEndOfRun() to afterEachIteration().
  16777. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16778. true.
  16779. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16780. In rangedFileCopy(), added try-catch block to properly close file
  16781. descriptors.
  16782. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16783. Added afterEachIteration(), isFilenameFixed().
  16784. * Peer.cc: Changed choking strategy.
  16785. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16786. * TrackerInitCommand.cc: Send completed event only once.
  16787. * DownloadEngine.cc: Added a call to afterEachIteration().
  16788. * TrackerUpdateCommand.cc: Do not stop execution after download
  16789. completes.
  16790. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16791. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16792. received from a tracker.
  16793. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16794. Decreased the number of failure peers to delete to 0(just comment out
  16795. the line).
  16796. * Release 0.3.1
  16797. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16798. * PeerInteractionCommand.cc: added a call to
  16799. TorrentMan::unadvertisePiece in Destructor.
  16800. * PeerInteractionCommand.cc: make have message sent immediately
  16801. if the size of pending message queue is zero.
  16802. * TorrentMan.cc: set the maximum size of peer list to 250.
  16803. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16804. to deque.
  16805. * Util.cc: fixed rangedFileCopy.
  16806. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16807. to Constructor. Also, moved digest cleanup to Destructor.
  16808. * MetaFileUtil.cc: fixed memory leak
  16809. * replaced std::vector with std::deque.
  16810. * AbstractCommand.cc: casted timeout value to long long int.
  16811. * ChunkedEncoding.cc: fixed memory leak.
  16812. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16813. * SleepCommand.cc: casted timeout value to long long int.
  16814. * Data.cc: fixed memory leak.
  16815. * Data.cc: fixed toLLInt().
  16816. * BitfieldMan.cc: fixed memory leak.
  16817. * TorrentMan.cc: initialized storeDir to ".".
  16818. * TorrentMan.cc: fixed memory leak.
  16819. * TorrentMan.cc: corrected file paths of splitted files.
  16820. * PeerAbstractCommand.cc: casted timeout to long long int.
  16821. * main.cc: added delete(req) and delete(te->diskWriter).
  16822. * RequestSlot.cc: casted timeout value to long long int.
  16823. * Request.cc: fixed memory leak.
  16824. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16825. have the piece.
  16826. * Peer.{h,cc}: added hasPiece(int index).
  16827. * main.cc: corrected addCommand.
  16828. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16829. * BitTorrent protocol support added.
  16830. * Release 0.3.0
  16831. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16832. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16833. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16834. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16835. decoding did not work properly.
  16836. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16837. * DownloadEngine.h: included sys/time.h
  16838. * DownloadEngine.cc: remove sys/time.h
  16839. * Makefile.am (SUBDIRS): Add intl.
  16840. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16841. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16842. * main.cc: correct help message for --http-auth-scheme.
  16843. * main.cc: changed e-mail address for bug reports.
  16844. * ja.po: added japanese translation.
  16845. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16846. * SimpleLogger.cc: flush log file instead of stdout.
  16847. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16848. * main.cc: Fixed command-line option: max-tries
  16849. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16850. does not equal to seg.sp.
  16851. * DownloadCommand.cc: If EOF is got from the server and the total size
  16852. of file is not zero, then throw DlRetryEx.
  16853. * main.cc: Set the minium value of min-segment-size to 1024.
  16854. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16855. fails because of a regression since 0.2.0 release.
  16856. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16857. * HttpConnection.cc:
  16858. * common.h: defined the user agent name as macro
  16859. * DownloadEngine.{h, cc}:
  16860. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16861. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16862. * main.cc: Download complete/abort message is now generated by main.
  16863. * Makefile.am (SUBDIRS): Add m4.
  16864. (ACLOCAL_AMFLAGS): New variable.
  16865. (EXTRA_DIST): New variable.
  16866. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16867. * gettext: added gettext functionality
  16868. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16869. * AbstractCommand.cc:
  16870. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16871. unregister its cuid from SegmentMan.
  16872. * DownloadEngine.cc: .aria2 file was written when a downloading
  16873. failed with errors.
  16874. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16875. Added "User-Agent" header to CONNECT proxy request.
  16876. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16877. properly.
  16878. * Logger.h:
  16879. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16880. * ChunkedEncoding.cc: Added #include directive for strings.h
  16881. * Release 0.2.1
  16882. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16883. * Util.{h,cc}: added startsWith().
  16884. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16885. Util::endsWith().
  16886. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16887. * common.h: added #include directive of limit.h.
  16888. * DownloadEngine.cc: added #include directive of sys/time.h and
  16889. algorithm.
  16890. * Exception.h: added #include directive of stdio.h.
  16891. * AbstractCommand.h: added #include directive of sys/time.h.
  16892. * DownloadCommand.h: added #include directive of sys/time.h.
  16893. * *.h: added #include directive of common.h to all base classes.
  16894. subclasses' one was removed.
  16895. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16896. does not define these macros.
  16897. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16898. * Release 0.2.0
  16899. * main.cc:
  16900. * HttpInitiateConnectionCommand.{h,cc}:
  16901. * prefs.h:
  16902. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16903. We can now use GET command in http proxy.
  16904. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16905. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16906. that splits slowest segment of SegmentMan::commands vector.
  16907. This is the default split algorithm of aria2.
  16908. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16909. that splits first segment of SegmentMan::commands vector.
  16910. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16911. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16912. * Segment.h:
  16913. * SegmentMan.cc: Added speed field to Segment.h
  16914. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16915. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16916. * message.h: Change file size related %d to %lld.
  16917. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16918. * FtpInitiateConnectionCommand.{h,cc}:
  16919. * FtpNegotiationCommand.{h,cc}:
  16920. * FtpDownloadCommand.{h,cc}:
  16921. * FtpConnection.{h,cc}: Added FTP support
  16922. * SimpleLogger.cc: Log message now includes time information.
  16923. * main.cc: The value of --http-auth-scheme option is chagned from
  16924. 'BASIC' to 'basic'
  16925. * main.cc: Added --timeout command-line option.
  16926. * main.cc: Added --min-segment-size command-line option.
  16927. * main.cc: Added --max-retries command-line option.
  16928. * prefs.h: option string constants are now defined in prefs.h
  16929. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16930. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16931. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16932. with version 0.1.0's one.
  16933. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16934. * configure.in: Added --enable-ssl option to configure script.
  16935. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16936. cannot permit absoluteURI as Request-URI.
  16937. * HttpConnection.cc: Added Referer support.
  16938. * main.cc: Added referer command-line option.
  16939. * main.cc: Added rety-wait command-line option.
  16940. * Exception.h: Fixed formating bug in Exception::setMsg()
  16941. * SocketCore.{h,cc}:
  16942. * Socket.{h, cc}:
  16943. * Request.cc:
  16944. * InitiateConnectionCommandFactory.cc:
  16945. * HttpRequestCommand.cc: Added HTTPS support.
  16946. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16947. for SocketCore.
  16948. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16949. size is wrong
  16950. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16951. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16952. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16953. * Release 0.1.0