ChangeLog 571 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167
  1. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Rewritten strconcat and strappend using operator+ instead of
  3. append().
  4. * src/a2functional.h
  5. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  7. is enabled.
  8. * src/Makefile.am
  9. * test/Makefile.am
  10. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Added countSeeder() function which counts seeder in the given
  12. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  13. * src/ConsoleStatCalc.cc
  14. * src/Peer.h
  15. * src/XmlRpcMethodImpl.cc
  16. * test/PeerTest.cc
  17. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Documented missing seeder in getPeers xml-rpc method.
  19. Documented uploadLength and numSeeders.
  20. * doc/aria2c.1.txt
  21. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Added uploadLength and numSeeders to the response of tellStatus
  23. xml-rpc method. Assert that PeerStorage instance is not null
  24. instead of checking if statement. It should be non-null in this
  25. context.
  26. * src/XmlRpcMethodImpl.cc
  27. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  29. * src/XmlRpcResponse.cc
  30. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Avoid intermediate object during string concatenation.
  32. * src/HttpRequest.cc
  33. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Added strjoin function template. Use it in pathJoin()
  35. * src/Util.h
  36. * src/a2functional.h
  37. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Avoid intermediate object during string concatenation. Replaced
  39. post-increment unary operator with pre-increment one in for loop.
  40. * src/AdaptiveURISelector.cc
  41. * src/AnnounceList.cc
  42. * src/AuthConfig.h
  43. * src/BtBitfieldMessage.cc
  44. * src/BtExtendedMessage.cc
  45. * src/BtHandshakeMessage.cc
  46. * src/BtPieceMessage.cc
  47. * src/BtPortMessage.cc
  48. * src/Cookie.cc
  49. * src/DHTAnnouncePeerMessage.cc
  50. * src/DHTAutoSaveCommand.cc
  51. * src/DHTGetPeersReplyMessage.cc
  52. * src/DHTNode.cc
  53. * src/DHTQueryMessage.cc
  54. * src/DHTResponseMessage.cc
  55. * src/DHTUnknownMessage.cc
  56. * src/DefaultBtAnnounce.cc
  57. * src/DefaultBtContext.cc
  58. * src/DefaultBtInteractive.cc
  59. * src/DefaultBtProgressInfoFile.cc
  60. * src/DefaultPeerStorage.cc
  61. * src/DownloadEngine.cc
  62. * src/FeatureConfig.cc
  63. * src/File.cc
  64. * src/FtpConnection.cc
  65. * src/FtpNegotiationCommand.cc
  66. * src/HandshakeExtensionMessage.cc
  67. * src/HttpConnection.cc
  68. * src/HttpRequest.cc
  69. * src/HttpResponseCommand.cc
  70. * src/HttpServer.cc
  71. * src/IndexBtMessage.cc
  72. * src/Metalink2RequestGroup.cc
  73. * src/OptionHandlerImpl.h
  74. * src/PStringBuildVisitor.cc
  75. * src/Peer.cc
  76. * src/PeerListenCommand.cc
  77. * src/Piece.cc
  78. * src/RangeBtMessage.cc
  79. * src/Request.cc
  80. * src/Request.h
  81. * src/RequestGroup.cc
  82. * src/RequestGroupMan.cc
  83. * src/ServerStat.cc
  84. * src/ServerStatMan.cc
  85. * src/UTPexExtensionMessage.cc
  86. * src/Util.cc
  87. * src/a2functional.h
  88. * src/download_helper.cc
  89. * src/messageDigest.cc
  90. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Unchoke a peer randomly at first and second choke round in seed
  92. state.
  93. * src/BtSeederStateChoke.cc
  94. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  95. Added (sock_t) to quiet compiler warnings in MinGW
  96. * src/SocketCore.cc
  97. * src/SocketCore.h
  98. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  100. * src/EpollEventPoll.h
  101. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  102. Added fork() emulation using CreateProcess() in MinGW
  103. * src/RequestGroupMan.cc
  104. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. * Release 1.4.0
  106. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Added utf8.torrent to EXTRA_DIST
  108. * test/Makefile.am
  109. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  110. Fixed docs of aria2.addMetalink xml-rpc method.
  111. * doc/aria2c.1.txt
  112. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Added Slovak translation. Updated Ukrainian and Brazilian
  114. Portuguese translation. Thanks to all translators.
  115. * po/sk.po
  116. * po/uk.po
  117. * po/pt_BR.po
  118. * po/LINGUAS
  119. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Added test case for XmlRpcProcessor to fail to parse malformed
  121. document.
  122. * test/XmlRpcRequestProcessorTest.cc
  123. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Removed *.gmo files in po because they are generated on 'make
  125. dist'
  126. * po/*.gmo
  127. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Documented max-concurrent-downloads of changeGlobalOption method
  129. in man page.
  130. * doc/aria2c.1.txt
  131. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Added max-concurrent-downloads option to changeGlobalOption
  133. xml-rpc method. Rewritten loop conditional in
  134. RequestGroupMan::fillRequestGroupFromReserver().
  135. * src/RequestGroupMan.cc
  136. * src/RequestGroupMan.h
  137. * src/XmlRpcMethod.cc
  138. * src/XmlRpcMethodImpl.cc
  139. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Documented position parameter in man page.
  141. * doc/aria2c.1.txt
  142. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Added 'position' parameter to addUri, addTorrent and addMetalink
  144. xml-rpc method.
  145. * src/RequestGroupMan.cc
  146. * src/RequestGroupMan.h
  147. * src/XmlRpcMethodImpl.cc
  148. * test/XmlRpcMethodTest.cc
  149. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Removed Peer.cc from compile source list when --disable-bittorrent
  151. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  152. takes Peer.
  153. * src/DefaultPieceStorage.cc
  154. * src/DefaultPieceStorage.h
  155. * src/Makefile.am
  156. * src/PieceStorage.h
  157. * src/UnknownLengthPieceStorage.cc
  158. * src/UnknownLengthPieceStorage.h
  159. * test/MockPieceStorage.h
  160. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Implemented getter methods in header files to give them more
  162. chance of optimization.
  163. Return const reference for SharadHandle if possible.
  164. * src/AbstractAuthResolver.cc
  165. * src/AbstractAuthResolver.h
  166. * src/AbstractBtMessage.cc
  167. * src/AbstractBtMessage.h
  168. * src/AbstractSingleDiskAdaptor.cc
  169. * src/AbstractSingleDiskAdaptor.h
  170. * src/AsyncNameResolver.cc
  171. * src/AsyncNameResolver.h
  172. * src/BNode.cc
  173. * src/BNode.h
  174. * src/BitfieldMan.cc
  175. * src/BitfieldMan.h
  176. * src/BtAbortOutstandingRequestEvent.h
  177. * src/BtExtendedMessage.cc
  178. * src/BtExtendedMessage.h
  179. * src/BtSeederStateChoke.cc
  180. * src/BtSeederStateChoke.h
  181. * src/Cookie.cc
  182. * src/Cookie.h
  183. * src/DHTBucket.cc
  184. * src/DHTBucket.h
  185. * src/DHTConnectionImpl.cc
  186. * src/DHTConnectionImpl.h
  187. * src/DHTFindNodeReplyMessage.cc
  188. * src/DHTFindNodeReplyMessage.h
  189. * src/DHTGetPeersReplyMessage.cc
  190. * src/DHTGetPeersReplyMessage.h
  191. * src/DHTInteractionCommand.cc
  192. * src/DHTMessage.cc
  193. * src/DHTMessage.h
  194. * src/DHTMessageDispatcherImpl.cc
  195. * src/DHTMessageEntry.cc
  196. * src/DHTMessageReceiver.cc
  197. * src/DHTMessageReceiver.h
  198. * src/DHTMessageTrackerEntry.cc
  199. * src/DHTMessageTrackerEntry.h
  200. * src/DHTPeerAnnounceEntry.cc
  201. * src/DHTPeerAnnounceEntry.h
  202. * src/DHTPeerLookupTask.cc
  203. * src/DHTPeerLookupTask.h
  204. * src/DHTRoutingTableDeserializer.cc
  205. * src/DHTRoutingTableDeserializer.h
  206. * src/DefaultBtAnnounce.cc
  207. * src/DefaultBtAnnounce.h
  208. * src/DefaultBtMessageDispatcher.cc
  209. * src/DefaultBtMessageDispatcher.h
  210. * src/DefaultBtRequestFactory.cc
  211. * src/DefaultBtRequestFactory.h
  212. * src/DiskAdaptor.cc
  213. * src/DiskAdaptor.h
  214. * src/DownloadContext.cc
  215. * src/DownloadContext.h
  216. * src/DownloadEngine.cc
  217. * src/DownloadEngine.h
  218. * src/EpollEventPoll.cc
  219. * src/EpollEventPoll.h
  220. * src/FtpConnection.cc
  221. * src/FtpConnection.h
  222. * src/HttpConnection.cc
  223. * src/HttpConnection.h
  224. * src/HttpHeader.cc
  225. * src/HttpHeader.h
  226. * src/HttpRequest.cc
  227. * src/HttpRequest.h
  228. * src/HttpResponse.cc
  229. * src/HttpResponse.h
  230. * src/LibsslTLSContext.cc
  231. * src/LibsslTLSContext.h
  232. * src/MSEHandshake.cc
  233. * src/MSEHandshake.h
  234. * src/MetalinkEntry.cc
  235. * src/MetalinkEntry.h
  236. * src/MetalinkParserController.cc
  237. * src/MetalinkParserController.h
  238. * src/MetalinkParserStateMachine.cc
  239. * src/MetalinkParserStateMachine.h
  240. * src/MultiDiskAdaptor.cc
  241. * src/MultiDiskAdaptor.h
  242. * src/NetrcAuthResolver.cc
  243. * src/NetrcAuthResolver.h
  244. * src/Peer.cc
  245. * src/Peer.h
  246. * src/PeerSessionResource.cc
  247. * src/PeerSessionResource.h
  248. * src/Piece.cc
  249. * src/Piece.h
  250. * src/PieceStatMan.cc
  251. * src/PieceStatMan.h
  252. * src/Request.cc
  253. * src/Request.h
  254. * src/RequestGroup.cc
  255. * src/RequestGroup.h
  256. * src/RequestGroupMan.cc
  257. * src/RequestGroupMan.h
  258. * src/RequestSlot.cc
  259. * src/RequestSlot.h
  260. * src/SegmentMan.cc
  261. * src/SegmentMan.h
  262. * src/SelectEventPoll.cc
  263. * src/SelectEventPoll.h
  264. * src/ServerStat.cc
  265. * src/ServerStat.h
  266. * src/Signature.cc
  267. * src/Signature.h
  268. * src/URIResult.cc
  269. * src/URIResult.h
  270. * src/UTPexExtensionMessage.cc
  271. * src/UTPexExtensionMessage.h
  272. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Fixed compile error without BitTorrent and Metalink support.
  274. * src/XmlRpcMethod.cc
  275. * src/XmlRpcMethodFactory.cc
  276. * src/XmlRpcMethodImpl.cc
  277. * src/XmlRpcMethodImpl.h
  278. * test/XmlRpcMethodTest.cc
  279. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Rewritten the help message for --allow-overwrite option.
  281. * doc/aria2c.1.txt
  282. * src/usage_text.h
  283. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Fixed typo
  285. * doc/aria2c.1.txt
  286. * src/usage_text.h
  287. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Updated README for 1.4.0 release. Use new table syntax of
  289. asciidoc.
  290. * README
  291. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  292. Documented --xml-rpc-max-request-size option in man page.
  293. * doc/aria2c.1.txt
  294. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Moved C_* constants from BtContext to DefaultBtContext.
  296. * src/BtContext.cc: Removed.
  297. * src/BtContext.h
  298. * src/DefaultBtContext.cc
  299. * src/DefaultBtContext.h
  300. * src/Makefile.am
  301. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Use name.utf-8 and path.utf-8 key in higher priority than name and
  303. path key respectively when persing .torrent file.
  304. * src/BtContext.cc
  305. * src/BtContext.h
  306. * src/DefaultBtContext.cc
  307. * test/DefaultBtContextTest.cc
  308. * test/utf8.torrent
  309. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Added --xml-rpc-max-request-size option to limit the size of
  311. XML-RPC request.
  312. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Documented XML-RPC API in man page.
  314. * doc/aria2c.1.txt
  315. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  317. will break strict-aliasing rules
  318. * src/PeerConnection.cc
  319. * test/DHTRoutingTableSerializerTest.cc
  320. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  322. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  323. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  324. PKG_CHECK_MODULES macro uses latter name.
  325. * m4/sqlite3.m4
  326. * src/Makefile.am
  327. * test/Makefile.am
  328. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Fixed typo
  330. * configure.ac
  331. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  333. presence of libgnutls using pkg-config first. If it fails, fall
  334. back to old macro libgnutls.m4.
  335. * configure.ac
  336. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Use s itself instead of !s.bad()
  338. * src/CookieStorage.cc
  339. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Documented --on-download-* option and --save-cookies option in man
  341. page.
  342. * doc/aria2c.1.txt
  343. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Set possible values for --load-cookie option to "/path/to/file".
  345. * src/OptionHandlerFactory.cc
  346. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Added --save-cookies option.
  348. * src/Cookie.cc
  349. * src/Cookie.h
  350. * src/CookieStorage.cc
  351. * src/CookieStorage.h
  352. * src/MultiUrlRequestInfo.cc
  353. * src/OptionHandlerFactory.cc
  354. * src/prefs.cc
  355. * src/prefs.h
  356. * src/usage_text.h
  357. * test/CookieStorageTest.cc
  358. * test/CookieTest.cc
  359. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Removed tellAll XML-RPC command because its reponse tends to be
  361. big if stopped/waiting downloads pile up.
  362. * src/XmlRpcMethodFactory.cc
  363. * src/XmlRpcMethodImpl.cc
  364. * src/XmlRpcMethodImpl.h
  365. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Added the ability to execute command when download starts and
  367. stops. You can also specify command for particular cases such as
  368. complete/error download. Added --on-download-start,
  369. --on-download-stop, --on-download-complete and --on-download-error
  370. option.
  371. * src/OptionHandlerFactory.cc
  372. * src/RequestGroupMan.cc
  373. * src/prefs.cc
  374. * src/prefs.h
  375. * src/usage_text.h
  376. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Fixed test error
  378. * test/BencodeTest.cc
  379. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Added unit tests.
  381. * test/XmlRpcMethodTest.cc
  382. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Made exception message more verbose.
  384. * src/bencode.cc
  385. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  387. space in console readout. Also they are now shown in MiB/s if
  388. speed > 1024KiB/s.
  389. * src/ConsoleStatCalc.cc
  390. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Added SEED to console output, which represents the number of
  392. seeders currently the client is connecting to.
  393. * src/ConsoleStatCalc.cc
  394. * src/ConsoleStatCalc.h
  395. * src/DownloadEngine.cc
  396. * src/NullStatCalc.h
  397. * src/StatCalc.h
  398. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Added source filename(__FILE__) and line number(__LINE__) to
  400. exception message.
  401. * src/AbstractCommand.cc
  402. * src/AbstractDiskWriter.cc
  403. * src/AbstractProxyResponseCommand.cc
  404. * src/BDE.h
  405. * src/BtAllowedFastMessage.cc
  406. * src/BtHandshakeMessageValidator.h
  407. * src/BtHaveAllMessage.cc
  408. * src/BtHaveNoneMessage.cc
  409. * src/BtPieceMessage.cc
  410. * src/BtRejectMessage.cc
  411. * src/ChunkedDecoder.cc
  412. * src/CookieStorage.cc
  413. * src/DHTAnnouncePeerMessage.cc
  414. * src/DHTEntryPointNameResolveCommand.cc
  415. * src/DHTMessageFactoryImpl.cc
  416. * src/DHTMessageTracker.cc
  417. * src/DHTRoutingTableDeserializer.cc
  418. * src/DHTRoutingTableSerializer.cc
  419. * src/DHTSetup.cc
  420. * src/DHTTokenTracker.cc
  421. * src/DefaultBtAnnounce.cc
  422. * src/DefaultBtContext.cc
  423. * src/DefaultBtInteractive.cc
  424. * src/DefaultBtMessageFactory.cc
  425. * src/DefaultBtProgressInfoFile.cc
  426. * src/DefaultExtensionMessageFactory.cc
  427. * src/DlAbortEx.h
  428. * src/DlRetryEx.h
  429. * src/DownloadCommand.cc
  430. * src/DownloadEngineFactory.cc
  431. * src/DownloadFailureException.h
  432. * src/Exception.cc
  433. * src/Exception.h
  434. * src/ExpatMetalinkProcessor.cc
  435. * src/ExpatXmlRpcRequestProcessor.cc
  436. * src/FallocFileAllocationIterator.cc
  437. * src/FatalException.h
  438. * src/FtpConnection.cc
  439. * src/FtpFinishDownloadCommand.cc
  440. * src/FtpInitiateConnectionCommand.cc
  441. * src/FtpNegotiationCommand.cc
  442. * src/GZipDecoder.cc
  443. * src/HandshakeExtensionMessage.cc
  444. * src/HttpConnection.cc
  445. * src/HttpHeaderProcessor.cc
  446. * src/HttpInitiateConnectionCommand.cc
  447. * src/HttpResponse.cc
  448. * src/HttpResponseCommand.cc
  449. * src/HttpServer.cc
  450. * src/HttpSkipResponseCommand.cc
  451. * src/InitiateConnectionCommandFactory.cc
  452. * src/IteratableChunkChecksumValidator.cc
  453. * src/LibgcryptARC4Context.h
  454. * src/LibgcryptARC4Decryptor.h
  455. * src/LibgcryptARC4Encryptor.h
  456. * src/LibgcryptDHKeyExchange.h
  457. * src/LibgnutlsTLSContext.cc
  458. * src/LibsslARC4Context.h
  459. * src/LibsslARC4Decryptor.h
  460. * src/LibsslARC4Encryptor.h
  461. * src/LibsslDHKeyExchange.h
  462. * src/LibsslTLSContext.cc
  463. * src/MSEHandshake.cc
  464. * src/MessageDigestHelper.cc
  465. * src/MetalinkHelper.cc
  466. * src/MultiDiskAdaptor.cc
  467. * src/NameMatchOptionHandler.h
  468. * src/NameResolver.cc
  469. * src/Netrc.cc
  470. * src/NsCookieParser.cc
  471. * src/OptionHandlerException.cc
  472. * src/OptionHandlerException.h
  473. * src/OptionHandlerImpl.h
  474. * src/OptionParser.cc
  475. * src/ParameterizedStringParser.cc
  476. * src/PeerAbstractCommand.cc
  477. * src/PeerConnection.cc
  478. * src/PeerMessageUtil.cc
  479. * src/PeerReceiveHandshakeCommand.cc
  480. * src/Platform.cc
  481. * src/ReceiverMSEHandshakeCommand.cc
  482. * src/RecoverableException.h
  483. * src/RequestGroup.cc
  484. * src/SimpleLogger.cc
  485. * src/SocketCore.cc
  486. * src/Sqlite3MozCookieParser.cc
  487. * src/UTPexExtensionMessage.cc
  488. * src/Util.cc
  489. * src/XML2SAXMetalinkProcessor.cc
  490. * src/Xml2XmlRpcRequestProcessor.cc
  491. * src/XmlRpcMethodImpl.cc
  492. * src/bencode.cc
  493. * src/download_helper.cc
  494. * src/messageDigest.h
  495. * test/ExceptionTest.cc
  496. * test/TestUtil.cc
  497. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Bump up version number to 1.4.0
  499. * configure.ac
  500. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Added 2files.metalink to EXTRA_DIST
  502. * test/Makefile.am
  503. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Added missing 2files.metalink
  505. * test/2files.metalink
  506. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Show "[MEMORY]" prefix before filename in download summary if it
  508. is downloaded into memory.
  509. * src/DownloadResult.h
  510. * src/RequestGroup.cc
  511. * src/RequestGroupMan.cc
  512. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  514. * src/ExpatXmlRpcRequestProcessor.cc
  515. * src/Xml2XmlRpcRequestProcessor.cc
  516. * src/message.h
  517. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Defined const BDEs to avoid duplicate instantiation.
  519. Defined MSG_GID_NOT_PROVIDED.
  520. * src/XmlRpcMethodImpl.cc
  521. * src/message.h
  522. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Code cleanup
  524. * src/Xml2XmlRpcRequestProcessor.cc
  525. * src/Xml2XmlRpcRequestProcessor.h
  526. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Defined ENABLE_XML_RPC
  528. * configure.ac
  529. * configure
  530. * config.h.in
  531. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Added ExpatXmlRpcRequestProcessor
  533. * src/ExpatXmlRpcRequestProcessor.cc
  534. * src/ExpatXmlRpcRequestProcessor.h
  535. * src/Makefile.am
  536. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Added tests for addTorrent and addMetalink command.
  538. * test/TestUtil.cc
  539. * test/TestUtil.h
  540. * test/XmlRpcMethodTest.cc
  541. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Corrected the description of --file-allocation option.
  543. * doc/aria2c.1.txt
  544. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  545. Added tellAll command.
  546. * src/XmlRpcMethodFactory.cc
  547. * src/XmlRpcMethodImpl.cc
  548. * src/XmlRpcMethodImpl.h
  549. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  551. * src/XmlRpcMethodImpl.cc
  552. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Added changeGlobalOption command. Currently,
  554. max-overall-download-limit and max-overall-upload-limit option are
  555. available.
  556. * src/RequestGroupMan.h
  557. * src/XmlRpcMethod.cc
  558. * src/XmlRpcMethod.h
  559. * src/XmlRpcMethodFactory.cc
  560. * src/XmlRpcMethodImpl.cc
  561. * src/XmlRpcMethodImpl.h
  562. * test/XmlRpcMethodTest.cc
  563. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Added changeOption command. Currently, max-download-limit,
  565. max-upload-limit option are available in this command.
  566. * src/RequestGroup.h
  567. * src/XmlRpcMethod.cc
  568. * src/XmlRpcMethod.h
  569. * src/XmlRpcMethodFactory.cc
  570. * src/XmlRpcMethodImpl.cc
  571. * src/XmlRpcMethodImpl.h
  572. * test/XmlRpcMethodTest.cc
  573. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Added purgeDownloadResult command.
  575. * src/RequestGroupMan.cc
  576. * src/RequestGroupMan.h
  577. * src/XmlRpcMethodFactory.cc
  578. * src/XmlRpcMethodImpl.cc
  579. * src/XmlRpcMethodImpl.h
  580. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Refactored.
  582. * src/XmlRpcMethod.cc
  583. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  584. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  585. XmlRpcResponse.
  586. * src/HttpServerBodyCommand.cc
  587. * src/Makefile.am
  588. * src/XmlRpcMethod.cc
  589. * src/XmlRpcMethod.h
  590. * src/XmlRpcMethodImpl.cc
  591. * src/XmlRpcResponse.cc
  592. * src/XmlRpcResponse.h
  593. * test/XmlRpcMethodTest.cc
  594. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. In XML-RPC option struct, header and index-out option can take
  596. array as value.
  597. * src/XmlRpcMethod.cc
  598. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Removed unused option member from PeerConnection.
  600. * src/InitiatorMSEHandshakeCommand.cc
  601. * src/PeerConnection.cc
  602. * src/PeerConnection.h
  603. * src/PeerInteractionCommand.cc
  604. * src/PeerReceiveHandshakeCommand.cc
  605. * src/ReceiverMSEHandshakeCommand.cc
  606. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Added "seeder" key to getPeers response.
  608. * src/XmlRpcMethodImpl.cc
  609. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Added addMetalink XML-RPC command.
  611. * src/XmlRpcMethodFactory.cc
  612. * src/XmlRpcMethodImpl.cc
  613. * src/XmlRpcMethodImpl.h
  614. * src/download_helper.cc
  615. * src/download_helper.h
  616. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Fixed the bug that POU peers are never choked in seeding.
  618. * src/BtSeederStateChoke.cc
  619. * src/BtSeederStateChoke.h
  620. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Added web-seeding URI handling in addTorrent command.
  622. * src/XmlRpcMethodImpl.cc
  623. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Added "length" key to getFiles response.
  625. * src/XmlRpcMethodImpl.cc
  626. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Moved --no-netrc option from ftp option section to http/ftp option
  628. section.
  629. * doc/aria2c.1.txt
  630. * src/OptionHandlerFactory.cc
  631. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Removed garbage "\" character before '
  633. * doc/aria2c.1.txt
  634. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  635. Removed garbage "\" character before http.
  636. * doc/aria2c.1.txt
  637. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Documented additional options that can be specified in -i list.
  639. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  640. and --xml-rpc-passwd. Removed --enable-http-server and
  641. --http-server-listen-port.
  642. * doc/aria2c.1.txt
  643. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  645. * src/DefaultPeerStorage.cc
  646. * src/DefaultPeerStorage.h
  647. * src/PeerStorage.h
  648. * src/XmlRpcMethodImpl.cc
  649. * test/MockPeerStorage.h
  650. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Put a call to Socket::isReadable() in try block.
  652. * src/HttpServerBodyCommand.cc
  653. * src/HttpServerCommand.cc
  654. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  656. exception , so it is now in try block.
  657. * src/HttpServerResponseCommand.cc
  658. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Added "amChoking" and "peerChoking" key in getPeers response.
  660. * src/XmlRpcMethodImpl.cc
  661. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Added test case for zero-length filter.
  663. * test/BitfieldManTest.cc
  664. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. getFiles command now returns file data for finished/stopped
  666. downloads.
  667. * src/XmlRpcMethodImpl.cc
  668. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. DownloadResult now has the list of FileEntry. The download
  670. summary displays the path of first selected file and the number of
  671. remaining files for multi-file torrent.
  672. * src/DownloadResult.h
  673. * src/RequestGroup.cc
  674. * src/RequestGroupMan.cc
  675. * test/RequestGroupTest.cc
  676. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Fixed segmentation fault error when no file is selected in
  678. multi-file torrent.
  679. * src/BitfieldMan.cc
  680. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Escaped <,>,& character in XML-RPC response.
  682. * src/XmlRpcMethod.cc
  683. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Throw DlAbortEx instead of FatalException during parsing options
  685. because we don't want for aria2 to quit when bad option is passed
  686. via XML-RPC.
  687. * src/OptionHandlerException.cc
  688. * src/OptionHandlerException.h
  689. * src/OptionHandlerImpl.h
  690. * src/OptionParser.cc
  691. * src/OptionParser.h
  692. * src/PStringSegment.cc
  693. * src/ParameterizedStringParser.cc
  694. * src/download_helper.cc
  695. * test/ParameterizedStringParserTest.cc
  696. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Selecting files are now done in
  698. DefaultBtContext::setFileFileter().
  699. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  700. functions are removed because they are no longer used. Creating
  701. filter in BitfieldMan is done in new funtion
  702. PieceStorage::setupFileFilter()
  703. * src/BtContext.cc
  704. * src/BtContext.h
  705. * src/DefaultBtContext.cc
  706. * src/DefaultBtContext.h
  707. * src/DefaultPieceStorage.cc
  708. * src/DefaultPieceStorage.h
  709. * src/DiskAdaptor.cc
  710. * src/DiskAdaptor.h
  711. * src/PieceStorage.h
  712. * src/RequestGroup.cc
  713. * src/UnknownLengthPieceStorage.h
  714. * src/XmlRpcMethodImpl.cc
  715. * test/DefaultBtContextTest.cc
  716. * test/MockBtContext.h
  717. * test/MockPieceStorage.h
  718. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Fixed compile error on Mac OS X
  720. * src/HttpServer.cc
  721. * src/XmlRpcMethod.h
  722. * src/XmlRpcMethodImpl.cc
  723. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Use std::binary_search instead of std::find
  725. * src/DefaultPieceStorage.cc
  726. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Removed unnecessary BDE() call; leave them to implicit conversion.
  728. * src/XmlRpcMethodImpl.cc
  729. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Return connections and gid in string
  731. * src/XmlRpcMethodImpl.cc
  732. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Renamed addURI as addUri
  734. * src/XmlRpcMethodFactory.cc
  735. * src/XmlRpcMethodImpl.cc
  736. * src/XmlRpcMethodImpl.h
  737. * test/XmlRpcMethodTest.cc
  738. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Renamed addTorrentFile as addTorrent
  740. * src/XmlRpcMethodFactory.cc
  741. * src/XmlRpcMethodImpl.cc
  742. * src/XmlRpcMethodImpl.h
  743. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. The information for files, URIs, peers are removed from the
  745. reponse of TellaActive, TellStatus command because they tend to be
  746. large. Instead they can be retrieved by the dedicated commands:
  747. getFiles, getUris and getPeers respectively.
  748. * src/XmlRpcMethodFactory.cc
  749. * src/XmlRpcMethodImpl.cc
  750. * src/XmlRpcMethodImpl.h
  751. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Removed --max-overall-upload-limit and
  753. --max-overall-download-limit option from listRequestOptions.
  754. * src/download_helper.cc
  755. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Log incoming host in HttpListenCommand.
  757. * src/HttpListenCommand.cc
  758. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  760. --xml-rpc-passwd option.
  761. * src/HttpServer.cc
  762. * src/HttpServer.h
  763. * src/HttpServerCommand.cc
  764. * src/OptionHandlerFactory.cc
  765. * src/prefs.cc
  766. * src/prefs.h
  767. * src/usage_text.h
  768. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  770. processing 0 length request.
  771. * src/HttpServerBodyCommand.cc
  772. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Removed --enable-http-server and --http-server-listen-port
  774. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  775. instead. The original feature for --enable-http-server that
  776. reports download progress in HTML was officially removed. Persist
  777. XML-RPC connection if client supports keep-alive.
  778. * src/DownloadEngineFactory.cc
  779. * src/HttpServerCommand.cc
  780. * src/HttpServerResponseCommand.cc
  781. * src/Makefile.am
  782. * src/Makefile.in
  783. * src/OptionHandlerFactory.cc
  784. * src/RequestGroupMan.cc
  785. * src/main.cc
  786. * src/option_processing.cc
  787. * src/prefs.cc
  788. * src/prefs.h
  789. * src/usage_text.h
  790. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Added "uris" key to the response of tellStatus command. Added
  792. "connections" key to the response of tellStatus and tellActive
  793. command.
  794. * src/XmlRpcMethodImpl.cc
  795. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  797. Added TellStatusXmlRpcMethod. Remove command can now remove
  798. waiting RequestGroup.
  799. * src/RequestGroupMan.cc
  800. * src/RequestGroupMan.h
  801. * src/XmlRpcMethodFactory.cc
  802. * src/XmlRpcMethodImpl.cc
  803. * src/XmlRpcMethodImpl.h
  804. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Initialized _peerId
  806. * src/Peer.cc
  807. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Return fault structure for error. FailXmlRpcMethod is renamed as
  809. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  810. in non-torrent download. Return single param value.
  811. * src/XmlRpcMethod.cc
  812. * src/XmlRpcMethodFactory.cc
  813. * src/XmlRpcMethodImpl.cc
  814. * src/XmlRpcMethodImpl.h
  815. * test/XmlRpcMethodTest.cc
  816. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  818. command.
  819. * src/RequestGroup.cc
  820. * src/RequestGroup.h
  821. * src/RequestGroupMan.cc
  822. * src/XmlRpcMethodImpl.cc
  823. * test/RequestGroupTest.cc
  824. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Added more options that can be specified in -i list and xml-rpc
  826. add* command.
  827. * src/download_helper.h
  828. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. The available options in -i list should be listed in
  830. listRequestOptions().
  831. * src/download_helper.cc
  832. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  834. command.
  835. * src/XmlRpcMethodImpl.cc
  836. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Now RequestGroup has its own copy of Option object. This will help
  838. to give custom option for each RequestGroup.
  839. addTorrentFile command now takes options.
  840. * src/AbstractCommand.cc
  841. * src/AbstractCommand.h
  842. * src/AbstractProxyRequestCommand.cc
  843. * src/ActivePeerConnectionCommand.cc
  844. * src/ActivePeerConnectionCommand.h
  845. * src/AdaptiveURISelector.cc
  846. * src/BtCheckIntegrityEntry.cc
  847. * src/BtDependency.cc
  848. * src/BtDependency.h
  849. * src/BtFileAllocationEntry.cc
  850. * src/BtPostDownloadHandler.cc
  851. * src/CheckIntegrityEntry.cc
  852. * src/DownloadCommand.cc
  853. * src/FtpDownloadCommand.cc
  854. * src/FtpFinishDownloadCommand.cc
  855. * src/FtpInitiateConnectionCommand.cc
  856. * src/FtpNegotiationCommand.cc
  857. * src/HttpInitiateConnectionCommand.cc
  858. * src/HttpRequestCommand.cc
  859. * src/HttpResponseCommand.cc
  860. * src/HttpSkipResponseCommand.cc
  861. * src/InitiateConnectionCommand.cc
  862. * src/InitiateConnectionCommandFactory.cc
  863. * src/InitiatorMSEHandshakeCommand.cc
  864. * src/InitiatorMSEHandshakeCommand.h
  865. * src/Metalink2RequestGroup.cc
  866. * src/Metalink2RequestGroup.h
  867. * src/MetalinkPostDownloadHandler.cc
  868. * src/MultiUrlRequestInfo.cc
  869. * src/MultiUrlRequestInfo.h
  870. * src/PeerAbstractCommand.cc
  871. * src/PeerInteractionCommand.cc
  872. * src/PeerInteractionCommand.h
  873. * src/PeerReceiveHandshakeCommand.cc
  874. * src/PeerReceiveHandshakeCommand.h
  875. * src/RequestGroup.cc
  876. * src/RequestGroup.h
  877. * src/TrackerWatcherCommand.cc
  878. * src/TrackerWatcherCommand.h
  879. * src/XmlRpcMethod.cc
  880. * src/XmlRpcMethod.h
  881. * src/XmlRpcMethodImpl.cc
  882. * src/download_helper.cc
  883. * src/download_helper.h
  884. * src/main.cc
  885. * test/BtDependencyTest.cc
  886. * test/BtPostDownloadHandlerTest.cc
  887. * test/DefaultBtMessageDispatcherTest.cc
  888. * test/DownloadHandlerFactoryTest.cc
  889. * test/DownloadHelperTest.cc
  890. * test/Metalink2RequestGroupTest.cc
  891. * test/MetalinkPostDownloadHandlerTest.cc
  892. * test/RequestGroupManTest.cc
  893. * test/RequestGroupTest.cc
  894. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Added tellActiveStatus xml-rpc command which reports download
  896. status of active downloads.
  897. * src/XmlRpcMethodFactory.cc
  898. * src/XmlRpcMethodImpl.cc
  899. * src/XmlRpcMethodImpl.h
  900. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Added addTorrentFile xml-rpc command which receives uploaded
  902. torrent file and add download for it.
  903. * src/RequestGroupMan.cc
  904. * src/XmlRpcMethodFactory.cc
  905. * src/XmlRpcMethodImpl.cc
  906. * src/XmlRpcMethodImpl.h
  907. * src/download_helper.cc
  908. * src/download_helper.h
  909. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Added remove xml-rpc command which removes specified download.
  911. There is a known issue: the removed unfinished downloads are
  912. reported ERR when aria2 exits. They should be reported as INPR.
  913. * src/RequestGroupMan.cc
  914. * src/RequestGroupMan.h
  915. * src/XmlRpcMethodFactory.cc
  916. * src/XmlRpcMethodImpl.cc
  917. * src/XmlRpcMethodImpl.h
  918. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. If --enable-http-server is enabled, don't stop aria2 when all
  920. download finished and don't quit when no files to download at
  921. start up.
  922. * src/RequestGroupMan.cc
  923. * src/main.cc
  924. * src/option_processing.cc
  925. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Added missing AM_CONDITIONAL
  927. * configure.ac
  928. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Added xml-rpc functionality. Currently only addURI commad is
  930. supported. To enable xml-rpc, run aria2 with
  931. --enable-http-server. This option name is temporal and will be
  932. changed. The feature that reports download progress in html format
  933. is temporarily disabled.
  934. * src/HttpServer.cc
  935. * src/HttpServer.h
  936. * src/HttpServerBodyCommand.cc
  937. * src/HttpServerBodyCommand.h
  938. * src/HttpServerCommand.cc
  939. * src/HttpServerResponseCommand.cc
  940. * src/Makefile.am
  941. * src/OptionParser.cc
  942. * src/OptionParser.h
  943. * src/RequestGroupMan.cc
  944. * src/RequestGroupMan.h
  945. * src/XmlRpcMethod.cc
  946. * src/XmlRpcMethod.h
  947. * src/XmlRpcMethodFactory.cc
  948. * src/XmlRpcMethodFactory.h
  949. * src/XmlRpcMethodImpl.cc
  950. * src/XmlRpcMethodImpl.h
  951. * src/download_helper.cc
  952. * src/download_helper.h
  953. * test/Makefile.am
  954. * test/XmlRpcMethodTest.cc
  955. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Added xml-rpc request parser. The supported value types are:
  957. i4/int, string, double, struct, array, base64. Currently only
  958. libxml2 version is provided.
  959. * src/Xml2XmlRpcRequestProcessor.cc
  960. * src/Xml2XmlRpcRequestProcessor.h
  961. * src/XmlRpcElements.cc
  962. * src/XmlRpcElements.h
  963. * src/XmlRpcRequest.h
  964. * src/XmlRpcRequestParserController.cc
  965. * src/XmlRpcRequestParserController.h
  966. * src/XmlRpcRequestParserState.h
  967. * src/XmlRpcRequestParserStateImpl.cc
  968. * src/XmlRpcRequestParserStateImpl.h
  969. * src/XmlRpcRequestParserStateMachine.cc
  970. * src/XmlRpcRequestParserStateMachine.h
  971. * src/XmlRpcRequestProcessor.h
  972. * test/XmlRpcRequestParserControllerTest.cc
  973. * test/XmlRpcRequestProcessorTest.cc
  974. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. * Release 1.3.3
  976. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Fixed compile error since r1202.
  978. * src/ExpatMetalinkProcessor.cc
  979. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Updated Ukrainian, Russian and Simplified Chinese
  981. translations. Thanks to all translators.
  982. * po/ru.po
  983. * po/uk.po
  984. * po/zh_CN.po
  985. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Pass reference of Option object instead of pointer.
  987. * src/download_helper.cc
  988. * src/download_helper.h
  989. * src/main.cc
  990. * test/DownloadHelperTest.cc
  991. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  993. from option directly. Instead, get them from RequestGroup.
  994. * src/ActivePeerConnectionCommand.cc
  995. * src/ActivePeerConnectionCommand.h
  996. * src/PeerReceiveHandshakeCommand.cc
  997. * src/RequestGroup.h
  998. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Removed unused uploadLimitCheck and uploadLimit from
  1000. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1001. PeerInteractionCommand.
  1002. * src/PeerAbstractCommand.cc
  1003. * src/PeerAbstractCommand.h
  1004. * src/PeerInteractionCommand.cc
  1005. * src/PeerInteractionCommand.h
  1006. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Fixed broken file renaming feature since r1202.
  1008. * src/FtpNegotiationCommand.cc
  1009. * src/FtpNegotiationCommand.h
  1010. * src/HttpResponseCommand.cc
  1011. * src/RequestGroup.cc
  1012. * src/RequestGroup.h
  1013. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Removed unused debug log
  1015. * src/SocketCore.cc
  1016. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Generated configure and Makefile.in using autoconf 2.63 and
  1018. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1019. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1020. * configure.ac
  1021. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Moved piece statistics stuff to new PieceStatMan class.
  1023. Refactored PieceSelector interface.
  1024. * src/DefaultPieceStorage.cc
  1025. * src/DefaultPieceStorage.h
  1026. * src/LongestSequencePieceSelector.cc
  1027. * src/LongestSequencePieceSelector.h
  1028. * src/Makefile.am
  1029. * src/PieceSelector.h
  1030. * src/PieceStatMan.cc
  1031. * src/PieceStatMan.h
  1032. * src/RarestPieceSelector.cc
  1033. * src/RarestPieceSelector.h
  1034. * src/RequestGroup.cc
  1035. * test/DefaultPieceStorageTest.cc
  1036. * test/InOrderPieceSelector.h
  1037. * test/Makefile.am
  1038. * test/PieceStatManTest.cc
  1039. * test/RarestPieceSelectorTest.cc
  1040. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Added static member _protocolFamily to SocketCore. By default,
  1042. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1043. address. Sometime SocketCore::bind() and
  1044. SocketCore::establishConnection() use difference protocl family
  1045. and latter cannot connect to former. To avoid this situation, we
  1046. limit protocol family to AF_INET for unit tests.
  1047. * src/SocketCore.cc
  1048. * src/SocketCore.h
  1049. * test/AllTest.cc
  1050. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Avoid std::bad_alloc for negative bencode string length.
  1052. * src/bencode.cc
  1053. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Supported segmented downloading with chunked transfer encoding and
  1055. content-length.
  1056. * src/DownloadCommand.cc
  1057. * src/HttpResponseCommand.cc
  1058. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Bump up version number to 1.3.3
  1060. * configure.ac
  1061. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1063. from 4096 to 65536 (for insanely large ftp login banners)
  1064. * src/FtpConnection.h
  1065. * test/FtpConnectionTest.cc
  1066. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. In DefaultBtContext::getActualBasePath(), return first
  1068. FileEntry::getPath() for single file torrent.
  1069. * src/DefaultBtContext.cc
  1070. * test/DefaultBtContextTest.cc
  1071. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1073. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1074. Removed _directIOAllowed member from DiskWriter.
  1075. * src/AbstractDiskWriter.cc
  1076. * src/AbstractDiskWriter.h
  1077. * src/AbstractSingleDiskAdaptor.cc
  1078. * src/AbstractSingleDiskAdaptor.h
  1079. * src/BinaryStream.h
  1080. * src/ByteArrayDiskWriter.h
  1081. * src/DefaultPieceStorage.cc
  1082. * src/DiskWriter.h
  1083. * src/MultiDiskAdaptor.cc
  1084. * src/MultiDiskAdaptor.h
  1085. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Now the constructor of AbstractDiskWriter takes filename as an
  1087. argument and filename argument is removed from openFile(),
  1088. initAndOpenFile(), openExistingFile() interface. storeDir member
  1089. and its accessor functions are removed from DiskAdaptor because it
  1090. is not used anymore. size() member function of DefaultDiskWriter,
  1091. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1092. opening file.
  1093. * src/AbstractDiskWriter.cc
  1094. * src/AbstractDiskWriter.h
  1095. * src/AbstractSingleDiskAdaptor.cc
  1096. * src/AbstractSingleDiskAdaptor.h
  1097. * src/ByteArrayDiskWriter.cc
  1098. * src/ByteArrayDiskWriter.h
  1099. * src/ByteArrayDiskWriterFactory.cc
  1100. * src/ByteArrayDiskWriterFactory.h
  1101. * src/DefaultDiskWriter.cc
  1102. * src/DefaultDiskWriter.h
  1103. * src/DefaultDiskWriterFactory.cc
  1104. * src/DefaultDiskWriterFactory.h
  1105. * src/DefaultPieceStorage.cc
  1106. * src/DirectDiskAdaptor.cc
  1107. * src/DirectDiskAdaptor.h
  1108. * src/DiskAdaptor.h
  1109. * src/DiskWriter.h
  1110. * src/DiskWriterFactory.h
  1111. * src/MessageDigestHelper.cc
  1112. * src/MultiDiskAdaptor.cc
  1113. * src/RequestGroup.cc
  1114. * src/UnknownLengthPieceStorage.cc
  1115. * src/Util.cc
  1116. * test/DefaultDiskWriterTest.cc
  1117. * test/DirectDiskAdaptorTest.cc
  1118. * test/FallocFileAllocationIteratorTest.cc
  1119. * test/MessageDigestHelperTest.cc
  1120. * test/MetalinkProcessorTest.cc
  1121. * test/MultiDiskAdaptorTest.cc
  1122. * test/MultiFileAllocationIteratorTest.cc
  1123. * test/SingleFileAllocationIteratorTest.cc
  1124. * test/UtilTest.cc
  1125. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Fixed the bug that aria2 aborts when --select-file is used. This
  1127. bug was introduced in r1199.
  1128. * src/MultiDiskAdaptor.cc
  1129. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Code cleanup
  1131. * test/MockPieceStorage.cc
  1132. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Fixed the bug that read-only file with wrong file size will cause
  1134. error because it cannot be truncated to the correct size. Now if
  1135. file size is different than the expected one, re-open file in
  1136. writable mode.
  1137. * src/AbstractSingleDiskAdaptor.cc
  1138. * src/AbstractSingleDiskAdaptor.h
  1139. * src/BtCheckIntegrityEntry.cc
  1140. * src/DiskAdaptor.h
  1141. * src/MultiDiskAdaptor.h
  1142. * src/RequestGroup.cc
  1143. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Fixed the bug that with --check-integrity option aria2 reports
  1145. downloaded file size is 0 even if some parts of file is correctly
  1146. downloaded. This bug is reproducible for the download that a file
  1147. includes last piece is missing. This bug doesn't reveal for
  1148. single-torrent with file allocation on.
  1149. * src/IteratableChecksumValidator.cc
  1150. * test/IteratableChecksumValidatorTest.cc
  1151. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1153. * src/RequestGroupMan.cc
  1154. * src/AdaptiveURISelector.cc
  1155. * src/AdaptiveURISelector.h
  1156. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. * Release 1.3.2
  1158. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Updated README
  1160. * README
  1161. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Updated Ukrainian translations. Thanks to Alexander10.
  1163. * po/uk.po
  1164. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Code cleanup
  1166. * src/MetalinkParserStateMachine.cc
  1167. * src/MetalinkParserStateMachine.h
  1168. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1170. and expat simultaneously, MetalinkProcessor is now not base class
  1171. and it is directly implemented in XML2SAXMetalinkProcessor and
  1172. ExpatMetalinkProcessor.
  1173. * src/ExpatMetalinkProcessor.cc
  1174. * src/ExpatMetalinkProcessor.h
  1175. * src/Makefile.am
  1176. * src/MetalinkHelper.cc
  1177. * src/MetalinkProcessor.h
  1178. * src/MetalinkProcessorFactory.cc: Removed.
  1179. * src/MetalinkProcessorFactory.h: Removed
  1180. * src/XML2SAXMetalinkProcessor.cc
  1181. * src/XML2SAXMetalinkProcessor.h
  1182. * test/MetalinkProcessorTest.cc
  1183. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Bump up version number to 1.3.2
  1185. * configure.ac
  1186. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Added missing file.
  1188. * test/Makefile.am
  1189. * test/url-list-singleFileEndsWithSlash.torrent
  1190. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1192. request.
  1193. * src/AnnounceList.cc
  1194. * src/AnnounceList.h
  1195. * src/BDE.cc: Added
  1196. * src/BDE.h: Added
  1197. * src/DHTAbstractMessage.cc
  1198. * src/DHTAbstractMessage.h
  1199. * src/DHTAnnouncePeerMessage.cc
  1200. * src/DHTAnnouncePeerMessage.h
  1201. * src/DHTAnnouncePeerReplyMessage.cc
  1202. * src/DHTAnnouncePeerReplyMessage.h
  1203. * src/DHTFindNodeMessage.cc
  1204. * src/DHTFindNodeMessage.h
  1205. * src/DHTFindNodeReplyMessage.cc
  1206. * src/DHTFindNodeReplyMessage.h
  1207. * src/DHTGetPeersMessage.cc
  1208. * src/DHTGetPeersMessage.h
  1209. * src/DHTGetPeersReplyMessage.cc
  1210. * src/DHTGetPeersReplyMessage.h
  1211. * src/DHTMessageFactory.h
  1212. * src/DHTMessageFactoryImpl.cc
  1213. * src/DHTMessageFactoryImpl.h
  1214. * src/DHTMessageReceiver.cc
  1215. * src/DHTMessageTracker.cc
  1216. * src/DHTMessageTracker.h
  1217. * src/DHTPingMessage.cc
  1218. * src/DHTPingMessage.h
  1219. * src/DHTPingReplyMessage.cc
  1220. * src/DHTPingReplyMessage.h
  1221. * src/DHTQueryMessage.cc
  1222. * src/DHTQueryMessage.h
  1223. * src/DHTResponseMessage.cc
  1224. * src/DHTResponseMessage.h
  1225. * src/DefaultBtAnnounce.cc
  1226. * src/DefaultBtContext.cc
  1227. * src/DefaultBtContext.h
  1228. * src/HandshakeExtensionMessage.cc
  1229. * src/Makefile.am
  1230. * src/PeerListProcessor.h
  1231. * src/UTPexExtensionMessage.cc
  1232. * src/bencode.cc
  1233. * src/bencode.h
  1234. * test/AnnounceListTest.cc
  1235. * test/BDETest.cc: Added
  1236. * test/BencodeTest.cc
  1237. * test/DHTAnnouncePeerMessageTest.cc
  1238. * test/DHTAnnouncePeerReplyMessageTest.cc
  1239. * test/DHTFindNodeMessageTest.cc
  1240. * test/DHTFindNodeReplyMessageTest.cc
  1241. * test/DHTGetPeersMessageTest.cc
  1242. * test/DHTGetPeersReplyMessageTest.cc
  1243. * test/DHTMessageFactoryImplTest.cc
  1244. * test/DHTMessageTrackerTest.cc
  1245. * test/DHTPingMessageTest.cc
  1246. * test/DHTPingReplyMessageTest.cc
  1247. * test/Makefile.am
  1248. * test/MockDHTMessageFactory.h
  1249. * test/PeerListProcessorTest.cc
  1250. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Use url-list (web-seeding) only for single-file torrent. This is
  1252. basically the same behavior with Metalink file with torrent and
  1253. URIs.
  1254. * src/RequestGroup.cc
  1255. * src/DefaultBtContext.cc
  1256. * test/DefaultBtContextTest.cc
  1257. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Rewritten expr
  1259. * src/array_fun.h
  1260. * test/array_funTest.cc
  1261. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1263. * src/DefaultBtMessageDispatcher.cc
  1264. * src/a2algo.h
  1265. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Removed ExtendedMessagingAware. Instead of using inheritance,
  1267. added ExtensionMessageRegistry and it is passed to
  1268. DefaultExtensionMessageFactory.
  1269. * src/DefaultBtInteractive.cc
  1270. * src/DefaultBtInteractive.h
  1271. * src/DefaultExtensionMessageFactory.cc
  1272. * src/DefaultExtensionMessageFactory.h
  1273. * src/ExtendedMessagingAware.h: Removed.
  1274. * src/ExtensionMessageFactory.h
  1275. * src/ExtensionMessageRegistry.h: Added.
  1276. * src/Makefile.am
  1277. * src/PeerInteractionCommand.cc
  1278. * test/DefaultExtensionMessageFactoryTest.cc
  1279. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Fixed typo in log messages
  1281. * src/MSEHandshake.cc
  1282. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Fixed the bug that prevents torrent download from finishing. The
  1284. bug doesn't reveal for all torrents. The torrents affected this
  1285. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1286. of pieces.
  1287. * src/bitfield.h
  1288. * test/bitfieldTest.cc
  1289. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Code cleanup
  1291. * src/PeerListProcessor.h
  1292. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Removed RequestGroupAware
  1294. * src/AbstractCommand.cc
  1295. * src/AbstractCommand.h
  1296. * src/ActivePeerConnectionCommand.cc
  1297. * src/ActivePeerConnectionCommand.h
  1298. * src/DHTGetPeersCommand.cc
  1299. * src/DHTGetPeersCommand.h
  1300. * src/InitiatorMSEHandshakeCommand.cc
  1301. * src/InitiatorMSEHandshakeCommand.h
  1302. * src/Makefile.am
  1303. * src/PeerInitiateConnectionCommand.cc
  1304. * src/PeerInitiateConnectionCommand.h
  1305. * src/PeerInteractionCommand.cc
  1306. * src/PeerInteractionCommand.h
  1307. * src/RealtimeCommand.cc
  1308. * src/RealtimeCommand.h
  1309. * src/RequestGroupAware.cc: Removed
  1310. * src/RequestGroupAware.h: Removed
  1311. * src/SeedCheckCommand.cc
  1312. * src/SeedCheckCommand.h
  1313. * src/SleepCommand.cc
  1314. * src/TrackerWatcherCommand.cc
  1315. * src/TrackerWatcherCommand.h
  1316. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Rewritten PeerListProcessor
  1318. * src/PeerListProcessor.h
  1319. * src/CompactPeerListProcessor.h: Removed
  1320. * src/CompactPeerListProcessor.cc: Removed
  1321. * src/DelegatingPeerListProcessor.cc: Removed.
  1322. * src/DefaultBtAnnounce.cc
  1323. * src/Makefile.am
  1324. * src/UTPexExtensionMessage.cc
  1325. * src/DefaultPeerListProcessor.h: Removed.
  1326. * src/DefaultPeerListProcessor.cc: Removed.
  1327. * src/DelegatingPeerListProcessor.h: Removed.
  1328. * test/Makefile.am
  1329. * test/PeerListProcessorTest.cc
  1330. * test/DefaultPeerListProcessorTest.cc: Removed.
  1331. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Rewritten RequestGroupMan::calculateStat()
  1333. * src/RequestGroupMan.cc
  1334. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Removed unnecessary virtual destructor for Request class.
  1336. * src/Request.cc
  1337. * src/Request.h
  1338. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Avoid dynamic_pointer_cast.
  1340. * src/DHTGetPeersCommand.cc
  1341. * src/DHTGetPeersCommand.h
  1342. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1344. BtEvent.
  1345. * src/AbstractBtEventListener.h: Removed.
  1346. * src/AbstractBtMessage.cc
  1347. * src/AbstractBtMessage.h
  1348. * src/BtAbortOutstandingRequestEvent.h
  1349. * src/BtCancelSendingPieceEvent.h
  1350. * src/BtChokedEvent.h: Removed.
  1351. * src/BtChokingEvent.h
  1352. * src/BtEvent.h: Removed
  1353. * src/BtEventListener.h: Removed.
  1354. * src/BtMessage.h
  1355. * src/BtPieceMessage.cc
  1356. * src/BtPieceMessage.h
  1357. * src/BtRequestMessage.cc
  1358. * src/BtRequestMessage.h
  1359. * src/DefaultBtMessageDispatcher.cc
  1360. * src/Makefile.am
  1361. * src/a2functional.h
  1362. * test/BtPieceMessageTest.cc
  1363. * test/BtRequestMessageTest.cc
  1364. * test/DefaultBtMessageDispatcherTest.cc
  1365. * test/MockBtMessage.h
  1366. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Code cleanup
  1368. * src/RequestGroupMan.cc
  1369. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Code cleanup
  1371. * src/DownloadCommand.cc
  1372. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1374. byte.
  1375. * src/DownloadCommand.cc
  1376. * src/bitfield.h
  1377. * test/bitfieldTest.cc
  1378. Fixed the bug that causes infinite loop if broken web server
  1379. returns chunked response without last "0" chunk-size marker and
  1380. closes connection.
  1381. * src/DownloadCommand.cc
  1382. Instantiate properly configured HttpDownloadCommand for
  1383. non-resumable downlaods.
  1384. * src/HttpResponseCommand.cc
  1385. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1386. Rewritten array operation functions.
  1387. * src/BitfieldMan.cc
  1388. * src/array_fun.h
  1389. * test/array_funTest.cc
  1390. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Removed unused variable 'query'
  1392. * src/Request.cc
  1393. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1395. accidentally set to false in r1162.
  1396. * configure.ac
  1397. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Code cleanup
  1399. * src/BNode.cc
  1400. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Increase prefixLength for the bucket which doesn't own local node
  1402. ID when splitting bucket.
  1403. * src/DHTBucket.cc
  1404. * test/DHTBucketTest.cc
  1405. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. * Release 1.3.1
  1407. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Bump up version number to 1.3.1
  1409. * configure.ac
  1410. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Removed unused variable checkPoint. Also removed include directive
  1412. for TimeA2.h.
  1413. * src/SeedCheckCommand.h
  1414. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Fixed the bug that upload limit exceeds the value specified in
  1416. --seed-ratio option depending on the timing of the execution of
  1417. SeedCheckCommand.
  1418. * src/SeedCheckCommand.cc
  1419. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Fixed the bug that removed peer's session upload/download length
  1421. are counted twice in _cachedTransferStat before it is
  1422. re-calculated. This affected the calculation of shara ratio,
  1423. resulting aria2 wrongly determines that specified share ratio is
  1424. reached. Also fixed the typo in calculateStatFor function name.
  1425. * src/BtSetup.cc
  1426. * src/DefaultPeerStorage.cc
  1427. * src/ShareRatioSeedCriteria.h
  1428. * test/ShareRatioSeedCriteriaTest.cc
  1429. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. * Release 1.3.0
  1431. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1433. Nynorsk translations. Thanks to all translators.
  1434. * po/es.po
  1435. * po/ja.po
  1436. * po/nn.po
  1437. * po/ru.po
  1438. * po/uk.po
  1439. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Rewritten isInRange()
  1441. * src/DHTBucket.cc
  1442. * test/DHTBucketTest.cc
  1443. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Fixed typo
  1445. * doc/aria2c.1.txt
  1446. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1448. malloc/realloc is not used.
  1449. * src/configure.ac
  1450. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1452. char* bitfield instead of stl container for efficiency.
  1453. PieceSelector::select now takes this
  1454. bitfield. RarestPieceSelector::select now also performs
  1455. efficiently for this change. bitfield namespace is introduced and
  1456. it has several helper functions to handle basic bitfield
  1457. operations such as test, count set bits, etc.
  1458. * src/BitfieldMan.cc
  1459. * src/BitfieldMan.h
  1460. * src/DefaultBtRequestFactory.cc
  1461. * src/DefaultPieceStorage.cc
  1462. * src/DefaultPieceStorage.h
  1463. * src/LongestSequencePieceSelector.cc
  1464. * src/LongestSequencePieceSelector.h
  1465. * src/Makefile.am
  1466. * src/Piece.cc
  1467. * src/Piece.h
  1468. * src/PieceSelector.h
  1469. * src/RarestPieceSelector.cc
  1470. * src/RarestPieceSelector.h
  1471. * src/Util.cc
  1472. * src/Util.h
  1473. * src/bitfield.h
  1474. * test/BitfieldManTest.cc
  1475. * test/LongestSequencePieceSelectorTest.cc
  1476. * test/Makefile.am
  1477. * test/RarestPieceSelectorTest.cc
  1478. * test/UtilTest.cc
  1479. * test/bitfieldTest.cc
  1480. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Made accepted socket non-block.
  1482. * src/FtpNegotiationCommand.cc
  1483. * src/HttpListenCommand.cc
  1484. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Guarded #ifdef HAVE_POSIX_FALLOCATE
  1486. * src/AbstractSingleDiskAdaptor.cc
  1487. * src/DefaultPieceStorage.cc
  1488. * src/DiskAdaptor.h
  1489. * src/DiskAdaptor.h
  1490. * src/MultiFileAllocationIterator.cc
  1491. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Run
  1493. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  1494. in every 1 sec. The timeout of RequestSlot is 60s by default and
  1495. it doesn't need to be called every time when
  1496. DefaultBtInteractive::doInteractionProcessing() is called.
  1497. * src/DefaultBtInteractive.cc
  1498. * src/DefaultBtInteractive.h
  1499. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Documented 'falloc' in man page.
  1501. * doc/aria2c.1.txt
  1502. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Updated doc
  1504. * src/usage_text.h
  1505. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Added 'falloc' parameter for --file-allocation option. 'falloc'
  1507. allocation mode uses posix_fallocate() system call to allocate
  1508. file on disk. If you are using newer file systems such as ext4
  1509. (with extents support), btrfs or xfs, 'falloc' is your best
  1510. choice. It allocates large(few GiB) files almost instantly. Don't
  1511. use 'falloc' with legacy file systems such as ext3 because it
  1512. takes almost same time as 'prealloc' and it blocks aria2 entirely
  1513. until allocation finishes. 'falloc' may not be available if your
  1514. system doesn't have posix_fallocate() system call.
  1515. * configure.ac
  1516. * src/AbstractDiskWriter.cc
  1517. * src/AbstractDiskWriter.h
  1518. * src/AbstractSingleDiskAdaptor.cc
  1519. * src/BinaryStream.h
  1520. * src/BtCheckIntegrityEntry.cc
  1521. * src/ByteArrayDiskWriter.h
  1522. * src/CheckIntegrityEntry.cc
  1523. * src/CheckIntegrityEntry.h
  1524. * src/DefaultPieceStorage.cc
  1525. * src/DiskAdaptor.cc
  1526. * src/DiskAdaptor.h
  1527. * src/DiskWriter.h
  1528. * src/FallocFileAllocationIterator.cc
  1529. * src/FallocFileAllocationIterator.h
  1530. * src/FileAllocationEntry.cc
  1531. * src/FileAllocationEntry.h
  1532. * src/Makefile.am
  1533. * src/MultiFileAllocationIterator.cc
  1534. * src/MultiFileAllocationIterator.h
  1535. * src/OptionHandlerFactory.cc
  1536. * src/RequestGroup.cc
  1537. * src/StreamCheckIntegrityEntry.cc
  1538. * src/prefs.cc
  1539. * src/prefs.h
  1540. * src/usage_text.h
  1541. * test/FallocFileAllocationIteratorTest.cc
  1542. * test/Makefile.am
  1543. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Removed duplicate enableDirectIO() call.
  1545. * src/MultiFileAllocationIterator.cc
  1546. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  1548. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  1549. cost of std::rotate().
  1550. * src/RarestPieceSelector.cc
  1551. * src/RarestPieceSelector.h
  1552. * test/RarestPieceSelectorTest.cc
  1553. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Updated usage doc for --bt-tracker-interval option.
  1555. * src/usage_text.h
  1556. * doc/aria2c.1.txt
  1557. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Documented --bt-tracker-interval option in man page.
  1559. * doc/aria2c.1.txt
  1560. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Added an option to specify the interval between tracker requests.
  1562. If non-zero value is specified, aria2 uses it and ignores the
  1563. interval value in the response of tracker. If zero is specified,
  1564. aria2 determines the inteval value based on the tarcker response
  1565. and download progress.
  1566. * src/DefaultBtAnnounce.cc
  1567. * src/DefaultBtAnnounce.h
  1568. * src/OptionHandlerFactory.cc
  1569. * src/RequestGroup.cc
  1570. * src/prefs.cc
  1571. * src/prefs.h
  1572. * src/usage_text.h
  1573. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Added operator+=, operator-=, operator-
  1575. * src/TransferStat.cc
  1576. * src/TransferStat.h
  1577. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. Refactored RarestPieceSelector to reduce CPU load, especially for
  1579. addPieceStats.
  1580. * src/RarestPieceSelector.cc
  1581. * src/RarestPieceSelector.h
  1582. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1584. getAllMissingBlockIndexes to reduce a call to
  1585. array_function_base::operator[].
  1586. * src/BitfieldMan.cc
  1587. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Cached TransferStat/download speed to avoid to sum them up in each
  1589. call.
  1590. * src/DefaultPeerStorage.cc
  1591. * src/DefaultPeerStorage.h
  1592. * src/SegmentMan.cc
  1593. * src/SegmentMan.h
  1594. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Typedefed cuid_t as int32_t in Command.h
  1596. * src/CUIDCounter.h
  1597. * src/Command.cc
  1598. * src/Command.h
  1599. * src/DownloadEngine.cc
  1600. * src/DownloadEngine.h
  1601. * src/PeerStat.h
  1602. * src/SegmentMan.cc
  1603. * src/SegmentMan.h
  1604. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Reduced the number of calls to PeerStorage::calculateStat() and
  1606. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1607. transfer rate.
  1608. * src/DefaultBtInteractive.cc
  1609. * src/DefaultBtMessageDispatcher.cc
  1610. * src/DefaultPeerStorage.cc
  1611. * src/DefaultPeerStorage.h
  1612. * src/DownloadCommand.cc
  1613. * src/DownloadEngine.cc
  1614. * src/PeerStorage.h
  1615. * src/SegmentMan.cc
  1616. * src/SegmentMan.h
  1617. * test/MockPeerStorage.h
  1618. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Prepended _dir+"/" after joining path elements in torrent file.
  1620. * src/DefaultBtContext.cc
  1621. * test/DefaultBtContextTest.cc
  1622. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Added missing IndexBtMessageValidator.h
  1624. * src/Makefile.am
  1625. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1627. Chinese translations. Thank you for contributing our project.
  1628. * po/id.po
  1629. * po/it.po
  1630. * po/ru.po
  1631. * po/uk.po
  1632. * po/zh_CN.po
  1633. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Updated README
  1635. * README
  1636. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Bump up version number to 1.3.0
  1638. * configure.ac
  1639. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Updated doc
  1641. * src/DefaultBtContext.h
  1642. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Slice/joinPath for name of single torrent.
  1644. * src/DefaultBtContext.cc
  1645. * test/DefaultBtContextTest.cc
  1646. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Updated man page: Documented --dry-run and --index-out
  1648. options. Changed the default value of --uri-selector and
  1649. --http-auth-challenge options. Removed --direct-file-mapping
  1650. option. Added example for --index-out
  1651. * doc/aria2c.1.txt
  1652. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Updated TEXT_DRY_RUN
  1654. * src/usage_text.h
  1655. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Changed the default value of --uri-selector option from 'inorder'
  1657. to 'feedback'
  1658. * src/OptionHandlerFactory.cc
  1659. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Included current URI in exception message.
  1661. * src/AbstractCommand.cc
  1662. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Renamed ServerStatURISelector as FeedbackURISelector.
  1664. * src/FeedbackURISelector.cc
  1665. * src/FeedbackURISelector.h
  1666. * src/Makefile.am
  1667. * src/RequestGroupMan.cc
  1668. * src/ServerStatURISelector.cc
  1669. * src/ServerStatURISelector.h
  1670. * test/FeedbackURISelectorTest.cc
  1671. * test/Makefile.am
  1672. * test/ServerStatURISelectorTest.cc
  1673. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1675. all URIs are tested and their timeout is not reached.
  1676. * src/AdaptiveURISelector.cc
  1677. * src/AdaptiveURISelector.h
  1678. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Changed the default value of --http-auth-challenge option to false.
  1680. * src/OptionHandlerFactory.cc
  1681. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Reuse URIs when all unused URIs run out.
  1683. * src/OptionHandlerFactory.cc
  1684. * src/RequestGroup.cc
  1685. * src/prefs.cc
  1686. * src/prefs.h
  1687. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1689. and BtRejectMessage are derived from RangeBtMessage class.
  1690. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1691. derived from IndexBtMessage class. BtChokeMessage,
  1692. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1693. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1694. ZeroBtMessage class.
  1695. * src/AbstractBtMessage.cc
  1696. * src/AbstractBtMessage.h
  1697. * src/BtAllowedFastMessage.cc
  1698. * src/BtAllowedFastMessage.h
  1699. * src/BtAllowedFastMessageValidator.h: Removed
  1700. * src/BtBitfieldMessage.cc
  1701. * src/BtBitfieldMessage.h
  1702. * src/BtCancelMessage.cc
  1703. * src/BtCancelMessage.h
  1704. * src/BtCancelMessageValidator.h: Removed
  1705. * src/BtChokeMessage.cc
  1706. * src/BtChokeMessage.h
  1707. * src/BtExtendedMessage.cc
  1708. * src/BtExtendedMessage.h
  1709. * src/BtHandshakeMessage.cc
  1710. * src/BtHandshakeMessage.h
  1711. * src/BtHaveAllMessage.cc
  1712. * src/BtHaveAllMessage.h
  1713. * src/BtHaveMessage.cc
  1714. * src/BtHaveMessage.h
  1715. * src/BtHaveMessageValidator.h: Removed
  1716. * src/BtHaveNoneMessage.cc
  1717. * src/BtHaveNoneMessage.h
  1718. * src/BtInterestedMessage.cc
  1719. * src/BtInterestedMessage.h
  1720. * src/BtKeepAliveMessage.cc
  1721. * src/BtKeepAliveMessage.h
  1722. * src/BtNotInterestedMessage.cc
  1723. * src/BtNotInterestedMessage.h
  1724. * src/BtPieceMessage.cc
  1725. * src/BtPieceMessage.h
  1726. * src/BtPortMessage.cc
  1727. * src/BtPortMessage.h
  1728. * src/BtRejectMessage.cc
  1729. * src/BtRejectMessage.h
  1730. * src/BtRejectMessageValidator.h: Removed
  1731. * src/BtRequestMessage.cc
  1732. * src/BtRequestMessage.h
  1733. * src/BtRequestMessageValidator.h: Removed
  1734. * src/BtSuggestPieceMessage.cc
  1735. * src/BtSuggestPieceMessage.h
  1736. * src/BtSuggestPieceMessageValidator.h: Removed
  1737. * src/BtUnchokeMessage.cc
  1738. * src/BtUnchokeMessage.h
  1739. * src/DefaultBtMessageFactory.cc
  1740. * src/IndexBtMessage.cc
  1741. * src/IndexBtMessage.h
  1742. * src/IndexBtMessageValidator.h
  1743. * src/Makefile.am
  1744. * src/PeerMessageUtil.cc
  1745. * src/PeerMessageUtil.h
  1746. * src/RangeBtMessage.cc
  1747. * src/RangeBtMessage.h
  1748. * src/RangeBtMessageValidator.h
  1749. * src/SimpleBtMessage.cc
  1750. * src/SimpleBtMessage.h
  1751. * src/ZeroBtMessage.cc
  1752. * src/ZeroBtMessage.h
  1753. * test/BtRequestMessageTest.cc
  1754. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Reverted usage_text.h to r1093 to avoid to lose translated
  1756. messages.
  1757. * src/usage_text.h
  1758. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1760. declared as non-const previously is now const and defined in class
  1761. definition.
  1762. * src/AbstractBtMessage.cc
  1763. * src/AbstractBtMessage.h
  1764. * src/BtAllowedFastMessage.cc
  1765. * src/BtAllowedFastMessage.h
  1766. * src/BtBitfieldMessage.h
  1767. * src/BtCancelMessage.cc
  1768. * src/BtCancelMessage.h
  1769. * src/BtChokeMessage.cc
  1770. * src/BtChokeMessage.h
  1771. * src/BtExtendedMessage.cc
  1772. * src/BtExtendedMessage.h
  1773. * src/BtHandshakeMessage.cc
  1774. * src/BtHandshakeMessage.h
  1775. * src/BtHaveAllMessage.cc
  1776. * src/BtHaveAllMessage.h
  1777. * src/BtHaveMessage.cc
  1778. * src/BtHaveMessage.h
  1779. * src/BtHaveNoneMessage.cc
  1780. * src/BtHaveNoneMessage.h
  1781. * src/BtInterestedMessage.cc
  1782. * src/BtInterestedMessage.h
  1783. * src/BtKeepAliveMessage.cc
  1784. * src/BtKeepAliveMessage.h
  1785. * src/BtMessage.h
  1786. * src/BtNotInterestedMessage.cc
  1787. * src/BtNotInterestedMessage.h
  1788. * src/BtPieceMessage.h
  1789. * src/BtPortMessage.cc
  1790. * src/BtPortMessage.h
  1791. * src/BtRejectMessage.cc
  1792. * src/BtRejectMessage.h
  1793. * src/BtRequestMessage.cc
  1794. * src/BtRequestMessage.h
  1795. * src/BtSuggestPieceMessage.cc
  1796. * src/BtSuggestPieceMessage.h
  1797. * src/BtUnchokeMessage.cc
  1798. * src/BtUnchokeMessage.h
  1799. * src/SimpleBtMessage.cc
  1800. * src/SimpleBtMessage.h
  1801. * test/MockBtMessage.h
  1802. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Use FileEntry::exists()
  1804. * src/MultiDiskAdaptor.cc
  1805. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Added exists()
  1807. * src/FileEntry.cc
  1808. * src/FileEntry.h
  1809. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Added missing prefix dir.
  1811. * src/download_helper.cc
  1812. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1814. * src/CopyDiskAdaptor.cc: Removed
  1815. * src/CopyDiskAdaptor.h: Removed
  1816. * src/DefaultPieceStorage.cc
  1817. * src/Makefile.am
  1818. * src/OptionHandlerFactory.cc
  1819. * src/prefs.cc
  1820. * src/prefs.h
  1821. * src/usage_text.h
  1822. * test/CopyDiskAdaptorTest.cc: Removed
  1823. * test/Makefile.am
  1824. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Rewritten isSameFileBeingDownloaded()
  1826. * src/RequestGroupMan.cc
  1827. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Removed getName() from DownloadContext. getName() is declared in
  1829. BtContext.
  1830. * src/BtContext.h
  1831. * src/DownloadContext.h
  1832. * src/SingleFileDownloadContext.cc
  1833. * src/SingleFileDownloadContext.h
  1834. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1835. in AbstractSingleDiskAdaptor.
  1836. * src/AbstractSingleDiskAdaptor.h
  1837. * src/DiskAdaptor.h
  1838. * src/MultiDiskAdaptor.h
  1839. * src/RequestGroup.cc
  1840. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1841. MultiDiskAdaptor.
  1842. * src/DefaultPieceStorage.cc
  1843. * src/MultiDiskAdaptor.cc
  1844. * src/MultiDiskAdaptor.h
  1845. * test/MultiDiskAdaptorTest.cc
  1846. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. FileEntry::getPath() contains store(top level) directory to
  1848. simplify path handling operation. In the previous implementation,
  1849. store directory is concatenated to FileEntry::getPath() in
  1850. DownloadContext.
  1851. * src/BtDependency.cc
  1852. * src/BtPostDownloadHandler.cc
  1853. * src/CopyDiskAdaptor.cc
  1854. * src/DefaultBtContext.cc
  1855. * src/DirectDiskAdaptor.cc
  1856. * src/FileEntry.cc
  1857. * src/FileEntry.h
  1858. * src/FtpNegotiationCommand.cc
  1859. * src/HttpResponse.cc
  1860. * src/HttpResponseCommand.cc
  1861. * src/Metalink2RequestGroup.cc
  1862. * src/MultiDiskAdaptor.cc
  1863. * src/MultiDiskAdaptor.h
  1864. * src/MultiFileAllocationIterator.cc
  1865. * src/RequestGroup.cc
  1866. * src/SingleFileDownloadContext.cc
  1867. * src/SingleFileDownloadContext.h
  1868. * src/download_helper.cc
  1869. * test/BtDependencyTest.cc
  1870. * test/CopyDiskAdaptorTest.cc
  1871. * test/DefaultBtContextTest.cc
  1872. * test/DefaultBtProgressInfoFileTest.cc
  1873. * test/DirectDiskAdaptorTest.cc
  1874. * test/DownloadHelperTest.cc
  1875. * test/FileEntryTest.cc
  1876. * test/MultiDiskAdaptorTest.cc
  1877. * test/MultiFileAllocationIteratorTest.cc
  1878. * test/RequestGroupTest.cc
  1879. * test/SingleFileDownloadContextTest.cc
  1880. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Fixed compiler warning
  1882. * src/download_helper.cc
  1883. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Throw exception if same infohash torrent is now downloading.
  1885. * src/RequestGroup.cc
  1886. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Added --dry-run option. In this mode, aria2 just checks whether
  1888. the remote file is available and doesn't download data. This
  1889. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1890. are canceled in this mode.
  1891. * src/FtpNegotiationCommand.cc
  1892. * src/HttpResponseCommand.cc
  1893. * src/HttpResponseCommand.h
  1894. * src/OptionHandlerFactory.cc
  1895. * src/RequestGroup.cc
  1896. * src/RequestGroupMan.cc
  1897. * src/prefs.cc
  1898. * src/prefs.h
  1899. * src/usage_text.h
  1900. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Fixed compiler waring
  1902. * test/UriListParserTest.cc
  1903. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Parse options in -i list using OptionParser.
  1905. * src/UriListParser.cc
  1906. * src/UriListParser.h
  1907. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Don't reset URI in retry to avoid additional round trips because
  1909. of redirects.
  1910. * src/AbstractCommand.cc
  1911. * src/OptionHandlerFactory.cc
  1912. * src/prefs.cc
  1913. * src/prefs.h
  1914. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Declared hide() in OptionHandler.
  1916. * src/NameMatchOptionHandler.h
  1917. * src/OptionHandler.h
  1918. * src/OptionHandlerImpl.h
  1919. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Updated doc
  1921. * src/Peer.h
  1922. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Added log message in setStatusInternal()
  1924. * src/ServerStat.cc
  1925. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1927. effectively exclude failed server.
  1928. * src/AbstractCommand.cc
  1929. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Added --index-out option to specify each file path for torrent.
  1931. Here index shown in --show-files option is used to specify which
  1932. file path should be altered. For example, to change the file path
  1933. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1934. option multiple times: --index-out=1=aria2.tar.bz2
  1935. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1936. available. This option can be specified in -i list.
  1937. * src/DefaultBtContext.cc
  1938. * src/DefaultBtContext.h
  1939. * src/MultiDiskAdaptor.cc
  1940. * src/MultiDiskAdaptor.h
  1941. * src/MultiFileAllocationIterator.cc
  1942. * src/OptionHandlerFactory.cc
  1943. * src/OptionHandlerImpl.h
  1944. * src/Util.cc
  1945. * src/Util.h
  1946. * src/download_helper.cc
  1947. * src/prefs.cc
  1948. * src/prefs.h
  1949. * src/usage_text.h
  1950. * test/DefaultBtContextTest.cc
  1951. * test/MultiDiskAdaptorTest.cc
  1952. * test/MultiFileAllocationIteratorTest.cc
  1953. * test/UtilTest.cc
  1954. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Use Util::pathJoin()
  1956. * src/MetalinkParserController.cc
  1957. * test/test.xml
  1958. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Use Util::pathJoin()
  1960. * src/DefaultBtContext.cc
  1961. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Added Util::pathJoin()
  1963. * src/Util.h
  1964. * test/UtilTest.cc
  1965. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1966. Applied basename function to remove directory element in
  1967. content-disposition value.
  1968. Return empty string if content-disposition value is ".." or ".".
  1969. * src/Util.cc
  1970. * test/UtilTest.cc
  1971. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Added --max-overall-download-limit in man page.
  1973. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1974. * doc/aria2c.1.txt
  1975. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Added --max-overall-download-limit option. Now --max-upload-limit
  1977. option is not ignored when --max-overall-upload-limit option has
  1978. non-zero value. aria2 checks download(upload) speed in the order:
  1979. first checks overall speed limit and if it is not exceeded, then
  1980. checks speed limit per download. Thus you can specify both
  1981. value. For example, set --max-overall-download-limit=1M and
  1982. --max-download-limit=500K to prevent from one download from eating
  1983. all overall speed limit.
  1984. * src/DefaultBtInteractive.cc
  1985. * src/DefaultBtInteractive.h
  1986. * src/DefaultBtMessageDispatcher.cc
  1987. * src/DefaultBtMessageDispatcher.h
  1988. * src/DownloadCommand.cc
  1989. * src/DownloadCommand.h
  1990. * src/FtpNegotiationCommand.cc
  1991. * src/HttpResponseCommand.cc
  1992. * src/OptionHandlerFactory.cc
  1993. * src/PeerInteractionCommand.cc
  1994. * src/RequestGroup.cc
  1995. * src/RequestGroup.h
  1996. * src/RequestGroupMan.cc
  1997. * src/RequestGroupMan.h
  1998. * src/prefs.cc
  1999. * src/prefs.h
  2000. * src/usage_text.h
  2001. * test/DefaultBtMessageDispatcherTest.cc
  2002. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Documented select-file option in Input File section.
  2004. Documented --http-auth-challenge option.
  2005. * doc/aria2c.1.txt
  2006. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Now select-file can be specified in the uri list(-i list).
  2008. * src/BtContext.cc
  2009. * src/BtContext.h
  2010. * src/RequestGroup.cc
  2011. * src/Sequence.h
  2012. * src/download_helper.cc
  2013. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Made the upper value of --max-concurrent-downloads options unlimited.
  2015. * src/OptionHandlerFactory.cc
  2016. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Fixed the bug that disk writer is not created even if it shares
  2018. same piece with the preceding file if the length of previous file
  2019. is 0.
  2020. * src/MultiDiskAdaptor.cc
  2021. * test/MultiDiskAdaptorTest.cc
  2022. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. In BitTorrent, Open files in read-only mode for hash check. After
  2024. that, re-open file in read/write mode only when the download is
  2025. not finished.
  2026. * src/AbstractDiskWriter.cc
  2027. * src/AbstractDiskWriter.h
  2028. * src/AbstractSingleDiskAdaptor.cc
  2029. * src/AbstractSingleDiskAdaptor.h
  2030. * src/BtCheckIntegrityEntry.cc
  2031. * src/DiskAdaptor.h
  2032. * src/DiskWriter.h
  2033. * src/MultiDiskAdaptor.cc
  2034. * src/MultiDiskAdaptor.h
  2035. * src/RequestGroup.cc
  2036. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Added --http-auth-challenge option. If it is set to true(by
  2038. default), aria2 sends HTTP authorization header only when it is
  2039. requested by the server. If false is set, then authorization
  2040. header is always sent to the server. This is useful for servers
  2041. that don't respond 401 code when authentication is required.
  2042. There is an exception: if username and password are embedded in
  2043. URI, authorization header is always sent to the server regardless
  2044. of this option.
  2045. * src/AuthConfigFactory.cc
  2046. * src/HttpSkipResponseCommand.cc
  2047. * src/OptionHandlerFactory.cc
  2048. * src/prefs.cc
  2049. * src/prefs.h
  2050. * src/usage_text.h
  2051. * test/AuthConfigFactoryTest.cc
  2052. * test/HttpRequestTest.cc
  2053. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. * Release 1.2.0
  2055. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2056. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2057. Thanks to all translators.
  2058. * po/es.po
  2059. * po/ja.po
  2060. * po/ru.po
  2061. * po/uk.po
  2062. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Call deleteSocketForReadCheck() before socket is closed.
  2064. * src/HttpListenCommand.cc
  2065. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Defined virtual destructor for BObject.
  2067. * src/bencode.h
  2068. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Rewritten BDE to make it efficient.
  2070. * src/bencode.cc
  2071. * src/bencode.h
  2072. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Removed function throw list.
  2074. * src/bencode.cc
  2075. * src/bencode.h
  2076. * test/BencodeTest.cc
  2077. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Enclosed all URLs in double quotes in command-line examples.
  2079. * doc/aria2c.1.txt
  2080. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Updated reference/see also section.
  2082. * README
  2083. * doc/aria2c.1.txt
  2084. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Reorganized man page based on man man-pages.
  2086. * doc/aria2c.1.txt
  2087. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2089. because same documents are available in man page. Added
  2090. References section.
  2091. * README
  2092. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2094. PERFORMANCE PROFILE section.
  2095. * doc/aria2c.1.txt
  2096. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Rewritten the section for configuration file.
  2098. * README
  2099. * doc/aria2c.1.txt
  2100. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Fixed the segmentation fault during execution of choking algorithm
  2102. in leecher state because of broken compare operator
  2103. implementation.
  2104. * src/BtLeecherStateChoke.cc
  2105. * src/BtLeecherStateChoke.h
  2106. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Open file in binary mode.
  2108. * src/CookieStorage.cc
  2109. * src/DHTSetup.cc
  2110. * src/DHTUtil.cc
  2111. * src/Netrc.cc
  2112. * src/NsCookieParser.cc
  2113. * src/ProtocolDetector.cc
  2114. * src/RequestGroupMan.cc
  2115. * src/Signature.cc
  2116. * src/bencode.cc
  2117. * src/download_helper.cc
  2118. * src/option_processing.cc
  2119. * test/CookieParserTest.cc
  2120. * test/DefaultBtProgressInfoFileTest.cc
  2121. * test/FileTest.cc
  2122. * test/GZipDecoderTest.cc
  2123. * test/RequestGroupManTest.cc
  2124. * test/SignatureTest.cc
  2125. * test/SingleFileAllocationIteratorTest.cc
  2126. * test/UriListParserTest.cc
  2127. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Removed operator[] because it is ambiguous with built-in []
  2129. operator.
  2130. * src/array_fun.h
  2131. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2132. Fixed compile error
  2133. * src/OptionParser.cc
  2134. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2135. Added missing call to arrayWrapperConst
  2136. * test/array_funTest.cc
  2137. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Use array_wrapper instead of array_ptr.
  2139. * src/DHTRoutingTableDeserializer.cc
  2140. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2142. * src/array_fun.h
  2143. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Added array_wrapper template.
  2145. * src/array_fun.h
  2146. * test/array_funTest.cc
  2147. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Use operator T* of array_ptr.
  2149. * src/OptionParser.cc
  2150. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Use localhost instead of 127.0.0.1
  2152. * test/FtpConnectionTest.cc
  2153. * test/MSEHandshakeTest.cc
  2154. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Added operator T*
  2156. * src/array_fun.h
  2157. * test/array_funTest.cc
  2158. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Use dynamically allocated char array to detect memory access
  2160. violation.
  2161. * src/DHTRoutingTableDeserializer.cc
  2162. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2164. defined.
  2165. * src/PeerMessageUtil.cc
  2166. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2168. * configure.ac
  2169. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Added a check to see struct sockaddr_in has sin_len member.
  2171. * configure.ac
  2172. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Fixed buffer overrun.
  2174. * src/DHTRoutingTableDeserializer.cc
  2175. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Added LL for long long int constant.
  2177. * test/FtpConnectionTest.cc
  2178. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Casted to unsigned int to suppress compiler warning on netbsd.
  2180. * src/BtRuntime.h
  2181. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2183. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2184. type time_t.
  2185. * src/SimpleLogger.cc
  2186. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Added test for FtpConnection::receiveSizeResponse().
  2188. * test/FtpConnectionTest.cc
  2189. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Fix epoll error on the old kernel 2.6.8 or ealier.
  2191. * src/EpollEventPoll.cc
  2192. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Use Util::parseLLInt instead of sscanf for portability. The
  2194. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2195. * src/FtpConnection.cc
  2196. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2198. block. It should not filter anything.
  2199. * src/BitfieldMan.cc
  2200. * src/ConsoleStatCalc.cc
  2201. * test/BitfieldManTest.cc
  2202. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Fixed the bug that the boolean options that don't take arguments
  2204. don't work.
  2205. * src/OptionHandlerImpl.h
  2206. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Fixed broken selected file BitTorrent download.
  2208. * src/MultiDiskAdaptor.cc
  2209. * test/MultiDiskAdaptorTest.cc
  2210. * test/MultiFileAllocationIteratorTest.cc
  2211. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Fixed #define guard for EpollEventPoll
  2213. * src/EpollEventPoll.h
  2214. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Wait 2 seconds. 1 second is sometimes not enough.
  2216. * test/TimeSeedCriteriaTest.cc
  2217. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Use localhost instead of 127.0.0.1.
  2219. * test/DHTConnectionImplTest.cc
  2220. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Suppressed compiler warning.
  2222. * src/AdaptiveURISelector.cc
  2223. * src/DefaultPieceStorage.cc
  2224. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Defined virtual destructor.
  2226. * src/MetalinkParserState.h
  2227. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Give NULL for second argument of getaddrinfo instead of "0".
  2229. * src/NameResolver.cc
  2230. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2232. included strptime doesn't parse data for this format.
  2233. * src/FtpConnection.cc
  2234. * test/FtpConnectionTest.cc
  2235. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Removed tests giving -1 for unsigned argument.
  2237. * test/SingleFileDownloadContextTest.cc
  2238. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Don't use sha256 in tests because it might not be supported by the
  2240. SSL library.
  2241. * test/MetalinkProcessorTest.cc
  2242. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Removed tests giving -1 for unsigned argument.
  2244. * test/AlphaNumberDecoratorTest
  2245. * test/BitfieldManTest.cc
  2246. * test/DefaultBtContextTest.cc
  2247. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Fixed compile error without libcares when epoll is available.
  2249. * src/EpollEventPoll.cc
  2250. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Included fstream instead of iostream.
  2252. * test/SignatureTest.cc
  2253. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. Removed #include <algorithm>
  2255. * test/RequestGroupTest.cc
  2256. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2258. using RequestGroup::extractURIResult().
  2259. * src/AdaptiveURISelector.cc
  2260. * src/RequestGroup.cc
  2261. * src/RequestGroup.h
  2262. * test/RequestGroupTest.cc
  2263. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Added tests for array_ptr.
  2265. * test/array_funTest.cc
  2266. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Don't send ip parameter to a tracker if ip parameter is empty
  2268. string.
  2269. * src/DefaultBtAnnounce.cc
  2270. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Adjusted line feed.
  2272. * src/version_usage.cc
  2273. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Print tags, possible values when OptionHandlerException is caught.
  2275. * src/option_processing.cc
  2276. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Changed the message for FatalException.
  2278. * src/OptionParser.cc
  2279. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Documented --bt-external-ip option in man page. Updated man pages
  2281. for --proxy-method option.
  2282. * doc/aria2c.1.txt
  2283. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Use GET method for FTP via HTTP proxy.
  2285. * src/FtpInitiateConnectionCommand.cc
  2286. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Changed the default value of --proxy-method option from 'tunnel'
  2288. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2289. option.
  2290. * src/AbstractCommand.cc
  2291. * src/AbstractCommand.h
  2292. * src/FtpInitiateConnectionCommand.cc
  2293. * src/HttpDownloadCommand.cc
  2294. * src/HttpInitiateConnectionCommand.cc
  2295. * src/HttpInitiateConnectionCommand.h
  2296. * src/OptionHandlerFactory.cc
  2297. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Initialized _logger
  2299. * src/SelectEventPoll.cc
  2300. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Defined a copy constructor for the same type.
  2302. * src/SharedHandle.h
  2303. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Added OptionParser::parseArg() which internally uses getopt_long
  2305. to parse command-line options. All command-line options are now
  2306. configured by OptionHandler. No manual editing of struct option*
  2307. is required any more.
  2308. * src/NameMatchOptionHandler.h
  2309. * src/OptionHandler.h
  2310. * src/OptionHandlerFactory.cc
  2311. * src/OptionHandlerImpl.h
  2312. * src/OptionParser.cc
  2313. * src/OptionParser.h
  2314. * src/array_fun.h
  2315. * src/main.cc
  2316. * src/option_processing.cc
  2317. * test/OptionHandlerTest.cc
  2318. * test/OptionParserTest.cc
  2319. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Fixed configure error with --disable-epoll
  2321. * configure.ac
  2322. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Fixed compile error when HAVE_EPOLL is not defined.
  2324. Fixed linker error on bigendian systems.
  2325. * src/SocketCore.cc
  2326. * src/SocketCore.h
  2327. * test/DefaultBtProgressInfoFileTest.cc
  2328. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Added --bt-external-ip option. You can specify the external IP
  2330. address to report to a BitTorrent tracker. Although this function
  2331. is named 'external', it can accept any kind of IP addresses.
  2332. * src/DefaultBtAnnounce.cc
  2333. * src/OptionHandlerFactory.cc
  2334. * src/option_processing.cc
  2335. * src/prefs.cc
  2336. * src/prefs.h
  2337. * src/usage_text.h
  2338. * test/DefaultBtAnnounceTest.cc
  2339. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Extracted the algorithm to find the longest incremental sequence
  2341. as max_sequence template.
  2342. * src/LongestSequencePieceSelector.cc
  2343. * src/a2algo.h
  2344. * test/Makefile.am
  2345. * test/a2algoTest.cc
  2346. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2348. * src/usage_text.h
  2349. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Updated doc for --uri-selector, --http-server-listen-port and
  2351. --enable-http-server option. Documented --event-poll option.
  2352. * doc/aria2c.1.txt
  2353. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2354. Updated doc for --enable-http-server.
  2355. * src/usage_text.h
  2356. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Documented --http-server-listen-port and --enable-http-server in
  2358. man page.
  2359. * doc/aria2c.1.txt
  2360. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2362. translations. Thanks to all translators.
  2363. * po/es.po
  2364. * po/id.po
  2365. * po/it.po
  2366. * po/ru.po
  2367. * po/uk.po
  2368. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Bump up version number to 1.2.0
  2370. * configure.ac
  2371. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. BtContext::getAnnounceTiers() now returns const reference.
  2373. * src/BtContext.h
  2374. * src/DefaultBtContext.cc
  2375. * src/DefaultBtContext.h
  2376. * test/MockBtContext.h
  2377. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Change the number of retries for tracker request based on the
  2379. number of available tracker in a torrent file.
  2380. * src/TrackerWatcherCommand.cc
  2381. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Added _maxTries property to RequestGroup and assign the option
  2383. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2384. RequestGroup::getMaxTries() instead of
  2385. Option::getAsInt(PREF_MAX_TRIES).
  2386. * src/AbstractCommand.cc
  2387. * src/RequestGroup.cc
  2388. * src/RequestGroup.h
  2389. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2391. Mandriva. I modified the patch: make RequestGroup have the
  2392. timeout value and AdaptiveURISelector directly modifies that
  2393. value.
  2394. * src/AbstractCommand.cc
  2395. * src/AdaptiveURISelector.cc
  2396. * src/AdaptiveURISelector.h
  2397. * src/FtpNegotiationCommand.cc
  2398. * src/RequestGroup.cc
  2399. * src/RequestGroup.h
  2400. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Fixed compiler warning
  2402. * test/IteratableChecksumValidatorTest.cc
  2403. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2405. integrated downloads. This PieceSelector subclass finds the
  2406. longest continuous sequence in the available missing pieces and
  2407. selects the last index of such sequence. This makes HTTP/FTP
  2408. connections less interrupted by the pieces obtained by BitTorrent
  2409. peers.
  2410. * src/DefaultPieceStorage.cc
  2411. * src/DefaultPieceStorage.h
  2412. * src/LongestSequencePieceSelector.cc
  2413. * src/LongestSequencePieceSelector.h
  2414. * src/Makefile.am
  2415. * src/PieceSelector.h
  2416. * src/RarestPieceSelector.h
  2417. * src/RequestGroup.cc
  2418. * test/BtDependencyTest.cc
  2419. * test/DefaultPieceStorageTest.cc
  2420. * test/IteratableChecksumValidatorTest.cc
  2421. * test/LongestSequencePieceSelectorTest.cc
  2422. * test/Makefile.am
  2423. * test/SegmentManTest.cc
  2424. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Fixed the bug that the average speed is wrong in
  2426. http/ftp/BitTorrent integrated download. Only the download bytes
  2427. in BitTorrent were considered.
  2428. * src/RequestGroup.cc
  2429. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Choose port for BitTorrent/DHT randomly from the specified range.
  2431. * src/DHTConnectionImpl.cc
  2432. * src/PeerListenCommand.cc
  2433. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Send HTTP Authorization header only if it is requested by the
  2435. server(response 401). There are some exceptions. The authorization
  2436. header for proxy is always sent if it is available without request
  2437. by the server. If username/password is specified in the URI, it
  2438. is immediately sent to the server without request by the server.
  2439. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2440. SharedHandle<AuthConfig>().
  2441. NetrcAuthResolver::resolveAuthConfig() returns
  2442. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2443. * src/AbstractAuthResolver.cc
  2444. * src/AbstractProxyRequestCommand.cc
  2445. * src/AuthConfigFactory.cc
  2446. * src/AuthConfigFactory.h
  2447. * src/HttpConnection.cc
  2448. * src/HttpRequest.cc
  2449. * src/HttpRequest.h
  2450. * src/HttpResponse.cc
  2451. * src/HttpResponseCommand.cc
  2452. * src/HttpSkipResponseCommand.cc
  2453. * test/AuthConfigFactoryTest.cc
  2454. * test/HttpRequestTest.cc
  2455. * test/HttpResponseTest.cc
  2456. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Remove leading "--" from help keyword and a substring after "="
  2458. from help keyword, so that one can query options by '-h--max-' or
  2459. '-hmax-peers=10'.
  2460. * src/option_processing.cc
  2461. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2462. Rewritten PStringVisitor and its implementation.
  2463. * src/PStringBuildVisitor.cc
  2464. * src/PStringBuildVisitor.h
  2465. * src/PStringDatum.h
  2466. * src/PStringNumLoop.h
  2467. * src/PStringSegment.cc
  2468. * src/PStringSegment.h
  2469. * src/PStringSelect.h
  2470. * src/PStringVisitor.h
  2471. * src/download_helper.cc
  2472. * test/PStringBuildVisitorTest.cc
  2473. * test/ParameterizedStringParserTest.cc
  2474. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Persist connection between the built-in HTTP server and a client
  2476. if a client supports keep-alive. Fixed the bug that aria2 exits
  2477. when the HTTP server receives EOF from a client.
  2478. * src/HttpServer.cc
  2479. * src/HttpServer.h
  2480. * src/HttpServerCommand.cc
  2481. * src/HttpServerCommand.h
  2482. * src/HttpServerResponseCommand.cc
  2483. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Added experimental built-in HTTP server. Currently, when a client
  2485. accesses to the server, it responds with the current download
  2486. progress. By default, it is disabled. To enable the server, give
  2487. --enable-http-server option. To change the default port number
  2488. for the server to listen to, use --http-server-listen-port option.
  2489. The response HTML is very simple and refreshes it self each 1
  2490. second. Because of this refresh, you see flicker in normal web
  2491. browser such as Firefox. I recommend to use console-based browser
  2492. such as elinks, w3m. To connect to the server, run 'elinks
  2493. http://localhost:6800/' while running aria2. Please replace port
  2494. number '6800'(which is default) with your preference.
  2495. * src/DownloadEngineFactory.cc
  2496. * src/HttpHeader.cc
  2497. * src/HttpHeader.h
  2498. * src/HttpHeaderProcessor.cc
  2499. * src/HttpHeaderProcessor.h
  2500. * src/HttpListenCommand.cc
  2501. * src/HttpListenCommand.h
  2502. * src/HttpServer.cc
  2503. * src/HttpServer.h
  2504. * src/HttpServerCommand.cc
  2505. * src/HttpServerCommand.h
  2506. * src/HttpServerResponseCommand.cc
  2507. * src/HttpServerResponseCommand.h
  2508. * src/Makefile.am
  2509. * src/OptionHandlerFactory.cc
  2510. * src/Util.cc
  2511. * src/Util.h
  2512. * src/help_tags.h
  2513. * src/option_processing.cc
  2514. * src/prefs.cc
  2515. * src/prefs.h
  2516. * src/usage_text.h
  2517. * test/HttpHeaderProcessorTest.cc
  2518. * test/UtilTest.cc
  2519. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Removed.
  2521. * src/CheckIntegrityMan.cc
  2522. * src/FileAllocationMan.cc
  2523. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Made (piece) hash check sequential for each RequestGroup because
  2525. simultaneous hash check is slower than sequential execution.
  2526. * src/CheckIntegrityCommand.cc
  2527. * src/CheckIntegrityDispatcherCommand.cc
  2528. * src/CheckIntegrityDispatcherCommand.h
  2529. * src/CheckIntegrityMan.h
  2530. * src/ConsoleStatCalc.cc
  2531. * src/DownloadCommand.cc
  2532. * src/DownloadEngine.cc
  2533. * src/DownloadEngine.h
  2534. * src/DownloadEngineFactory.cc
  2535. * src/Makefile.am
  2536. * src/Makefile.in
  2537. * src/RequestGroup.cc
  2538. * src/StatCalc.h
  2539. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  2541. SequentialDispatcherCommand.
  2542. * src/FileAllocationDispatcherCommand.cc
  2543. * src/SequentialDispatcherCommand.h
  2544. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Rewritten FileAllocationDispatcherCommand using brand new
  2546. SequentialDispatcherCommand.
  2547. * src/DownloadEngineFactory.cc
  2548. * src/FileAllocationCommand.cc
  2549. * src/FileAllocationDispatcherCommand.cc
  2550. * src/FileAllocationDispatcherCommand.h
  2551. * src/Makefile.am
  2552. * src/SequentialDispatcherCommand.h
  2553. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Replaced FileAllocationMan with
  2555. SequentialPicker<FileAllocationEntry>.
  2556. * src/BtCheckIntegrityEntry.cc
  2557. * src/ConsoleStatCalc.cc
  2558. * src/DownloadEngine.cc
  2559. * src/DownloadEngine.h
  2560. * src/DownloadEngineFactory.cc
  2561. * src/FileAllocationCommand.cc
  2562. * src/FileAllocationDispatcherCommand.cc
  2563. * src/FileAllocationMan.h
  2564. * src/Makefile.am
  2565. * src/SequentialPicker.h
  2566. * src/StatCalc.h
  2567. * src/StreamCheckIntegrityEntry.cc
  2568. * test/Makefile.am
  2569. * test/SequentialPickerTest.cc
  2570. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. Added doc for adaptive URI selector.
  2572. * doc/aria2c.1.txt
  2573. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Added doc for adaptive URI selector.
  2575. * src/usage_text.h
  2576. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Added doc for --bt-max-peers option.
  2578. * doc/aria2c.1.txt
  2579. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Added doc for --bt-hash-check-seed option.
  2581. * doc/aria2c.1.txt
  2582. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Documented exit codes.
  2584. * doc/aria2c.1.txt
  2585. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Added --bt-max-peers option to specify the maximum number of peers
  2587. per torrent. 0 means unlimited number of peers.
  2588. * src/ActivePeerConnectionCommand.cc
  2589. * src/BtRuntime.h
  2590. * src/DefaultPeerStorage.cc
  2591. * src/DefaultPeerStorage.h
  2592. * src/OptionHandlerFactory.cc
  2593. * src/RequestGroup.cc
  2594. * src/option_processing.cc
  2595. * src/prefs.cc
  2596. * src/prefs.h
  2597. * src/usage_text.h
  2598. * test/DefaultPeerStorageTest.cc
  2599. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Added --bt-hash-check-seed option. If true is given to this
  2601. option, after hash check using --check-integrity option and file
  2602. is complete, continue to seed file. If you want to check file and
  2603. download it only when it is damaged or incomplete, set this option
  2604. to false. This option has effect only on BitTorrent download.
  2605. The default value is true(This is the same behavior with the
  2606. previous release).
  2607. * src/BtCheckIntegrityEntry.cc
  2608. * src/OptionHandlerFactory.cc
  2609. * src/option_processing.cc
  2610. * src/prefs.cc
  2611. * src/prefs.h
  2612. * src/usage_text.h
  2613. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Updated copyright year.
  2615. * src/version_usage.cc
  2616. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2618. * doc/aria2c.1.txt
  2619. * src/usage_text.h
  2620. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Made the max value of split option unlimited.
  2622. * doc/aria2c.1.txt
  2623. * src/OptionHandlerFactory.cc
  2624. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Fixed compile warning/error.
  2626. * src/DownloadResult.h
  2627. * src/HttpDownloadCommand.cc
  2628. * src/ServerStat.cc
  2629. * test/RequestGroupTest.cc
  2630. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Added --event-poll option to select the method for polling events.
  2632. The available methods are "select" and "epoll". "epoll" is
  2633. available on Linux only. The earlier release has the compile
  2634. option to choose from these methods.
  2635. * configure.ac
  2636. * src/RequestGroupMan.cc
  2637. * src/OptionHandlerFactory.cc
  2638. * src/EpollEventPoll.h
  2639. * src/StreamFileAllocationEntry.cc
  2640. * src/a2io.h
  2641. * src/SelectEventPoll.h
  2642. * src/option_processing.cc
  2643. * src/prefs.h
  2644. * src/EpollEventPoll.cc
  2645. * src/EventPoll.h
  2646. * src/SocketCore.h
  2647. * src/Makefile.am
  2648. * src/main.cc
  2649. * src/DownloadEngine.h
  2650. * src/SelectEventPoll.cc
  2651. * src/DownloadEngine.cc
  2652. * src/SocketCore.cc
  2653. * src/DownloadEngineFactory.cc
  2654. * src/Makefile.in
  2655. * src/prefs.cc
  2656. * src/usage_text.h
  2657. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Included RecoverableException.h from main.cc
  2659. * src/main.cc
  2660. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2662. now returns last error encountered in the HTTP/FTP downloads as a
  2663. exit status value. If all downloads finished successfully, aria2
  2664. returns 0. The error code is defined in src/DownloadResult.h.
  2665. The error occurred in the download currently in progress is not
  2666. reported as a last error. If no error has encountered but there
  2667. are in progress or waiting downloads, aria2 returns 7.
  2668. * src/AbstractCommand.cc
  2669. * src/DlAbortEx.h
  2670. * src/DlRetryEx.h
  2671. * src/DownloadCommand.cc
  2672. * src/DownloadFailureException.h
  2673. * src/DownloadResult.h
  2674. * src/FtpNegotiationCommand.cc
  2675. * src/HttpSkipResponseCommand.cc
  2676. * src/Makefile.am
  2677. * src/MultiUrlRequestInfo.cc
  2678. * src/MultiUrlRequestInfo.h
  2679. * src/RecoverableException.h
  2680. * src/RequestGroup.cc
  2681. * src/RequestGroup.h
  2682. * src/RequestGroupMan.cc
  2683. * src/RequestGroupMan.h
  2684. * src/URIResult.cc
  2685. * src/URIResult.h
  2686. * src/main.cc
  2687. * src/option_processing.cc
  2688. * test/RequestGroupTest.cc
  2689. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2691. patch adds AdaptiveURISelector, which selects one of the bests
  2692. mirrors for first and reserved connections. For supplementary
  2693. ones, it returns mirrors which has not been tested yet, and if
  2694. each of them already tested, returns mirrors which has to be
  2695. tested again. Otherwise, it doesn't return anymore mirrors.
  2696. * src/AdaptiveURISelector.cc
  2697. * src/AdaptiveURISelector.h
  2698. * src/FtpNegotiationCommand.cc
  2699. * src/HttpResponseCommand.cc
  2700. * src/Makefile.am
  2701. * src/Makefile.in
  2702. * src/OptionHandlerFactory.cc
  2703. * src/RequestGroup.cc
  2704. * src/RequestGroup.h
  2705. * src/RequestGroupMan.cc
  2706. * src/ServerStat.cc
  2707. * src/ServerStat.h
  2708. * src/ServerStatMan.cc
  2709. * src/SpeedCalc.cc
  2710. * src/URISelector.h
  2711. * src/prefs.cc
  2712. * src/prefs.h
  2713. * test/RequestGroupManTest.cc
  2714. * test/ServerStatManTest.cc
  2715. * test/ServerStatTest.cc
  2716. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Fixed unit test error.
  2718. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2719. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. * Release 1.1.2
  2721. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Updated Russian translation. Thanks to the translators.
  2723. * po/ru.po
  2724. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Added the description of --use-head option to man page.
  2726. * doc/aria2c.1.txt
  2727. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Bump up version number to 1.1.2
  2729. * configure.ac
  2730. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Added --use-head option to toggle whether HEAD method should be
  2732. used in the first HTTP request. By default aria2 uses HEAD method
  2733. as the first request. When the server doesn't recognize HEAD, then
  2734. give aria2 --use-head=false to force aria2 to use GET method
  2735. instead.
  2736. * src/OptionHandlerFactory.cc
  2737. * src/RequestGroupMan.cc
  2738. * src/option_processing.cc
  2739. * src/prefs.cc
  2740. * src/prefs.h
  2741. * src/usage_text.h
  2742. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2744. message is received before CHOKE message. The old implementation
  2745. doen't clear the use-bit of the piece when recieved REJECT
  2746. message.
  2747. * src/DefaultBtMessageDispatcher.cc
  2748. * test/DefaultBtMessageDispatcherTest.cc
  2749. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. * Release 1.1.1
  2751. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Bump up version number to 1.1.1.
  2753. * configure.ac
  2754. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2756. is printed repeatedly.
  2757. * src/ConsoleStatCalc.cc
  2758. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. * Release 1.1.0
  2760. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Added ifdef clause for conditional compilation.
  2762. * src/main.cc
  2763. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2765. translations. Thanks to all translators.
  2766. * po/ja.po
  2767. * po/ru.po
  2768. * po/uk.po
  2769. * po/zh_CN.po
  2770. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Added the preceding ">>> " before the message "Printing the
  2772. contents of file..." to make the output more readable.
  2773. * src/main.cc
  2774. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Added try-catch block in the loop in showFiles() to continue the
  2776. operation even if the exception occurred in one file.
  2777. * src/main.cc (showFiles)
  2778. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Made messages in showFiles() translatable.
  2780. * po/aria2.pot
  2781. * src/main.cc
  2782. * src/message.h
  2783. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Print the contents of Torrent/Metalink files are printed without
  2785. -T/-M options.
  2786. * src/main.cc
  2787. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Escaped '--' with '\--'
  2789. * README
  2790. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Updated "How to build" section in README. Mentioned about
  2792. --with-ca-bundle compile option.
  2793. * README
  2794. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Bump up version number to 1.1.0.
  2796. * configure.ac
  2797. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Added a note for --dht-listen-port option.
  2799. * doc/aria2c.1.txt
  2800. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2801. Update doc for --realtime-chunk-checksum option.
  2802. * doc/aria2c.1.txt
  2803. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Update doc for --realtime-chunk-checksum option.
  2805. * src/usage_text.h
  2806. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Updated French, Japanese, Russian and Ukrainian translations.
  2808. Thanks to all translators.
  2809. * po/fr.po
  2810. * po/ja.po
  2811. * po/ru.po
  2812. * po/uk.po
  2813. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Renamed aria2c.pot to aria2.pot
  2815. * po/aria2.pot
  2816. * po/aria2c.pot: Removed.
  2817. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Removed MetaEntry.h
  2819. * src/Makefile.am
  2820. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Rename file by appending digits if a local file exists and its
  2822. file size is larger than that of remote file with --continue
  2823. option. The old implementation just throws exception in such case.
  2824. * src/RequestGroup.cc
  2825. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2826. Fixed the bug that download progress summary is not printed in the
  2827. interval specified by the option.
  2828. * src/ConsoleStatCalc.cc
  2829. * src/ConsoleStatCalc.h
  2830. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Fixed compiler warning
  2832. * src/Cookie.cc
  2833. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Fixed the cookie implementation based on RFC2965.
  2835. Now if a value in domain field is not started with dot, then
  2836. prepend dot. That means a cookie with domain=sf.net is sent to
  2837. wiki.sf.net.
  2838. * src/Cookie.cc
  2839. * test/CookieParserTest.cc
  2840. * test/CookieStorageTest.cc
  2841. * test/CookieTest.cc
  2842. * test/NsCookieParserTest.cc
  2843. * test/Sqlite3MozCookieParserTest.cc
  2844. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2846. is enabled and the server doesn't support keep-alive.
  2847. * src/AbstractCommand.cc
  2848. * src/DownloadCommand.cc
  2849. * src/HttpDownloadCommand.cc
  2850. * src/HttpDownloadCommand.h
  2851. * src/HttpResponseCommand.cc
  2852. * src/Request.cc
  2853. * src/Request.h
  2854. * test/RequestTest.cc
  2855. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Removed Dictionary/List/Data and its related classes.
  2857. * src/BencodeVisitor.cc: Removed.
  2858. * src/BencodeVisitor.h: Removed.
  2859. * src/Data.cc: Removed.
  2860. * src/Data.h: Removed.
  2861. * src/Dictionary.cc: Removed.
  2862. * src/Dictionary.h: Removed.
  2863. * src/List.cc: Removed.
  2864. * src/List.h: Removed.
  2865. * src/Makefile.am
  2866. * src/MetaEntry.h: Removed.
  2867. * src/MetaEntryVisitor.h: Removed.
  2868. * src/MetaFileUtil.cc: Removed.
  2869. * src/MetaFileUtil.h: Removed.
  2870. * test/BencodeVisitorTest.cc: Removed.
  2871. * test/DataTest.cc: Removed.
  2872. * test/DictionaryTest.cc: Removed.
  2873. * test/ListTest.cc: Removed.
  2874. * test/Makefile.am
  2875. * test/MetaFileUtilTest.cc: Removed.
  2876. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Removed include of MetaEntry.h
  2878. * test/DHTMessageTrackerEntryTest.cc
  2879. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Use BDE instead of Dictionary/List/Data.
  2881. * src/AnnounceList.cc
  2882. * src/AnnounceList.h
  2883. * test/AnnounceListTest.cc
  2884. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2885. Use BDE instead of Dictionary/List/Data.
  2886. * src/DHTAbstractMessage.cc
  2887. * src/DHTAbstractMessage.h
  2888. * src/DHTAnnouncePeerMessage.cc
  2889. * src/DHTAnnouncePeerMessage.h
  2890. * src/DHTAnnouncePeerReplyMessage.cc
  2891. * src/DHTAnnouncePeerReplyMessage.h
  2892. * src/DHTFindNodeMessage.cc
  2893. * src/DHTFindNodeMessage.h
  2894. * src/DHTFindNodeReplyMessage.cc
  2895. * src/DHTFindNodeReplyMessage.h
  2896. * src/DHTGetPeersMessage.cc
  2897. * src/DHTGetPeersMessage.h
  2898. * src/DHTGetPeersReplyMessage.cc
  2899. * src/DHTGetPeersReplyMessage.h
  2900. * src/DHTMessageFactory.h
  2901. * src/DHTMessageFactoryImpl.cc
  2902. * src/DHTMessageFactoryImpl.h
  2903. * src/DHTMessageReceiver.cc
  2904. * src/DHTMessageTracker.cc
  2905. * src/DHTMessageTracker.h
  2906. * src/DHTPingMessage.cc
  2907. * src/DHTPingMessage.h
  2908. * src/DHTPingReplyMessage.cc
  2909. * src/DHTPingReplyMessage.h
  2910. * src/DHTQueryMessage.cc
  2911. * src/DHTQueryMessage.h
  2912. * src/DHTResponseMessage.cc
  2913. * src/DHTResponseMessage.h
  2914. * test/DHTAnnouncePeerMessageTest.cc
  2915. * test/DHTAnnouncePeerReplyMessageTest.cc
  2916. * test/DHTFindNodeMessageTest.cc
  2917. * test/DHTFindNodeReplyMessageTest.cc
  2918. * test/DHTGetPeersMessageTest.cc
  2919. * test/DHTGetPeersReplyMessageTest.cc
  2920. * test/DHTMessageFactoryImplTest.cc
  2921. * test/DHTMessageTrackerTest.cc
  2922. * test/DHTPingMessageTest.cc
  2923. * test/DHTPingReplyMessageTest.cc
  2924. * test/MockDHTMessageFactory.h
  2925. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Added tests the case where length < 0 is specified.
  2927. * test/BencodeTest.cc
  2928. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Fixed memory leak in decoderawstring()
  2930. * src/bencode.cc
  2931. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2932. Added missing #ifdef guard. Added uc() function for String and
  2933. removeKey() for Dict.
  2934. * src/bencode.cc
  2935. * src/bencode.h
  2936. * test/BencodeTest.cc
  2937. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Use BDE instead of Dictionary/List/Data.
  2939. * src/HandshakeExtensionMessage.cc
  2940. * src/HandshakeExtensionMessage.h
  2941. * test/HandshakeExtensionMessageTest.cc
  2942. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Added --max-overall-upload-limit option. This option limits the
  2944. overall upload speed. Stated in help message that the existing
  2945. --max-upload-limit option limits the upload speed per each
  2946. torrent. Man page is also updated.
  2947. * doc/aria2c.1.txt
  2948. * src/DefaultBtMessageDispatcher.cc
  2949. * src/DefaultBtMessageDispatcher.h
  2950. * src/OptionHandlerFactory.cc
  2951. * src/PeerInteractionCommand.cc
  2952. * src/option_processing.cc
  2953. * src/prefs.cc
  2954. * src/prefs.h
  2955. * src/usage_text.h
  2956. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. Use BDE instead of Dictionary/List/Data classes.
  2958. * src/CompactPeerListProcessor.cc
  2959. * src/CompactPeerListProcessor.h
  2960. * src/DefaultBtAnnounce.cc
  2961. * src/DefaultBtContext.cc
  2962. * src/DefaultBtContext.h
  2963. * src/DefaultPeerListProcessor.cc
  2964. * src/DefaultPeerListProcessor.h
  2965. * src/DelegatingPeerListProcessor.cc
  2966. * src/DelegatingPeerListProcessor.h
  2967. * src/PeerListProcessor.h
  2968. * src/UTPexExtensionMessage.cc
  2969. * src/Util.h
  2970. * src/message.h
  2971. * test/DefaultBtContextTest.cc
  2972. * test/DefaultPeerListProcessorTest.cc
  2973. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Added bencode helper functions and BDE class.
  2975. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2976. * src/Makefile.am
  2977. * src/bencode.cc
  2978. * src/bencode.h
  2979. * test/BencodeTest.cc
  2980. * test/Makefile.am
  2981. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2982. Fixed the bug that bad URI is sent to the tracker when the announe
  2983. URI in torrent file includes query.
  2984. * src/DefaultBtAnnounce.cc
  2985. * test/DefaultBtAnnounceTest.cc
  2986. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2987. Added Option::blank().
  2988. Use !Option::blank(name) instead of Option::defined(name) for
  2989. the options that take filename.
  2990. * src/MultiUrlRequestInfo.cc
  2991. * src/Option.cc
  2992. * src/Option.h
  2993. * src/main.cc
  2994. * src/option_processing.cc
  2995. * test/OptionTest.cc
  2996. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Documented the default value of --check-certificate option in man
  2998. page.
  2999. * doc/aria2c.1.txt
  3000. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Enabled --check-certificate by default. Added compile
  3002. time(configure) option --with-ca-bundle to specify CA bundle.
  3003. Warn if --check-certificate=true and --ca-certificate is not
  3004. specified or loading CA certificate is failed.
  3005. * configure.ac
  3006. * src/MultiUrlRequestInfo.cc
  3007. * src/OptionHandlerFactory.cc
  3008. * src/message.h
  3009. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. Mentioned https tag in help option.
  3011. * doc/aria2c.1.txt
  3012. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3013. Added `https' tag to help option category. Added https tag to
  3014. --ca-certificate, --certificate, --check-certificate and
  3015. --private-key option.
  3016. * src/OptionHandlerFactory.cc
  3017. * src/help_tags.h
  3018. * src/option_processing.cc
  3019. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Changed the package name from `aria2c' to `aria2' in order to fix
  3021. the packaging issue in Debian and Fedora. The name of the
  3022. executable is not changed.
  3023. * configure.ac
  3024. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Fixed typos
  3026. * src/usage_text.h
  3027. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Fixed typos and updated doc.
  3029. * README
  3030. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3031. Fixed typos
  3032. * doc/aria2c.1.txt
  3033. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3034. Fixed typos
  3035. * src/usage_text.h
  3036. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3037. Print a message when no files to download.
  3038. * src/download_helper.cc
  3039. * src/main.cc
  3040. * src/message.h
  3041. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. RFC3986 complied Percent-Encoding(urlencode).
  3043. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3044. ones.
  3045. * src/Request.cc
  3046. * src/Util.cc
  3047. * src/Util.h
  3048. * test/BtHandshakeMessageTest.cc
  3049. * test/DefaultBtAnnounceTest.cc
  3050. * test/DefaultBtContextTest.cc
  3051. * test/RequestTest.cc
  3052. * test/UtilTest.cc
  3053. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Fixed the bug that prevents aria2 from downloading 0-length files
  3055. via HTTP/FTP.
  3056. * src/DefaultBtContext.cc
  3057. * src/DefaultBtContext.h
  3058. * src/DownloadContext.h
  3059. * src/FtpNegotiationCommand.cc
  3060. * src/HttpResponseCommand.cc
  3061. * src/HttpResponseCommand.h
  3062. * src/RequestGroup.cc
  3063. * src/SingleFileDownloadContext.cc
  3064. * src/SingleFileDownloadContext.h
  3065. * test/BtPostDownloadHandlerTest.cc
  3066. * test/MetalinkPostDownloadHandlerTest.cc
  3067. * test/MockBtContext.h
  3068. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3070. * src/option_processing.cc
  3071. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3072. Applied aria2-1.0.1-mingw.patch.
  3073. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3074. mingw.
  3075. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3076. * src/SocketCore.cc
  3077. * src/a2netcompat.h
  3078. * test/SocketCoreTest.cc
  3079. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. * Release 1.0.1
  3081. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Updated Ukrainian and Norwegian Nynorsk translations.
  3083. Thanks to all translators.
  3084. * po/nn.po
  3085. * po/uk.po
  3086. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Don't show download result when -S option is used.
  3088. * src/main.cc
  3089. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3090. Bump up version number to 1.0.1
  3091. * configure.ac
  3092. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Closed files after the test cases in MultiDiskWriterTest::
  3094. testResetDiskWriterEntries(). This will fix the unit test error
  3095. in mingw32 build.
  3096. * test/MultiDiskWriterTest.cc
  3097. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Use HEAD method to get file size from HTTP server for segmented
  3099. downloading.
  3100. The request to the BitTorrent Tracker always uses GET method because
  3101. the response of the tracker is small and it doesn't need segmented
  3102. download.
  3103. * src/FtpNegotiationCommand.cc
  3104. * src/HttpRequest.cc
  3105. * src/HttpResponseCommand.cc
  3106. * src/HttpSkipResponseCommand.cc
  3107. * src/RequestGroup.cc
  3108. * src/RequestGroup.h
  3109. * src/TrackerWatcherCommand.cc
  3110. * test/HttpRequestTest.cc
  3111. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3112. Fixed the bug that causes floating exception when -T option is used and
  3113. no URIs are given.
  3114. * src/download_helper.cc
  3115. * test/DownloadHelperTest.cc
  3116. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3117. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3118. errors in MinGW:
  3119. Closed file after saving server stats (RequestGroupMan.cc)
  3120. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3121. Ignored case & handled 2-digit years (strptime.c)
  3122. Added missing suseconds_t definition (a2time.h)
  3123. Fixed socket CLOSE() define (SocketCore.cc)
  3124. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3125. Changed utime() test values from x000 to x00000 as MinGW failed on
  3126. values less than timezone offset from Unix epoch
  3127. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3128. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3129. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3130. handle negative dates (CookieParserTest.cc)
  3131. * src/a2time.h
  3132. * src/FtpConnection.cc
  3133. * src/RequestGroupMan.cc
  3134. * src/SocketCore.cc
  3135. * src/strptime.c
  3136. * test/CookieParserTest.cc
  3137. * test/CopyDiskAdaptorTest.cc
  3138. * test/FileTest.cc
  3139. * test/FtpConnectionTest.cc
  3140. * test/MultiDiskAdaptorTest.cc
  3141. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3142. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3143. * doc/aria2c.1.txt
  3144. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. * Release 1.0.0
  3146. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Added '~' to reserved characters.
  3148. * src/Util.cc
  3149. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Do not urlencode Request::url in setUrl() because we want unmodified
  3151. URL using Request::getUrl()
  3152. * src/Request.cc
  3153. * src/Request.h
  3154. * test/RequestTest.cc
  3155. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3157. Thanks to all translators.
  3158. * po/bg.po
  3159. * po/fr.po
  3160. * po/ja.po
  3161. * po/ru.po
  3162. * po/uk.po
  3163. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Bump up version number to 1.0.0
  3165. * configure.ac
  3166. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Added nosqlite3 build to build_test.sh.
  3168. Renamed noxml as expat.
  3169. * build_test.sh
  3170. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. Updated INPUT FILE section.
  3172. * doc/aria2c.1.txt
  3173. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3175. on big endian systems because test .aria2 files are made for little
  3176. endian systems.
  3177. * test/DefaultBtProgressInfoFileTest.cc
  3178. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Dropped ares support.
  3180. * README
  3181. * configure.ac
  3182. * m4/libares.m4: Removed.
  3183. * src/AsyncNameResolver.cc
  3184. * src/Makefile.am
  3185. * test/Makefile.am
  3186. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3188. Removed const qualifier from DiskWriter::size().
  3189. * src/AbstractDiskWriter.cc
  3190. * src/AbstractDiskWriter.h
  3191. * src/ByteArrayDiskWriter.cc
  3192. * src/ByteArrayDiskWriter.h
  3193. * src/DiskWriter.h
  3194. * test/ByteArrayDiskWriterTest.cc
  3195. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Fixed the bug that causes segmentation fault/bus error during executing
  3197. choking algorithm while seeding. This is caused by improper
  3198. implementation of compare function which returns inconsistent results
  3199. depending on the timing of last unchoke.
  3200. * src/BtSeederStateChoke.cc
  3201. * src/BtSeederStateChoke.h
  3202. * src/DefaultPeerStorage.cc
  3203. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. Removed TODO
  3205. * TODO
  3206. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Added a section that explains how to pass argument to options that
  3208. takes optional arguments with its short form.
  3209. * doc/aria2c.1.txt
  3210. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Added -u for the short form of --max-upload-limit option.
  3212. * doc/aria2c.1.txt
  3213. * src/option_processing.cc
  3214. * src/usage_text.h
  3215. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3216. Added -V for the short form of --check-integrity option.
  3217. Now the argument of --check-integrity option is optional:
  3218. if it is omitted, it is evaluated as true.
  3219. * doc/aria2c.1.txt
  3220. * src/option_processing.cc
  3221. * src/usage_text.h
  3222. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3223. Made the default value of --ftp-pasv option set to true and it can take
  3224. true/false values.
  3225. * src/OptionHandlerFactory.cc
  3226. * src/option_processing.cc
  3227. * src/usage_text.h
  3228. * doc/aria2c.1.txt
  3229. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. Given custom random number generator to std::random_shuffle.
  3231. * src/AnnounceList.cc
  3232. * src/BtLeecherStateChoke.cc
  3233. * src/BtSeederStateChoke.cc
  3234. * src/DefaultBtRequestFactory.cc
  3235. * src/MetalinkEntry.cc
  3236. * src/RarestPieceSelector.cc
  3237. * src/SimpleRandomizer.cc
  3238. * src/SimpleRandomizer.h
  3239. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Now the default value of --enable-direct-io is true.
  3241. * src/OptionHandlerFactory.cc
  3242. * doc/aria2c.1.txt
  3243. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Erase peer before executing onReturningPeer and onErasingPeer
  3245. because choking algorithm called from onReturningPeer doesn't
  3246. like erasing peer in the active peer list.
  3247. * src/DefaultPeerStorage.cc
  3248. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3249. Instead of creating special filename in createDownloadResult() if
  3250. inMemoryDownload() is true, now it is done in getFilePath().
  3251. * src/RequestGroup.cc
  3252. * test/RequestGroupTest.cc
  3253. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3255. processed in memory. This is the fix for previous comment out.
  3256. * src/MemoryBufferPreDownloadHandler.cc
  3257. * src/RequestGroup.cc
  3258. * src/RequestGroup.h
  3259. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Commented out the code which sets virtual directory path "[MEMORY]"
  3261. propagate directory to store to following RequestGroup.
  3262. * src/MemoryBufferPreDownloadHandler.cc
  3263. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Bump up version number to 1.0.0b
  3265. * configure.ac
  3266. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Added input_uris.txt to EXTRA_DIST
  3268. * test/Makefile.am
  3269. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3270. Removed PeerObject.h from Makefile.am
  3271. * src/Makefile.am
  3272. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3273. Avoid slow seeding
  3274. * src/PeerInteractionCommand.cc
  3275. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Updated usage for -i option.
  3277. * src/usage_text.h (TEXT_INPUT_FILE)
  3278. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Added INPUT FILE section to man page.
  3280. Escaped fake URLs.
  3281. * doc/aria2c.1.txt
  3282. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Fixed wrong note position for -o option.
  3284. * doc/aria2c.1.txt
  3285. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Fixed compile error without SSL/XML library.
  3287. * src/DefaultBtProgressInfoFile.cc
  3288. * src/DefaultBtProgressInfoFile.h
  3289. * src/FileMetalinkParserState.cc
  3290. * src/RequestGroup.h
  3291. * src/SocketCore.cc
  3292. * src/SocketCore.h
  3293. * src/VerificationMetalinkParserState.cc
  3294. * src/download_helper.h
  3295. * src/main.cc
  3296. * test/DefaultBtProgressInfoFileTest.cc
  3297. * test/DownloadHelperTest.cc
  3298. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Rewritten URI handling functions. They are now provided as a testable
  3300. functions.
  3301. * src/Makefile.am
  3302. * src/RequestGroup.cc
  3303. * src/RequestGroup.h
  3304. * src/download_helper.cc
  3305. * src/download_helper.h
  3306. * src/main.cc
  3307. * test/DownloadHelperTest.cc
  3308. * test/Makefile.am
  3309. * test/input_uris.txt
  3310. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Quickly terminate commands when ctrl-c is pressed.
  3312. * src/DownloadEngine.cc
  3313. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Quickly terminate idle commands when download finished.
  3315. * src/AbstractCommand.cc
  3316. * src/DownloadCommand.cc
  3317. * src/DownloadEngine.cc
  3318. * src/DownloadEngine.h
  3319. * src/SleepCommand.cc
  3320. * src/SleepCommand.h
  3321. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. Added the ability to specify output filename and directory in input
  3323. file.
  3324. Additional parameters are added in the following line of URIs
  3325. with proceeding white space(s), 1 parameter in 1 line.
  3326. The parameter names are the same with the command-line option name
  3327. without proceeding "--". Not all the options are available here:
  3328. at the moment, 'dir' and 'out' options are avialable.
  3329. Please note that out option has no effect against Metalink or BitTorrent
  3330. downloads.
  3331. Example input file:
  3332. http://host/foo-1.1.tar.bz2
  3333. out=foo.tar.bz2
  3334. dir=/tmp/downloads
  3335. http://host/thundermonkey-2.0.tar.bz2
  3336. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3337. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3338. thundermonkey-2.0.tar.bz2 is saved as
  3339. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3340. * src/BtPostDownloadHandler.cc
  3341. * src/Metalink2RequestGroup.cc
  3342. * src/Metalink2RequestGroup.h
  3343. * src/MetalinkPostDownloadHandler.cc
  3344. * src/UriListParser.cc
  3345. * src/UriListParser.h
  3346. * src/main.cc
  3347. * test/Metalink2RequestGroupTest.cc
  3348. * test/UriListParserTest.cc
  3349. * test/filelist1.txt
  3350. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Fixed error when SSL library is not found.
  3352. * configure.ac
  3353. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3354. Cross referenced among -s, -C and -j options.
  3355. Updated usage of -C and -s options.
  3356. * src/usage_text.h
  3357. * doc/aria2c.1.txt
  3358. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. Fixed bad cast in 32bit platforms.
  3360. * test/DefaultPieceStorageTest.cc
  3361. (DefaultPieceStorageTest::testGetCompletedLength)
  3362. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Fixed unit test fails on 32bit platforms.
  3364. * test/CookieParserTest.cc
  3365. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. Show an average download speed in Download results.
  3367. * src/BtFileAllocationEntry.cc
  3368. * src/DefaultPieceStorage.cc
  3369. * src/DownloadContext.cc
  3370. * src/DownloadContext.h
  3371. * src/DownloadResult.h
  3372. * src/RequestGroup.cc
  3373. * src/RequestGroupMan.cc
  3374. * src/StreamFileAllocationEntry.cc
  3375. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3376. Fixed the bug that metalink file is not processed if Content-Type
  3377. field has a paramter.
  3378. * src/HttpResponse.cc
  3379. * src/HttpResponse.h
  3380. * test/HttpResponseTest.cc
  3381. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3382. Removed unused code.
  3383. * src/DefaultBtAnnounce.cc
  3384. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3386. the value larger than DefaultPieceStorage::getTotalLength() when
  3387. in flight pieces are involved.
  3388. * src/DefaultPieceStorage.cc
  3389. * test/DefaultPieceStorageTest.cc
  3390. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Bump up version number to 1.0.0a.
  3392. * configure.ac
  3393. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Updated configure.ac
  3395. * configure.ac
  3396. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Added usege for proxy.
  3398. * doc/aria2c.1.txt
  3399. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3400. Added usage for --ca-certificate, --certificate, --private-key and
  3401. --check-certificate options.
  3402. * doc/aria2c.1.txt
  3403. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Updated man page
  3405. * doc/aria2c.1.txt
  3406. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Added --no-proxy option. It receives comman separated hostname or
  3408. domains to which proxy should not be used.
  3409. aria2 honors the environment variable no_proxy to override no-proxy
  3410. value in configuration file. The user can override the environment
  3411. variable no_proxy with --no-proxy command-line option.
  3412. * src/AbstractCommand.cc
  3413. * src/OptionHandlerFactory.cc
  3414. * src/option_processing.cc
  3415. * src/prefs.cc
  3416. * src/prefs.h
  3417. * src/usage_text.h
  3418. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3420. The CA certificates are specified in --ca-certificate option.
  3421. By default, the verification is disabled. Use --check-certificate
  3422. option to enable it.
  3423. * src/HttpRequestCommand.cc
  3424. * src/LibgnutlsTLSContext.cc
  3425. * src/LibgnutlsTLSContext.h
  3426. * src/LibsslTLSContext.cc
  3427. * src/LibsslTLSContext.h
  3428. * src/MultiUrlRequestInfo.cc
  3429. * src/OptionHandlerFactory.cc
  3430. * src/SocketCore.cc
  3431. * src/SocketCore.h
  3432. * src/a2functional.h
  3433. * src/message.h
  3434. * src/option_processing.cc
  3435. * src/prefs.cc
  3436. * src/prefs.h
  3437. * src/usage_text.h
  3438. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Added client certificate authentication for SSL/TLS.
  3440. Currently a private key must be decrypted for use with aria2.
  3441. If a user accidentally gives encrypted file to aria2 then following
  3442. thing happens:
  3443. If encrypted private key is given to aria2, it behaves differently
  3444. depending on the ssl library it uses. If aria2 built with openssl then
  3445. openssl prompts the user for password. If aria2 build with gnutls then
  3446. aria2 exists with error at start up.
  3447. * src/DownloadEngineFactory.cc
  3448. * src/MultiUrlRequestInfo.cc
  3449. * src/OptionHandlerFactory.cc
  3450. * src/option_processing.cc
  3451. * src/prefs.cc
  3452. * src/prefs.h
  3453. * src/usage_text.h
  3454. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Introduced TLSContext that holds TLS related data that can be shared
  3456. with multiple SSL connections.
  3457. * src/DownloadEngineFactory.cc
  3458. * src/LibgnutlsTLSContext.cc
  3459. * src/LibgnutlsTLSContext.h
  3460. * src/LibsslTLSContext.cc
  3461. * src/LibsslTLSContext.h
  3462. * src/Makefile.am
  3463. * src/SocketCore.cc
  3464. * src/SocketCore.h
  3465. * src/TLSContext.h
  3466. * src/message.h
  3467. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3468. Fixed the bug that the DiskWriter of the first FileEntry whose
  3469. `needsFileAllocation' property is false is not created
  3470. even if it shares a piece with next FileEntry which `requested' property
  3471. is true.
  3472. Fixed the bug that zero-length file is not created if pre file
  3473. allocation is not done.
  3474. * src/MultiDiskAdaptor.cc
  3475. * src/MultiDiskAdaptor.h
  3476. * test/MultiDiskAdaptorTest.cc
  3477. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Added the ability to pool proxy connection.
  3479. The conneciton in FTP with proxy-method=GET is not pooled.
  3480. Proxy-Connection header will not be sent when sending CONNECT method.
  3481. * src/DownloadEngine.cc
  3482. * src/DownloadEngine.h
  3483. * src/FtpFinishDownloadCommand.cc
  3484. * src/FtpInitiateConnectionCommand.cc
  3485. * src/FtpNegotiationCommand.cc
  3486. * src/HttpDownloadCommand.cc
  3487. * src/HttpInitiateConnectionCommand.cc
  3488. * src/HttpRequest.cc
  3489. * src/HttpRequest.h
  3490. * src/HttpResponse.cc
  3491. * src/HttpSkipResponseCommand.cc
  3492. * test/HttpRequestTest.cc
  3493. * test/HttpResponseTest.cc
  3494. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3495. Handle date before epoch.
  3496. To create *bad* Time object, call Time::null().
  3497. * src/CookieParser.cc
  3498. * src/FtpConnection.cc
  3499. * src/FtpConnection.h
  3500. * src/FtpNegotiationCommand.cc
  3501. * src/RequestGroup.cc
  3502. * src/TimeA2.cc
  3503. * src/TimeA2.h
  3504. * test/CookieParserTest.cc
  3505. * test/FtpConnectionTest.cc
  3506. * test/TimeTest.cc
  3507. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3508. Added support for following envrionment variables: http_proxy,
  3509. https_proxy, ftp_proxy and all_proxy.
  3510. Each variable is equivalent to the aria2 option whose name is the
  3511. variable name with '_' replaced with '-'.
  3512. They overrides options specified in aria2.conf file.
  3513. The envrionment variables can be overrode using command-line option.
  3514. * src/option_processing.cc
  3515. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3516. Renamed --http-proxy-method as --proxy-method.
  3517. * src/AbstractCommand.cc
  3518. * src/FtpInitiateConnectionCommand.cc
  3519. * src/HttpInitiateConnectionCommand.cc
  3520. * src/OptionHandlerFactory.cc
  3521. * src/option_processing.cc
  3522. * src/prefs.cc
  3523. * src/prefs.h
  3524. * src/usage_text.h
  3525. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Deprecated --http-proxy-user and --http-proxy-passwd options.
  3527. Added --https-proxy, --ftp-proxy and --all-proxy options.
  3528. Above 3 options and --http-proxy option can handle proxy in URL format
  3529. like: http://user:passwd@host:port.
  3530. If a proxy requires user/password, they must be specified in a URL.
  3531. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  3532. instead.
  3533. * src/AbstractCommand.cc
  3534. * src/AbstractCommand.h
  3535. * src/AbstractProxyRequestCommand.cc
  3536. * src/AbstractProxyRequestCommand.h
  3537. * src/AuthConfigFactory.cc
  3538. * src/AuthConfigFactory.h
  3539. * src/FtpFinishDownloadCommand.cc
  3540. * src/FtpInitiateConnectionCommand.cc
  3541. * src/FtpInitiateConnectionCommand.h
  3542. * src/FtpNegotiationCommand.cc
  3543. * src/FtpTunnelRequestCommand.cc
  3544. * src/FtpTunnelRequestCommand.h
  3545. * src/HttpDownloadCommand.cc
  3546. * src/HttpInitiateConnectionCommand.cc
  3547. * src/HttpInitiateConnectionCommand.h
  3548. * src/HttpProxyRequestCommand.cc
  3549. * src/HttpProxyRequestCommand.h
  3550. * src/HttpRequest.cc
  3551. * src/HttpRequest.h
  3552. * src/HttpRequestCommand.cc
  3553. * src/HttpRequestCommand.h
  3554. * src/HttpSkipResponseCommand.cc
  3555. * src/InitiateConnectionCommand.cc
  3556. * src/InitiateConnectionCommand.h
  3557. * src/OptionHandlerFactory.cc
  3558. * src/OptionHandlerImpl.h
  3559. * src/Request.cc
  3560. * src/option_processing.cc
  3561. * src/prefs.cc
  3562. * src/prefs.h
  3563. * src/usage_text.h
  3564. * test/AuthConfigFactoryTest.cc
  3565. * test/HttpRequestTest.cc
  3566. * test/OptionHandlerTest.cc
  3567. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Execute choking algorithm when unchoked and interested peer is
  3569. disconected.
  3570. * src/DefaultPeerStorage.cc
  3571. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3572. Added testcase for BtNotInterestedMessage from unchoked peer.
  3573. * test/BtNotInterestedMessageTest.cc
  3574. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Execute choking algorithm when BtInterestedMessage arrives from
  3576. unchoked peer.
  3577. * src/BtInterestedMessage.cc
  3578. * src/BtInterestedMessage.h
  3579. * src/DefaultBtMessageFactory.cc
  3580. * test/BtInterestedMessageTest.cc
  3581. * test/MockPeerStorage.h
  3582. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3583. AuthConfigFactory is now part of DownloadEngine.
  3584. * src/AbstractProxyRequestCommand.cc
  3585. * src/AuthConfigFactory.h
  3586. * src/DownloadEngine.cc
  3587. * src/DownloadEngine.h
  3588. * src/FtpConnection.cc
  3589. * src/FtpConnection.h
  3590. * src/FtpNegotiationCommand.cc
  3591. * src/HttpConnection.cc
  3592. * src/HttpRequest.cc
  3593. * src/HttpRequest.h
  3594. * src/HttpRequestCommand.cc
  3595. * src/HttpResponse.cc
  3596. * src/HttpResponseCommand.cc
  3597. * src/HttpSkipResponseCommand.cc
  3598. * src/MultiUrlRequestInfo.cc
  3599. * src/main.cc
  3600. * test/FtpConnectionTest.cc
  3601. * test/HttpRequestTest.cc
  3602. * test/HttpResponseTest.cc
  3603. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3604. Corrected catched exception type.
  3605. * src/ServerStatMan.cc
  3606. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. DNSCache is now part of DownloadEngine.
  3608. * src/DNSCache.h
  3609. * src/DownloadEngine.cc
  3610. * src/DownloadEngine.h
  3611. * src/InitiateConnectionCommand.cc
  3612. * src/MultiUrlRequestInfo.cc
  3613. * test/Makefile.am
  3614. * test/Makefile.in
  3615. * test/SimpleDNSCacheTest.cc
  3616. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3617. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3618. DownloadEngine.
  3619. * src/ActivePeerConnectionCommand.cc
  3620. * src/BtSetup.cc
  3621. * src/CUIDCounter.h
  3622. * src/DHTSetup.cc
  3623. * src/DownloadCommand.cc
  3624. * src/DownloadEngine.cc
  3625. * src/DownloadEngine.h
  3626. * src/DownloadEngineFactory.cc
  3627. * src/FileAllocationDispatcherCommand.cc
  3628. * src/InitiatorMSEHandshakeCommand.cc
  3629. * src/PeerInitiateConnectionCommand.cc
  3630. * src/PeerInteractionCommand.cc
  3631. * src/PeerListenCommand.cc
  3632. * src/RequestGroup.cc
  3633. * src/StreamFileAllocationEntry.cc
  3634. * src/TrackerWatcherCommand.cc
  3635. * src/main.cc
  3636. * test/RequestGroupManTest.cc
  3637. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3638. Implemented commented code in BtSeederStateChoke
  3639. * src/BtSeederStateChoke.cc
  3640. * src/Peer.cc
  3641. * src/Peer.h
  3642. * src/PeerInteractionCommand.cc
  3643. * src/PeerSessionResource.cc
  3644. * src/PeerSessionResource.h
  3645. * test/MockBtMessageDispatcher.h
  3646. * test/PeerSessionResourceTest.cc
  3647. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3648. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3649. its object.
  3650. * src/AbstractBtMessage.cc
  3651. * src/ActivePeerConnectionCommand.cc
  3652. * src/ActivePeerConnectionCommand.h
  3653. * src/BtContextAwareCommand.cc
  3654. * src/BtContextAwareCommand.h
  3655. * src/BtExtendedMessage.cc
  3656. * src/BtExtendedMessage.h
  3657. * src/BtInterestedMessage.cc
  3658. * src/BtInterestedMessage.h
  3659. * src/BtNotInterestedMessage.cc
  3660. * src/BtNotInterestedMessage.h
  3661. * src/BtRegistry.cc
  3662. * src/BtRegistry.h
  3663. * src/BtSeederStateChoke.cc
  3664. * src/BtSetup.cc
  3665. * src/DHTGetPeersCommand.cc
  3666. * src/DHTGetPeersCommand.h
  3667. * src/DHTPeerAnnounceEntry.cc
  3668. * src/DHTPeerAnnounceEntry.h
  3669. * src/DHTPeerAnnounceStorage.cc
  3670. * src/DHTPeerAnnounceStorage.h
  3671. * src/DHTPeerLookupTask.cc
  3672. * src/DHTPeerLookupTask.h
  3673. * src/DHTSetup.cc
  3674. * src/DHTSetup.h
  3675. * src/DHTTaskFactory.h
  3676. * src/DHTTaskFactoryImpl.cc
  3677. * src/DHTTaskFactoryImpl.h
  3678. * src/DefaultBtAnnounce.cc
  3679. * src/DefaultBtInteractive.cc
  3680. * src/DefaultBtInteractive.h
  3681. * src/DefaultBtMessageDispatcher.cc
  3682. * src/DefaultBtMessageDispatcher.h
  3683. * src/DefaultBtMessageFactory.cc
  3684. * src/DefaultBtMessageFactory.h
  3685. * src/DefaultBtMessageReceiver.cc
  3686. * src/DefaultBtProgressInfoFile.cc
  3687. * src/DefaultBtProgressInfoFile.h
  3688. * src/DefaultBtRequestFactory.cc
  3689. * src/DefaultBtRequestFactory.h
  3690. * src/DefaultExtensionMessageFactory.cc
  3691. * src/DefaultExtensionMessageFactory.h
  3692. * src/DefaultPeerStorage.cc
  3693. * src/DefaultPeerStorage.h
  3694. * src/DownloadEngine.cc
  3695. * src/DownloadEngine.h
  3696. * src/InitiatorMSEHandshakeCommand.cc
  3697. * src/InitiatorMSEHandshakeCommand.h
  3698. * src/MSEHandshake.cc
  3699. * src/MSEHandshake.h
  3700. * src/Makefile.am
  3701. * src/Makefile.in
  3702. * src/PeerChokeCommand.cc
  3703. * src/PeerChokeCommand.h
  3704. * src/PeerInitiateConnectionCommand.cc
  3705. * src/PeerInitiateConnectionCommand.h
  3706. * src/PeerInteractionCommand.cc
  3707. * src/PeerInteractionCommand.h
  3708. * src/PeerObject.h
  3709. * src/PeerReceiveHandshakeCommand.cc
  3710. * src/PeerReceiveHandshakeCommand.h
  3711. * src/ReceiverMSEHandshakeCommand.cc
  3712. * src/RequestGroup.cc
  3713. * src/RequestGroup.h
  3714. * src/RequestGroupMan.cc
  3715. * src/RequestGroupMan.h
  3716. * src/SeedCheckCommand.cc
  3717. * src/SeedCheckCommand.h
  3718. * src/ShareRatioSeedCriteria.h
  3719. * src/SimpleBtMessage.cc
  3720. * src/TrackerWatcherCommand.cc
  3721. * src/TrackerWatcherCommand.h
  3722. * src/UTPexExtensionMessage.cc
  3723. * src/UTPexExtensionMessage.h
  3724. * test/BtCancelMessageTest.cc
  3725. * test/BtChokeMessageTest.cc
  3726. * test/BtExtendedMessageTest.cc
  3727. * test/BtInterestedMessageTest.cc
  3728. * test/BtNotInterestedMessageTest.cc
  3729. * test/BtPieceMessageTest.cc
  3730. * test/BtPortMessageTest.cc
  3731. * test/BtRegistryTest.cc
  3732. * test/BtRejectMessageTest.cc
  3733. * test/BtRequestMessageTest.cc
  3734. * test/DHTPeerAnnounceEntryTest.cc
  3735. * test/DHTPeerAnnounceStorageTest.cc
  3736. * test/DefaultBtMessageDispatcherTest.cc
  3737. * test/DefaultBtMessageFactoryTest.cc
  3738. * test/DefaultBtProgressInfoFileTest.cc
  3739. * test/DefaultBtRequestFactoryTest.cc
  3740. * test/DefaultExtensionMessageFactoryTest.cc
  3741. * test/MSEHandshakeTest.cc
  3742. * test/MockDHTTaskFactory.h
  3743. * test/ShareRatioSeedCriteriaTest.cc
  3744. * test/UTPexExtensionMessageTest.cc
  3745. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Fixed compiler warning.
  3747. * test/UtilTest.cc
  3748. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Treat Cookie object as session cookie if expiry = 0 is given.
  3750. With this change, you can specify session scoped cookies in an external
  3751. file setting expiry value to 0.
  3752. * src/Cookie.cc
  3753. * src/Cookie.h
  3754. * test/CookieParserTest.cc
  3755. * test/CookieStorageTest.cc
  3756. * test/CookieTest.cc
  3757. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3758. Changed signature of DHTMessageFactory::createResponseMessage().
  3759. Removed unused validateIDMatch.
  3760. * src/DHTMessageFactory.h
  3761. * src/DHTMessageFactoryImpl.cc
  3762. * src/DHTMessageFactoryImpl.h
  3763. * src/DHTMessageTracker.cc
  3764. * test/DHTMessageFactoryImplTest.cc
  3765. * test/MockDHTMessageFactory.h
  3766. Dropped DHT message coming from same ID of localhost.
  3767. * src/DHTMessageReceiver.cc
  3768. Rejected adding node whose ID is the same as localhost's.
  3769. * src/DHTRoutingTable.cc
  3770. * test/BtPortMessageTest.cc
  3771. * test/DHTRoutingTableTest.cc
  3772. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Pool connection when redirection occurs with Content-Length = 0.
  3774. * src/HttpSkipResponseCommand.cc
  3775. * src/HttpSkipResponseCommand.h
  3776. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3777. Fixed the bug that causes time out when redirection occurs with
  3778. content-length 0.
  3779. * src/HttpResponseCommand.cc
  3780. * src/HttpSkipResponseCommand.cc
  3781. * src/HttpSkipResponseCommand.h
  3782. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Now each status legends is shown only when it appears in Download
  3784. Result. If Download Result has no item, then status legend will not
  3785. be printed.
  3786. * src/RequestGroupMan.cc
  3787. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3788. Removed duplicate creation of OptionHandlers.
  3789. * src/option_processing.cc
  3790. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. Fixed the bug that causes segmentation fault when accessing files which
  3792. don't exist or are not included in --select-file option while
  3793. validating chunk checksum.
  3794. * src/MultiDiskAdaptor.cc
  3795. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3796. Fixed compiler warning.
  3797. * test/UtilTest.cc
  3798. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3800. * src/IteratableChecksumValidator.cc
  3801. * src/IteratableChunkChecksumValidator.cc
  3802. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3803. * Release 0.16.2
  3804. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Added Serbian translation. Updated Ukrainian translation.
  3806. Thanks to all translators.
  3807. * po/sr.po
  3808. * po/uk.po
  3809. * po/LINGUAS
  3810. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. Bump up version number to 0.16.2
  3812. * configure.ac
  3813. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Added length equality test to operator== to drop a piece message
  3815. whose length does not match to the requested one.
  3816. * src/RequestSlot.cc
  3817. * test/DefaultBtMessageDispatcherTest.cc
  3818. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3820. recieved.
  3821. In this fix, if a request larger than 16KiB length is received, aria2
  3822. disconnects the peer.
  3823. * src/BtConstants.h
  3824. * src/PeerMessageUtil.cc
  3825. * src/PeerMessageUtil.h
  3826. * test/BtRequestMessageTest.cc
  3827. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. * Release 0.16.1
  3829. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3830. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3831. * doc/aria2c.1.txt
  3832. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3834. Updated French, Simplified Chinese and Japanese translations.
  3835. Thanks to all translators.
  3836. en@quot and en@boldquot are also added.
  3837. * po/LINGUAS
  3838. * po/fr.po
  3839. * po/ja.po
  3840. * po/uk.po
  3841. * po/vi.po
  3842. * po/zh_CN.po
  3843. * po/zh_TW.po
  3844. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. Bump up version number to 0.16.1.
  3846. * configure.ac
  3847. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Updated README.
  3849. * README
  3850. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3851. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3852. not to replace '--' with em dash character.
  3853. * doc/aria2c.1.txt
  3854. * doc/makeman
  3855. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3857. every SEC seconds.
  3858. * src/DownloadEngineFactory.cc
  3859. * src/OptionHandlerFactory.cc
  3860. * src/option_processing.cc
  3861. * src/usage_text.h
  3862. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Fixed compile warning on linux-amd64
  3864. * src/FtpConnection.cc
  3865. * src/IteratableChunkChecksumValidator.cc
  3866. * src/MultiDiskAdaptor.cc
  3867. Fixed the bug that unit test fails on linux-amd64
  3868. * test/UtilTest.cc
  3869. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Added --dht-file-path option to change the path to dht.dat, which is a
  3871. serialized DHT routing table.
  3872. * src/OptionHandlerFactory.cc
  3873. * src/option_processing.cc
  3874. * src/usage_text.h
  3875. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3876. Fixed possible underflow.
  3877. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3878. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. Fixed the bug that last character in URI is not encoded.
  3880. * src/Request.cc
  3881. * test/RequestTest.cc
  3882. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3883. Fixed the bug that referer header field contains fragment.
  3884. Now Request class removes fragment part of URI and encodes it
  3885. in Request::setUri() and setReferer().
  3886. * src/Request.h
  3887. * src/Request.cc
  3888. * test/RequestTest.cc
  3889. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Added missing m4 macros.
  3891. * m4/cppunit.m4
  3892. * m4/libgcrypt.m4
  3893. * m4/libgnutls-extra.m4
  3894. * m4/libgnutls.m4
  3895. * m4/libxml2.m4
  3896. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3897. Fixed compile error with gcc-4.4(snapshot)
  3898. * src/File.cc
  3899. * src/FtpConnection.cc
  3900. * src/OptionHandlerImpl.h
  3901. * src/Util.cc
  3902. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3903. Removed assert()
  3904. * src/SocketBuffer.cc (SocketBuffer::send)
  3905. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Changed the type of _numNewConnection to unsigned int.
  3907. * src/ActivePeerConnectionCommand.cc
  3908. * src/ActivePeerConnectionCommand.h
  3909. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3910. * Release 0.16.0
  3911. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3912. Updated doc
  3913. * README
  3914. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3915. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3916. translations. Thanks to all translators.
  3917. * po/bg.po
  3918. * po/de.po
  3919. * po/fr.po
  3920. * po/ja.po
  3921. * po/zh_CN.po
  3922. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3923. Bump up version number to 0.16.0.
  3924. * configure.ac
  3925. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3927. int32_t.
  3928. Changed the type of count to int32_t.
  3929. * src/Metalink2RequestGroup.cc
  3930. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3931. Added test for Time::elapsed(time_t).
  3932. * test/TimeTest.cc
  3933. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3934. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3935. Util::difftv() should be used instead.
  3936. * src/TimeA2.cc
  3937. * src/TimeA2.h
  3938. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3939. Made socket for dht connections non-blocking
  3940. * src/DHTAbstractMessage.cc
  3941. * src/DHTAbstractMessage.h
  3942. * src/DHTConnection.h
  3943. * src/DHTConnectionImpl.cc
  3944. * src/DHTConnectionImpl.h
  3945. * src/DHTMessage.h
  3946. * src/DHTMessageDispatcherImpl.cc
  3947. * src/DHTMessageDispatcherImpl.h
  3948. * src/DHTUnknownMessage.cc
  3949. * src/DHTUnknownMessage.h
  3950. * src/SocketCore.cc
  3951. * src/SocketCore.h
  3952. * test/MockDHTMessage.h
  3953. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3954. Changed the type of offset to int.
  3955. * src/ParameterizedStringParser.cc
  3956. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Made getAsInt() return int32_t
  3958. * src/Option.h
  3959. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3961. build.
  3962. * configure.ac
  3963. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3964. Use sqlite3_open if sqlite3_open_v2 is not available.
  3965. * src/Sqlite3MozCookieParser.cc
  3966. * src/Sqlite3MozCookieParser.h
  3967. * m4/sqlite3.m4
  3968. * test/Sqlite3MozCookieParserTest.cc
  3969. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3970. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3971. * src/BtPieceMessage.cc
  3972. * src/DHTPeerAnnounceStorage.cc
  3973. * src/DefaultPieceStorage.cc
  3974. * src/DownloadCommand.cc
  3975. * src/DownloadEngine.cc
  3976. * src/FtpConnection.cc
  3977. * src/PeerConnection.cc
  3978. * src/PeerMessageUtil.cc
  3979. * src/RequestGroup.cc
  3980. * src/RequestGroupMan.cc
  3981. * src/SimpleBtMessage.cc
  3982. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3983. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3984. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3985. * src/AbstractDiskWriter.cc
  3986. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3987. Don't set Request::supportsPersistentConnection() in HttpConnection
  3988. since this code is also used in AbstractProxyResponseCommand.
  3989. Moved those code to HttpResponse.
  3990. * src/HttpResponse.cc
  3991. * src/HttpResponse.h
  3992. * src/HttpConnection.cc
  3993. * src/HttpConnection.h
  3994. * src/HttpResponseCommand.cc
  3995. * test/HttpResponseTest.cc
  3996. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3997. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3998. The configuration is minimum: no torrent, no metalink, so there may be
  3999. other compile error on their code.
  4000. * src/a2netcompat.h
  4001. * src/File.cc
  4002. * src/File.h
  4003. * src/SocketCore.cc
  4004. * src/SocketCore.h
  4005. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Made a socket of incoming peer non-blocking.
  4007. * src/PeerListenCommand.cc
  4008. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4009. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4010. whole message data is not sent in one send() call.
  4011. * src/BtPieceMessage.cc
  4012. * src/BtPieceMessage.h
  4013. * src/PeerConnection.cc
  4014. * src/PeerConnection.h
  4015. * src/SimpleBtMessage.cc
  4016. * src/SimpleBtMessage.h
  4017. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Fixed the bug that aria2 downloads faster than max-download-limit when
  4019. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4020. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4021. , instead of sum of them.
  4022. * src/ActivePeerConnectionCommand.cc
  4023. * src/DefaultBtInteractive.cc
  4024. * src/DownloadCommand.cc
  4025. * src/PeerInteractionCommand.cc
  4026. * src/PeerReceiveHandshakeCommand.cc
  4027. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4028. Fixed the bug that HTTPS download fails.
  4029. * src/AbstractCommand.cc
  4030. * src/AbstractCommand.h
  4031. * src/DownloadCommand.cc
  4032. * src/FtpConnection.cc
  4033. * src/HttpConnection.cc
  4034. * src/HttpRequestCommand.cc
  4035. * src/HttpResponseCommand.cc
  4036. * src/HttpSkipResponseCommand.cc
  4037. * src/MSEHandshake.cc
  4038. * src/PeerConnection.cc
  4039. * src/SocketCore.cc
  4040. * src/SocketCore.h
  4041. Fixed the bug that aria2 doesn't download whole content body and cannot
  4042. reuse connection if chunked transfer encoding and gzip content encoding
  4043. are set.
  4044. * src/DownloadCommand.cc
  4045. * src/HttpSkipResponseCommand.cc
  4046. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4047. Updated man page.
  4048. * doc/aria2c.1.txt
  4049. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. When error occurred while aria2 was parsing an .aria2.conf file, print
  4051. the usage of the option that caused error.
  4052. * src/option_processing.cc
  4053. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Fixed compile error on OptionHandlerException
  4055. * src/Makefile.am
  4056. * src/OptionHandlerException.cc
  4057. * src/OptionHandlerException.h
  4058. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. Moved message of the error to OptionHandlerException.h
  4060. * src/NameMatchOptionHandler.h
  4061. * src/OptionHandlerException.h
  4062. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4063. When error occurs while aria2 is parsing an command-line option, print
  4064. the usage of the option.
  4065. * src/Makefile.am
  4066. * src/NameMatchOptionHandler.h
  4067. * src/OptionHandlerException.h
  4068. * src/option_processing.cc
  4069. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Reverted previous change.
  4071. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4072. username is not in URI.
  4073. * src/HttpRequest.cc
  4074. * src/Request.cc
  4075. * test/HttpRequestTest.cc
  4076. * test/RequestTest.cc
  4077. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4078. Now colon is required for username and password in FTP URL, like:
  4079. ftp://username:password@host.
  4080. If colon is not there, aria2 don't parse it as a username. For example,
  4081. aria2 don't retrieve username from ftp://username@host.
  4082. This fix was made in order to login FTP server via non-transparent ftp
  4083. proxy.
  4084. * src/Request.cc
  4085. * test/RequestTest.cc
  4086. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4087. Use netrc for HTTP.
  4088. Now FTP user/password is sent in Authorization header when
  4089. --ftp-via-http-proxy=get is given.
  4090. * src/AuthConfigFactory.cc
  4091. * src/HttpRequest.cc
  4092. * src/HttpRequest.h
  4093. * src/NetrcAuthResolver.cc
  4094. * src/NetrcAuthResolver.h
  4095. * src/OptionHandlerFactory.cc
  4096. * src/option_processing.cc
  4097. * src/prefs.cc
  4098. * src/prefs.h
  4099. * test/AuthConfigFactoryTest.cc
  4100. * test/HttpRequestTest.cc
  4101. * test/NetrcAuthResolverTest.cc
  4102. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Issue PWD command first and get working directory and use it as a prefix
  4104. for CWD command.
  4105. * src/DownloadEngine.cc
  4106. * src/DownloadEngine.h
  4107. * src/FtpConnection.cc
  4108. * src/FtpConnection.h
  4109. * src/FtpFinishDownloadCommand.cc
  4110. * src/FtpInitiateConnectionCommand.cc
  4111. * src/FtpNegotiationCommand.cc
  4112. * src/FtpNegotiationCommand.h
  4113. * test/FtpConnectionTest.cc
  4114. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Removed default user/pass for FTP user/pass, since it should not have
  4116. precedence over netrc configuration by default.
  4117. * src/OptionHandlerFactory.cc
  4118. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4119. Added debug log for socket event.
  4120. * src/AbstractCommand.cc
  4121. * src/PeerAbstractCommand.cc
  4122. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4123. Log microseconds.
  4124. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4125. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4126. Replaced HelpItem.cc with OptionHandler.cc.
  4127. * po/POTFILES.in
  4128. Updated po files with 'make update-po'
  4129. * po/aria2c.pot
  4130. * po/*.po
  4131. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4132. Removed possible values from the text.
  4133. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4134. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Removed unused preferences:
  4136. PREF_NO_PREALLOCATION
  4137. PREF_STDOUT_LOG
  4138. PREF_TRACKER_MAX_TRIES
  4139. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4140. PREF_MIN_SEGMENT_SIZE
  4141. * src/option_processing.cc
  4142. * src/prefs.cc
  4143. * src/prefs.h
  4144. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4145. Integrated HelpItem into OptionParser to ease the workload for adding
  4146. new options. Removed default value from usage text.
  4147. * src/HelpItem.cc: Removed.
  4148. * src/HelpItem.h: Removed.
  4149. * src/HelpItemFactory.cc: Removed.
  4150. * src/HelpItemFactory.h: Removed.
  4151. * src/Makefile.am
  4152. * src/Makefile.in
  4153. * src/NameMatchOptionHandler.h
  4154. * src/OptionHandler.cc
  4155. * src/OptionHandler.h
  4156. * src/OptionHandlerFactory.cc
  4157. * src/OptionHandlerImpl.h
  4158. * src/OptionParser.cc
  4159. * src/OptionParser.h
  4160. * src/TagContainer.cc: Removed.
  4161. * src/TagContainer.h: Removed.
  4162. * src/TaggedItem.cc: Removed.
  4163. * src/TaggedItem.h: Removed.
  4164. * src/main.cc
  4165. * src/option_processing.cc
  4166. * src/usage_text.h
  4167. * src/version_usage.cc
  4168. * test/HelpItemTest.cc: Removed.
  4169. * test/Makefile.am
  4170. * test/Makefile.in
  4171. * test/OptionHandlerTest.cc
  4172. * test/OptionParserTest.cc
  4173. * test/TagContainerTest.cc: Removed.
  4174. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Moved `TransferStat stat = ...' to inside the `if' clause.
  4176. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4177. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. Fixed the bug that a block in a piece is requested when same block is
  4179. already requested to the same peer in end game mode.
  4180. * src/BtRequestFactory.h
  4181. * src/DefaultBtInteractive.cc
  4182. * src/DefaultBtRequestFactory.cc
  4183. * src/DefaultBtRequestFactory.h
  4184. * src/DefaultPieceStorage.cc
  4185. * src/DefaultPieceStorage.h
  4186. * src/PieceStorage.h
  4187. * src/UnknownLengthPieceStorage.cc
  4188. * src/UnknownLengthPieceStorage.h
  4189. * test/DefaultBtRequestFactoryTest.cc
  4190. * test/DefaultPieceStorageTest.cc
  4191. * test/MockBtRequestFactory.h
  4192. * test/MockPieceStorage.h
  4193. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4194. Removed _uploadLength and _downloadLength from PeerSessionResource
  4195. and use PeerStat::_sessionUploadLength and
  4196. PeerStat::_sessionDownloadLength.
  4197. * src/PeerSessionResource.cc
  4198. * src/PeerSessionResource.h
  4199. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4200. Fixed the bug that prefixLength of split bucket which doesn't include
  4201. local node ID is incremented.
  4202. * src/DHTBucket.cc
  4203. * src/DHTBucket.h
  4204. * test/DHTBucketTest.cc
  4205. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. Added cookies.sqlite to EXTRA_DIST
  4207. * test/Makefile.am
  4208. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Added Turkish translation. Updated French, German, Russian and
  4210. Simplified Chinese translations. Thanks to all translators.
  4211. * po/LINGUAS
  4212. * po/de.po
  4213. * po/fr.po
  4214. * po/ru.po
  4215. * po/tr.po
  4216. * po/zh_CN.po
  4217. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Added deliminating text to the beginning of the log so that one can find
  4219. where the log starts easily.
  4220. * src/main.cc
  4221. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4223. to fix compile error when async DNS is not enabled by configuration.
  4224. * src/AbstractCommand.cc
  4225. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. If establishing conneciton to a server is failed, then mark error on
  4227. its ServerStat.
  4228. Added the cause of error to log when error event occurred.
  4229. Moved message string to message.h for translation.
  4230. * src/AbstractCommand.cc
  4231. * src/AbstractCommand.h
  4232. * src/FtpNegotiationCommand.cc
  4233. * src/HttpRequestCommand.cc
  4234. * src/PeerAbstractCommand.cc
  4235. * src/message.h
  4236. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4237. Added the function to get error message from socket.
  4238. * src/SocketCore.cc
  4239. * src/SocketCore.h
  4240. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4241. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4242. * src/RequestGroupMan.cc
  4243. * src/RequestGroupMan.h
  4244. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. If error event is received in epoll, then abort download immediately.
  4246. * src/AbstractCommand.cc
  4247. * src/Command.cc
  4248. * src/Command.h
  4249. * src/DownloadEngine.cc
  4250. * src/PeerAbstractCommand.cc
  4251. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. Added usage message for --uri-selector, --server-stat-of,
  4253. --server-stat-in, --server-stat-timeout options.
  4254. * src/HelpItemFactory.cc
  4255. * src/usage_text.h
  4256. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Added upper limit of FTP response buffer. The current implementation
  4258. uses 4096bytes as a limit.
  4259. * src/FtpConnection.cc
  4260. * src/FtpConnection.h
  4261. * test/FtpConnectionTest.cc
  4262. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Use non-blocking socket for TCP communication to avoid possible
  4264. blocking due to buffer full.
  4265. * src/AbstractProxyRequestCommand.cc
  4266. * src/FtpConnection.cc
  4267. * src/FtpConnection.h
  4268. * src/FtpNegotiationCommand.cc
  4269. * src/FtpNegotiationCommand.h
  4270. * src/HttpConnection.cc
  4271. * src/HttpConnection.h
  4272. * src/HttpRequestCommand.cc
  4273. * src/InitiatorMSEHandshakeCommand.cc
  4274. * src/InitiatorMSEHandshakeCommand.h
  4275. * src/MSEHandshake.cc
  4276. * src/MSEHandshake.h
  4277. * src/Makefile.am
  4278. * src/PeerConnection.cc
  4279. * src/PeerConnection.h
  4280. * src/PeerInteractionCommand.cc
  4281. * src/PeerListenCommand.cc
  4282. * src/ReceiverMSEHandshakeCommand.cc
  4283. * src/ReceiverMSEHandshakeCommand.h
  4284. * src/SocketBuffer.cc
  4285. * src/SocketBuffer.h
  4286. * src/SocketCore.cc
  4287. * src/SocketCore.h
  4288. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4289. Call setStatusRealtime() in constructor.
  4290. * src/RealtimeCommand.cc
  4291. * src/RealtimeCommand.h
  4292. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Call Download::setNoWait(true) to execute newly created command without
  4294. a pause.
  4295. * src/AbstractCommand.cc
  4296. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4298. found' error from HTTP/FTP server NUM times without getting single
  4299. bytes of data, then force the download to fail.
  4300. Basically aria2 tris all URIs available. So if long list of URIs are
  4301. specified in Metalink, then aria2 will take a long time to fail
  4302. eventually if all URIs are outdated. This option eases this situation
  4303. to limit the number of servers to try.
  4304. * src/FtpNegotiationCommand.cc
  4305. * src/HelpItemFactory.cc
  4306. * src/HttpResponseCommand.cc
  4307. * src/OptionHandlerFactory.cc
  4308. * src/PeerStat.h
  4309. * src/RequestGroup.cc
  4310. * src/RequestGroup.h
  4311. * src/SegmentMan.cc
  4312. * src/SegmentMan.h
  4313. * src/option_processing.cc
  4314. * src/prefs.cc
  4315. * src/prefs.h
  4316. * src/usage_text.h
  4317. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4319. response even if more than one response is in it.
  4320. * src/FtpConnection.cc
  4321. * src/FtpConnection.h
  4322. * test/FtpConnectionTest.cc
  4323. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Merged from stable-0.15
  4325. * m4/libcares.m4
  4326. Use pkg-config
  4327. * m4/sqlite3.m4
  4328. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4329. Removed unnecessary if statement.
  4330. * src/DefaultPieceStorage.cc (initPieceStorage)
  4331. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4332. Added --connect-timeout option to specify connect timeout in seconds.
  4333. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4334. connecting to BitTorrent peer is not controlled by this option.
  4335. * src/AbstractProxyRequestCommand.cc
  4336. * src/FtpNegotiationCommand.cc
  4337. * src/HelpItemFactory.cc
  4338. * src/HttpRequestCommand.cc
  4339. * src/OptionHandlerFactory.cc
  4340. * src/option_processing.cc
  4341. * src/prefs.cc
  4342. * src/prefs.h
  4343. * src/usage_text.h
  4344. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. Added help message for -R option.
  4346. * src/HelpItemFactory.cc
  4347. * src/usage_text.h
  4348. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Added the message that the time is in local time zone.
  4350. * src/RequestGroup.cc
  4351. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Implemented the ability to get timestamp from remote FTP server using
  4353. MDTM command described in RFC3659.
  4354. * src/FtpConnection.cc
  4355. * src/FtpConnection.h
  4356. * src/FtpNegotiationCommand.cc
  4357. * src/FtpNegotiationCommand.h
  4358. * test/FtpConnectionTest.cc
  4359. * test/Makefile.am
  4360. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4361. Implemented the ability to get timestamp from remote HTTP server and
  4362. apply it to local file. To enable this feature, --remote-time option
  4363. is added. No usage text has been written yet.
  4364. If several servers returns difference timestamp, then aria2 uses latest
  4365. one.
  4366. * src/CopyDiskAdaptor.cc
  4367. * src/CopyDiskAdaptor.h
  4368. * src/DirectDiskAdaptor.cc
  4369. * src/DirectDiskAdaptor.h
  4370. * src/DiskAdaptor.h
  4371. * src/File.cc
  4372. * src/File.h
  4373. * src/HttpHeader.cc
  4374. * src/HttpHeader.h
  4375. * src/HttpResponse.cc
  4376. * src/HttpResponse.h
  4377. * src/HttpResponseCommand.cc
  4378. * src/HttpResponseCommand.h
  4379. * src/MultiDiskAdaptor.cc
  4380. * src/MultiDiskAdaptor.h
  4381. * src/OptionHandlerFactory.cc
  4382. * src/RequestGroup.cc
  4383. * src/RequestGroup.h
  4384. * src/RequestGroupMan.cc
  4385. * src/option_processing.cc
  4386. * src/prefs.cc
  4387. * src/prefs.h
  4388. * test/CopyDiskAdaptorTest.cc
  4389. * test/FileTest.cc
  4390. * test/Makefile.am
  4391. * test/Makefile.in
  4392. * test/MultiDiskAdaptorTest.cc
  4393. * test/TestUtil.cc
  4394. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Fixed the bug that DiskWriterEntry is not created when its
  4396. FileEntry.isRequested() is false and it doesn't share a piece with
  4397. other FileEntries that are requested. This bug causes segmentation fault
  4398. in the end.
  4399. * src/MultiDiskAdaptor.cc
  4400. * src/MultiDiskAdaptor.h
  4401. * src/MultiFileAllocationIterator.cc
  4402. * test/MultiDiskAdaptorTest.cc
  4403. * test/MultiFileAllocationIteratorTest.cc
  4404. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4405. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4406. called if the number of file entries are greater than max open files.
  4407. * src/AbstractSingleDiskAdaptor.cc
  4408. * src/AbstractSingleDiskAdaptor.h
  4409. * src/DiskAdaptor.h
  4410. * src/MultiDiskAdaptor.cc
  4411. * src/MultiDiskAdaptor.h
  4412. * test/MultiDiskAdaptorTest.cc
  4413. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Added a constuctor that receives struct timeval.
  4415. Added operator<.
  4416. * src/TimeA2.cc
  4417. * src/TimeA2.h
  4418. * test/TimeTest.cc
  4419. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4420. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4421. * src/CookieParser.cc
  4422. * test/CookieParserTest.cc
  4423. * test/HttpResponseTest.cc
  4424. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Implmented the functions to parse date.
  4426. * src/TimeA2.cc
  4427. * src/TimeA2.h
  4428. * test/TimeTest.cc
  4429. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Added "Firefox3 Cookie" feature to FeatureConfig
  4431. * src/FeatureConfig.cc
  4432. * src/FeatureConfig.h
  4433. * test/FeatureConfigTest.cc
  4434. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Bump up version number to 0.16.0b
  4436. * configure.ac
  4437. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Use pkg-config if is is available.
  4439. * m4/openssl.m4
  4440. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4441. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4442. * src/BtAnnounce.h
  4443. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4444. If an error occurred with a URI, remove identical URI from remaining
  4445. URI list because it is likely that same error occurred in the end and it
  4446. is waste of time.
  4447. * src/AbstractCommand.cc
  4448. * src/RequestGroup.cc
  4449. * src/RequestGroup.h
  4450. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Removed wrong comment.
  4452. * src/DefaultPeerStorage.cc
  4453. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4454. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4455. Added return value of getpid() to argument of srand() to achieve more
  4456. randomized value.
  4457. * src/SimpleRandomizer.cc
  4458. * src/SimpleRandomizer.h
  4459. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4460. Contact tracker frequently when the number of connections are 0 and
  4461. download is not finished yet.
  4462. * src/ActivePeerConnectionCommand.cc
  4463. * src/BtAnnounce.h
  4464. * src/DefaultBtAnnounce.cc
  4465. * src/DefaultBtAnnounce.h
  4466. * test/MockBtAnnounce.h
  4467. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4468. Moved threshold values to UTPexExtensionMessage.
  4469. * src/DefaultBtInteractive.cc
  4470. * src/Peer.cc
  4471. * src/Peer.h
  4472. * src/UTPexExtensionMessage.cc
  4473. * src/UTPexExtensionMessage.h
  4474. * test/UTPexExtensionMessageTest.cc
  4475. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Added _incoming member to Peer class and made it true if the peer
  4477. initiated connection. Don't add those peer to UTPex message.
  4478. If extended handshake is received, assign _incoming to false.
  4479. * src/DefaultBtInteractive.cc
  4480. * src/HandshakeExtensionMessage.cc
  4481. * src/Peer.cc
  4482. * src/Peer.h
  4483. * src/PeerListenCommand.cc
  4484. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  4486. Encoding Decoder. Removed size threshold for turning off on the fly
  4487. inflation because resulting file may or may not be inflated depending
  4488. on the file size and I think it is not expected by users.
  4489. This change fixes segmentation fault when Metalink file contains gzipped
  4490. file and its filesize is provided.
  4491. * src/HttpResponseCommand.cc
  4492. * src/HttpResponseCommand.h
  4493. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Made Cookie immutable.
  4495. * src/Cookie.cc
  4496. * src/Cookie.h
  4497. * src/CookieParser.cc
  4498. * src/CookieParser.h
  4499. * src/CookieStorage.cc
  4500. * test/CookieParserTest.cc
  4501. * test/CookieStorageTest.cc
  4502. * test/NsCookieParserTest.cc
  4503. * test/Sqlite3MozCookieParserTest.cc
  4504. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4505. Removed CookieBox, CookieBoxFactory.
  4506. * src/CookieBox.cc
  4507. * src/CookieBox.h
  4508. * src/CookieBoxFactory.cc
  4509. * src/CookieBoxFactory.h
  4510. * src/Makefile.am
  4511. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. Use CookieStorage class instead of CookieBox class.
  4513. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  4514. * src/AbstractProxyRequestCommand.cc
  4515. * src/CookieStorage.cc
  4516. * src/DownloadEngine.cc
  4517. * src/DownloadEngine.h
  4518. * src/HttpConnection.cc
  4519. * src/HttpConnection.h
  4520. * src/HttpRequest.cc
  4521. * src/HttpRequest.h
  4522. * src/HttpRequestCommand.cc
  4523. * src/HttpResponse.cc
  4524. * src/HttpResponseCommand.cc
  4525. * src/HttpSkipResponseCommand.cc
  4526. * src/Makefile.am
  4527. * src/MultiUrlRequestInfo.cc
  4528. * src/Request.cc
  4529. * src/Request.h
  4530. * src/main.cc
  4531. * test/AllTest.cc
  4532. * test/CookieStorageTest.cc
  4533. * test/CookieTest.cc
  4534. * test/HttpRequestTest.cc
  4535. * test/HttpResponseTest.cc
  4536. * test/Makefile.am
  4537. * test/NsCookieParserTest.cc
  4538. * test/Sqlite3MozCookieParserTest.cc
  4539. * test/nscookietest.txt
  4540. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4541. Updated
  4542. * test/Cookies.sqlite
  4543. * test/nscookietest.txt
  4544. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Added tests for CookieStorage::load()
  4546. * test/CookieStorageTest.cc
  4547. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4548. Added CookieStorage class which is based on RFC2109 and manages cookies
  4549. more strictly than CookieBox and CookieBoxFactory class.
  4550. * src/CookieStorage.cc
  4551. * src/CookieStorage.h
  4552. * src/Cookie.cc
  4553. * src/Cookie.h
  4554. * test/CookieStorageTest.cc
  4555. * test/CookieTest.cc
  4556. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Fixed the bug that commands are created more than the number of pieces.
  4558. * src/RequestGroup.cc
  4559. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Fixed infinite loop bug in FTP when SIZE command failed.
  4561. * src/FtpNegotiationCommand.cc
  4562. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. Removed DirectDiskAdaptorTest.h
  4564. * test/Makefile.am
  4565. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. Fixed chunk checksum validation cannot detect trailing garbage data.
  4567. BUG#2074141
  4568. * src/AbstractSingleDiskAdaptor.cc
  4569. * src/AbstractSingleDiskAdaptor.h
  4570. * src/CheckIntegrityEntry.cc
  4571. * src/CheckIntegrityEntry.h
  4572. * src/DiskAdaptor.h
  4573. * src/MultiDiskAdaptor.cc
  4574. * src/MultiDiskAdaptor.h
  4575. * src/RequestGroup.cc
  4576. * test/DirectDiskAdaptorTest.cc
  4577. * test/MultiDiskAdaptorTest.cc
  4578. * test/TestUtil.cc
  4579. * test/TestUtil.h
  4580. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Bump up version number of dht.dat file to 3. In version 3 format, time
  4582. is stored in 64bit, network byte order.
  4583. New build can load old format(version 2) but it saves the file in new
  4584. format. It means once you used new build, your dht.dat becomes
  4585. incompatible with older build.
  4586. * src/DHTRoutingTableDeserializer.cc
  4587. * src/DHTRoutingTableSerializer.cc
  4588. * test/DHTRoutingTableSerializerTest.cc
  4589. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4590. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4591. * test/Makefile.am
  4592. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Bump up version number of .aria2 control file to 0001.
  4594. New aria2 can still load version 0000 file but it saves the file in
  4595. version 0001 format. It means that new aria2 can resume download
  4596. started by old aria2 but the opposite is not true.
  4597. * src/DefaultBtProgressInfoFile.cc
  4598. * src/DefaultBtProgressInfoFile.h
  4599. * test/DefaultBtProgressInfoFileTest.cc
  4600. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Added ntoh64 and hton64 as inline functions.
  4602. * src/Util.cc
  4603. * test/UtilTest.cc
  4604. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Added sqlite3 depenency and Firefox3 cookie support.
  4606. * README
  4607. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. State that firefox3 cookie is supported explicitly in the usage.
  4609. * src/usage_text.h
  4610. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. Externalized message.
  4612. * src/RequestGroupMan.cc
  4613. * src/message.h
  4614. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Save temporary file first and rename to the destination on success.
  4616. Added test cases.
  4617. * src/RequestGroupMan.cc
  4618. * test/RequestGroupManTest.cc
  4619. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4620. Fixed the bug that the number of connected peer is exceeding the limit
  4621. (55 by default) in seeding mode.
  4622. Multiplied 0.8 to _maxUploadSpeedLimit.
  4623. * src/ActivePeerConnectionCommand.cc
  4624. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4625. Clear table item.
  4626. * src/Dictionary.cc
  4627. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Fixed error handling of lseek.
  4629. * src/AbstractDiskWriter.cc
  4630. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4632. style cookie file.
  4633. * src/usage_text.h
  4634. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4636. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4637. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4638. * src/Util.cc
  4639. * src/Util.h
  4640. * src/CookieParser.cc
  4641. * test/UtilTest.cc
  4642. * test/CookieParserTest.cc
  4643. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4644. Separate the implementation to load old mozilla format of cookie to
  4645. NsCookieParser class.
  4646. * src/CookieBoxFactory.cc
  4647. * src/CookieBoxFactory.h
  4648. * src/NsCookieParser.cc
  4649. * src/NsCookieParser.h
  4650. * test/NsCookieParserTest.cc
  4651. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Made parse() const
  4653. * src/Sqlite3MozCookieParser.cc
  4654. * src/Sqlite3MozCookieParser.h
  4655. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Added firefox3 cookie support based on the patch submitted by
  4657. tizianomueller.
  4658. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4659. this functionality.
  4660. * configure.ac
  4661. * m4/sqlite3.m4
  4662. * src/CookieBoxFactory.cc
  4663. * src/CookieBoxFactory.h
  4664. * src/Makefile.am
  4665. * src/Makefile.in
  4666. * src/Sqlite3MozCookieParser.cc
  4667. * src/Sqlite3MozCookieParser.h
  4668. * src/main.cc
  4669. * test/CookieBoxFactoryTest.cc
  4670. * test/Makefile.am
  4671. * test/Makefile.in
  4672. * test/Sqlite3MozCookieParserTest.cc
  4673. * test/badcookies.sqlite
  4674. * test/cookies.sqlite
  4675. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4676. Added Danish and Greek translations.
  4677. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4678. Great thanks to all translators.
  4679. * po/LINGUAS
  4680. * po/el.po
  4681. * po/da.po
  4682. * po/es.po
  4683. * po/ca.po
  4684. * po/nn.po
  4685. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Fixed man page: --follow-bittorrent should be --follow-torrent
  4687. * doc/aria2c.1.txt
  4688. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Fixed: numCommand is less than the value specified in -C option.
  4690. * src/RequestGroup.cc
  4691. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. Fixed occasional assertion failure in PieceSegment.
  4693. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4694. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4695. creation of duplicate segments and one of the segment was finished then
  4696. assertion failure was caused.
  4697. * src/SegmentMan.cc
  4698. * test/SegmentManTest.cc
  4699. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. Added options to load/save the server's performance/status to a file
  4701. and the timeout to drop their data.
  4702. --server-stat-of=FILE specifies the file to which performance data
  4703. is saved.
  4704. --server-stat-if=FILE specifies the file to read previously saved
  4705. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4706. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4707. TIMEOUT is specified in seconds and the default value is 24hours.
  4708. * src/MultiUrlRequestInfo.cc
  4709. * src/OptionHandlerFactory.cc
  4710. * src/RequestGroupMan.cc
  4711. * src/RequestGroupMan.h
  4712. * src/ServerStatMan.cc
  4713. * src/ServerStatMan.h
  4714. * src/option_processing.cc
  4715. * src/prefs.cc
  4716. * src/prefs.h
  4717. * test/ServerStatManTest.cc
  4718. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4720. * src/ServerStatMan.cc
  4721. * src/ServerStatMan.h
  4722. * test/ServerStatManTest.cc
  4723. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. Implemented ServerStatMan::load(...) function and its test case.
  4725. * src/ServerStat.cc
  4726. * src/ServerStat.h
  4727. * src/ServerStatMan.cc
  4728. * test/ServerStatManTest.cc
  4729. * test/ServerStatTest.cc
  4730. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Use time_t instead of int32_t. Use int64_t where milli second is
  4732. expected.
  4733. * src/TimeA2.cc
  4734. * src/TimeA2.h
  4735. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. Implemented ServerStatMan::save(...) function and its test case.
  4737. * src/ServerStat.cc
  4738. * src/ServerStat.h
  4739. * src/ServerStatMan.cc
  4740. * src/ServerStatMan.h
  4741. * test/ServerStatManTest.cc
  4742. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Now aria2 uses name attribute in Metalink as local filename in
  4744. BitTorrent downloads. BUG#2033999
  4745. * src/BtContext.h
  4746. * src/BtDependency.cc
  4747. * src/DefaultBtContext.cc
  4748. * src/DefaultBtContext.h
  4749. * src/SingleFileDownloadContext.cc
  4750. * src/SingleFileDownloadContext.h
  4751. * test/BtDependencyTest.cc
  4752. * test/DefaultBtContextTest.cc
  4753. * test/MockBtContext.h
  4754. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4755. Added AC_C_BIGENDIAN
  4756. * src/configure.ac
  4757. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Limited numCommand less than or equal to the number of piece.
  4759. * src/RequestGroup.cc
  4760. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4762. directive.
  4763. * test/DefaultPieceStorageTest.cc
  4764. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. Fixed memory leak in test code
  4766. * test/AnnounceListTest.cc
  4767. * test/DefaultPeerListProcessorTest.cc
  4768. * test/DefaultPeerStorageTest.cc
  4769. * test/MetaFileUtilTest.cc
  4770. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4771. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4772. * src/DefaultPieceStorage.cc
  4773. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Initialized _directIOAllowed
  4775. * src/MultiDiskAdaptor.cc
  4776. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Fixed memory leak
  4778. * src/GZipDecoder.cc
  4779. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4780. Fixed memory leak
  4781. * src/MetalinkParserStateMachine.cc
  4782. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Fixed memory leak
  4784. * src/Dictionary.cc
  4785. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4786. Fixed memory leak
  4787. * src/IteratableChunkChecksumValidator.h
  4788. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Fixed unmatched malloc/free.
  4790. * src/IteratableChunkChecksumValidator.cc
  4791. * src/IteratableChecksumValidator.cc
  4792. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4793. Removed max chunk size check. This change fixes BUG#2040169
  4794. * src/ChunkedDecoder.cc
  4795. * src/ChunkedDecoder.h
  4796. * test/ChunkedDecoderTest.cc
  4797. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Implemented download speed based URI selection algorithm.
  4799. Introduced new option --uri-selector.
  4800. If --uri-selector=feedback is given, aria2 uses download speed observed
  4801. in the previous downloads and chooses fastest server in the URI list.
  4802. Currently at most 10 URIs are considered to introduce randomeness for
  4803. finding better servers. The speed is average download speed in the
  4804. downloads.
  4805. On the other hand, if --uri-selector=inorder is given, which is default,
  4806. URI is tried in order in URI list.
  4807. The usage text for the new option has not been written yet.
  4808. * src/AbstractCommand.cc
  4809. * src/DownloadCommand.cc
  4810. * src/DownloadEngine.cc
  4811. * src/DownloadEngineFactory.cc
  4812. * src/InOrderURISelector.cc
  4813. * src/InOrderURISelector.h
  4814. * src/OptionHandlerFactory.cc
  4815. * src/PeerStat.h
  4816. * src/RequestGroup.cc
  4817. * src/RequestGroup.h
  4818. * src/RequestGroupMan.cc
  4819. * src/RequestGroupMan.h
  4820. * src/SegmentMan.cc
  4821. * src/SegmentMan.h
  4822. * src/ServerStat.cc
  4823. * src/ServerStat.h
  4824. * src/ServerStatMan.cc
  4825. * src/ServerStatMan.h
  4826. * src/ServerStatURISelector.cc
  4827. * src/ServerStatURISelector.h
  4828. * src/URISelector.h
  4829. * src/option_processing.cc
  4830. * src/prefs.cc
  4831. * src/prefs.h
  4832. * test/InOrderURISelectorTest.cc
  4833. * test/RequestGroupManTest.cc
  4834. * test/ServerStatManTest.cc
  4835. * test/ServerStatURISelectorTest.cc
  4836. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4837. * Release 0.15.1+2
  4838. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Bump up version number to 0.15.1+2
  4840. * configure.ac
  4841. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4843. * m4/aria2_arg.m4
  4844. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4845. * Release 0.15.1+1
  4846. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4847. Bump up version number to 0.15.1+1
  4848. * configure.ac
  4849. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Fixed the bug that causes segmentaion fault when resuming download
  4851. using metalink without size tag. Reproducible only using HTTP URI.
  4852. * src/HttpResponseCommand.cc
  4853. * src/FtpNegotiationCommand.cc
  4854. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. * Release 0.15.1
  4856. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Updated Bulgarian and French translations, thanks to all translators.
  4858. * po/bg.po
  4859. * po/fr.po
  4860. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Bump up version number to 0.15.1
  4862. * configure.ac
  4863. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Avoid repeated call of gettimeofday() when calculating speed.
  4865. * src/SpeedCalc.cc
  4866. * src/SpeedCalc.h
  4867. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. Removed writable check when socket's send buffer is full in BitTorrent
  4869. downloads to lower CPU usage.
  4870. * src/PeerInteractionCommand.cc
  4871. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Fixed broken gzip inflation.
  4873. Turn off segmented downloading if gzip content is smaller than or equal
  4874. to 1MiB and inflate the data on the fly, because HTTP response header
  4875. doesn't contain the length of inflated file we can't determin where
  4876. the chunk of data should be written.
  4877. On the other hand, if gzip content is larger than 1MB, then turn off
  4878. on the fly inflation, because some servers returns "content-type: gzip"
  4879. for *.tgz, *.gz files.
  4880. * src/DownloadCommand.cc
  4881. * src/HttpResponseCommand.cc
  4882. * src/HttpResponseCommand.h
  4883. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Applied tizianomueller's patch to fix compile error.
  4885. * test/BitfieldManTest.cc
  4886. * test/BtRequestMessageTest.cc
  4887. * test/DefaultBtContextTest.cc
  4888. * test/DefaultDiskWriterTest.cc
  4889. * test/DefaultPieceStorageTest.cc
  4890. * test/HttpHeaderProcessorTest.cc
  4891. * test/HttpResponseTest.cc
  4892. * test/Metalink2RequestGroupTest.cc
  4893. * test/MetalinkParserControllerTest.cc
  4894. * test/MetalinkProcessorTest.cc
  4895. * test/PeerSessionResourceTest.cc
  4896. * test/UtilTest.cc
  4897. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4898. * Release 0.15.0
  4899. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Reordered src files in POTFILES.in so that usage text appears first.
  4901. * po/POTFILES.in
  4902. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4903. Bump up version number to 0.15.0
  4904. * configure.ac
  4905. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4906. Added Bulgarian translation.
  4907. Updated Catalan, Spanish, French and Japanese translations.
  4908. Thanks to all translators.
  4909. * po/LINGUAS
  4910. * po/bg.po
  4911. * po/ca.po
  4912. * po/es.po
  4913. * po/fr.po
  4914. * po/ja.po
  4915. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Updated feature list. Added libz for dependency section.
  4917. Added a description about unit testing using CppUnit.
  4918. * README
  4919. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4920. Added a test for libz. Quoted where it is necessary.
  4921. * build_test.sh
  4922. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4923. Added GZip to `Enabled Features' list.
  4924. * src/FeatureConfig.cc
  4925. * src/FeatureConfig.h
  4926. * test/FeatureConfigTest.cc
  4927. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4928. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4929. the transfer has not yet started.
  4930. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4931. * src/SegmentMan.cc
  4932. * src/SegmentMan.h
  4933. * test/SegmentManTest.cc
  4934. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Cache last calculated average download/upload speed.
  4936. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4937. cached value.
  4938. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4939. * src/PeerStat.h
  4940. * src/SpeedCalc.cc
  4941. * src/SpeedCalc.h
  4942. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. Call parseUrl directly.
  4944. * src/Request.cc (resetUrl)
  4945. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4946. Supported absolute/relative path in Location header field.
  4947. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4948. * src/HttpHeader.cc
  4949. * src/HttpHeader.h
  4950. * src/HttpResponse.cc
  4951. * src/HttpSkipResponseCommand.cc
  4952. * src/Request.cc
  4953. * test/HttpHeaderTest.cc
  4954. * test/HttpResponseTest.cc
  4955. * test/RequestTest.cc
  4956. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Changed help text for --load-cookie option.
  4958. * doc/aria2c.1.txt
  4959. * src/usage_text.h
  4960. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4961. Regenerated test/Makefile.in to remove stale ChangeLog.
  4962. * test/Makefile.in
  4963. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4964. Updated po files.
  4965. * po/aria2c.pot
  4966. * po/*.po
  4967. * po/*.gmo
  4968. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Bump up version number to 0.15.0b
  4970. * configure.ac
  4971. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Externalize messages.
  4973. * src/RequestGroupMan.cc
  4974. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4975. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Use File::exists() instead of File::isFile() to allow non-regular file
  4977. such as block special files.
  4978. * src/AbstractDiskWriter.cc
  4979. * src/MultiDiskWriter.cc
  4980. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4982. * src/gai_strerror.h
  4983. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Fixed compile error. Thanks gknauf for the patch.
  4985. * src/asctime_r.c
  4986. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Included asctime_r.h from a2time.h.
  4988. * src/a2time.h
  4989. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4990. Added a message "aria2 doesn't verify signature" to log message when
  4991. signature file is saved.
  4992. * src/RequestGroupMan.cc
  4993. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Added the ability to save signature when download is completed if
  4995. signature is available. The filename of signature file is the path to
  4996. download file followed by ".sig". If it already exists, then signature
  4997. will not be saved.
  4998. * src/RequestGroupMan.cc
  4999. * src/Signature.cc
  5000. * test/SignatureTest.cc
  5001. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5002. Updated the descriptions for --bt-seed-unverified.
  5003. * doc/aria2c.1
  5004. * doc/aria2c.1.html
  5005. * doc/aria2c.1.txt
  5006. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5008. that this is not going to verify files using piece hashes.
  5009. * src/HelpItemFactory.cc
  5010. * src/OptionHandlerFactory.cc
  5011. * src/RequestGroup.cc
  5012. * src/option_processing.cc
  5013. * src/prefs.cc
  5014. * src/prefs.h
  5015. * src/usage_text.h
  5016. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. Added the ability to retrieve signature from Metalink file.
  5018. A retrieved signature is stored in Signature class and it is held by
  5019. DownloadContext class. Note that aria2 doesn't verify signature.
  5020. * src/DownloadContext.cc
  5021. * src/DownloadContext.h
  5022. * src/Makefile.am
  5023. * src/Makefile.in
  5024. * src/Metalink2RequestGroup.cc
  5025. * src/MetalinkEntry.cc
  5026. * src/MetalinkEntry.h
  5027. * src/MetalinkParserController.cc
  5028. * src/MetalinkParserController.h
  5029. * src/MetalinkParserStateMachine.cc
  5030. * src/MetalinkParserStateMachine.h
  5031. * src/Signature.cc
  5032. * src/Signature.h
  5033. * src/SignatureMetalinkParserState.cc
  5034. * src/SignatureMetalinkParserState.h
  5035. * src/VerificationMetalinkParserState.cc
  5036. * src/VerificationMetalinkParserState.h
  5037. * test/Metalink2RequestGroupTest.cc
  5038. * test/MetalinkParserControllerTest.cc
  5039. * test/MetalinkProcessorTest.cc
  5040. * test/test.xml
  5041. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5042. Close DiskAdaptor after renaming file.
  5043. * src/RequestGroup.cc
  5044. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Corrected indentation
  5046. * src/DefaultBtProgressInfoFile.cc
  5047. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Moved the calls of std::ios::exceptions() inside of try-catch block
  5049. because if an error occurred in constructor of std::fstream, then
  5050. exception is thrown immediately when std::ios::exceptions() is called
  5051. which results unhandled exception and aria2c aborts.
  5052. * src/DefaultBtProgressInfoFile.cc
  5053. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Added the test for the previous change in DefaultBtContext.cc
  5055. * test/DefaultBtContextTest.cc
  5056. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Fixed the bug that causes infinite loop when the number of pieces are
  5058. fewer than allowed fast set size which is 10 by default.
  5059. * src/DefaultBtContext.cc
  5060. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Updated the descriptions for -j, -s. Added --bt-seed.
  5062. * doc/aria2c.1
  5063. * doc/aria2c.1.html
  5064. * doc/aria2c.1.txt
  5065. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5067. aria2 seeds previously downloaded files without validating piece hashs.
  5068. * src/HelpItemFactory.cc
  5069. * src/OptionHandlerFactory.cc
  5070. * src/RequestGroup.cc
  5071. * src/option_processing.cc
  5072. * src/prefs.cc
  5073. * src/prefs.h
  5074. * src/usage_text.h
  5075. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Updated DESCRIPTION of man page.
  5077. * doc/aria2c.1
  5078. * doc/aria2c.1.html
  5079. * doc/aria2c.1.txt
  5080. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5082. Don't define `struct addrinfo' when __sun is defined.
  5083. * src/getaddrinfo.h
  5084. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5086. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5087. second argument is of type `struct _stati64'. Otherwise it is defined as
  5088. `struct stat'.
  5089. * src/AbstractDiskWriter.cc
  5090. * src/File.cc
  5091. * src/File.h
  5092. * src/a2io.h
  5093. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Fixed the compile error in hurd-i386
  5095. See the original bug report:
  5096. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5097. * src/a2io.h
  5098. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Code cleanup.
  5100. * src/PeerAbstractCommand.cc
  5101. * src/PeerAbstractCommand.h
  5102. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Removed TransferEncoding.
  5104. * src/DownloadCommand.cc
  5105. * src/DownloadCommand.h
  5106. * src/HttpResponseCommand.cc
  5107. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Updated po files.
  5109. * po/aria2c.pot
  5110. * po/*.po
  5111. * po/*.gmo
  5112. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5113. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5114. * src/A2STR.cc
  5115. * src/A2STR.h
  5116. * src/ChunkedDecoder.cc
  5117. * src/ChunkedDecoder.h
  5118. * src/ChunkedEncoding.cc: Removed
  5119. * src/ChunkedEncoding.h: Removed
  5120. * src/DownloadCommand.cc
  5121. * src/DownloadCommand.h
  5122. * src/HttpDownloadCommand.cc
  5123. * src/HttpResponse.cc
  5124. * src/HttpResponse.h
  5125. * src/HttpResponseCommand.cc
  5126. * src/HttpSkipResponseCommand.cc
  5127. * src/HttpSkipResponseCommand.h
  5128. * src/Makefile.am
  5129. * src/TransferEncoding.h: Removed
  5130. * test/ChunkedDecoderTest.cc
  5131. * test/ChunkedEncodingTest.cc: Removed
  5132. * test/HttpResponseTest.cc
  5133. * test/Makefile.am
  5134. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Use append instead of insert.
  5136. * src/GZipDecoder.cc
  5137. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5138. Updated doc
  5139. * src/Decoder.h
  5140. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Updated usage text for -s option.
  5142. * src/usage_text.h
  5143. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5145. * src/Request.cc
  5146. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Cleaned up configure.ac.
  5148. * configure.ac
  5149. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5150. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5151. AC_ARG_ENABLE.
  5152. * configure.ac
  5153. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5155. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5156. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5157. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5158. fly and writes decoded data to a local disk.
  5159. * README
  5160. * README.html
  5161. * configure.ac
  5162. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5163. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5164. * m4/libz.m4
  5165. * src/Decoder.h
  5166. * src/DownloadCommand.cc
  5167. * src/DownloadCommand.h
  5168. * src/Exception.h
  5169. * src/GZipDecoder.cc
  5170. * src/GZipDecoder.h
  5171. * src/HttpHeader.cc
  5172. * src/HttpHeader.h
  5173. * src/HttpRequest.cc
  5174. * src/HttpRequest.h
  5175. * src/HttpResponse.cc
  5176. * src/HttpResponse.h
  5177. * src/HttpResponseCommand.cc
  5178. * src/Makefile.am
  5179. * test/GZipDecoderTest.cc
  5180. * test/HttpRequestTest.cc
  5181. * test/HttpResponseTest.cc
  5182. * test/Makefile.am
  5183. * test/Makefile.in
  5184. * test/gzip_decode_test.gz
  5185. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Clarified usage of -j option.
  5187. * src/usage_text.h
  5188. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Disabled getting size from the response of RETR.
  5190. If SIZE command failed, then disable resuming and segmented downloading.
  5191. * src/FtpConnection.cc
  5192. * src/FtpConnection.h
  5193. * src/FtpNegotiationCommand.cc
  5194. * src/FtpNegotiationCommand.h
  5195. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Use digits to find first byte of file size, which makes the intention
  5197. of the code clearer.
  5198. * src/FtpConnection.cc
  5199. Don't call validateTotalLength() when size is 0.
  5200. * src/FtpNegotiationCommand.cc
  5201. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5202. Updated po files.
  5203. * po/aria2c.pot
  5204. * po/*.gmo
  5205. * po/*.po
  5206. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. Clarified usage text for --split option.
  5208. * src/usage_text.h
  5209. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Bump up version number to 0.15.0dev. "dev" means "development"
  5211. version, which means I started the development of the next release!
  5212. * src/configure.ac
  5213. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. If FTP server returns negative response with REST raw command and
  5215. requested range is not 0, throw exception. If requested range is 0,
  5216. continue download a file from 0 byte.
  5217. * src/FtpNegotiationCommand.cc
  5218. * src/FtpNegotiationCommand.h
  5219. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Supported FTP server which don't recognize SIZE raw command.
  5221. If SIZE raw command is failed, aria2 will try to get file size
  5222. from the response of RETR raw command. If both attempts are failed,
  5223. then resuming and segmented downloading are disabled.
  5224. * src/FtpConnection.cc
  5225. * src/FtpConnection.h
  5226. * src/FtpNegotiationCommand.cc
  5227. * src/FtpNegotiationCommand.h
  5228. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. * Release 0.14.0+1
  5230. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Bump up version number to 0.14.0+1
  5232. * src/configure.ac
  5233. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5234. Fixed the code that refers static member variable from non-static
  5235. context.
  5236. * src/DefaultPeerStorage.cc
  5237. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. * Release 0.14.0
  5239. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Added build test script
  5241. * build_test.sh
  5242. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Updated ja.po
  5244. * src/ja.po
  5245. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5246. Bump up version number to 0.14.0
  5247. * src/configure.ac
  5248. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Updated ja.po and fr.po. Great thanks for french translators and
  5250. Sebastien WILLEMIJNS.
  5251. * po/fr.po
  5252. * po/ja.po
  5253. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5254. Added configure option to enable/disable epoll support.
  5255. * configure.ac
  5256. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5257. Updated man page.
  5258. * doc/aria2c.1.txt
  5259. * doc/aria2c.1
  5260. * doc/aria2c.1.html
  5261. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. Added missing default value '5' to the usage of --split option.
  5263. * src/HelpItemFactory.cc
  5264. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Filled up pieces based on the number of missing blocks, rather than
  5266. simplay the number of piece * block length.
  5267. * src/BtRequestFactory.h
  5268. * src/DefaultBtInteractive.cc
  5269. * src/DefaultBtInteractive.h
  5270. * src/DefaultBtRequestFactory.cc
  5271. * src/DefaultBtRequestFactory.h
  5272. * src/Piece.cc
  5273. * src/Piece.h
  5274. * test/BitfieldManTest.cc
  5275. * test/DefaultBtRequestFactoryTest.cc
  5276. * test/MockBtRequestFactory.h
  5277. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Made _epEvents a member variable.
  5279. * src/DownloadEngine.cc
  5280. * src/DownloadEngine.h
  5281. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Cancel download if http redirect is bounded more than 20 times.
  5283. * src/AbstractCommand.cc
  5284. * src/HttpSkipResponseCommand.cc
  5285. * src/Request.cc
  5286. * src/Request.h
  5287. * test/RequestTest.cc
  5288. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Fixed unhandled exception(removed keyword `new').
  5290. * src/SocketCore.cc (initEPOLL)
  5291. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. Removed visit(const MetaEntry*)
  5293. * src/MetaEntryVisitor.h:
  5294. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5295. and made them virtual.
  5296. * src/BencodeVisitor.h
  5297. * src/BencodeVisitor.cc
  5298. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Updated po files.
  5300. * po/aria2c.pot
  5301. * po/*.po
  5302. * po/*.gmo
  5303. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5305. the number of socket to watch out.
  5306. * src/PeerInteractionCommand.cc
  5307. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. When there is not enough space in disk when writing a chunk of data,
  5309. aria2 now prints the message to the console to warn user and aborts
  5310. its download. Not all downloads are canceled because some downloads
  5311. may use another disk or partition. BUG#1640332
  5312. * src/AbstractDiskWriter.cc
  5313. * src/PeerAbstractCommand.cc
  5314. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5315. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5316. setHaltRequested(true) to cancel download.
  5317. * src/PeerInteractionCommand.h
  5318. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5320. socket from int to sock_t as sockets are unsigned in Windows.
  5321. For AsyncNameResolver, DownloadEngine, I did additional modification
  5322. for the portion of the code changed according to epoll support.
  5323. I defined sock_t in a2netcompat.h to use sock_t without including
  5324. SocketCore.h.
  5325. * src/AsyncNameResolver.cc
  5326. * src/AsyncNameResolver.h
  5327. * src/DownloadEngine.cc
  5328. * src/DownloadEngine.h
  5329. * src/SocketCore.cc
  5330. * src/SocketCore.h
  5331. * src/a2netcompat.h
  5332. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5333. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5334. changes in the patch were applied.
  5335. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5336. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5337. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5338. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5339. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5340. a2io.h and common.h were modified.
  5341. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5342. MinGW.
  5343. * src/common.h: Changed off_t to 64 bit in MinGW.
  5344. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5345. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5346. only a2netcompat.h is modified.
  5347. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5348. directives.
  5349. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5350. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5351. only gai_strerror.h is modified.
  5352. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5353. winsock errors in MinGW.
  5354. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5356. follow sources are applied.
  5357. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5358. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5359. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5360. I included locale.h from Platform.cc.
  5361. * src/main.cc: Moved common setup/teardown code to Platform class.
  5362. * test/AllTest.cc: Use Platform class.
  5363. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5364. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5366. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5367. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5368. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5369. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5370. aria2-0.13.2+1-mingw-2.patch.
  5371. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5372. systems which don't have termious.h. I moved the directive inside of
  5373. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5374. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5375. anyway.
  5376. * src/asctime_r.h
  5377. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5378. I added 2nd argument to the prototype declaration.
  5379. * src/StringFormat.cc: Get rid of vasprintf.
  5380. * src/getaddrinfo.h: Fixed constants.
  5381. * configure.ac: Added the check for asctime_r function.
  5382. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5383. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Added writable test for Socket when the sending message is in progress.
  5385. Usually the sending message is piece message. Without wriable check,
  5386. upload latency is dropped to more than 1sec.
  5387. * src/PeerInteractionCommand.cc
  5388. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5389. Create only requested files and files which shares a piece with
  5390. requested file in multi-torrent downloads. Directory structures are
  5391. also created in the same rule.
  5392. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5393. DiskWriterEntry as in the previous implementation.
  5394. * src/MultiDiskWriter.cc
  5395. * src/MultiFileAllocationIterator.cc
  5396. * src/MultiFileAllocationIterator.h
  5397. * test/MultiFileAllocationIteratorTest.cc
  5398. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Commented out -lprofiler
  5400. * src/Makefile.am
  5401. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Bump up version number to 0.14.0b.
  5403. * src/configure.ac
  5404. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Actively establish connection to peers in seeding, when peer cache
  5406. is not full and max upload speed limit is not reached.
  5407. * src/ActivePeerConnectionCommand.cc
  5408. * src/ActivePeerConnectionCommand.h
  5409. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5411. to make room more fleshy, recently found peers.
  5412. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5413. it.
  5414. * src/DefaultPeerStorage.cc
  5415. * test/DefaultPeerStorageTest.cc
  5416. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Returns cached data only when the previous receiveHandshake() is called
  5418. with peek = true.
  5419. * src/PeerConnection.cc (receiveHandshake)
  5420. * src/PeerConnection.h (receiveHandshake)
  5421. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5422. Changed default value of -s option from 1 to 5.
  5423. Also max value of -s option is changed from 5 to 16.
  5424. * src/HelpItemFactory.cc
  5425. * src/OptionHandlerFactory.cc
  5426. * src/option_processing.cc
  5427. * src/usage_text.h
  5428. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Changed -s options behavior. Now it means the number of connections
  5430. made simultaneously in each http/ftp download.
  5431. If 1 URL is specified, the behavior is the same with old implementation.
  5432. If -s N is given and more than N URLs are specified, first N URLs are
  5433. used and remaining URLs are used for backup. If less than N URLs are
  5434. specified, some of URLs are used more than once so that totally N
  5435. connections are made simultaneously.
  5436. * src/main.cc
  5437. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Included missing iosfwd or ostream header.
  5439. * src/RequestGroupMan.cc
  5440. * src/TaggedItem.cc
  5441. * src/TaggedItem.h
  5442. * src/Util.cc
  5443. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5445. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5446. * src/HttpConnection.cc: Included missing sstream.
  5447. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Added --bt-max-open-files option.
  5449. * src/DefaultPieceStorage.cc
  5450. * src/HelpItemFactory.cc
  5451. * src/MultiDiskAdaptor.cc
  5452. * src/MultiDiskAdaptor.h
  5453. * src/OptionHandlerFactory.cc
  5454. * src/option_processing.cc
  5455. * src/prefs.cc
  5456. * src/prefs.h
  5457. * src/usage_text.h
  5458. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5459. Fixed the bug that aria2 aborts when a path to a directory is given
  5460. in command-line.
  5461. * src/ProtocolDetector.cc
  5462. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Limited the number files opened in each BitTorrent download. The default
  5464. value is 100. The option to change this value will be added.
  5465. * src/MultiDiskAdaptor.cc
  5466. * src/MultiDiskAdaptor.h
  5467. * src/MultiFileAllocationIterator.cc
  5468. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5469. Fixed the bug that HTTP downloads don't start with old libraries.
  5470. * src/HttpHeaderProcessor.cc
  5471. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5472. Use empty() instead of size() > 0.
  5473. * src/HttpConnection.cc
  5474. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Drop connection if the incoming peer ID is the same with localhost's
  5476. one. The previous implementation drops connection when incoming peer's
  5477. IP address is the same with localhost's one.
  5478. * src/PeerListenCommand.cc
  5479. * src/DefaultBtInteractive.cc
  5480. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5481. Returns cached data without checking whether socket is readable
  5482. if the cache is available.
  5483. * src/PeerConnection.cc (receiveHandshake)
  5484. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5485. Included stdint.h
  5486. * src/common.h
  5487. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Removed duplicate HAVE_GETTIMEOFDAY
  5489. * src/Makefile.am
  5490. * src/Makefile.in
  5491. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. Use interval as a minInterval when minInterval is not supplied.
  5493. * src/DefaultBtAnnounce.cc
  5494. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  5496. attempt is failed, then 2nd attempt get kicked out more quickly.
  5497. And it is now static const member of DefaultBtAnnounce.
  5498. * src/DefaultBtAnnounce.h
  5499. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  5501. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  5502. * src/ActivePeerConnectionCommand.cc
  5503. * src/BtConstants.h
  5504. * src/BtRuntime.h
  5505. * src/DHTGetPeersCommand.cc
  5506. * src/DefaultBtAnnounce.cc
  5507. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  5508. BtRuntime::MAX_PEERS.
  5509. * src/DefaultPeerStorage.h
  5510. * src/InitiatorMSEHandshakeCommand.cc
  5511. * src/PeerInitiateConnectionCommand.cc
  5512. * src/PeerInteractionCommand.cc
  5513. * src/PeerReceiveHandshakeCommand.cc
  5514. * src/TrackerWatcherCommand.cc
  5515. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Always Connect to _numNewConnection
  5517. * src/ActivePeerConnectionCommand.cc
  5518. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Made `begin' unsigned int.
  5520. * src/GrowSegment.h
  5521. * src/Piece.cc
  5522. * src/Piece.h
  5523. * src/PiecedSegment.cc
  5524. * src/PiecedSegment.h
  5525. * src/Segment.h
  5526. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Calculate piece hash when data is arrived if the data is arrived in
  5528. order. This removes additional read operation for hash calculation.
  5529. If the data is arrived in out of order, the hash is calucated when the
  5530. piece is completed. This is the same behavior as the old implementation.
  5531. * src/BtPieceMessage.cc
  5532. * src/DefaultBtProgressInfoFile.cc
  5533. * src/DefaultPieceStorage.cc
  5534. * src/DownloadCommand.cc
  5535. * src/DownloadCommand.h
  5536. * src/DownloadEngine.cc
  5537. * src/GrowSegment.cc
  5538. * src/GrowSegment.h
  5539. * src/Piece.cc
  5540. * src/Piece.h
  5541. * src/PiecedSegment.cc
  5542. * src/PiecedSegment.h
  5543. * src/Segment.h
  5544. * test/PieceTest.cc
  5545. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Try to keep the ordering of outgoing piece message.
  5547. * src/DefaultBtMessageDispatcher.cc
  5548. (DefaultBtMessageDispatcher::sendMessages)
  5549. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Fixed busy loop when error/hup epoll events occur.
  5551. * src/AbstractCommand.cc
  5552. * src/PeerAbstractCommand.cc
  5553. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Added --bt-request-peer-speed-limit option, which was a constant
  5555. SLOW_SPEED_THRESHOLD.
  5556. * src/ActivePeerConnectionCommand.cc
  5557. * src/ActivePeerConnectionCommand.h
  5558. * src/BtConstants.h
  5559. * src/HelpItemFactory.cc
  5560. * src/OptionHandlerFactory.cc
  5561. * src/PeerReceiveHandshakeCommand.cc
  5562. * src/option_processing.cc
  5563. * src/prefs.cc
  5564. * src/prefs.h
  5565. * src/usage_text.h
  5566. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5567. Removed repeated call of getTopDirPath(). Instead, call it once and
  5568. cache the result.
  5569. * src/MultiDiskAdaptor.cc
  5570. * src/MultiDiskAdaptor.h
  5571. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5572. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5573. Fixed compile error on debian etch.
  5574. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5575. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5576. it is undefined.
  5577. * src/Util.cc (ULLONG_MAX)
  5578. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Added epoll support. Use epoll if it is available. If not, use select.
  5580. When async dns is enabled in compile time, epoll support is enabled
  5581. only when aria2 is built with c-ares. This condition statement is
  5582. defined in a2io.h.
  5583. Currently aria2 supports both c-ares and ares, but ares is maintained
  5584. for quite a while and debian already has c-ares package, ares support
  5585. will be dropped in the future version.
  5586. * configure.ac
  5587. * src/AbstractCommand.cc
  5588. * src/AsyncNameResolver.cc
  5589. * src/AsyncNameResolver.h
  5590. * src/Command.cc
  5591. * src/Command.h
  5592. * src/DownloadEngine.cc
  5593. * src/DownloadEngine.h
  5594. * src/PeerAbstractCommand.cc
  5595. * src/SocketCore.cc
  5596. * src/SocketCore.h
  5597. * src/a2io.h
  5598. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5600. directive.
  5601. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Do not do write operation to /dev/null file.
  5603. * src/LogFactory.cc
  5604. * src/SimpleLogger.cc
  5605. Replaced vasprintf with vsnprintf
  5606. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5607. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5608. * src/BtRequestMessage.cc
  5609. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5610. for segmentation fault caused by previous commit.
  5611. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Reduced the usage of gettimeofday().
  5613. * src/DefaultBtMessageDispatcher.cc
  5614. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5615. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5616. * src/RequestSlot.cc
  5617. * src/RequestSlot.h
  5618. (RequestSlot::isTimeout)
  5619. Made RequestSlot have a reference to Piece object to avoid find
  5620. Piece repeatedly.
  5621. * src/DefaultBtMessageDispatcher.cc
  5622. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5623. * src/RequestSlot.cc
  5624. * src/RequestSlot.h
  5625. (RequestSlot::getPiece)
  5626. * test/DefaultBtMessageDispatcherTest.cc
  5627. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5628. * src/TimeA2.cc
  5629. * src/TimeA2.h
  5630. (Time::difference): New function.
  5631. (Time::elapsed): Done optimization.
  5632. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5634. directive.
  5635. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5636. * src/option_processing.cc: Added missing `defined' keyword to #if
  5637. directive.
  5638. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. Bump up version number to 0.13.2+1
  5640. * src/configure.ac
  5641. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Refactored broken outstanding piece handling.
  5643. * src/DefaultPieceStorage.cc
  5644. * src/DefaultPieceStorage.h
  5645. * src/Piece.cc
  5646. * src/Piece.h
  5647. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5649. name collision of static variable and predefined macro.
  5650. * src/BtContext.cc
  5651. * src/BtContext.h
  5652. * src/CookieBoxFactory.cc
  5653. * src/CookieBoxFactory.h
  5654. * src/CookieParser.cc
  5655. * src/CookieParser.h
  5656. * src/DefaultBtContext.cc
  5657. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5658. * src/RequestGroup.cc
  5659. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5660. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. * Release 0.13.2
  5662. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5664. * po/fr.po
  5665. * po/ja.po
  5666. * po/aria2c.pot
  5667. * po/*.po
  5668. * po/*.gmo
  5669. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5670. Bump up version number to 0.13.2
  5671. * src/configure.ac
  5672. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Refactord.
  5674. * src/RequestGroupMan.cc
  5675. (removeStoppedGroup)
  5676. (fillRequestGroupFromReserver)
  5677. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Fixed compile error on Ubuntu.
  5679. * src/BtPieceMessage.cc
  5680. * src/MessageDigestHelper.cc
  5681. * src/Util.cc
  5682. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5683. Fixed compile error when configured with --disable-bittorrent
  5684. * test/DownloadHandlerFactoryTest.cc
  5685. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Done make update-po
  5687. * po/aria2c.pot
  5688. * po/*.po
  5689. * po/*.gmo
  5690. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Bump up version number to 0.13.2rc.
  5692. * src/configure.ac
  5693. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Made option name bold. Updated SYNOPSIS to make it more readable.
  5695. * doc/aria2c.1.txt
  5696. * doc/aria2c.1
  5697. * doc/aria2c.1.html
  5698. * src/version_usage.cc
  5699. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Refactored. Use std::string instead of size and char*.
  5701. * Data.cc
  5702. * Data.h
  5703. * test/Data.cc
  5704. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Added trimSelf(). Rewritten trim() to use trimSelf().
  5706. * Util.cc
  5707. * Util.h
  5708. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5710. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Fixed compile error when configured with --disable-metalink.
  5712. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5713. * test/FeatureConfigTest.cc
  5714. * test/DownloadHandlerFactoryTest.cc
  5715. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Fixed compile error when configured with --without-gnutls
  5717. --without-openssl
  5718. * src/main.cc
  5719. * test/DefaultBtProgressInfoFileTest.cc
  5720. * test/SegmentManTest.cc
  5721. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Fixed compile error with OpenSSL.
  5723. * src/IteratableChunkChecksumValidator.cc
  5724. * src/LibsslDHKeyExchange.h
  5725. * src/MessageDigestHelper.cc
  5726. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Revert the default value of --max-concurrent-downloads to 5.
  5728. Revert the default value of --metalink-servers to 5.
  5729. Man pages was also updated.
  5730. * src/option_processing.cc
  5731. * doc/aria2c.1.txt
  5732. * doc/aria2c.1.html
  5733. * doc/aria2c.1
  5734. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. Returns const reference:
  5736. DownloadContext::getPieceHash, DownloadContext::getName,
  5737. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5738. BtContext::getInfoHashAsString,
  5739. * src/BtContext.h
  5740. * src/DefaultBtContext.cc
  5741. * src/DefaultBtContext.h
  5742. * src/DownloadContext.h
  5743. * src/SingleFileDownloadContext.h
  5744. * test/MockBtContext.h
  5745. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5746. * src/RequestGroup.h (getDir): Removed.
  5747. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5748. Returns const reference. The internal urlencode function was optimized
  5749. a little bit.
  5750. * src/Request.cc
  5751. * src/Request.h
  5752. * src/HttpRequest.cc
  5753. * src/HttpRequest.h
  5754. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. Defined option name and possible values as std::string to reduce
  5756. temporary string object creation in runtime.
  5757. * src/HelpItemFactory.cc
  5758. * src/LogFactory.cc
  5759. * src/Option.cc
  5760. * src/OptionHandlerFactory.cc
  5761. * src/option_processing.cc
  5762. * src/prefs.cc
  5763. * src/prefs.h
  5764. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5765. Return const reference.
  5766. * src/DownloadHandlerConstants.cc
  5767. * src/DownloadHandlerConstants.h
  5768. (getMetalinkExtensions)
  5769. (getMetalinkContentTypes)
  5770. (getBtExtensions)
  5771. (getBtContentTypes)
  5772. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. * src/HttpHeader.cc (get): Rewritten.
  5774. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Make HttpHeader::getFirst(...) return const reference.
  5776. * src/HttpHeader.cc
  5777. * src/HttpHeader.h
  5778. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5780. it with V_TRUE.
  5781. * src/DefaultPieceStorage.cc
  5782. * src/DownloadCommand.cc
  5783. * src/FtpNegotiationCommand.cc
  5784. * src/HttpRequest.cc
  5785. * src/InitiateConnectionCommand.cc
  5786. * src/RequestGroup.cc
  5787. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5788. Made Option::get(...) return const reference of std::string.
  5789. * src/Option.cc
  5790. * src/Option.h
  5791. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Replaced std:copy with insert.
  5793. * src/DefaultBtMessageDispatcher.cc
  5794. * src/DefaultPieceStorage.cc
  5795. * src/DownloadEngineFactory.cc
  5796. * src/RequestGroup.cc
  5797. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5798. Included SocketCore.h to fix compiler warning.
  5799. * src/InitiateConnectionCommand.cc
  5800. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Put piece selection strategy algorithm to RarestPieceSelector class,
  5802. Added a switch to choose whether randomized selection so that unit
  5803. tests emit same results in, possibly, win32.
  5804. * src/DefaultPieceStorage.cc
  5805. * src/DefaultPieceStorage.h
  5806. * src/RarestPieceSelector.cc
  5807. * src/RarestPieceSelector.h
  5808. * test/DefaultPieceStorageTest.cc
  5809. * test/RarestPieceSelectorTest.cc
  5810. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Don't pool connection if HTTP proxy is enabled.
  5812. * src/FtpFinishDownloadCommand.cc
  5813. * src/FtpNegotiationCommand.cc
  5814. * src/HttpSkipResponseCommand.cc
  5815. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5817. * src/AbstractCommand.cc
  5818. * src/AbstractCommand.h
  5819. * src/ActivePeerConnectionCommand.cc
  5820. * src/FtpInitiateConnectionCommand.cc
  5821. * src/HttpInitiateConnectionCommand.cc
  5822. * src/InitiateConnectionCommandFactory.cc
  5823. * src/PeerAbstractCommand.cc
  5824. * src/PeerAbstractCommand.h
  5825. * src/PeerInitiateConnectionCommand.cc
  5826. * src/TrackerWatcherCommand.cc
  5827. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Sort RequestSlot in ascending order and manipulate them using
  5829. lower_bound.
  5830. * src/DefaultBtMessageDispatcher.cc
  5831. * src/DefaultBtMessageDispatcher.h
  5832. (getMessageQueue): Added const qualifier.
  5833. (getRequestSlots): Added const qualifier.
  5834. (sendMessages): Use empty() instead of size().
  5835. (doCancelSendingPieceAction): Use HandleEvent object.
  5836. (doAbortOutstandingRequestAction): Rewritten.
  5837. (doChokedAction): Rewritten.
  5838. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5839. (isOutstandingRequest): Rewritten.
  5840. (getOutstandingRequest): Rewritten.
  5841. (removeOutstandingRequest): Rewritten.
  5842. (addOutstandingRequest): Rewritten.
  5843. * src/RequestSlot.cc
  5844. * src/RequestSlot.h
  5845. (operator=): Rewritten.
  5846. (operator!=): New function.
  5847. (operator<): New function.
  5848. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. * src/DefaultBtRequestFactory.cc
  5850. (doChokedAction): Rewritten.
  5851. (removeCompletedPiece): Rewritten.
  5852. (removeTargetPiece): Rewritten.
  5853. (createRequestMessages): Added the debug log.
  5854. (createRequestMessagesOnEndGame: Added the debug log.
  5855. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Added the debug log message.
  5857. * src/BtPieceMessage.cc (doReceivedAction)
  5858. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5860. used lower_bound to process them rather than linear search.
  5861. * src/DHTPeerAnnounceStorage.cc
  5862. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5864. peer has at least one completed piece.
  5865. * src/Peer.cc
  5866. * src/Peer.h
  5867. * src/PeerInteractionCommand.cc
  5868. * src/PeerSessionResource.cc
  5869. * src/PeerSessionResource.h
  5870. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Removed unnecessary sorting
  5872. * src/DefaultPieceStorage (DefaultPieceStorage)
  5873. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5874. Rewritten the portion of the code that mangaes allowed fast indexes.
  5875. * src/PeerSessionResource.cc
  5876. * src/PeerSessionResource.h
  5877. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Removed the invalid string including '\r' from ru.po and
  5879. did make update-po.
  5880. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Added --log-level and --summary-interval to man page.
  5882. * doc/aria2c.1.txt
  5883. * doc/aria2c.1.html
  5884. * doc/aria2c.1
  5885. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Added --log-level option to specify log level. Log messages under
  5887. the specified level are not output. Default value is `debug'.
  5888. * src/HelpItemFactory.cc
  5889. * src/LogFactory.cc
  5890. * src/LogFactory.h
  5891. * src/Logger.h
  5892. * src/OptionHandlerFactory.cc
  5893. * src/SimpleLogger.cc
  5894. * src/SimpleLogger.h
  5895. * src/main.cc
  5896. * src/option_processing.cc
  5897. * src/prefs.h
  5898. * src/usage_text.h
  5899. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. Print download progress summary of all parallel downloads in specified
  5901. interval, default 60 secs. While aria2 could download several files
  5902. in parallel (see -j option), it displayed just first download progress,
  5903. and the other downloads are hidden from the users. This new feature
  5904. prints all downloads currently in-progress to the console so that you
  5905. can check the status of all downloads. The interval can be adjusted
  5906. by --summary-interval option.
  5907. The progress readout is now cut so that all fits in the one line of
  5908. console.
  5909. * src/ConsoleStatCalc.cc
  5910. * src/ConsoleStatCalc.h
  5911. * src/HelpItemFactory.cc
  5912. * src/OptionHandlerFactory.cc
  5913. * src/RequestGroupMan.cc
  5914. * src/RequestGroupMan.h
  5915. * src/main.cc
  5916. * src/option_processing.cc
  5917. * src/prefs.h
  5918. * src/usage_text.h
  5919. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5921. * src/DownloadEngine.cc (DownloadEngine)
  5922. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5924. defined.
  5925. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5926. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5927. Use erase+lower_bound+insert instead of sort.
  5928. * src/DefaultPieceStorage.cc (addPieceStats)
  5929. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5931. * src/A2STR.cc
  5932. * src/A2STR.h
  5933. * src/OptionParser.cc (parse)
  5934. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Defined fake filename `[tracker.announce]' as static const std::string.
  5936. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5937. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Defined default filename `index.html' as static const std::string
  5939. * src/SingleFileDownloadContext.cc
  5940. * src/SingleFileDownloadContext.h
  5941. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Defined "[MEMORY]" as static const std::string.
  5943. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5944. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Defined control file's version number as static const std::string.
  5946. * src/DefaultBtProgressInfoFile.cc
  5947. * src/DefaultBtProgressInfoFile.h
  5948. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Use Request::METHOD_GET
  5950. * src/RequestGroup.cc (createNextCommandWithAdj)
  5951. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Defined "OK", "ERR", "INPR" as static const std::string
  5953. * src/RequestGroupMan.cc (showDownloadResults)
  5954. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Defined default client used in extended handshake as static const
  5956. std::string
  5957. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5958. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5960. * src/HttpConnection.cc (eraseConfidentialInfo)
  5961. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Defined default ftp user and password as static const std::string
  5963. * src/AuthConfigFactory.cc
  5964. * src/AuthConfigFactory.h
  5965. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5966. Defined strings used in netrc as static const std::string
  5967. * src/Netrc.cc
  5968. * src/Netrc.h
  5969. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Defined HTTP status as static const std::string
  5971. * src/AbstractProxyResponseCommand.cc
  5972. * src/HttpHeader.cc
  5973. * src/HttpHeader.h
  5974. * src/HttpResponse.cc
  5975. * src/HttpResponseCommand.cc
  5976. * src/HttpSkipResponseCommand.cc
  5977. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Defined "\r\n", "A", "I" as static const std::string
  5979. * src/A2STR.cc
  5980. * src/A2STR.h
  5981. * src/FtpConnection.cc
  5982. * src/FtpConnection.h
  5983. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5984. Added COLON_C(".") and used it in Request::parseUrl()
  5985. * src/A2STR.cc
  5986. * src/A2STR.h
  5987. * src/Request.cc (parseUrl)
  5988. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5989. Changed the type of padName from `const std::string&' to `const char*'.
  5990. * src/MSEHandshake.cc (verifyPadLength)
  5991. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Defined "sha1" as static const std::string.
  5993. * src/MetalinkParserController.cc
  5994. * src/MetalinkParserController.h
  5995. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Defined message digest algorithm name as static const std::string
  5997. * src/DHTTokenTracker.cc
  5998. * src/DHTUtil.cc
  5999. * src/DefaultBtContext.cc
  6000. * src/MSEHandshake.cc
  6001. * src/MessageDigestHelper.cc
  6002. * src/Peer.cc
  6003. * src/messageDigest.cc
  6004. * src/messageDigest.h
  6005. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Made string literals used in SAX parser static const std::string.
  6007. * src/FileMetalinkParserState.cc
  6008. * src/FileMetalinkParserState.h
  6009. * src/FilesMetalinkParserState.cc
  6010. * src/FilesMetalinkParserState.h
  6011. * src/InitialMetalinkParserState.cc
  6012. * src/InitialMetalinkParserState.h
  6013. * src/MetalinkMetalinkParserState.cc
  6014. * src/MetalinkMetalinkParserState.h
  6015. * src/PiecesMetalinkParserState.cc
  6016. * src/PiecesMetalinkParserState.h
  6017. * src/ResourcesMetalinkParserState.cc
  6018. * src/ResourcesMetalinkParserState.h
  6019. * src/VerificationMetalinkParserState.cc
  6020. * src/VerificationMetalinkParserState.h
  6021. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6023. * src/A2STR.cc
  6024. * src/A2STR.h
  6025. * src/File.cc
  6026. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. Defined static const std::string IP("ip"), PORT("port") and use them
  6028. instead of string literals.
  6029. * src/DefaultPeerListProcessor.cc
  6030. * src/DefaultPeerListProcessor.h
  6031. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Made string literals for torrent file processing static const
  6033. std::string.
  6034. * src/BtContext.cc
  6035. * src/BtContext.h
  6036. * src/DefaultBtContext.cc
  6037. * src/DefaultBtContext.h
  6038. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Made string literal for tracker response static const std::string
  6040. * src/BtAnnounce.cc
  6041. * src/BtAnnounce.h
  6042. * src/DefaultBtAnnounce.cc
  6043. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. Use DHTMessage::T instead of "t".
  6045. * src/DHTMessageTracker.cc (messageArrived)
  6046. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Made keyName static const. Made trimmed charset static const
  6048. std::string.
  6049. * src/Util.cc (getContentDispositionFilename)
  6050. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Made USER_AGENT const. Made "/" static const std::string.
  6052. * src/A2STR.cc
  6053. * src/A2STR.h
  6054. * src/HttpRequest.cc
  6055. * src/HttpRequest.h
  6056. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Made string listeral to static const std::string:
  6058. "Content-Range", "Content-Length"
  6059. * src/HttpHeader.cc
  6060. * src/HttpHeader.h
  6061. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Made string listeral to static const std::string.
  6063. * src/HttpConnection.cc
  6064. * src/HttpHeader.cc
  6065. * src/HttpHeader.h
  6066. * src/HttpResponse.cc
  6067. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. Made string listeral to static const std::string.
  6069. * src/A2STR.cc
  6070. * src/A2STR.h
  6071. * src/SimpleLogger.cc
  6072. * src/SimpleLogger.h
  6073. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Made string literal to static const std::string.
  6075. Rewritten CookieParser::setField.
  6076. * src/A2STR.cc
  6077. * src/A2STR.h
  6078. * src/CookieBoxFactory.cc
  6079. * src/CookieBoxFactory.h
  6080. * src/CookieParser.cc
  6081. * src/CookieParser.h
  6082. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Made string literal to static const std::string
  6084. * src/DHTAbstractMessage.cc
  6085. * src/DHTAnnouncePeerMessage.cc
  6086. * src/DHTAnnouncePeerMessage.h
  6087. * src/DHTAnnouncePeerReplyMessage.cc
  6088. * src/DHTAnnouncePeerReplyMessage.h
  6089. * src/DHTFindNodeMessage.cc
  6090. * src/DHTFindNodeMessage.h
  6091. * src/DHTFindNodeReplyMessage.cc
  6092. * src/DHTFindNodeReplyMessage.h
  6093. * src/DHTGetPeersMessage.cc
  6094. * src/DHTGetPeersMessage.h
  6095. * src/DHTGetPeersReplyMessage.cc
  6096. * src/DHTGetPeersReplyMessage.h
  6097. * src/DHTMessage.cc
  6098. * src/DHTMessage.h
  6099. * src/DHTMessageFactoryImpl.cc
  6100. * src/DHTMessageReceiver.cc
  6101. * src/DHTPingMessage.cc
  6102. * src/DHTPingMessage.h
  6103. * src/DHTPingReplyMessage.cc
  6104. * src/DHTPingReplyMessage.h
  6105. * src/DHTQueryMessage.cc
  6106. * src/DHTQueryMessage.h
  6107. * src/DHTResponseMessage.cc
  6108. * src/DHTResponseMessage.h
  6109. * src/DHTUnknownMessage.cc
  6110. * src/DHTUnknownMessage.h
  6111. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Made string literal to static const std::string
  6113. * src/BtChokeMessage.cc (toString)
  6114. * src/BtHaveAllMessage.cc (toString)
  6115. * src/BtHaveNoneMessage.cc (toString)
  6116. * src/BtInterestedMessage.cc (toString)
  6117. * src/BtNotInterestedMessage.cc (toString)
  6118. * src/BtUnchokeMessage.cc (toString)
  6119. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Replaced "" with static const variable A2STR::NIL.
  6121. Replaced string comparison against "" with std::string::empty().
  6122. Added PROTO_* to Request class and use them as a protocol string
  6123. constant.
  6124. Made "started", "stopped", "completed" static const variable in
  6125. AnnounceList class.
  6126. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Updated translations. Great thanks to translators.
  6128. * po/ca.po
  6129. * po/de.po
  6130. * po/fr.po
  6131. * po/it.po
  6132. * po/ja.po
  6133. * po/ru.po
  6134. * po/zh_CN.po
  6135. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6136. Updated man page; categorized options and fixed typo.
  6137. * doc/aria2c.1.txt
  6138. * doc/aria2c.1.html
  6139. * doc/aria2c.1
  6140. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Removed const ref
  6142. * src/MetalinkEntry.cc (AddProtocolPreference)
  6143. * src/RequestGroup.cc (FindServerHostByHostname)
  6144. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Rewritten Accept-Features handling.
  6146. * src/HttpRequestCommand.cc (createHttpRequest)
  6147. * src/a2functional.h
  6148. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6149. Changed method signature:
  6150. DHTAbstractNodeLookupTask::toEntries
  6151. * src/DHTAbstractNodeLookupTask.cc
  6152. * src/DHTAbstractNodeLookupTask.h
  6153. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Changed method signature:
  6155. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6156. * src/BtContext.h
  6157. * src/DefaultBtContext.cc
  6158. * src/DefaultBtContext.h
  6159. * src/DefaultBtInteractive.cc
  6160. * test/DefaultBtContextTest.cc
  6161. * test/MockBtContext.h
  6162. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Changed method signature:
  6164. MultiFileAllocationIterator::makeDiskWriterEntries
  6165. * src/MultiFileAllocationIterator.cc
  6166. * src/MultiFileAllocationIterator.h
  6167. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Changed method sinature:
  6169. MetalinkEntry::toFileEntry,
  6170. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6171. Metalinker::queryEntry
  6172. * src/Metalink2RequestGroup.cc
  6173. * src/MetalinkEntry.cc
  6174. * src/MetalinkEntry.h
  6175. * src/MetalinkHelper.cc
  6176. * src/MetalinkHelper.h
  6177. * src/Metalinker.cc
  6178. * src/Metalinker.h
  6179. * src/main.cc
  6180. * test/MetalinkHelperTest.cc
  6181. * test/MetalinkerTest.cc
  6182. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6183. Changed method sinature:
  6184. RequestGroup::getURIs
  6185. * src/RequestGroup.cc
  6186. * src/RequestGroup.h
  6187. * test/Metalink2RequestGroupTest.cc
  6188. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Changed method signature:
  6190. PeerListProcessor::extractPeer
  6191. * src/CompactPeerListProcessor.cc
  6192. * src/CompactPeerListProcessor.h
  6193. * src/DefaultBtAnnounce.cc
  6194. * src/DefaultPeerListProcessor.cc
  6195. * src/DefaultPeerListProcessor.h
  6196. * src/DelegatingPeerListProcessor.cc
  6197. * src/DelegatingPeerListProcessor.h
  6198. * src/PeerListProcessor.h
  6199. * src/UTPexExtensionMessage.cc
  6200. * test/DefaultPeerListProcessorTest.cc
  6201. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Changed method signature:
  6203. BtRequestFactory::createRequestMessages,
  6204. BtRequestFactory::createRequestMessagesOnEndGame
  6205. * src/BtRequestFactory.h
  6206. * src/DefaultBtInteractive.cc
  6207. * src/DefaultBtRequestFactory.cc
  6208. * src/DefaultBtRequestFactory.h
  6209. * test/DefaultBtRequestFactoryTest.cc
  6210. * test/MockBtRequestFactory.h
  6211. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Changed method signature:
  6213. PieceStorage::getInFlightPieces
  6214. * src/DefaultBtProgressInfoFile.cc
  6215. * src/DefaultPieceStorage.cc
  6216. * src/DefaultPieceStorage.h
  6217. * src/PieceStorage.h
  6218. * src/UnknownLengthPieceStorage.cc
  6219. * src/UnknownLengthPieceStorage.h
  6220. * test/DefaultBtProgressInfoFileTest.cc
  6221. * test/MockPieceStorage.h
  6222. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. Changed method signature:
  6224. PostDownloadHandler::getNextRequestGroups
  6225. Metalink2RequestGroup::generate
  6226. RequestGroup::postDownloadProcessing
  6227. * src/BtPostDownloadHandler.cc
  6228. * src/BtPostDownloadHandler.h
  6229. * src/Metalink2RequestGroup.cc
  6230. * src/Metalink2RequestGroup.h
  6231. * src/MetalinkPostDownloadHandler.cc
  6232. * src/MetalinkPostDownloadHandler.h
  6233. * src/PostDownloadHandler.h
  6234. * src/RequestGroup.cc
  6235. * src/RequestGroup.h
  6236. * src/RequestGroupMan.cc
  6237. * src/main.cc
  6238. * test/BtPostDownloadHandlerTest.cc
  6239. * test/Metalink2RequestGroupTest.cc
  6240. * test/MetalinkPostDownloadHandlerTest.cc
  6241. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Rewritten AccRequestGroup
  6243. * src/main.cc
  6244. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Rewritten.
  6246. * src/TaggedItem.cc (toTagString)
  6247. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6248. Rewritten Accept-Features handling.
  6249. * src/HttpRequestCommand.cc (createHttpRequest)
  6250. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Rewritten accept types handling.
  6252. * HttpRequest.cc (createRequest)
  6253. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Rewritten
  6255. * src/FeatureConfig.cc (featureSummary)
  6256. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6257. Changed method signature:
  6258. PeerStorage::getActivePeers
  6259. * src/DHTPeerAnnounceEntry.cc
  6260. * src/DefaultPeerStorage.cc
  6261. * src/DefaultPeerStorage.h
  6262. * src/PeerStorage.h
  6263. * test/DefaultPeerStorageTest.cc
  6264. * test/MockPeerStorage.h
  6265. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Changed method signature:
  6267. DHTPeerAnnounceStorage::getPeers,
  6268. DHTPeerAnnounceEntry::getPeers
  6269. * src/DHTGetPeersMessage.cc
  6270. * src/DHTPeerAnnounceEntry.cc
  6271. * src/DHTPeerAnnounceEntry.h
  6272. * src/DHTPeerAnnounceStorage.cc
  6273. * src/DHTPeerAnnounceStorage.h
  6274. * test/DHTAnnouncePeerMessageTest.cc
  6275. * test/DHTPeerAnnounceEntryTest.cc
  6276. * test/DHTPeerAnnounceStorageTest.cc
  6277. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Changed method signature:
  6279. NameResolver::resolve
  6280. * src/DHTEntryPointNameResolveCommand.cc
  6281. * src/InitiateConnectionCommand.cc
  6282. * src/NameResolver.cc
  6283. * src/NameResolver.h
  6284. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. Changed method signature:
  6286. PieceStorage::getAdvertisedPieceIndexes
  6287. * src/DefaultBtInteractive.cc
  6288. * src/DefaultPieceStorage.cc
  6289. * src/DefaultPieceStorage.h
  6290. * src/PieceStorage.h
  6291. * src/UnknownLengthPieceStorage.h
  6292. * test/MockPieceStorage.h
  6293. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Changed method signature:
  6295. SegmentMan::getInFlightSegment
  6296. * src/AbstractCommand.cc
  6297. * src/SegmentMan.cc
  6298. * src/SegmentMan.h
  6299. * test/SegmentManTest.cc
  6300. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Changed method signature:
  6302. DHTAbstractNodeLookupTask::getNodesFromMessage
  6303. * src/DHTAbstractNodeLookupTask.cc
  6304. * src/DHTAbstractNodeLookupTask.h
  6305. * src/DHTNodeLookupTask.cc
  6306. * src/DHTNodeLookupTask.h
  6307. * src/DHTPeerLookupTask.cc
  6308. * src/DHTPeerLookupTask.h
  6309. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6311. * src/AbstractCommand.cc
  6312. * src/BtCheckIntegrityEntry.cc
  6313. * src/BtCheckIntegrityEntry.h
  6314. * src/BtFileAllocationEntry.cc
  6315. * src/BtFileAllocationEntry.h
  6316. * src/BtSetup.cc
  6317. * src/BtSetup.h
  6318. * src/CheckIntegrityCommand.cc
  6319. * src/CheckIntegrityEntry.h
  6320. * src/ChecksumCheckIntegrityEntry.cc
  6321. * src/ChecksumCheckIntegrityEntry.h
  6322. * src/DHTSetup.cc
  6323. * src/DHTSetup.h
  6324. * src/DownloadEngine.cc
  6325. * src/FileAllocationCommand.cc
  6326. * src/FileAllocationEntry.h
  6327. * src/RequestGroup.cc
  6328. * src/RequestGroup.h
  6329. * src/RequestGroupMan.cc
  6330. * src/RequestGroupMan.h
  6331. * src/StreamCheckIntegrityEntry.cc
  6332. * src/StreamCheckIntegrityEntry.h
  6333. * src/StreamFileAllocationEntry.cc
  6334. * src/StreamFileAllocationEntry.h
  6335. * src/TrackerWatcherCommand.cc
  6336. * src/a2functional.h
  6337. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Changed method signature:
  6339. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6340. DHTBucket::getGoodNodes,
  6341. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6342. * src/BNode.cc
  6343. * src/BNode.h
  6344. * src/DHTAbstractNodeLookupTask.cc
  6345. * src/DHTAutoSaveCommand.cc
  6346. * src/DHTBucket.cc
  6347. * src/DHTBucket.h
  6348. * src/DHTBucketRefreshTask.cc
  6349. * src/DHTFindNodeMessage.cc
  6350. * src/DHTGetPeersMessage.cc
  6351. * src/DHTRoutingTable.cc
  6352. * src/DHTRoutingTable.h
  6353. * test/BNodeTest.cc
  6354. * test/DHTBucketTest.cc
  6355. * test/DHTRoutingTableTest.cc
  6356. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. In piece selection functions, Pass std::deque<...> by reference rather
  6358. than returning it.
  6359. * src/BitfieldMan.cc
  6360. * src/BitfieldMan.h
  6361. * src/DefaultBtRequestFactory.cc
  6362. * src/DefaultPieceStorage.cc
  6363. * src/Piece.cc
  6364. * src/Piece.h
  6365. * test/BitfieldManTest.cc
  6366. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Implemented rarest piece first piece selection strategy.
  6368. * src/AbstractBtMessage.cc
  6369. * src/AbstractBtMessage.h
  6370. * src/BitfieldMan.cc
  6371. * src/BitfieldMan.h
  6372. * src/BtBitfieldMessage.cc
  6373. * src/BtHaveAllMessage.cc
  6374. * src/BtHaveMessage.cc
  6375. * src/DefaultPieceStorage.cc
  6376. * src/DefaultPieceStorage.h
  6377. * src/PeerInteractionCommand.cc
  6378. * src/PieceStorage.h
  6379. * src/UnknownLengthPieceStorage.h
  6380. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. Rewritten readData and writeData.
  6382. * src/MultiDiskAdaptor.cc
  6383. * src/MultiDiskAdaptor.h
  6384. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Move \n out of the message "Usage: ...".
  6386. * src/version_usage.cc
  6387. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6388. Bump up version number to 0.13.2b.
  6389. * configure.ac
  6390. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Added const qualifier to argument Exception& e.
  6392. * src/Logger.h
  6393. * src/SimpleLogger.cc
  6394. * src/SimpleLogger.h
  6395. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Pool connection when CWD, SIZE command fails.
  6397. * src/FtpNegotiationCommand.cc
  6398. * src/FtpNegotiationCommand.h
  6399. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6401. * src/HttpResponseCommand.cc
  6402. * src/HttpSkipResponseCommand.cc
  6403. * src/HttpSkipResponseCommand.h
  6404. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. Pool connection when a server returns 4xx, 5xx responses.
  6406. * src/HttpNullDownloadCommand.cc
  6407. * src/HttpNullDownloadCommand.h
  6408. * src/HttpResponse.cc
  6409. * src/HttpResponse.h
  6410. * src/HttpResponseCommand.cc
  6411. * src/HttpResponseCommand.h
  6412. * test/HttpResponseTest.cc
  6413. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Print usage when no URL is specifed or bad command-line option is
  6415. specified.
  6416. * src/HelpItemFactory.cc
  6417. * src/help_tags.h
  6418. * src/option_processing.cc
  6419. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Removed duplicate log message.
  6421. * src/AbstractCommand.cc (asyncResolveHostname)
  6422. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6423. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6424. Changed -j option's default value from 5 to 1.
  6425. Added new examples using protocol auto detection feature.
  6426. Removed -T, -M usage where it can be omitted.
  6427. * doc/aria2c.1.txt
  6428. * doc/aria2c.1.html
  6429. * doc/aria2c.1.txt
  6430. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Updated command-line usage text, so that it tells users that they
  6432. can specify any number of torrent files and metalink files in
  6433. command-line.
  6434. * src/version_usage.cc
  6435. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Changed the default value of -j option to 1.
  6437. * src/HelpItemFactory.cc
  6438. * src/option_processing.cc
  6439. * src/usage_text.h
  6440. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6441. Added the ability to reuse connection in FTP and it is enabled by
  6442. default. It can be disabled by --ftp-reuse-connection=false option.
  6443. * src/Command.cc
  6444. * src/DownloadCommand.cc
  6445. * src/FtpDownloadCommand.cc
  6446. * src/FtpDownloadCommand.h
  6447. * src/FtpFinishDownloadCommand.cc
  6448. * src/FtpFinishDownloadCommand.h
  6449. * src/FtpInitiateConnectionCommand.cc
  6450. * src/FtpNegotiationCommand.cc
  6451. * src/FtpNegotiationCommand.h
  6452. * src/HelpItemFactory.cc
  6453. * src/Makefile.am
  6454. * src/Makefile.in
  6455. * src/OptionHandlerFactory.cc
  6456. * src/option_processing.cc
  6457. * src/prefs.h
  6458. * src/usage_text.h
  6459. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6460. Call Command::transitStatus() before calling Command::execute(),
  6461. so that the status change made in execute() is not cleared.
  6462. * src/DownloadEngine.cc
  6463. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Removed forward declaration of SocketCore class.
  6465. * src/HttpDownloadCommand.h
  6466. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  6468. in InitiateConnectionCommandFactory. They should be set only when
  6469. the protocol is HTTP or HTTPS.
  6470. * src/InitiateConnectionCommandFactory.cc
  6471. * src/RequestGroup.cc
  6472. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Fixed infinite loop in checksum checking.
  6474. * src/IteratableChecksumValidator.cc
  6475. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Set _supportsPersistentConnection to true by default.
  6477. * src/Request.cc
  6478. * src/RequestGroup.cc
  6479. * test/HttpRequestTest.cc
  6480. * test/RequestTest.cc
  6481. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Added timeout to socket pool. The default timeout is 15 seconds,
  6483. which is the same value Apache uses.
  6484. * src/DownloadEngine.cc
  6485. * src/DownloadEngine.h
  6486. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6487. Fixed misuse of multimap::find()
  6488. * src/HttpHeader.cc
  6489. * test/HttpHeaderTest.cc
  6490. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  6492. option.
  6493. The asynchronous DNS is not capable of IPv6 yet.
  6494. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  6495. least for HTTP download.
  6496. * src/AbstractCommand.cc
  6497. * src/AbstractCommand.h
  6498. * src/AsyncNameResolver.cc
  6499. * src/AsyncNameResolver.h
  6500. * src/DHTEntryPointNameResolveCommand.cc
  6501. * src/DHTEntryPointNameResolveCommand.h
  6502. * src/DownloadEngine.cc
  6503. * src/DownloadEngine.h
  6504. * src/FtpInitiateConnectionCommand.cc
  6505. * src/FtpInitiateConnectionCommand.h
  6506. * src/HelpItemFactory.cc
  6507. * src/HttpInitiateConnectionCommand.cc
  6508. * src/HttpInitiateConnectionCommand.h
  6509. * src/InitiateConnectionCommand.cc
  6510. * src/InitiateConnectionCommand.h
  6511. * src/Makefile.am
  6512. * src/Makefile.in
  6513. * src/NameResolver.cc
  6514. * src/NameResolver.h
  6515. * src/OptionHandlerFactory.cc
  6516. * src/SocketCore.cc
  6517. * src/SocketCore.h
  6518. * src/Util.cc
  6519. * src/Util.h
  6520. * src/option_processing.cc
  6521. * src/prefs.h
  6522. * src/usage_text.h
  6523. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Updated man page: --quiet, --header were added.
  6525. --metalink-servers and --enable-http-keep-alive option were updated.
  6526. * doc/aria2c.1
  6527. * doc/aria2c.1.html
  6528. * doc/aria2c.1.txt
  6529. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Enable HTTP keep-alive by default.
  6531. * src/HelpItemFactory.cc
  6532. * src/option_processing.cc
  6533. * src/usage_text.h
  6534. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Disable http keep-alive if the remote server is not HTTP/1.1.
  6536. * src/HttpConnection.cc
  6537. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Receive content body of 302 response so that the connection can be
  6539. reused later when http keep-alive is enabled.
  6540. * src/HttpNullDownloadCommand.cc
  6541. * src/HttpNullDownloadCommand.h
  6542. * src/HttpResponseCommand.cc
  6543. * src/HttpResponseCommand.h
  6544. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. const SharedHandle<Request> -> const SharedHandle<Request>&
  6546. * src/FtpDowndloadCommand.cc
  6547. * src/FtpDowndloadCommand.h
  6548. * src/HttpDownloadCommand.cc
  6549. * src/HttpDownloadCommand.h
  6550. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Fixed the bug that the control file(.aria2 file) is not renamed
  6552. according to tryAutoFileRenaming().
  6553. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6554. its control file exist, use them and continue download.
  6555. The old implementation didn't take into account of control file's
  6556. existence, so basically you couldn't continue download of renamed file.
  6557. * src/BtProgressInfoFile.h
  6558. * src/DefaultBtProgressInfoFile.cc
  6559. * src/DefaultBtProgressInfoFile.h
  6560. * src/NullProgressInfoFile.h
  6561. * src/RequestGroup.cc
  6562. * test/DefaultBtProgressInfoFileTest.cc
  6563. * test/MockBtProgressInfoFile.h
  6564. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. Change the default value of --metalink-servers option from `5' to `1'.
  6566. * src/HelpItemFactory.cc
  6567. * src/option_processing.cc
  6568. * src/usage_text.h
  6569. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Reimplemented transparent metalink using Accept request header.
  6571. * src/HttpRequest.cc
  6572. * src/HttpRequest.h
  6573. * src/HttpRequestCommand.cc
  6574. * src/Metalink2RequestGroup.cc
  6575. * src/RequestGroup.cc
  6576. * src/RequestGroup.h
  6577. * test/HttpRequestTest.cc
  6578. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. Bump up version number to 0.13.2a
  6580. * configure.ac
  6581. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6582. Updated configure.ac using the result of autoscan.
  6583. * configure.ac
  6584. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6585. Fixed compilation error without gcrypt/openssl.
  6586. * src/DownloadCommand.cc
  6587. * src/DownloadCommand.h
  6588. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Reorganized version information so that it can be displayed in a
  6590. standard terminal screen without scrolling.
  6591. Removed http, ftp from Configuration section, because they are always
  6592. enabled.
  6593. * src/FeatureConfig.cc
  6594. * src/FeatureConfig.h
  6595. * src/main.cc
  6596. * src/messageDigest.cc
  6597. * src/messageDigest.h
  6598. * src/version_usage.cc
  6599. * test/FeatureConfigTest.cc
  6600. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Masked user ID in log.
  6602. * src/FtpConnection.cc (sendUser)
  6603. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Removed query part from filename in HTTP download. The query part means
  6605. the substring after "?" in URL. Firefox seems do the same thing.
  6606. A query part is sometimes very long and not suitable to filename,
  6607. so I think it is better to remove it from filename.
  6608. * src/HttpRequest.cc
  6609. * src/HttpRequest.h
  6610. * src/Request.cc
  6611. * src/Request.h
  6612. * test/HttpRequestTest.cc
  6613. * test/RequestTest.cc
  6614. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Rewritten Exception class. Throw exception object, not its pointer and
  6616. catch by reference, so that remove problematic delete operator for
  6617. catched exception.
  6618. * src/Exception.cc
  6619. * src/Exception.h
  6620. * test/ExceptionTest.cc
  6621. * src/*: All files throwing/catching exception.
  6622. * test/*: All files throwing/catching exception.
  6623. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6624. Now auto protocol detection is enabled without -Z option.
  6625. But there is a important difference between with/without -Z optoin.
  6626. For example, if you type:
  6627. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6628. then, aria2 interprets there are 3 request groups:
  6629. (1) http://host/file, http://mirror/file <-- multi-source download
  6630. (2) file1.torrent
  6631. (3) file2.metalink
  6632. On the other hand, if you invoke above command with -Z option, it is
  6633. interpreted as 4 request groups:
  6634. (1) http://host/file
  6635. (2) file1.torrent
  6636. (3) file2.metalink
  6637. (4) http://mirror/file
  6638. I think usually user don't mix multi-source URLs and torrent files, so
  6639. there is no big problem here.
  6640. * src/main.cc
  6641. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Fixed the bug that causes segmentaion fault when reading XML containing
  6643. unescapsed character like '&'.
  6644. Also a modification was made which avoids adding unnecessary
  6645. characters stack and appending unused string.
  6646. * src/ExpatMetalinkProcessor.cc
  6647. * src/FileMetalinkParserState.h
  6648. * src/FilesMetalinkParserState.h
  6649. * src/FinMetalinkParserState.h
  6650. * src/HashMetalinkParserState.h
  6651. * src/InitialMetalinkParserState.h
  6652. * src/LanguageMetalinkParserState.h
  6653. * src/MetalinkMetalinkParserState.h
  6654. * src/MetalinkParserState.h
  6655. * src/MetalinkParserStateMachine.cc
  6656. * src/MetalinkParserStateMachine.h
  6657. * src/OSMetalinkParserState.h
  6658. * src/PieceHashMetalinkParserState.h
  6659. * src/PiecesMetalinkParserState.h
  6660. * src/ResourcesMetalinkParserState.h
  6661. * src/SizeMetalinkParserState.h
  6662. * src/SkipTagMetalinkParserState.h
  6663. * src/URLMetalinkParserState.h
  6664. * src/VerificationMetalinkParserState.h
  6665. * src/VersionMetalinkParserState.h
  6666. * src/XML2SAXMetalinkProcessor.cc
  6667. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Added StringFormat class, which internally calls vasprintf.
  6669. operator<< is defined for this class, so it can be used with iostream
  6670. classes nicely. SimpleLogger and following functions are rewritten
  6671. using StringFormat class.
  6672. Besides, now Logger class's methods are non-const, many classes
  6673. that has a const Logger* as a member variable are modified to remove
  6674. const qualifier from the variable declaration.
  6675. * src/HelpItemFactory.cc
  6676. * src/Request.cc
  6677. * src/SimpleLogger.cc
  6678. * src/StringFormat.cc
  6679. * src/StringFormat.h
  6680. * src/Util.cc
  6681. * src/option_processing.cc
  6682. * src/version_usage.cc
  6683. * test/StringFormatTest.cc
  6684. * src/*.h: The classes that has const Logger* as a member variable.
  6685. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6687. failed. Also fixed memory link when exception is thrown there.
  6688. * src/main.cc (AccRequestGroup)
  6689. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Added build-in "Accept-Features" support. For now only "metalink" is
  6691. used in this header field.
  6692. This "metalink" value is removed from the list when connecting URLs
  6693. fed by metalink file to avoid loop in "transparent" metlaink.
  6694. * src/HttpRequest.cc
  6695. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6696. header is also held in this variable. Also renamed setUserHeaders as
  6697. addHeader and it was rewritten to add header not just to clear the old
  6698. value.
  6699. * src/HttpRequestCommand.cc
  6700. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6701. from "Accept-Features" list.
  6702. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6703. default.
  6704. * src/RequestGroup.h
  6705. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6706. * src/a2functional.h: Included <string> because Concat class depends on
  6707. it.
  6708. * test/HttpRequestTest.cc
  6709. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Added comment
  6711. * src/RequestGroup.cc (createNextCommand)
  6712. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Capitalized METHOD_GET and METHOD_HEAD
  6714. * src/Request.cc
  6715. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Added getDownloadResults() method
  6717. * src/RequestGroupMan.cc
  6718. * src/RequestGroupMan.h
  6719. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Fixed the bug that aria2 exits when commands is empty() but
  6721. _routineCommands are not.
  6722. * src/DownloadEngine.cc
  6723. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6724. Use the default value pulled from Option object in HelpItemFactory.
  6725. except options whose defualt value is embedded in a usage text.
  6726. * src/HelpItemFactory.cc
  6727. * src/HelpItemFactory.h
  6728. * src/option_processing.cc
  6729. * src/version_usage.cc
  6730. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Added --quiet option to make aria2 quiet (no console output).
  6732. --quiet option is tagged with ADVANCED.
  6733. * src/HelpItemFactory.cc
  6734. * src/LogFactory.cc
  6735. * src/LogFactory.h
  6736. * src/MultiUrlRequestInfo.cc
  6737. * src/MultiUrlRequestInfo.h
  6738. * src/NullStatCalc.h: New class. This class prints nothing.
  6739. * src/OptionHandlerFactory.cc
  6740. * src/main.cc
  6741. * src/option_processing.cc
  6742. * src/prefs.h
  6743. * src/usage_text.h
  6744. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6746. * src/HelpItemFactory.cc (createHelpItems):
  6747. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Fixed compilation error in ExpatMetalinkProcessor.cc
  6749. * src/ExpatMetalinkProcessor.cc
  6750. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Reuse socket if the origin server supports HTTP keep-alive and
  6752. --enable-http-keep-alive or --enable-http-pipelining is given.
  6753. The current implementation doesn't reuse the connections established
  6754. against proxy server.
  6755. * src/AbstractCommand.cc
  6756. * src/DownloadEngine.cc
  6757. * src/DownloadEngine.h
  6758. * src/HttpDownloadCommand.cc
  6759. * src/HttpInitiateConnectionCommand.cc
  6760. * src/HttpResponseCommand.cc
  6761. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6762. Rewritten HTTP keep-alive and pipelining routine.
  6763. * src/AbstractCommand.cc
  6764. * src/HttpConnection.cc
  6765. * src/HttpDownloadCommand.cc
  6766. * src/HttpRequest.cc
  6767. * src/HttpRequestCommand.cc
  6768. * src/HttpResponseCommand.cc
  6769. * src/Request.cc
  6770. * src/Request.h
  6771. * src/RequestGroup.cc
  6772. * test/HttpRequestTest.cc
  6773. * test/HttpResponseTest.cc
  6774. * test/RequestTest.cc
  6775. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Added missing setUserHeaders call
  6777. * src/HttpRequestCommand.cc
  6778. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6780. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6781. waste of time because it is more likey false.
  6782. * src/FileAllocationDispatcherCommand.cc (execute)
  6783. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Now HTTP status and version are a member variable of HttpHeader.
  6785. HTTP status is processed as a string, not integer.
  6786. * src/AbstractProxyResponseCommand.cc
  6787. * src/HttpConnection.cc
  6788. * src/HttpHeader.cc
  6789. * src/HttpHeader.h
  6790. * src/HttpHeaderProcessor.cc
  6791. * src/HttpHeaderProcessor.h
  6792. * src/HttpResponse.cc
  6793. * src/HttpResponse.h
  6794. * test/HttpHeaderProcessorTest.cc
  6795. * test/HttpResponseTest.cc
  6796. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Added --header option. You can specify any number of additional HTTP headers
  6798. like:
  6799. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6800. Unlike other commad-line option, you can use --header option multiple times.
  6801. * src/HelpItemFactory.cc
  6802. * src/HttpRequest.{cc, h}
  6803. * src/HttpRequestCommand.cc
  6804. * src/OptionHandlerFactory.cc
  6805. * src/OptionHandlerImpl.h
  6806. * src/option_processing.cc
  6807. * src/prefs.h
  6808. * src/usage_text.h
  6809. * test/HttpRequestTest.cc (testUserHeaders)
  6810. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Eliminates the time lag between sequential downloads and commands in
  6812. the same RequestGroup.
  6813. In old implementation, aria2 occasionally waits 1 seconds before
  6814. executing next command or RequestGroup.
  6815. This is really a waste of time, and new implementation eliminates
  6816. this unnecessary time lag.
  6817. * src/AbstractCommand.cc
  6818. * src/AutoSaveCommand.cc
  6819. * src/CheckIntegrityCommand.cc
  6820. * src/Command.{cc, h}
  6821. * src/DownloadEngine.{cc, h}
  6822. * src/DownloadEngineFactory.cc
  6823. * src/FileAllocationCommand.cc
  6824. * src/FileAllocationDispatcherCommand.cc
  6825. * src/FillRequestGroupCommand.cc
  6826. * src/FtpInitiateConnectionCommand.cc
  6827. * src/HaveEraseCommand.cc
  6828. * src/HttpInitiateConnectionCommand.cc
  6829. * src/HttpResponseCommand.cc
  6830. * src/RealtimeCommand.cc
  6831. * src/RequestGroup.cc
  6832. * src/RequestGroupMan.cc
  6833. * src/StreamFileAllocationEntry.cc
  6834. * src/TimeBasedCommand.{cc, h}
  6835. * src/TimedHaltCommand.cc
  6836. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6838. keyword explicit and SharedHandle's default constructor initializes
  6839. its internal obj to null, old implementation initializes it using
  6840. obj's default constructor.
  6841. To assign null, write SharedHandle<T> x(...); x.reset();
  6842. TODO: test/SharedHandleTest.cc needs more tests.
  6843. * src/SharedHandle.h
  6844. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Fixed type in man page.
  6846. * doc/aria2c.1.txt
  6847. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6849. * src/SimpleLogger.{cc, h}
  6850. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Implemented auto protocol detection.
  6852. Now you can do:
  6853. aria2c -Z http://host/file file1.torrent file2.metalink
  6854. (Note: -Z option is required for auto protcol detection.)
  6855. Then aria2c downloads 3 files simultaneously:
  6856. 1. http://host/file
  6857. 2. file1.torrent <-- read local torrent file
  6858. 3. file2.metalink <-- read local Metalink file.
  6859. Same thing goes with -i option. Assume your uris.txt contans:
  6860. http://host/file
  6861. file1.torrent
  6862. file2.metalink
  6863. Then you can do: aria2c -i uris.txt
  6864. (Note: -Z option is not needed if -i option is given.)
  6865. * src/main.cc
  6866. * src/ProtocolDetector.{cc, h}
  6867. * test/ProtocolDetectorTest.cc
  6868. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6870. installed
  6871. * src/ARC4Encryptor.h
  6872. * src/ARC4Decryptor.h
  6873. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6874. Renamed argument from 'errno' to 'err', since errno is confused with
  6875. errno defined in errno.h.
  6876. * src/LibgcryptARC4Decryptor.h
  6877. * src/LibgcryptARC4Context.h
  6878. * src/LibgcryptDHKeyExchange.h
  6879. * src/LibgcryptARC4Encryptor.h
  6880. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Rewritten choking algorithm.
  6882. * src/PeerChokeCommand.{cc, h}
  6883. * src/BtInterestedMessage.cc
  6884. * src/PeerSessionResource.{cc, h}
  6885. * src/DefaultPeerStorage.{cc, h}
  6886. * src/BtNotInterestedMessage.cc
  6887. * src/DefaultBtMessageDispatcher.{cc, h}
  6888. * src/BtMessageDispatcher.h
  6889. * src/Peer.{cc, h}
  6890. * src/BtLeecherStateChoke.{cc, h}
  6891. * src/BtSetup.cc
  6892. * src/BtSeederStateChoke.{cc, h}
  6893. * src/PeerStorage.h
  6894. * test/MockPeerStorage.h
  6895. * test/MockBtMessageDispatcher.h
  6896. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Fixed compilation error on x84-64 platform.
  6898. * src/AuthConfig.cc: Included ostream.
  6899. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Rewritten getBasename() and getDirname(), without standard library
  6901. basename(), dirname().
  6902. * src/File.cc
  6903. * test/FileTest.cc
  6904. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. Added Simplified Chinese translation. Also updated the following
  6906. translations: Polish, Dutch, German. Great thanks to all translators.
  6907. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Suppress content-range error when 'Content-Range' response header
  6909. doesn't contains bytes-unit specifier 'bytes'
  6910. * src/HttpHeader.cc (getRange)
  6911. * test/HttpHeaderTest.cc
  6912. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Fixed compilation error with g++-4.3
  6914. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. Added missing include files for MinGW
  6916. * test/HttpHeaderProcessorTest.cc
  6917. * test/DHTRoutingTableSerializerTest.cc
  6918. * test/DHTRoutingTableDeserializerTest.cc
  6919. * test/UriListParserTest.cc
  6920. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Now download line is printed nicely with no garbage at the end of
  6922. line. I use ioctl to get the columns of terminal.
  6923. If stdout is redirected to another device, instead of carriage return,
  6924. end of line '\n' character is used. This is feature request#1909659
  6925. * src/ConsoleStatCalc.cc (calculateStat)
  6926. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6927. Included a2time.h
  6928. * src/DHTMessageDispatcher.h
  6929. * src/DHTMessageEntry.h
  6930. * src/DHTReplaceNodeTask.h
  6931. * src/DHTMessageTracker.h
  6932. * src/Util.h
  6933. * src/CookieBox.h
  6934. * src/SocketCore.h
  6935. * src/DefaultBtMessageDispatcher.h
  6936. * src/SocketCore.cc
  6937. * src/Util.cc
  6938. * src/DHTPingTask.h
  6939. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Fixed high memory footprint when DHT is enabled.
  6941. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6942. queued than it is processed and the queue is getting longer. As a
  6943. consequence, momory usage is increased.
  6944. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6945. replacement cache in DHTBucket which is described in Kademlia paper.
  6946. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6947. DHTReplaceNodeTask.
  6948. * src/DHTBucket.{h, cc}
  6949. (cacheNode): New function.
  6950. (getCachedNodes): New function.
  6951. (dropNode): Push back cached node to _nodes.
  6952. * test/DHTBucketTest.cc
  6953. (testCacheNode): New test
  6954. (testDropNode): New test
  6955. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6957. the unused 4KB memory when ssl is not used.
  6958. * src/SocketCore.cc
  6959. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. Added summary log for peer announce storage.
  6961. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6962. Removed cast
  6963. * src/DefaultPeerStorage.cc (addPeer)
  6964. Log exception message
  6965. * src/DHTMessageTracker.cc (handleTimeout)
  6966. Fixed casting
  6967. * test/HttpRequestTest.cc
  6968. * test/MetalinkProcessorTest.cc
  6969. * test/PieceTest.cc
  6970. * test/MetalinkEntryTest.cc
  6971. * test/SequenceTest.cc
  6972. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. * src/ParameterizedStringParser.cc (createLoop):
  6974. Removed unused variable sstep.
  6975. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6976. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. * src/Util.{h, cc}
  6978. (parseUInt): New function.
  6979. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6980. The actual range is uint32_t.
  6981. * test/UtilTest.cc
  6982. * src/ParameterizedStringParser.cc:
  6983. Use Util::parseUInt() for loop variables.
  6984. * test/ParameterizedStringParserTest.cc
  6985. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6986. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Rewritten the functions for binding port.
  6988. * src/DHTConnectionImpl.{h, cc}
  6989. * src/PeerListenCommand.{h, cc}
  6990. * src/DHTSetup.cc
  6991. * src/BtSetup.cc
  6992. * test/DHTConnectionImplTest.cc
  6993. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6994. type cleanup for allmost all remaining files.
  6995. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. Type clarification
  6997. * src/PeerSessionResource.{h, cc}
  6998. * src/DefaultPieceStorage.{h, cc}
  6999. * src/Peer.{h, cc}
  7000. * test/PeerSessionResourceTest.cc
  7001. Use div function
  7002. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7003. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Type clarification
  7005. * src/DefaultPeerStorage.{h, cc}
  7006. * test/DefaultPeerStorageTest.cc
  7007. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7008. Type clarification: size_t for length or size, uint64_t for file
  7009. length, off_t for file offset.
  7010. * src/DefaultBtProgressInfoFile.cc
  7011. * src/DefaultBtContext.{h, cc}
  7012. * src/DefaultBtInteractive.cc
  7013. * src/DownloadCommand.{h, cc}
  7014. * src/IteratableChunkChecksumValidator.{h, cc}
  7015. * src/SegmentMan.{h, cc}
  7016. * src/SingleFileDownloadContext.{h, cc}
  7017. * src/IteratableChecksumValidator.{h, cc}
  7018. * src/BtContext.h
  7019. * src/IteratableValidator.h
  7020. * src/DownloadContext.h
  7021. * test/SingleFileDownloadContextTest.cc
  7022. * test/DefaultBtContextTest.cc
  7023. * test/MockBtContext.h
  7024. * test/Metalink2RequestGroupTest.cc
  7025. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7026. Type clarification: size_t for length or size, uint64_t for file
  7027. length, off_t for file offset.
  7028. * src/PiecedSegment.cc
  7029. * src/GrowSegment.h
  7030. * src/DefaultBtRequestFactory.h
  7031. * src/DefaultBtProgressInfoFile.cc
  7032. * src/UnknownLengthPieceStorage.h
  7033. * src/DefaultPieceStorage.cc
  7034. * src/UnknownLengthPieceStorage.cc
  7035. * src/DefaultBtInteractive.cc
  7036. * src/GrowSegment.cc
  7037. * src/BitfieldMan.h
  7038. * src/DownloadCommand.cc
  7039. * src/BtRequestFactory.h
  7040. * src/PiecedSegment.h
  7041. * src/DefaultPieceStorage.h
  7042. * src/Piece.cc
  7043. * src/DefaultBtRequestFactory.cc
  7044. * src/PieceStorage.h
  7045. * src/Segment.h
  7046. * src/Piece.h
  7047. * src/BitfieldMan.cc
  7048. * src/Util.cc
  7049. * test/DefaultBtProgressInfoFileTest.cc
  7050. * test/DefaultPieceStorageTest.cc
  7051. * test/MockPieceStorage.h
  7052. * test/BtRequestMessageTest.cc
  7053. * test/DefaultBtMessageDispatcherTest.cc
  7054. * test/BitfieldManTest.cc
  7055. * test/GrowSegmentTest.cc
  7056. * test/PieceTest.cc
  7057. * test/SegmentTest.cc
  7058. * test/SegmentManTest.cc
  7059. * test/DefaultBtRequestFactoryTest.cc
  7060. * test/MockBtRequestFactory.h
  7061. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Fixed compilation error with --disable-nls
  7063. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7064. in gettext.h causes the problem.
  7065. * src/common.h
  7066. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Removed subPiece related functions.
  7068. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7069. * src/DefaultPieceStorage.{h, cc}
  7070. * test/PieceTest.cc
  7071. * test/DefaultPieceStorageTest.cc
  7072. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Use unsigned char for data store.
  7074. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Bump up version number to 0.13.0+1
  7076. * configure.ac
  7077. * Release 0.13.0+1
  7078. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Changed inactive connection timeout to 120.
  7080. To accept more mulually interested peers, disconnect peer when there
  7081. is no interest between us after certain time passed.
  7082. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7083. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7085. when compiled with async DNS support.
  7086. * src/DownloadEngine.cc
  7087. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7088. value '10' will be a little bit short when some DNS servers are
  7089. offline and several DNS servers are tried. It should be configured
  7090. by command-line option.
  7091. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Merged Ross's mingw patch.
  7093. * src/DHTRoutingTableDeserializer.cc
  7094. * src/DHTRoutingTableSerializer.cc
  7095. * src/Platform.{h, cc}
  7096. * src/timegm.h
  7097. * src/gettimeofday.h
  7098. * src/getaddrinfo.h
  7099. * src/SocketCore.h
  7100. * src/common.h
  7101. * src/inet_aton.h
  7102. * src/DownloadEngine.h
  7103. * src/gai_strerror.h
  7104. * src/a2netcompat.h
  7105. * configure.ac
  7106. * configure
  7107. * aclocal.m4
  7108. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Included missing iostream.
  7110. * test/AllTest.cc
  7111. * test/BtDependencyTest.cc
  7112. * test/BtExtendedMessageTest.cc
  7113. * test/DHTConnectionImplTest.cc
  7114. * test/DHTMessageFactoryImplTest.cc
  7115. * test/DHTMessageTrackerEntryTest.cc
  7116. * test/DHTNodeTest.cc
  7117. * test/DHTRoutingTableSerializerTest.cc
  7118. * test/DefaultBtAnnounceTest.cc
  7119. * test/DefaultBtContextTest.cc
  7120. * test/DefaultBtMessageFactoryTest.cc
  7121. * test/DefaultExtensionMessageFactoryTest.cc
  7122. * test/HandshakeExtensionMessageTest.cc
  7123. * test/HttpResponseTest.cc
  7124. * test/MetalinkProcessorTest.cc
  7125. * test/MultiFileAllocationIteratorTest.cc
  7126. * test/SocketCoreTest.cc
  7127. * test/UTPexExtensionMessageTest.cc
  7128. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Reorganized includes.
  7130. * src/NameResolver.cc
  7131. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Fixed compilation error without ares/c-ares
  7133. * src/NameResolver.h:
  7134. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Added a test for large file.
  7136. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7137. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Fixed the bug that file size is ignored if size > INT32_MAX
  7139. * src/SizeMetalinkParserState.cc (endElement):
  7140. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Bump up version number to 0.13.0
  7142. * configure.ac
  7143. * Release 0.13.0
  7144. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Updated Makfefile.am to make 'make dist' work.
  7146. Now packaged filename is aria2c-VERSION.tar.bz2.
  7147. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7148. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7149. Large file support is now configured by configure script.
  7150. * configure.ac
  7151. Removed unsused source files
  7152. * src/
  7153. * test/
  7154. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7155. Peer.h and BtContext.h respectively.
  7156. * src/Peer.h
  7157. * src/BtContext.h
  7158. Updated translations.
  7159. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7160. translations. Great thanks to all translators!;)
  7161. * po/*.{po, gmo}
  7162. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7164. statically declared sha1 MessageDigestContext.
  7165. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7166. initialization of short-lived MessageDigestContext.
  7167. * src/MessageDigestHelper.{h, cc}
  7168. * src/main.cc
  7169. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7170. the initialization of MessageDigestContext every time in validating
  7171. chunk checksum.
  7172. * src/DownloadCommand.{h, cc}
  7173. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7174. Add a file descriptor which connected to fast peer(latency<1500) to
  7175. select(). This change reduced CPU load.
  7176. * src/PeerInteractionCommand.cc
  7177. * src/DefaultBtInteractive.{h, cc}
  7178. * src/BtInteractive.h
  7179. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Fixed the previous insufficient fix for possible busy loop.
  7181. * src/MSEHandshake.cc (identifyHandshakeType)
  7182. Removed unused functions.
  7183. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7184. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7185. Fixed possible busy loop if first 20 bytes are not received for a few
  7186. minutes.
  7187. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7188. * src/ReceiverMSEHandshakeCommand.cc
  7189. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Fixed compilation error
  7191. * src/ExpatMetalinkProcessor.cc
  7192. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7194. * src/DHTBucket.cc
  7195. Removed unnecessary cast.
  7196. * src/HandshakeExtensionMessage.cc
  7197. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7199. is missing.
  7200. * src/OptionHandlerFactory.cc
  7201. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Fixed the bug that HAVE message is not sent for a piece they are
  7203. downloaded fom http/ftp server before any BitTorrent handshake is done
  7204. with peers.
  7205. * src/DefaultBtInteractive.cc
  7206. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7207. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7208. * src/Makefile.am
  7209. * src/Makefile.in
  7210. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. Updated README. Added html version of README and man page.
  7212. * README
  7213. * README.html
  7214. * readme2html: Shell script to generate README.html from README using
  7215. asciidoc.
  7216. * doc/aria2c.1.html
  7217. * doc/makeman: Added the line to generate aria2c.1.html
  7218. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Fixed offset calculation.
  7220. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7221. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Rewritten itos and uitos using template. llitos and ullitos are
  7223. replaced with itos and uitos respectively.
  7224. * src/Util.{h, cc}
  7225. * test/UtilTest.cc
  7226. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7227. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7228. of the number of bytes required for storing public key and shared
  7229. secret.
  7230. * src/LibgcryptDHKeyExchange.h
  7231. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7232. * src/MSEHandshake.cc
  7233. * test/DHKeyExchangeTest.cc
  7234. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Removed since they are not used.
  7236. * src/Xml2MetalinkProcessor.{h, cc}
  7237. * src/Socket.cc
  7238. * src/SegmentSplitter.{h, cc}
  7239. * test/Xml2MetalinkProcessorTest.cc
  7240. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Fixed the bug that prevents aria2 from stopping other than by pressing
  7242. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7243. option. aria2 doesn't stop even after --seed-time is satisfied and
  7244. continues to output blank lines in the console.
  7245. * src/ReceiverMSEHandshakeCommand.cc
  7246. * src/PeerReceiveHandshakeCommand.cc
  7247. * src/PeerListenCommand.cc
  7248. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Bump up version number to 0.13.0rc
  7250. * configure.ac
  7251. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7252. Updated man page and some usage text.
  7253. * doc/aria2c.1.txt
  7254. * src/usage_text.h
  7255. * po/*.{po, gmo}
  7256. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Updated translations. Added Finnish and Hebrew translations.
  7258. Great thanks to all translators!
  7259. * po/*.{po, gmo}
  7260. * po/LINGUAS
  7261. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Log more detailed information about each message.
  7263. * src/DHTQueryMessage.{h, cc}
  7264. * src/DHTGetPeersMessage.{h, cc}
  7265. * src/DHTFindNodeReplyMessage.{h, cc}
  7266. * src/DHTGetPeersReplyMessage.{h, cc}
  7267. * src/DHTAnnouncePeerMessage.{h, cc}
  7268. * src/DHTResponseMessage.{h, cc}
  7269. * src/DHTFindNodeMessage.{h, cc}
  7270. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Use constants defined in prefs.h
  7272. * src/option_processing.cc
  7273. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7274. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7275. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Make room for future enchancements for IPv6 addresses.
  7277. Bump up version number of dht.dat file format to 2.
  7278. Not compatible with previous version.
  7279. * src/DHTRoutingTableSerializer.cc
  7280. * src/DHTRoutingTableDeserializer.cc
  7281. * test/DHTRoutingTableSerializerTest.cc
  7282. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Added handling for the return values from
  7284. PeerMessageUtil::createcompact().
  7285. * src/DefaultBtContext.cc (computeFastSet):
  7286. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Fixed abort when peer's ip address is IPv4-mapped address.
  7288. * src/DefaultBtContext.cc (computeFastSet)
  7289. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7290. cannot handle IPv4-mapped addresses.
  7291. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7292. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Proper return value handling for OpenSSL functions.
  7294. * src/LibsslDHKeyExchange.h
  7295. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. Random bytes generation using libgcrypt and OpenSSL.
  7297. * src/DHTUtil.{h, cc}
  7298. * test/DHTUtilTest.cc
  7299. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7301. received.
  7302. * src/DHTMessageReceiver.cc (receiveMessage)
  7303. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7304. Fixed the bug that a return code is always 0. BUG#1897704
  7305. If error occurred during the download or there exist unfinished
  7306. downloads, aria2 returns with code 1.
  7307. * src/RequestGroupMan.{h, cc}
  7308. * src/MultiUrlRequestInfo.{h, cc}
  7309. * src/main.cc
  7310. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. IPv6 support for SocketCore class.
  7312. TODO: In SocketCore::establishConnection(), this is insufficient to
  7313. determin the failure of connect() here because the socket is
  7314. non-blocking state. The next addresses should be tried after select().
  7315. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7316. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7317. instead which address family independent.
  7318. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7319. information in a compact peer format which is for IPv4 only.
  7320. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7321. this is a spec of BitTorrent protocol.
  7322. * src/SocketCore.{h, cc}
  7323. * src/PeerMessageUtil.cc
  7324. * test/SocketCoreTest.cc
  7325. * test/PeerMessageUtilTest.cc
  7326. * test/DHTConnectionImplTest.cc
  7327. Handle IPv4-mapped addresses.
  7328. * src/DHTNode.cc: Now identity is determined by node id.
  7329. * src/DHTMessageTrackerEntry.cc
  7330. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7331. should handle it.
  7332. * src/DHTRoutingTableDeserializer.cc
  7333. * src/DHTMessageFactoryImpl.cc
  7334. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Change the unit of --stop option from a minute to a second.
  7336. * src/usage_text.h
  7337. * src/DownloadEngineFactory.cc
  7338. * src/OptionHandlerFactory.cc
  7339. * src/message.h
  7340. * src/TimedHaltCommand.cc
  7341. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Make listening socket non-block mode.
  7343. * src/FtpConnection.cc
  7344. * src/FtpNegotiationCommand.{h, cc}
  7345. * src/PeerListenCommand.cc
  7346. Fixed the bug that cause slow ftp negotiation.
  7347. * src/FtpNegotiationCommand.{h, cc}
  7348. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Added basic tag to --enable-dht, --dht-listen-port option.
  7350. * src/HelpItemFactory.cc (createHelpItems)
  7351. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7352. Updated text.
  7353. * src/usage_text.h
  7354. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7356. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Determin _threadtholdSpeed in each constructor for
  7358. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7359. * src/ActivePeerConnectionCommand.{h, cc}
  7360. * src/PeerReceiveHandshakeCommand.{h, cc}
  7361. * src/BtSetup.cc
  7362. * src/BtConstants.h
  7363. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7364. Added --bt-min-crypto-level and --bt-require-crypto options.
  7365. * src/OptionHandlerFactory.cc
  7366. * src/MSEHandshake.cc
  7367. * src/HelpItemFactory.cc
  7368. * src/option_processing.cc
  7369. * src/ReceiverMSEHandshakeCommand.cc
  7370. * src/prefs.h
  7371. * src/DefaultBtAnnounce.cc
  7372. * src/InitiatorMSEHandshakeCommand.cc
  7373. * src/usage_text.h
  7374. * test/MSEHandshakeTest.cc
  7375. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Bump version number to 0.13.0b
  7377. * configure.ac
  7378. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Updated doc.
  7380. * src/MessageDigestHelper.h:
  7381. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Use raw message digest as a token instead of its hexadecimal
  7383. representation.
  7384. * src/DHTTokenTracker.cc (generateToken)
  7385. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Added Message Stream Encryption(MSE) support.
  7387. Currently, aria2 accepts incoming connections with Obfuscation Header
  7388. and legacy BitTorrent Header and establishes connections with
  7389. Obfuscation Header first and if failed then retry with legacy
  7390. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7391. choose ARC4. The new option to change the default behavior is planned.
  7392. For tracker extension, "supportcrypto=1" is added statically.
  7393. * src/PeerInitiateConnectionCommand.{h, cc}
  7394. * src/PeerConnection.{h, cc}
  7395. * src/HandleRegistry.h
  7396. * src/SocketCore.h
  7397. * src/PeerReceiveHandshakeCommand.{h, cc}
  7398. * src/BtRegistry.{h, cc}
  7399. * src/PeerListenCommand.cc
  7400. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7401. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7402. * src/MSEHandshake.{h, cc}
  7403. * src/ARC4Encryptor.h
  7404. * src/ARC4Decryptor.h
  7405. * src/LibgcryptARC4Encryptor.h
  7406. * src/LibgcryptARC4Decryptor.h
  7407. * src/LibgcryptARC4Context.h
  7408. * src/LibsslARC4Encryptor.h
  7409. * src/LibsslARC4Decryptor.h
  7410. * src/LibsslARC4Context.h
  7411. * src/DHKeyExchange.h
  7412. * src/LibgcryptDHKeyExchange.h
  7413. * src/LibsslDHKeyExchange.h
  7414. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7415. * test/DefaultBtAnnounceTest.cc
  7416. * test/ARC4Test.cc
  7417. * test/DHKeyExchangeTest.cc
  7418. Removed prepareForRetry() because it is not used.
  7419. * src/PeerAbstractCommand.{h, cc}
  7420. * src/PeerInteractionCommand.{h, cc}
  7421. * src/PeerInitiateConnectionCommand.{h, cc}
  7422. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. Added the ability to load nodes from torrent file. These nodes are
  7424. added to the routing table when downloading that torrent.
  7425. * src/BtContext.h
  7426. * src/DefaultBtContext.{h, cc}
  7427. * src/DHTSetup.cc
  7428. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7429. hostname and port pair, and resolves all of them.
  7430. * src/NameResolver.{h, cc}: Added reset().
  7431. * src/RequestGroup.cc
  7432. * test/DefaultBtContextTest.cc
  7433. * test/MockBtContext.h
  7434. Removed assert() from DefaultBtContext and throw exception instead.
  7435. * src/DefaultBtContext.cc
  7436. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Fixed segmentation fault bug when exiting if dht is disabled.
  7438. * src/RequestGroup.cc
  7439. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Fixed typo in log message and define the message in message.h
  7441. * src/TimedHaltCommand.cc
  7442. * src/message.h
  7443. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Included RecoverableException.h to fix compilation error.
  7445. * test/DHTMessageFactoryImplTest.cc
  7446. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7448. * test/DHTPingMessageTest.cc
  7449. * test/DHTGetPeersMessageTest.cc
  7450. * test/DHTFindNodeMessageTest.cc
  7451. * test/DHTAnnouncePeerMessageTest.cc
  7452. * test/MockDHTMessage.h
  7453. * test/MockDHTMessageFactory.h
  7454. * test/MockDHTMessageDispatcher.h: New class.
  7455. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7457. virtual.
  7458. * src/DHTMessageDispatcher.h
  7459. * src/DHTMessageDispatcherImpl.{h, cc}
  7460. * src/DHTSetup.cc
  7461. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Adding handling of DHT error message. Just log error message and
  7463. throw exception.
  7464. * src/DHTMessageFactoryImpl.cc
  7465. * test/DHTMessageFactoryImplTest.cc
  7466. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Added handling of dynamic cast failure.
  7468. * src/DHTNodeLookupTask.cc
  7469. * src/DHTPeerLookupTask.cc
  7470. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Added the ability to stop aria2 itself when given time has passed
  7472. from start. Use --stop option to specify time in minutes.
  7473. When 0 is given, this feature is disabled.
  7474. * src/OptionHandlerFactory.cc
  7475. * src/TimeBasedCommand.h: Make _interval protected scope.
  7476. * src/HelpItemFactory.cc
  7477. * src/option_processing.cc
  7478. * src/prefs.h
  7479. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  7480. before calling RequestGroupMan::fillRequestGroupFromReserver().
  7481. Without this modification, the result list shows "ERR" when aria2 is
  7482. stopped by --stop option. It should be "INPR".
  7483. * src/DownloadEngine.{h, cc}
  7484. * src/DownloadEngineFactory.cc
  7485. * src/usage_text.h
  7486. * src/TimedHaltCommand.{h, cc}: New class.
  7487. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Bootstrap through node added by port message.
  7489. Currently bootstrap is executed if the number of buckets in routing
  7490. table is 1.
  7491. * src/BtPortMessage.{h, cc}
  7492. * src/DefaultBtMessageFactory.{h, cc}
  7493. * src/PeerInteractionCommand.cc
  7494. * test/BtPortMessageTest.cc
  7495. * test/MockDHTTask.h
  7496. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Extract the Peer class's member variables, which are only needed after
  7498. PeerInteractionCommand, into PeerSessionResource class.
  7499. This class is instantiated in PeerInteractionCommand class's ctor and
  7500. released in its dtor.
  7501. This will make Peer class lightweight and uses less memory for peers
  7502. which are not connected and wait in the queue.
  7503. * src/PeerChokeCommand.cc
  7504. * src/PeerSessionResource.{h, cc}
  7505. * src/PeerInteractionCommand.cc
  7506. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  7507. * src/DefaultBtInteractive.cc
  7508. * src/BtPieceMessage.cc
  7509. * src/BtInterestedMessage.cc
  7510. * src/BtUnchokeMessage.cc
  7511. * src/DefaultPeerStorage.{h, cc}
  7512. * src/PeerInitiateConnectionCommand.cc
  7513. * src/ActivePeerConnectionCommand.cc
  7514. * src/BtNotInterestedMessage.cc
  7515. * src/DefaultBtMessageDispatcher.cc
  7516. * src/BtChokeMessage.cc
  7517. * src/BtRequestMessage.cc
  7518. * src/Peer.{h, cc}
  7519. * src/BtRegistry.h
  7520. * src/TrackerWatcherCommand.cc
  7521. * src/PeerReceiveHandshakeCommand.cc
  7522. * test/BtExtendedMessageTest.cc
  7523. * test/BtAllowedFastMessageTest.cc
  7524. * test/BtCancelMessageTest.cc
  7525. * test/DefaultPieceStorageTest.cc
  7526. * test/BtBitfieldMessageTest.cc
  7527. * test/BtHaveMessageTest.cc
  7528. * test/BtNotInterestedMessageTest.cc
  7529. * test/BtRequestMessageTest.cc
  7530. * test/PeerSessionResourceTest.cc
  7531. * test/DefaultBtMessageDispatcherTest.cc
  7532. * test/PeerTest.cc
  7533. * test/BtInterestedMessageTest.cc
  7534. * test/BtRejectMessageTest.cc
  7535. * test/BtChokeMessageTest.cc
  7536. * test/DefaultPeerStorageTest.cc
  7537. * test/BtHaveNoneMessageTest.cc
  7538. * test/BtHaveAllMessageTest.cc
  7539. * test/DefaultExtensionMessageFactoryTest.cc
  7540. * test/BtUnchokeMessageTest.cc
  7541. * test/DefaultBtMessageFactoryTest.cc
  7542. * test/HandshakeExtensionMessageTest.cc
  7543. * test/UTPexExtensionMessageTest.cc
  7544. * test/DefaultBtRequestFactoryTest.cc
  7545. * test/BtPieceMessageTest.cc
  7546. Removed typedef PeerStats.
  7547. * src/PeerStat.h
  7548. * src/SegmentMan.cc
  7549. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. Added std namespace to copy, remove_copy, back_inserter,
  7551. front_inserter.
  7552. * src/RequestGroupMan.cc
  7553. * src/DefaultPieceStorage.cc
  7554. * src/StreamFileAllocationEntry.cc
  7555. * src/BtFileAllocationEntry.cc
  7556. * src/RequestGroup.cc
  7557. * src/MetalinkEntry.cc
  7558. * src/DelegatingPeerListProcessor.cc
  7559. * src/DefaultBtRequestFactory.cc
  7560. * src/DefaultBtMessageDispatcher.cc
  7561. * src/version_usage.cc: Included <algorithm>
  7562. * src/main.cc
  7563. * src/MetalinkParserController.cc
  7564. * src/DefaultBtContext.cc
  7565. * src/DownloadEngineFactory.cc
  7566. * src/a2algo.h
  7567. Removed.
  7568. * test/StreamUriListParserTest.cc
  7569. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7571. ActivePeerConnectionCommand when it is given and
  7572. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7573. * src/ActivePeerConnectionCommand.{h, cc}
  7574. * src/BtSetup.cc
  7575. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Only add socket to DownloadEngine's select routine when peer or
  7577. localhost is unchoked and interested. This lowers CPU usage a
  7578. little bit.
  7579. * src/PeerInteractionCommand.cc
  7580. * src/PeerAbstractCommand.{h, cc}
  7581. * src/BtInteractive.h
  7582. * src/DefaultBtInteractive.{h, cc}
  7583. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Revert previous change because get_peers message is needed for
  7585. announce_peer anyway.
  7586. * src/DHTGetPeersCommand.cc
  7587. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Request peers thought DHT only when download hasn't finished.
  7589. * src/DHTGetPeersCommand.cc
  7590. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7592. * src/DHTBucketRefreshTask.{h, cc}
  7593. * src/DHTSetup.cc
  7594. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7596. standard classes.
  7597. Included string.h where mem* function are used.
  7598. Added namespace aria2.
  7599. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7600. Create directory before saving DHT routing table.
  7601. Now ios::failure is now handled properly.
  7602. * src/DHTAutoSaveCommand.cc
  7603. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Removed unnecessary cerr.
  7605. * src/DownloadEngine.cc
  7606. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Catch exception inside DHTMessageReceiver::receiveMessage().
  7608. Log unknown message.
  7609. * src/DHTMessageReceiver.{h, cc}
  7610. * src/DHTMessageFactory.h
  7611. * src/DHTMessageFactoryImpl.{h, cc}
  7612. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7613. * src/DHTInteractionCommand.cc
  7614. * src/DHTUnknownMessage.{h, cc}
  7615. * test/DHTUnknownMessageTest.cc
  7616. * test/MockDHTMessageFactory.h
  7617. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Commented out ip address comparison because a host can have multiple
  7619. ip addresses and it is hard to predict the hostname is resolved into
  7620. which one.
  7621. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7622. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7623. * po/Makefile.in: Removed since this is generated by configure.
  7624. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Fixed compiler warning about redefinition of SIZE_MAX.
  7626. Use common.h instead of config.h directly here.
  7627. * src/Platform.{h, cc}
  7628. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7629. here.
  7630. * common.h
  7631. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7632. Updated gettext related files.
  7633. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7634. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7635. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Added DHT functionality, compatible with mainline.
  7637. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7638. You may need to specify entry point to DHT network using
  7639. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7640. Use --dht-listen-port to specify port number. Make sure that your
  7641. firewall configuration can pass through UDP traffic to the port.
  7642. The routing table is saved in $HOME/.aria2/dht.dat.
  7643. * src/DHT*
  7644. * src/BNode.{h, cc}
  7645. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7646. particular torrent.
  7647. * src/Data.cc: Rewritten ctor.
  7648. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7649. --dht-entry-point.
  7650. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7651. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7652. ends, remove BtContext from DHTPeerAnnounceStorage.
  7653. * src/BtPortMessage.{h, cc}: Rewritten.
  7654. * src/message.h
  7655. * src/OptionHandlerImpl.cc
  7656. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7657. --dht-entry-point.
  7658. * src/Dictionary.{h, cc} (remove): New function.
  7659. * src/prefs.h
  7660. * src/DefaultBtMessageFactory.h
  7661. * src/BtHandshakeMessage.cc
  7662. * src/ActivePeerConnectionCommand.cc
  7663. * src/SocketCore.{h, cc}: Added datagram socket support.
  7664. * src/DefaultBtMessageFactory.cc
  7665. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7666. Create DHT commands.
  7667. * src/BtMessageFactory.h
  7668. * src/PeerMessageUtil.{h, cc}
  7669. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Fixed the bug that log file is not written when configuration file doesn't exist.
  7671. This is caused by using Logger class before LogFactory is not configured.
  7672. BUG #1875079
  7673. * src/option_processing.cc
  7674. Warning message "configuration doesn't exist" is only printed when --conf is
  7675. given.
  7676. * src/option_processing.cc
  7677. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7679. ShaVisitor is now deprecated and slated to be removed.
  7680. * src/DefaultBtContext.cc
  7681. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Externalize message to message.h
  7683. * src/Platform.cc
  7684. * src/message.h
  7685. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Set default domain and default path to cookie.
  7687. * src/HttpResponse.cc
  7688. * src/CookieBox.{h, cc}
  7689. * src/CookieParser.{h, cc}
  7690. * test/CookieParserTest.cc
  7691. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7692. Added --no-conf and --conf-path command-line option.
  7693. --no-conf option disables loading aria2.conf file.
  7694. --conf-path option changes the configuration file path. The default
  7695. file path is $HOME/.aria2/aria2.conf
  7696. Added a warning message when the configuration file is not found.
  7697. * src/HelpItemFactory.cc
  7698. * src/option_processing.cc
  7699. * src/prefs.h
  7700. * src/usage_text.h
  7701. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Added the message to inform users that other help categories are
  7703. available in -h option.
  7704. * src/version_usage.cc
  7705. * src/TagContainer.{h, cc}
  7706. * test/TagContainerTest.cc
  7707. * src/TaggedItem.{h, cc}
  7708. * test/TaggedItemTest.cc
  7709. * src/HelpItem.h
  7710. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7712. from PiecedSegment's ctor.
  7713. Previously Piece::getAllMissingBlockIndexes() is called from
  7714. PiecedSegment() but it is rather expensive since only first element is
  7715. used.
  7716. * src/PiecedSegment.cc
  7717. * src/Piece.{h, cc}
  7718. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7720. each time these functions are called.
  7721. * src/BitfieldMan.{h, cc}
  7722. * test/BitfieldManTest.cc
  7723. * src/array_fun.h
  7724. * test/array_funTest.cc
  7725. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7726. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7727. filtered. Removed unnecessary cast to int32_t.
  7728. * src/BitfieldMan.{h, cc}
  7729. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7731. payload length(4bytes) are received. This happens because lenbufLength
  7732. is not updated in this particular case and successive call of
  7733. receiveMessage() overwrites payload length with bytes recieved which
  7734. are payload body.
  7735. * src/PeerConnection.{h, cc}
  7736. * src/message.h
  7737. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7739. peer if there are peers that have same ipaddr and port.
  7740. I've experiened segmentation fault and "pure virtual function was
  7741. called" error.
  7742. * src/Peer.h
  7743. * test/PeerTest.cc
  7744. * src/DefaultPeerStorage.cc
  7745. * test/DefaultPeerStorageTest.cc
  7746. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Removed a call to isPowerOf() because it is no longer necessary here
  7748. and a request block is not always power of 2.
  7749. BUG#1866924
  7750. * src/PeerMessageUtil.cc (checkLength)
  7751. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Fixed the bug that always first found Segment is removed from
  7753. usedSegmentEntries. Removed unused functions.
  7754. * src/SegmentMan.{h, cc}
  7755. * test/SegmentManTest.cc
  7756. Fixed the bug that ServerHost is not removed.
  7757. * src/RequestGroup.cc
  7758. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Fixed the bug that SegmentMan::completeSegment() is not called
  7760. even if Segment is complete when --lowest-speed-limit is enabled.
  7761. BUG#1864525
  7762. * src/DownloadCommand.{h, cc}
  7763. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Fixed: hash algorithm 'sha1' is always used.
  7765. * src/DownloadCommand.cc (validatePieceHash)
  7766. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Added --enable-peer-exchange command-line option.
  7768. * src/OptionHandlerFactory.cc
  7769. * src/HelpItemFactory.cc
  7770. * src/option_processing.cc
  7771. * src/usage_text.h
  7772. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Move extension from BtRuntime to ExtensionMessageFactory, because
  7774. extension can be specified per peer, not per torrent.
  7775. * src/DefaultBtInteractive.cc
  7776. * src/BtRuntime.h
  7777. * src/ExtendedMessagingAware.h
  7778. * src/ExtensionMessageFactory.h
  7779. * src/DefaultExtensionMessageFactory.cc
  7780. * test/DefaultExtensionMessageFactoryTest.cc
  7781. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. Added categorized option help. Specify category using --help option.
  7783. Also added the ability to search options in forward match.
  7784. * src/HelpItem.{h, cc}
  7785. * test/HelpItemTest.cc
  7786. * src/HelpItemFactory.{h, cc}
  7787. * src/TagContainer.{h, cc}
  7788. * test/TagContainerTest.cc
  7789. * src/option_processing.cc
  7790. * src/prefs.h
  7791. * src/TaggedItem.{h, cc}
  7792. * test/TaggedItemTest.cc
  7793. * src/version_usage.cc
  7794. * src/help_tags.h
  7795. * src/usage_text.h
  7796. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Fixed segmentation fault when bad torrent metainfo is parsed.
  7798. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7799. and then throw exception or skip it.
  7800. * src/DefaultBtContext.{h, cc}
  7801. * test/DefaultBtContextTest.cc
  7802. * src/AnnounceList.cc
  7803. * src/CompactPeerListProcessor.cc
  7804. * src/message.h
  7805. * src/DefaultBtAnnounce.{h, cc}
  7806. * test/DefaultBtAnnounceTest.cc
  7807. * src/BencodeVisitor.cc
  7808. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Added missing "B"(=Byte). So now the message looks like this:
  7810. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7811. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7812. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Show the seed ratio after torrent downloads.
  7814. For example, after torrent download completed and --seed-time and
  7815. --seed-ratio conditions are fulfilled, following message is printed
  7816. right after "Download complete: .....":
  7817. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7818. * src/RequestGroupMan.cc
  7819. * src/RequestGroup.{h, cc}
  7820. * src/message.h
  7821. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Remove a defunct control file. A defunct control file means that while
  7823. it exists, but the corresponding download file is missing.
  7824. After its removal, a download restarts from the beginning.
  7825. * src/RequestGroup.cc
  7826. * src/message.h
  7827. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Allocate bitfield in Peer when it is really used. More specifically,
  7829. bitfield in Peer is allocated after the connection is established and
  7830. deallocated when the connection is dropped.
  7831. Since 2 parameters(piece length and total length) was removed from the
  7832. constructor of Peer class, many test classes were modified accordingly.
  7833. See svn log for more detailed information.
  7834. * src/PeerInteractionCommand.cc
  7835. * src/CompactPeerListProcessor.cc
  7836. * src/Peer.cc
  7837. * src/DefaultPeerListProcessor.cc
  7838. * src/PeerListenCommand.cc
  7839. * src/PeerReceiveHandshakeCommand.cc
  7840. Fixed memory leak
  7841. * src/Piece.cc
  7842. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7843. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7844. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7845. command-line options.
  7846. * src/option_processing.cc
  7847. * src/ActivePeerConnectionCommand.cc
  7848. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7849. Send have message to peer if it already has the piece.
  7850. * src/BtHaveMessage.{h, cc}
  7851. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7853. port.
  7854. * src/DefaultPeerStorage.{h, cc}
  7855. * test/DefaultPeerStorageTest.cc
  7856. * src/HandshakeExtensionMessage.cc
  7857. * test/HandshakeExtensionMessageTest.cc
  7858. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7859. * src/PeerStorage.h
  7860. * test/MockPeerStorage.h
  7861. * src/PeerListenCommand.cc
  7862. * src/PeerReceiveHandshakeCommand.cc
  7863. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Added --metalink-enable-unique-protocol option.
  7865. * src/Metalink2RequestGroup.cc
  7866. * src/option_processing.cc
  7867. * src/prefs.h
  7868. * src/version_usage.cc
  7869. * doc/aria2c.1.txt
  7870. * doc/aria2c.1
  7871. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Allow a peer in incomingPeer to be added peers.
  7873. * src/DefaultPeerStorage.cc
  7874. * test/DefaultPeerStorageTest.cc
  7875. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7877. I could reproduce this bug in following procedure:
  7878. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7879. 2. Restart aria2.
  7880. 3. You see the download stopped around 99%.
  7881. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7882. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7883. If timeout is reached, then _nextCommand is unused and it may contains
  7884. segments and they won't be canceled. Actually, timeout is not needed
  7885. here because if the server dropped connection, then retry is made.
  7886. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Added uTorrent compatible Peer Exchange.
  7888. * src/BencodeVisitor.{h, cc}
  7889. * test/BencodeVisitorTest.cc
  7890. * src/BtConstants.h
  7891. * src/BtContext.h: Added 'private' flag.
  7892. * src/BtExtendedMessage.{h, cc}
  7893. * test/BtExtendedMessageTest.cc
  7894. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7895. reserved field.
  7896. * test/BtHandshakeMessageTest.cc
  7897. * src/BtMessageFactory.h
  7898. * src/BtRegistry.h
  7899. * src/BtRuntime.h: This class holds default extension message IDs for
  7900. aria2. By default, aria2 uses ID 8 for ut_pex.
  7901. * src/DefaultBtContext.cc
  7902. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7903. When it is true, aria2 enables ut_pex. This value is set by
  7904. PeerInteractionCommand.
  7905. * src/DefaultBtMessageFactory.{h, cc}
  7906. * test/DefaultBtMessageFactoryTest.cc
  7907. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7908. handling to DefaultBtInteractive class.
  7909. * src/DefaultExtensionMessageFactory.{h, cc}
  7910. * test/DefaultExtensionMessageFactoryTest.cc
  7911. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7912. the container(peers and incomingPeers. The equality is determined by
  7913. Peer::id).
  7914. * test/DefaultPeerStorageTest.cc
  7915. * src/ExtensionMessage.h
  7916. * test/MockExtensionMessage.h
  7917. * src/ExtensionMessageFactory.h
  7918. * test/MockExtensionMessageFactory.h
  7919. * src/HandshakeExtensionMessage.{h, cc}
  7920. * test/HandshakeExtensionMessageTest.cc
  7921. * src/MetaEntry.h
  7922. * src/Peer.{h, cc}
  7923. * src/PeerInteractionCommand.cc
  7924. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7925. addIncomingPeer.
  7926. * src/PeerMessageUtil.{h, cc}
  7927. * src/PeerObject.h
  7928. * src/UTPexExtensionMessage.{h, cc}
  7929. * test/UTPexExtensionMessageTest.cc
  7930. * src/message.h
  7931. * src/prefs.h
  7932. Fixed the bug that returns incomplete data when it contains null
  7933. character. A convenient constructor was also added.
  7934. * src/Data.{h, cc}
  7935. Rewritten.
  7936. * src/CompactPeerListProcessor.cc
  7937. Fixed typos.
  7938. * src/message.h
  7939. * src/MetaFileUtil.cc
  7940. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Added "Status Legend" label to the explanation text of 'stat' in
  7942. download result and moved it to the last. BUG#1848214
  7943. * src/RequestGroupMan.cc
  7944. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7946. * src/Makefie.am
  7947. * test/Makefile.am
  7948. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7949. Fixed the bug that prevents aria2 from loading cookie file when expire
  7950. value is greater than 2^31-1. BUG#1851066
  7951. * src/CookieBoxFactory.cc
  7952. * test/CookieBoxFactoryTest.cc
  7953. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Fixed possible memory leak when an exception is thrown.
  7955. * src/XML2SAXMetalinkProcessor.cc
  7956. Added Expat support. If both libxml2 and Expat are installed, then
  7957. libxml2 is used by default.
  7958. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7959. ExpatMetalinkProcessor according to the configuration.
  7960. * src/ExpatMetalinkProcessor.{h, cc}
  7961. * src/main.cc: Removed libxml2 specific header and init/free function.
  7962. * src/MetalinkProcessorFactory.{h, cc}
  7963. * src/MetalinkHelper.cc
  7964. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7965. * src/MetalinkProcessor.h
  7966. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7967. MetalinkProcessorTest is used instead.
  7968. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7969. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7970. MetalinkProcessorFactory::newInstance().
  7971. * m4/libexpat.m4
  7972. * configure.ac: Added configuration options for libexpat.
  7973. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Disabled -s option in metalink download.
  7975. * src/Metalink2RequestGroup.cc
  7976. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. If several protocols are available for a mirror in metalink file,
  7978. aria2 now use one of them. --metalink-preferred-protocol option was
  7979. added to specify the preference of protocol.
  7980. * src/AbstractCommand.cc
  7981. * src/OptionHandlerFactory.cc
  7982. * src/ServerHost.{h, cc}
  7983. * src/Metalink2RequestGroup.cc
  7984. * src/RequestGroup.{h, cc}
  7985. * test/RequestGroupTest.cc
  7986. * src/option_processing.cc
  7987. * src/prefs.h
  7988. * src/HttpResponseCommand.cc
  7989. * src/MetalinkResource.{h, cc}
  7990. * src/FtpNegotiationCommand.cc
  7991. * src/MetalinkEntry.{h, cc}
  7992. * src/MetalinkEntryTest.cc
  7993. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Code cleanup and added debug log.
  7995. * src/PeerConnection.cc
  7996. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Compiler error fix: applied the patch by Tiziano Mueller
  7998. * src/RequestGroup.cc
  7999. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8001. in stopped and completed event.
  8002. * src/AnnounceList.{h, cc}
  8003. * test/AnnounceListTest.cc
  8004. * src/DefaultBtAnnounce.cc
  8005. * test/DefaultBtAnnounceTest.cc
  8006. Sorted URLs.
  8007. * test/Metalink2RequestGroupTest.cc
  8008. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Removed unnecessary string copy. Updated doc and corrected indentation.
  8010. * src/Base64.cc
  8011. Fixed compilation warnings
  8012. * test/DataTest.cc
  8013. * test/HttpRequestTest.cc
  8014. * test/MetaFileUtilTest.cc
  8015. * test/RequestTest.cc
  8016. * Release 0.12.0
  8017. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Updated translations
  8019. * po/{de,fr,ja,nl,ru}.po
  8020. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8021. translations. Many thanks to translators.
  8022. * po/{ca,es,it,pt_BR,sv}.po
  8023. * po/LINGUAS
  8024. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. Added a notice about URL
  8026. * src/version_usage.cc
  8027. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8028. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8029. aria2 repeatedly sends stopped request when tracker returns error code.
  8030. * src/AnnounceList.cc
  8031. * test/AnnounceListTest.cc
  8032. * src/AnnounceTier.h
  8033. Added a message when ctrl-c is hit.
  8034. Now second ctrl-c is also handled in signal handler.
  8035. * src/RequestGroupMan.{h, cc}
  8036. * src/RequestGroup.{h, cc}
  8037. * src/MultiUrlRequestInfo.cc
  8038. * src/DownloadEngine.cc
  8039. * src/TrackerWatcherCommand.cc
  8040. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Code cleanup
  8042. * src/Base64.cc (encode)
  8043. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Changed Direct/IO enable/disable procesure in file allocation routine.
  8045. * src/SingleFileAllocationIterator.cc
  8046. (SingleFileAllocationIterator):
  8047. Disable directIO if offset is not multiple of 512.
  8048. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8049. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8050. Enable created SingleFileAllocationIterator's directIO.
  8051. * src/FileAllocationEntry.cc
  8052. (FileAllocationEntry): Enable directIO here.
  8053. (~FileAllocationEntry): Disable directIO here.
  8054. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8056. * src/Peer.{h, cc}
  8057. * src/DefaultPieceStorage.cc
  8058. * test/DefaultPieceStorageTest.cc
  8059. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Rewritten direct I/O support routine
  8061. * src/SingleFileAllocationIterator.cc
  8062. * src/MultiDiskAdaptor.{h, cc}
  8063. * src/ByteArrayDiskWriter.h
  8064. * src/AbstractSingleDiskAdaptor.h
  8065. * src/AbstractDiskWriter.cc
  8066. * src/DefaultPieceStorage.cc
  8067. * src/DiskWriter.h
  8068. * src/BinaryStream.h
  8069. * src/IteratableChunkChecksumValidator.cc
  8070. * src/IteratableChecksumValidator.cc
  8071. * src/CheckIntegrityEntry.cc
  8072. * src/FileAllocationEntry.cc
  8073. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8074. Fixed typo
  8075. * src/version_usage.cc
  8076. Updated doc
  8077. * doc/aria2c.1.txt
  8078. * doc/aria2c.1
  8079. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Fixed compile error without message digest support.
  8081. * src/FileMetalinkParserState.cc
  8082. * src/MetalinkParserController.{h, cc}
  8083. * test/XML2SAXMetalinkProcessorTest.cc
  8084. * test/MetalinkParserControllerTest.cc
  8085. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Enable direct I/O support in checksum checking.
  8087. * src/IteratableChunkChecksumValidator.{h, cc}
  8088. * test/IteratableChunkChecksumValidatorTest.cc
  8089. * src/CheckIntegrityEntry.cc
  8090. * src/PieceHashCheckIntegrityEntry.cc
  8091. * src/IteratableChecksumValidator.{h, cc}
  8092. * src/BtCheckIntegrityEntry.cc: Added doc.
  8093. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Added --allow-piece-length-change option.
  8095. * src/DefaultBtProgressInfoFile.cc
  8096. * test/DefaultBtProgressInfoFileTest.cc
  8097. * src/OptionHandlerFactory.cc
  8098. * src/option_processing.cc
  8099. * src/prefs.h
  8100. * src/version_usage.cc
  8101. * doc/aria2c.1.txt
  8102. * doc/aria2c.1
  8103. Fixed: duplicated result entry appears when exception is thrown in
  8104. RequestGroup::createInitiateConnectionCommand().
  8105. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8106. Add RequestGroup to _requestGroup after RequetGroup::
  8107. createInitiateConnectionCommand() succeeds.
  8108. Externalized message
  8109. * src/XML2SAXMetalinkProcessor.cc
  8110. * src/message.h
  8111. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Forced download abort when received negative response from http/ftp
  8113. server.
  8114. * src/HttpResponseCommand.cc
  8115. * src/FtpNegotiationCommand.cc
  8116. * src/HttpResponse.cc
  8117. * src/FtpConnection.cc
  8118. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8120. the predecessor, Xml2MetalinkParser class.
  8121. I tested them against 94KB metalink file with 1234 chunk checksums.
  8122. The new one parsed it in 22msec, while it took 6000msec with old one.
  8123. * src/XML2SAXMetalinkProcessor.{h, cc}
  8124. * test/XML2SAXMetalinkProcessorTest.cc
  8125. * src/MetalinkParserController.{h, cc}
  8126. * test/MetalinkParserControllerTest.cc
  8127. * src/MetalinkParserState.h: Also added 16 subclasses.
  8128. * src/main.cc
  8129. * src/Metalink2RequestGroup.cc
  8130. * src/MetalinkHelper.cc
  8131. * src/MetalinkEntry.cc
  8132. * src/ChunkChecksum.h
  8133. Rewritten Base64 class for better performance.
  8134. * src/Base64.{h, cc}
  8135. * test/Base64Test.cc
  8136. * src/HttpRequest.cc
  8137. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Fixed the bug#1841757: aria2 will connect to server to only get
  8139. file size.
  8140. * src/StreamFileAllocationEntry.cc
  8141. * src/option_processing.cc
  8142. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8143. downloads.
  8144. * src/FtpNegotiationCommand.cc
  8145. Suppressed wrong message when finding PreDownloadHandler
  8146. * src/RequestGroup.cc
  8147. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Updated usage
  8149. * src/version_usage.cc
  8150. Updated man page
  8151. * doc/aria2c.1.txt
  8152. * doc/aria2c.1
  8153. Updated po files
  8154. * po/aria2c.pot
  8155. * po/*.po
  8156. * po/*.gmo
  8157. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Eliminated g++-4.2 warning
  8159. * src/DownloadHandlerConstants.{h, cc}
  8160. * src/Util.cc
  8161. * test/MetaFileUtilTest.cc
  8162. * test/PStringBuildVisitorTest.cc
  8163. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8164. * src/RequestGroup.cc
  8165. * src/BtCheckIntegrityEntry.cc
  8166. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Fixed a2io.h
  8168. * src/a2io.h
  8169. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Added direct I/O support. The current implementation uses O_DIRECT,
  8171. which is not posix standard and is tested on linux 2.6.21.
  8172. Currently only file allocation uses direct I/O.
  8173. * src/SingleFileAllocationIterator.{h, cc}
  8174. * test/SingleFileAllocationIteratorTest.cc
  8175. * src/MultiFileAllocationIterator.{h, cc}
  8176. * test/MultiFileAllocationIteratorTest.cc
  8177. * src/BinaryStream.h
  8178. * src/DiskWriter.h
  8179. * src/AbstractDiskWriter.{h, cc}
  8180. * src/ByteArrayDiskWriter.h
  8181. * src/DiskAdaptor.h
  8182. * src/AbstractSingleDiskAdaptor.{h, cc}
  8183. * src/MultiDiskAdaptor.{h, cc}
  8184. * src/FileAllocationEntry.cc
  8185. * src/Util.{h, cc}
  8186. * src/OptionHandlerFactory.cc
  8187. * src/prefs.h
  8188. * src/version_usage.cc
  8189. * src/option_processing.cc
  8190. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8191. handleException.
  8192. * src/MultiFileAllocationIterator.cc
  8193. Added EINTR handling
  8194. * src/SocketCore.cc
  8195. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Updated usage
  8197. * src/version_usage.cc
  8198. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8199. Applied Ross's patch for MinGW port.
  8200. * src/DownloadEngine.h
  8201. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Set Content-Type to SingleFileDownloadContext when http response is
  8203. received.
  8204. * src/HttpResponseCommand.cc
  8205. * src/HttpResponse.{h, cc}
  8206. * test/HttpResponseTest.cc
  8207. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Rewritten to add content-type support.
  8209. * src/DownloadHandler.{h, cc}
  8210. * src/BtPostDownloadHandler.{h, cc}
  8211. * test/BtPostDownloadHandlerTest.cc
  8212. * src/MetalinkPostDownloadHandler.{h, cc}
  8213. * test/MetalinkPostDownloadHandlerTest.cc
  8214. * src/PostDownloadHandler.{h, cc}
  8215. * src/DownloadHandlerConstants.{h, cc}
  8216. * src/RequestGroup.cc
  8217. * src/HttpResponseCommand.cc
  8218. * src/FtpNegotiationCommand.cc
  8219. * src/SingleFileDownloadContext.{h, cc}
  8220. * src/RequestGroup.h
  8221. * src/RequestGroupCriteria.h
  8222. * src/ContentTypeRequestGroupCriteria.h
  8223. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8224. If it is give, metalink/torrent file is not written to the disk, but
  8225. just is kept in memory. Parsing is occurred on memory.
  8226. * src/MetalinkHelper.{h, cc}
  8227. * src/MetalinkProcessor.h
  8228. * src/Xml2MetalinkProcessor.{h, cc}
  8229. * test/Xml2MetalinkProcessorTest.cc
  8230. * src/DownloadHandlerFactory.{h, cc}
  8231. * test/DownloadHandlerFactoryTest.cc
  8232. * src/PreDownloadHandler.{h, cc}
  8233. * src/OptionHandlerFactory.cc
  8234. * src/DefaultBtContext.{h, cc}
  8235. * test/DefaultBtContextTest.cc
  8236. * src/version_usage.cc
  8237. * src/Metalink2RequestGroup.{h, cc}
  8238. * src/RequestGroup.{h, cc}
  8239. * src/a2functional.h
  8240. * test/a2functionalTest.cc
  8241. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8242. * src/OptionHandlerImpl.h
  8243. * src/prefs.h
  8244. * src/Util.{h, cc}
  8245. * test/UtilTest.cc
  8246. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8247. memory usage.
  8248. * src/RequestGroupMan.{h, cc}
  8249. * src/DownloadEngine.cc
  8250. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8251. WeakHandle to SharedHandle because WeakHandle could be null.
  8252. * src/RequestGroup.{h, cc}
  8253. * src/DownloadEngineFactory.cc
  8254. * src/DownloadResult.h
  8255. Set totalLength after download finished
  8256. * src/UnknownLengthPieceStorage.{h, cc}
  8257. Keep torrent file specified in metalink in memory.
  8258. * src/Metalink2RequestGroup.cc
  8259. * src/BtDependency.cc
  8260. * src/TrueRequestGroupCriteria.h
  8261. Fixed the bug: seekg is used where seekp should be used.
  8262. * src/ByteArrayDiskWriter.cc
  8263. * test/ByteArraydiskWriterTest.cc
  8264. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. Fixed syntax error
  8266. * test/SequenceTest.cc
  8267. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8268. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8269. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8270. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8271. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8272. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Added the check to see whether ares_host_callback accepts timeouts
  8274. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8275. * src/NameResolver.{h, cc}
  8276. * m4/libcares.m4
  8277. * configure.ac: Set C++ for language choice.
  8278. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Fixed: compilation fails without c-ares/ares
  8280. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8281. Generate http/ftp commands only when download is incomplete.
  8282. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8283. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Corrected typo. Examples are removed since they are available in man
  8285. page.
  8286. * src/version_usage.cc
  8287. Updated man page.
  8288. * doc/aria2c.1
  8289. * doc/aria2c.1.txt
  8290. * doc/makeman: Commented out sed command.
  8291. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Throw DlAbortEx when a remote file is not found.
  8293. * src/HttpResponse.cc
  8294. * src/FtpNegotiationCommand.cc
  8295. * src/message.h
  8296. Overwrite an existing file if --allow-overwrite=true is given.
  8297. * src/RequestGroup.cc
  8298. Removed unused functions
  8299. * src/AbstractCommand.h
  8300. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. Removed 'extern' from 'extern typedef ...' in src/*.h
  8302. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Updated usage
  8304. * src/version_usage.cc
  8305. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Trim announce URL
  8307. * src/DefaultBtContext.cc
  8308. * test/ShaVisitorTest.cc
  8309. Trim argument s. Give trimed s to exception constructor.
  8310. * src/Util.cc (parseInt)(parseLLInt)
  8311. * test/UtilTest.cc
  8312. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8313. Set precision back to 1.
  8314. * src/ConsoleStatCalc.cc (calculateStat)
  8315. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Replaced strtol with Util::parseInt
  8317. * src/ChunkedEncoding.cc
  8318. * src/HttpConnection.cc
  8319. * src/CookieBoxFactory.cc
  8320. * src/ParameterizedStringParser.cc
  8321. * src/Util.cc
  8322. * test/UtilTest.cc
  8323. * test/OptionHandlerTest.cc
  8324. * src/Request.cc
  8325. Throw exception when empty string is given. The message for exception
  8326. changed.
  8327. * src/Util.cc (parseInt)(parseLLInt)
  8328. * src/message.h
  8329. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8331. set to 1.
  8332. * src/ConsoleStatCalc.cc (calculateStat)
  8333. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Preallocate non-requested file which is adjacent forward to requested
  8335. file('requested' files means the files given in --select-file option)
  8336. if they share a same piece.
  8337. This fixes long pause in the file system which doesn't support sparse
  8338. files like FAT32 while downloading.
  8339. * src/MultiFileAllocationIterator.{h, cc}
  8340. * test/MultiFileAllocationIteratorTest.cc
  8341. * src/FileEntry.{h, cc}
  8342. Removed unused _option.
  8343. * src/MultiDiskAdaptor.h
  8344. * test/MultiDiskAdaptorTest.cc
  8345. * src/DefaultPieceStorage.cc
  8346. Set the default value of --seed-ratio to 1.0.
  8347. If 0.0 is given, then seeding continues regardless of share ratio.
  8348. * src/version_usage.cc
  8349. * src/option_processing.cc
  8350. * src/BtSetup.cc
  8351. * doc/aria2c.1.txt
  8352. * doc/aria2c.1
  8353. Fixed: Selective download is not working in BitTorrent
  8354. * src/RequestGroup.cc
  8355. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8356. * src/PieceStorage.h
  8357. * test/MockPieceStorage.h
  8358. * src/UnknownLengthPieceStorage.h
  8359. * src/DefaultPieceStorage.{h, cc}
  8360. * src/Metalink2RequestGroup.cc
  8361. * src/RequestGroup.cc
  8362. * src/Sequence.h
  8363. * test/SequenceTest.cc
  8364. * src/IntSequence.h
  8365. * src/message.h
  8366. * src/Util.{h, cc}
  8367. * test/UtilTest.cc
  8368. Added new function 'parse' to catch exception thrown by subclass's
  8369. parseArg
  8370. * src/OptionHandler.h
  8371. * src/OptionParser.cc
  8372. * src/NameMatchOptionHandler.h
  8373. * src/OptionHandlerImpl.h
  8374. * test/OptionHandlerTest.cc
  8375. Added IntegerRangeOptionHandler. Used for --listen-port and
  8376. --select-file. Now --listen-port accepts range of port.
  8377. * src/OptionHandlerFactory.cc
  8378. * src/version_usage.cc
  8379. * src/OptionHandlerImpl.h
  8380. * src/option_processing.cc
  8381. * src/BtSetup.cc
  8382. * src/PeerListenCommand.{h, cc}
  8383. * doc/aria2c.1.txt
  8384. * doc/aria2c.1
  8385. Implemented operator< for Exception class to provide easy way to print
  8386. exception stack trace.
  8387. * src/Exception.{h, cc}
  8388. * src/main.cc
  8389. * src/option_processing.cc
  8390. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. * src/version_usage.cc
  8392. (showVersion): Reworked.
  8393. (showUsage): Added examples.
  8394. Removed Hint for total length and file name.
  8395. * src/Metalink2RequestGroup.cc
  8396. * src/RequestGroup.{h, cc}
  8397. * src/HttpResponseCommand.cc
  8398. * src/FtpNegotiationCommand.cc
  8399. Now --follow-torrent and --follow-metalink option work properly.
  8400. * src/RequestGroup.cc
  8401. Updated man page
  8402. * doc/aria2c.1.txt
  8403. * doc/aria2c.1
  8404. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. Removed.
  8406. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8407. Use Segment::operator==()
  8408. * src/HttpConnection.cc
  8409. * src/Segment.h
  8410. Updated usage
  8411. * src/version_usage.cc
  8412. Added EINTR treatment.
  8413. * src/SocketCore.cc
  8414. * src/AbstractDiskWriter.cc
  8415. Rewritten.
  8416. * src/Util.cc (rangedFileCopy)
  8417. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Fixed typo.
  8419. * src/version_usage.cc
  8420. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Implemented. Now -c option works fine.
  8422. * src/DefaultPieceStorage.cc (markPiecesDone)
  8423. * test/DefaultPieceStorageTest.cc
  8424. Removed.
  8425. * src/SegmentMan.{h, cc}
  8426. (markAllPiecesDone)
  8427. (markPieceDone)
  8428. Synchronized po files with
  8429. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8430. * src/fr.po
  8431. * src/ru.po
  8432. * src/de.po
  8433. * src/ja.po
  8434. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Added ifdef and some modifications to compile without BitTorrent,
  8436. Metalink, MessageDigest
  8437. support.
  8438. * src/PieceHashCheckIntegrityEntry.cc
  8439. * src/MetalinkEntry.h
  8440. * src/version_usage.cc
  8441. * src/main.cc
  8442. * src/DownloadEngine.{h, cc}
  8443. * src/Metalink2RequestGroup.cc
  8444. * src/Peer.cc
  8445. * src/RequestGroup.cc
  8446. * src/MetalinkHelper.cc
  8447. * test/DefaultPieceStorageTest.cc
  8448. * test/MetalinkPostDownloadHandlerTest.cc
  8449. * test/Metalink2RequestGroupTest.cc
  8450. Hide TOTAL SPD when all downloads complete.
  8451. * src/ConsoleStatCalc.cc
  8452. Log target system information.
  8453. * src/main.cc
  8454. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. Now --metalink-location accepts a comma-deliminated list of locations.
  8456. * src/MetalinkEntry.{h, cc}
  8457. * test/MetalinkEntryTest.cc
  8458. * src/version_usage.cc
  8459. * src/Metalink2RequestGroup.cc
  8460. * src/Xml2MetalinkProcessor.cc
  8461. * test/Xml2MetalinkProcessorTest.cc
  8462. * doc/aria2c.1.txt
  8463. * doc/aria2c.1
  8464. * src/Util.cc (toUpper)(toLower): Rewritten.
  8465. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Added the ability to detect duplicate download entry which is about to
  8467. download the same file other RequestGroup is downloading.
  8468. * src/RequestGroup.cc
  8469. * src/HttpResponseCommand.cc
  8470. * src/FtpNegotiationCommand.cc
  8471. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Recalculates download progress when loading a control file,
  8473. if the piece length of DownloadContext is different from the one saved
  8474. in the control file. Currently in-flight pieces are ignored.
  8475. * src/DefaultBtProgressInfoFile.cc
  8476. * test/DefaultBtProgressInfoFileTest.cc
  8477. * src/Util.{h, cc}
  8478. * test/UtilTest.cc
  8479. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. Do not rotate tiers in announce-list.
  8481. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  8482. AnnounceList::allTiersFailed() used instead to detect whether all
  8483. tiers are tried and failed.
  8484. * test/DefaultBtAnnounceTest.cc
  8485. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  8486. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  8487. * test/AnnounceListTest.cc
  8488. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  8489. clause. Catch RecoverableException instead of DlRetryEx instead.
  8490. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8491. Implemented checksum validation feature(1 checksum for each file)
  8492. The validation takes place after the download.
  8493. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  8494. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  8495. * src/CheckIntegrityCommand.cc: Changed log message.
  8496. * src/Metalink2RequestGroup.cc: Set checksum to
  8497. SingleFileDownloadContext.
  8498. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  8499. PieceHashCheckIntegrity class.
  8500. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  8501. PieceHashCheckIntegrity class.
  8502. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  8503. * src/IteratableValidator.h: New class.
  8504. * src/message.h
  8505. * src/CheckIntegrityEntry.{h, cc}
  8506. * src/IteratableChunkChecksumValidator.{h, cc}
  8507. * src/SingleFileDownloadContext.h
  8508. * src/DownloadCommand.cc
  8509. --allow-overwrite=true is no longer needed to check file integrity
  8510. before download in BitTorrent download.
  8511. * src/RequestGroup.cc (getInitialCommand)
  8512. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  8513. throws exception.
  8514. * src/RequestGroupMan.cc (getInitialCommands)
  8515. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. urlencode the given url inside Request::parseUrl(...)
  8517. * src/Request.{h, cc}
  8518. * src/Util.{h, cc}
  8519. * test/RequestTest.cc
  8520. Removed #!metalink3! notation support because it is deleted from
  8521. the metalink specification.
  8522. * src/Request.{h, cc}
  8523. * test/RequestTest.cc
  8524. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Don't connect server before checking file integrity at startup, if
  8526. filesize and output file path are known.
  8527. * src/AbstractCommand.cc
  8528. * src/StreamFileAllocationEntry.cc
  8529. * src/Metalink2RequestGroup.cc
  8530. * src/RequestGroup.{h, cc}
  8531. * src/HttpResponseCommand.cc
  8532. * src/FtpNegotiationCommand.cc
  8533. Added DownloadFailureException. If it is thrown, RequestGroup should
  8534. halt.
  8535. * src/AbstractCommand.cc
  8536. * src/DownloadFailureException.h
  8537. * src/RequestGroup.cc
  8538. Catch RecoverableException, instead of DlAbortEx.
  8539. * src/RequestGroupMan.cc
  8540. * src/FillRequestGroupCommand.cc
  8541. * src/MetaFileUtil.cc
  8542. * src/IteratableChunkChecksumValidator.cc
  8543. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  8544. getGID())
  8545. * src/CheckIntegrityCommand.cc
  8546. * src/message.h
  8547. Print gid instead of idx.
  8548. * src/RequestGroupMan.cc
  8549. Removed exception throwers declaration.
  8550. * src/DirectDiskAdaptor.{h, cc}
  8551. * src/SocketCore.{h, cc}
  8552. * src/MultiDiskAdaptor.{h, cc}
  8553. * src/HttpConnection.{h, cc}
  8554. * src/HttpResponse.{h, cc}
  8555. * src/DiskAdaptor.{h, cc}
  8556. * src/CopyDiskAdaptor.{h, cc}
  8557. * src/MultiDiskAdaptor.{h, cc}
  8558. * src/HttpHeaderProcessor.{h, cc}
  8559. * src/AbstractSingleDiskAdaptor.{h, cc}
  8560. * src/Util.{h, cc}
  8561. * test/UtilTest.cc
  8562. * src/DefaultDiskWriter.{h, cc}
  8563. * src/FtpConnection.{h, cc}
  8564. * src/AbstractDiskWriter.{h, cc}
  8565. Removed duplicate code.
  8566. * src/StreamCheckIntegrityEntry.cc
  8567. Removed unnecessary include.
  8568. * src/DiskWriter.h
  8569. Included Exception.h
  8570. * src/option_processing.cc
  8571. Included 2 files and added doc
  8572. * src/TrackerWatcherCommand.cc
  8573. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8574. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Changed CheckIntegrityEntry interface so that it can define
  8576. the action when all the chunk checksums are valid.
  8577. * src/CheckIntegrityEntry.h
  8578. * src/StreamCheckIntegrityEntry.{h, cc}
  8579. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8580. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8581. to exit rather than doing seeding. So, it would be good to toggle this
  8582. behavior.
  8583. * src/CheckIntegrityCommand.cc
  8584. * src/AbstractCommand.cc
  8585. * src/RequestGroup.cc
  8586. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Reflect the download length of in-flight pieces.
  8588. It makes the download length readout more precise.
  8589. * src/DefaultPieceStorage.{h, cc}
  8590. * test/DefaultPieceStorageTest.cc
  8591. * src/a2functional.h
  8592. * test/a2functionalTest.cc
  8593. Lower CPU load when --max-download-limit is used.
  8594. There is up and down in speed indicator when enabling
  8595. http-pipelining but a download goes well. I think the problem is that
  8596. because http-pipelining is enabled, DownloadCommand is created for
  8597. each segment and in its constructor, PeerStat::downloadStart() is
  8598. called. In PeerStat::downloadStart(), speed calculation object is
  8599. reseted, which makes download speed zero.
  8600. * src/DownloadCommand.cc
  8601. Rewritten using accumulate.
  8602. * src/RequestGroupMan.cc (calculateStat)
  8603. Code clearnup.
  8604. * src/FtpNegotiationCommand.cc
  8605. * src/HttpResponseCommand.cc
  8606. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Fixed: Can not resume: aria2 reports download already finished.
  8608. * src/AbstractCommand.{h, cc}
  8609. * src/HttpResponseCommand.cc
  8610. * src/FtpNegotiateCommand.cc
  8611. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. Now a file is stored in the directory specified in .metalnk file
  8613. (file[@name]).
  8614. * src/Metalink2RequestGroup.cc
  8615. Create the directory structure when opening the file if it doesn't
  8616. exist.
  8617. * src/AbstractDiskWriter.cc
  8618. * src/Util.{h, cc}
  8619. * src/File.h
  8620. * test/UtilTest.cc
  8621. Removed file name comparison
  8622. * src/Metalink2RequestGroup.cc
  8623. * src/HttpResponseCommand.cc
  8624. Rewritten using Util::mkdirs()
  8625. * src/FileEntry.cc (setupDir)
  8626. * test/FileEntryTest.cc
  8627. Updated doc
  8628. * src/SingleFileDownloadContext.h
  8629. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Now SleepCommand dispatches nextCommand when halt is requested.
  8631. It avoids a possible long wait after hitting CTRL-C.
  8632. * src/SleepCommand.{h, cc}
  8633. * src/RequestGroupAware.{h, cc}
  8634. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8635. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8636. to open listen port, then remove the port number from the tracker
  8637. request.
  8638. * src/DefaultBtAnnounce.cc
  8639. * test/DefaultBtAnnounceTest.cc
  8640. * test/MockPieceStorage.h
  8641. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8642. them more testable.
  8643. * src/DefaultBtAnnounce.{h, cc}
  8644. * src/DefaultBtContext.{h, cc}
  8645. * src/Util.{h, cc}
  8646. * test/DefaultBtAnnounceTest.cc
  8647. * test/DefaultBtContextTest.cc
  8648. * test/UtilTest.cc
  8649. Added 'B' to upload bytes readout.
  8650. * src/ConsoleStatCalc.cc
  8651. Now the listen port for BitTorrent download is opened when it is
  8652. needed.
  8653. * src/DownloadEngineFactory.cc
  8654. * src/BtSetup.{h, cc}
  8655. * src/PeerListenCommand.{h, cc}
  8656. Now an exception thrown while parsing tracker response is now logged.
  8657. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8658. called, which means no retry is made in this case, assuming a tracker
  8659. has a problem.
  8660. * src/TrackerWatcherCommand.cc
  8661. Fixed: downloading a file whose length is unkown fails.
  8662. * src/DownloadCommand.cc
  8663. Simplified prepareForNextSegment()
  8664. * src/DownloadCommand.cc
  8665. Updated
  8666. * po/POTFILES.in
  8667. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Re-implemented a file listing for Metalink, which was dropped while
  8669. http/ftp/torrent integration was being implemented.
  8670. * src/MetalinkHelper.{h, cc}: New class.
  8671. * test/MetalinkHelperTest.cc
  8672. * src/main.cc
  8673. * src/Metalink2RequestGroup.cc
  8674. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Added the ability to display the detailed torrent file information.
  8676. Now -S option gives not only a file listing, but also total download
  8677. length, info hash, announce URI, piece length, the number of pieces,
  8678. and mode(single or multi-torrent).
  8679. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8680. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8681. KiB)
  8682. * test/UtilTest.cc
  8683. * src/main.cc
  8684. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Added ftp://USER:PASSWD@Servername automatic parsing.
  8686. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8687. _password. Recognize username and password in URI.
  8688. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8689. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8690. * src/RequestFactory.{h, cc}: Removed.
  8691. * src/AuthConfigFactory.{h, cc}: New class.
  8692. * src/FtpConnection.cc: Use AuthConfigFactory.
  8693. * src/HttpRequest.cc: Use AuthConfigFactory.
  8694. * test/HttpRequestTest.cc: Updated.
  8695. * test/RequestTest.cc: Updated.
  8696. * test/AuthConfigFactoryTest.cc: New class.
  8697. * test/RequestFactoryTest.cc: Removed.
  8698. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Use RequestGroup::allDownloadFinished() to decide whether the control
  8700. file should be removed or saved.
  8701. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8702. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8703. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. Use File::renameTo()
  8705. * src/DefaultBtProgressInfoFile.cc
  8706. Added --no-file-allocation-limit command-line option.
  8707. * src/version_usage.cc
  8708. * src/option_processing.cc
  8709. * src/OptionHandlerFactory.cc
  8710. * src/RequestGroup.{h, cc}
  8711. * src/BtCheckIntegrityEntry.cc
  8712. * src/StreamCheckIntegrityEntry.cc
  8713. * src/prefs.h
  8714. * doc/aria2c.1.txt
  8715. * doc/aria2c.1
  8716. Now prealloc is the default value for --file-allocation option.
  8717. * src/version_usage.cc
  8718. * src/option_processing.cc
  8719. * doc/aria2c.1.txt
  8720. * doc/aria2c.1
  8721. Don't URL-encode user-agent.
  8722. * src/HttpRequest.cc
  8723. Updated translations
  8724. * po/LINGUAS: Added nl for Dutch translation.
  8725. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8726. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8727. * po/POTFILES.in: Updated.
  8728. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Added the ability to recognize url-list in a torrent file.
  8730. The retrieved URLs are attached to the corresponding FileEntry.
  8731. * src/DefaultBtContext.{h, cc}
  8732. * src/FileEntry.{h, cc}
  8733. * test/DefaultBtContextTest.cc
  8734. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8736. after the download finishes.
  8737. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8739. the data smaller than block length.
  8740. A block length can be specified by constructor's argument.
  8741. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8742. Get a missing piece in the range of given FileEntry. This function is
  8743. not used in the program yet.
  8744. * src/Util.h: Added some macros.
  8745. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Added HTTP/1.1 keep alive and pipelining support.
  8747. See --enable-http-keep-alive and --enable-http-pipelining option.
  8748. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8749. Segment.
  8750. * src/HttpDownloadCommand.{h, cc}
  8751. * src/OptionHandlerFactory.cc
  8752. * src/HttpConnection.{h, cc}
  8753. * src/version_usage.cc
  8754. * src/HttpInitiateConnectionCommand.cc
  8755. * src/FtpInitiateConnectionCommand.cc
  8756. * src/Segment.h
  8757. * src/HttpRequestCommand.{h, cc}
  8758. * src/option_processing.cc
  8759. * src/prefs.h
  8760. * src/HttpResponseCommand.cc
  8761. * src/SegmentMan.{h, cc}
  8762. * src/FtpNegotiateCommand.cc
  8763. * src/HttpProxyResponseCommand.cc
  8764. * src/Request.cc
  8765. * src/HttpRequest.cc
  8766. * src/DownloadCommand.cc
  8767. * test/HttpRequestTest.cc
  8768. * test/RequestTest.cc
  8769. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8771. finished.
  8772. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8774. catching it inside the method.
  8775. When no file entry is found in a metalink without querying user
  8776. preferences, throw the exception with the error message that suggests
  8777. metalink file is probably broken.
  8778. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8779. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8780. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8781. processed.
  8782. * src/RequestGroupMan.cc (removeStoppedGroup)
  8783. Added debug message.
  8784. * src/BtPostDownloadHandler.cc
  8785. * src/MetalinkPostDownloadHandler.cc
  8786. * src/PostDownloadHandler.{h, cc}
  8787. * src/RequestGroup.cc
  8788. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8790. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8792. stops and there are any unfinished or in-progress downloads.
  8793. Added the legend of "stat".
  8794. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Throw exception when chunck checksum verification fails.
  8796. * src/DownloadCommand.cc (validatePieceHash): New function.
  8797. * src/PiecedSegment.{h, cc} (clear): New function.
  8798. * src/GrowSegment.{h, cc} (clear): New function.
  8799. * src/Segment.h (clear): New function.
  8800. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8801. * test/SegmentTest.cc
  8802. * test/GrowSegmentTest.cc
  8803. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. Do not send referer when redirected.
  8805. * src/Request.cc (redirectUrl)
  8806. * test/RequestTest.cc
  8807. * test/HttpRequestTest.cc
  8808. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. Implemented BitTorrent/http/ftp integrated download.
  8810. I've rewritten lots of files and now some headers have forward
  8811. class declarations to reduce compile time.
  8812. The implementation is extremely alpha stage, I recommend to use this
  8813. for testing purpose only.
  8814. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Fixed the compilation error on 64bit platform.
  8816. * test/HttpHeaderProcessorTest.cc
  8817. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Merged Ross's patch that fixes compilation problem in MinGW
  8819. * test/DefaultBtProgressInfoFileTest.cc
  8820. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8821. Updated fr.po by sebone
  8822. * po/fr.po
  8823. Updated man page.
  8824. * doc/aria2c.1.txt
  8825. * Release 0.11.3
  8826. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8828. failure in Metalink.
  8829. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Automatically save *.aria2 control file of http/ftp download in every
  8831. 60 seconds.
  8832. * src/AutoSaveCommand.{h, cc}: New class.
  8833. * src/TimeBasedCommand.{h, cc}: New class.
  8834. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8835. Disable parameterized URI support by default. Added -P option to
  8836. enable the feature.
  8837. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8838. * src/OptionHandlerFactory.cc
  8839. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8840. Updated Japanese translation.
  8841. * po/ja.po
  8842. Updated man page.
  8843. * doc/aria2c.1.txt
  8844. * Release 0.11.3-rc
  8845. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8847. it is successful, then renamed to *.aria2.
  8848. This prevents *.aria2 file from being truncated or corrupted when
  8849. file system becomes out of space.
  8850. * src/DefaultBtProgressInfoFile.cc (save)
  8851. * src/SegmentMan.cc (save)
  8852. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8853. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Reduced the fragmentation of bitfield in http/ftp download.
  8855. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8856. * test/BitfieldManTest.cc
  8857. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Added the ability to disable segmented download in .metalink.
  8859. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8860. 'url' tag.
  8861. * src/MetalinkEntry.{h, cc}
  8862. * src/RequestResource.{h, cc}
  8863. * src/MetalinkRequestInfo.cc
  8864. * src/Xml2MetalinkProcessor.cc
  8865. * test/Xml2MetalinkProcessorTest.cc
  8866. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Added parameterized URI support.
  8868. * src/main.cc: -Z option added.
  8869. * src/OptionHandlerFactory.cc
  8870. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8871. * src/PStringDatum.h: New class.
  8872. * src/PStringSegment.{h,cc}: New class.
  8873. * src/PStringNumLoop.h: New class.
  8874. * src/PStringSelect.h: New class.
  8875. * src/NumberDecorator.h: New class.
  8876. * src/FixedWidthNumberDecorator.h: New class.
  8877. * src/AlphaNumberDecorator.h: New class.
  8878. * src/PStringVisitor.h: New class.
  8879. * src/PStringBuildVisitor.{h,cc}: New class.
  8880. * src/ParameterizedStringParser.{h,cc}: New class.
  8881. * src/Util.{h,cc}
  8882. (isNumber): New function.
  8883. (isLowercase): New function.
  8884. (isUppercase): New function.
  8885. (alphaToNum): New function.
  8886. * test/ParameterizedStringParserTest.cc: New class.
  8887. * test/AlphaNumberDecoratorTest.cc: New class.
  8888. * test/PStringBuildVisitorTest.cc: New class.
  8889. * test/UtilTest.cc
  8890. (testIsNumber): New function.
  8891. (testIsLowercase): New function.
  8892. (testIsUppercase): New function.
  8893. (testAlphaToNum): New function.
  8894. Added '\n' after the error message
  8895. * src/RequestInfo.h (printDownloadAbortMessage)
  8896. Added auto file renaming feature in http(s)/ftp download.
  8897. * src/main.cc: Added --auto-file-renaming command-line option.
  8898. * src/OptionHandlerFactory.cc
  8899. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8900. * src/RequestGroup.{h, cc}
  8901. (shouldCancelDownloadForSafety): Rewritten
  8902. (tryAutoFileRenaming): New function.
  8903. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8904. * src/HttpResponseCommand.cc
  8905. (executeInternal): Removed the call to RequestGroupMan::
  8906. isSameFileBeingDownloaded()
  8907. * src/FtpNegotiateCommand.cc
  8908. (recvSize): Removed the call to RequestGroupMan::
  8909. isSameFileBeingDownloaded()
  8910. * test/RequestGroupTest.cc: New class.
  8911. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8913. IO.
  8914. * src/DefaultBtProgressInfoFile.cc
  8915. * src/MetaFileUtil.cc
  8916. * src/SimpleLogger.cc
  8917. * src/SegmentMan.cc
  8918. * src/Util.cc
  8919. * src/Platform.cc
  8920. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8922. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8924. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8925. Fixed the bug that prevents file allocation is not done when
  8926. dowloading multi-torrent file.
  8927. * src/AbstractDiskWriter.cc (openFile)
  8928. Increase the maximum number of -j option from 15 to 45.
  8929. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8930. Added fr.po, thanks to Charles Landemaine.
  8931. * po/fr.po
  8932. * po/LINGUAS
  8933. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8934. gcc 3.4.4 support:
  8935. * src/DefaultBtContext.cc: int32_t -> int
  8936. * src/main.cc: int -> int32_t, int32_t -> int
  8937. * src/messageDigest.h: uint32_t -> unsigned int
  8938. * src/NameResolver.h: int32_t -> int
  8939. * src/PeerConnection.cc: int -> int32_t
  8940. * src/SpeedCalc.cc: int32_t -> int
  8941. * src/TrackerUpdateCommand.h: int -> int32_t
  8942. * src/Util.cc: int32_t -> int
  8943. * src/Util.h: int32_t -> int
  8944. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8945. * test/AnnounceListTest.cc: int -> int32_t
  8946. * test/ChunkedEncodingTest.cc: int -> int32_t
  8947. * test/DataTest.cc: int -> int32_t
  8948. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8949. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8950. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8951. * test/FeatureConfigTest.cc: int -> int32_t
  8952. * test/MetalinkEntryTest.cc: int -> int32_t
  8953. * test/MockBtRequestFactory.h: int -> int32_t
  8954. * test/MockPieceStorage.h: int -> int32_t
  8955. * test/OptionTest.cc: int -> int32_t
  8956. * test/RequestTest.cc: int -> int32_t
  8957. * test/SegmentManTest.cc: int -> int32_t
  8958. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8959. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8960. Move sleep functions to Util class:
  8961. * src/Util.cc
  8962. (sleep): New function.
  8963. (usleep): New function.
  8964. * src/DownloadCommand.cc: sleep -> Util::sleep
  8965. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8966. MinGW build enhancements. The following files are added:
  8967. * src/timegm.{c,h}
  8968. Changes to support the above new files:
  8969. * configure.ac
  8970. * src/Makefile.am
  8971. * src/a2time.h
  8972. * src/Util.cc:
  8973. * src/strptime.c: Added support for %Z option.
  8974. Fixed MinGW non-blocking bug.
  8975. * src/SocketCore.cc
  8976. * src/HttpRequestCommand.cc
  8977. Miscellenous build fixes/enhancements.
  8978. * configure.ac: Added summary report.
  8979. * src/Platform.h: Tweaked #include's.
  8980. * src/a2netcompat.h: Tweaked #include's.
  8981. * src/strptime.h: Tweaked #include's.
  8982. * src/gai_strerror.c: Tweaked #include's.
  8983. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8984. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8985. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8986. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Increased the initial connection size in BitTorrent download to 40.
  8988. * src/BtRuntime.h
  8989. Added the usage message of --peer-id-prefix option.
  8990. * src/main.cc
  8991. * Release 0.11.2
  8992. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8993. MessageDigestHelper is introduced in order to simplify the use
  8994. of message digest. Removed repeated code.
  8995. The message digest algorithm is now specified by string, like "sha1",
  8996. "md5".
  8997. * src/messageDigest.{h, cc}
  8998. * src/MessageDigestHelper.{h, cc}: New class.
  8999. * src/DefaultPieceStorage.cc
  9000. * src/DefaultBtContext.{h, cc}
  9001. (computeFastSet): New function.
  9002. (setInfoHash): Added for unit testing.
  9003. (setNumPieces): Added for unit testing.
  9004. * src/DefaultBtInteractive.cc
  9005. * src/BtPieceMessage.cc
  9006. * src/Peer.cc
  9007. * src/Checksum.h
  9008. * src/message.h
  9009. * src/IteratableChecksumValidator.h
  9010. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9011. inside it.
  9012. * src/SegmentMan.{h, cc}
  9013. (checkIntegrity): Removed.
  9014. * src/IteratableChunkChecksumValidator.{h, cc}
  9015. * src/Util.h
  9016. (sha1Sum): Removed.
  9017. (simpleMessageDigest): Removed.
  9018. (fileChecksum): Removed.
  9019. (computeFastSet): Removed.
  9020. * src/ShaVisitor.cc
  9021. * src/ChunkChecksum.h
  9022. * src/DownloadCommand.cc
  9023. Removed messageDigest virtual functions.
  9024. * src/MultiDiskAdaptor.{h, cc}
  9025. * src/DiskAdaptor.h
  9026. * src/ByteArrayDiskWriter.h
  9027. * src/DiskWriter.h
  9028. * src/DiskAdaptorWriter.h
  9029. * src/AbstractSingleDiskAdaptor.{h, cc}
  9030. * src/AbstractDiskWriter.{h, cc}
  9031. Fixed comilation error when message digest is disabled.
  9032. * src/MetalinkEntry.{h, cc}
  9033. * src/MetalinkRequestInfo.cc
  9034. Removed srandom and random.
  9035. * src/SimpleRandomizer.h
  9036. Added size() virtual function to DiskAdaptor
  9037. * src/MultiDiskAdaptor.h
  9038. Fixed the bug that causes that files are not opened correctly in
  9039. multi-file torrent.
  9040. * src/TorrentRequestInfo.cc
  9041. * src/MultiDiskAdaptor.cc
  9042. Added SHA256 support
  9043. * src/messageDigest.cc
  9044. * src/Xml2MetalinkProcessor.cc
  9045. Show supported message digest algorithms
  9046. * src/main.cc
  9047. Updated contact info.
  9048. * src/main.cc
  9049. Applied Ross's patch
  9050. * src/a2netcompat.h
  9051. * src/main.cc
  9052. Fixed the bug that prevents a remote metalink from not being processed
  9053. even if '-o foo.metalink' is specified.
  9054. * src/MetalinkRequestInfo.cc
  9055. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Merged Dan's patch:
  9057. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9058. Use va_copy to avoid core dump on amd64:
  9059. * src/SimpleLogger.cc
  9060. Updated contact info.
  9061. * src/main.cc
  9062. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9063. digest is not available.
  9064. * src/MetalinkEntry.h
  9065. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Make a2netcompat.h include a2io.h to fix compilation error:
  9067. * src/a2netcompat.h
  9068. * src/SocketCore.cc: Removed include of a2io.h
  9069. * src/Util.cc: Removed include of a2io.h
  9070. Gather time related functions to a2time.h:
  9071. * src/a2time.h: New file.
  9072. * src/DefaultPeerStorage.cc
  9073. * src/SimpleLogger.cc
  9074. * src/Util.{h, cc}
  9075. * src/SimpleRandomizer.h
  9076. * src/TimeA2.{h,cc}
  9077. * src/DownloadCommand.cc
  9078. * src/main.cc
  9079. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9080. a2netcompat.h:
  9081. * src/NameResolver.cc
  9082. Fixed compilation error without openssl:
  9083. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9084. Added default block to suppress compiler warnings:
  9085. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9086. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9087. MinGW build enhancements. The following files are added:
  9088. * src/gai_strerror.{c,h}
  9089. * src/gettimeofday.{c,h}
  9090. Changes to support the above new files:
  9091. * configure.ac
  9092. * src/Makefile.am
  9093. * src/a2netcompat.h
  9094. * src/TimeA2.cc
  9095. * src/DefaultPeerStorage.cc
  9096. * src/NameResolver.cc: removed mingw_strerror() function.
  9097. * src/SocketCore.cc: removed mingw_strerror() function.
  9098. Miscellaneous MinGW build fixes.
  9099. * src/a2io.h: Use _lseeki64() instead of lseek()
  9100. * src/common.h
  9101. * src/DefaultFileAllocator.cc
  9102. * src/GlowFileAllocator.cc
  9103. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9104. * src/NameResolver.cc
  9105. (callback): Changed int32_t to int.
  9106. (resolve): Changed int32_t to int.
  9107. * src/Platform.cc
  9108. * src/Platform.h
  9109. * test/MultiDiskWriterTest.cc
  9110. * test/PeerMessageUtilTest.cc
  9111. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9112. Other enhancements and fixes.
  9113. * src/HttpRequestCommand.cc
  9114. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9115. * src/SocketCore.cc:
  9116. (error): New function to abstract errno/WSAGetLastError().
  9117. (errorMsg): New function to abstract errno/WSAGetLastError().
  9118. (initiateSecureConnection): Added more detailed error reporting.
  9119. * src/SocketCore.h: Added private variable blocking, to allow
  9120. proper handling of OpenSSL psuedo-errors.
  9121. * src/message.h
  9122. (EX_SSL_INIT_FAILURE)
  9123. (EX_SSL_IO_ERROR)
  9124. (EX_SSL_PROTOCOL_ERROR)
  9125. (EX_SSL_UNKNOWN_ERROR)
  9126. (EX_SSL_CONNECT_ERROR)
  9127. (EX_SOCKET_BLOCKING)
  9128. (EX_SOCKET_NONBLOCKING)
  9129. (EX_SOCKET_UNKNOWN_ERROR)
  9130. * src/Util.cc
  9131. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9132. reserved name.
  9133. (httpGMT): Fixed typo.
  9134. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. Merged Ross's win32 patch(manually)
  9136. In the course of merging, following files are added.
  9137. * src/strptime.{h,c}
  9138. * src/libgen.{h,c}
  9139. * src/inet_aton.{h,c}
  9140. * src/Platform.{h,cc}
  9141. * src/localtime_r.{h,c}
  9142. * src/getaddrinfo.{h,c}
  9143. I've gethered network related things, and put them to following file:
  9144. * src/a2netcompat.h
  9145. Also io related things are put to following file:
  9146. * src/a2io.h
  9147. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9148. * src/message.h
  9149. (MSG_ALLOCATION_COMPLETED)
  9150. (EX_TOO_LARGE_FILE)
  9151. (EX_SIZE_MISMATCH)
  9152. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9153. (EX_INVALID_CHUNK_CHECKSUM)
  9154. (EX_INVALID_RANGE_HEADER)
  9155. * src/FileAllocationCommand.cc
  9156. * src/HttpResponse.cc
  9157. * src/RequestGroup.cc
  9158. * src/MultiDiskAdaptor.cc
  9159. * src/OptionHandlerImpl.h
  9160. * src/HttpResponseCommand.cc
  9161. * src/FtpNegotiateCommand.cc
  9162. * src/IteratableChecksumValidator.cc
  9163. * src/SegmentMan.cc
  9164. * src/ChunkChecksumValidator.cc
  9165. Added Randomizer::getRandomNumber(long int)
  9166. * src/Randomizer.h (getRandomNumber)
  9167. * src/SimpleRandomizer.h (getRandomNumber)
  9168. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9169. * src/Util.cc (randomAlpha): Use this new function.
  9170. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Converted int's to in32_t. long long int's are also converted to
  9172. int64_t
  9173. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Fixed the bug that prevents cookies from being sent to the server
  9175. if the domain of cookie is FQDN and starts with ".".
  9176. * src/Cookie.cc (match)
  9177. To add the ability to change peer id.
  9178. * src/DefaultBtContext.h
  9179. (_peerIdPrefix): New variable
  9180. (setPeerIdPrefix): New function.
  9181. * src/torrentRequestInfo.cc
  9182. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9183. DefaultBtContext.
  9184. * src/main.cc (main): Added peer-id-prefix command-line option.
  9185. The usage message is not added yet.
  9186. * src/DefaultBtContext.cc
  9187. (generatePeerId): Use _peerIdPrefix.
  9188. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9189. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Fixed the bug that prevents filename in content-disposition from
  9191. being retrieved when filename is not quoted.
  9192. * src/Util.cc (getContentDispositionFilename)
  9193. Fixed the bug that causes infinate loop and memory leak when file open
  9194. operation failed.
  9195. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9196. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Fixed the bug that causes segfault when all URIs specified are
  9198. unsupported.
  9199. * src/RequestGroupMan.cc (getInitialCommands)
  9200. Check if RequestGroup::createNextCommand() returns empty list of
  9201. commands.
  9202. * src/RequestGroup.cc (createNextCommand)
  9203. Change log level from info to error so that users can notice that
  9204. an error occurred.
  9205. Fixed the bug that causes segfault when a zero-sized file is
  9206. downloaded.
  9207. * src/BitfieldMan.cc (isAllBitSet)
  9208. Return true if bitfieldLength is 0.
  9209. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. * src/main.cc
  9211. (showUsage): Added 3 usage examples for metalink download.
  9212. Replace MetalinkChunkChecksum with ChunkChecksum.
  9213. * src/MetalinkChunkChecksum.h: Removed.
  9214. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9215. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9216. * src/Xml2MetalinkProcessor.cc
  9217. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9218. * src/MetalinkRequestInfo.cc (execute)
  9219. * Release 0.11.1
  9220. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. Reads URIs from stdin when "-i -" is specified.
  9222. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9223. * src/UriListParser.h, src/UriListParser.cc: New class.
  9224. * src/StreamUriListParser.h: New class.
  9225. * src/FileUriListParser.h: New class.
  9226. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9227. instead of UriFileListParser.
  9228. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9229. Made console readout more readable.
  9230. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9231. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Fix the bug that causes -s option not to work.
  9233. * src/main.cc (main)
  9234. * src/a2algo.h: New file.
  9235. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Create directory structure specified in metalink file.
  9237. * src/RequestGroup.h, src/RequestGroup.cc
  9238. (initAndOpenFile): Create a directory to store files if it does not
  9239. exist.
  9240. (getDir): New function.
  9241. Added ETA and download speed for an individual file to readout.
  9242. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9243. * src/RequestGroup.h
  9244. (calculateDownloadSpeed): New function.
  9245. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Made -S option work with metalink file and provided selective download
  9247. to metalink.
  9248. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9249. (filename): Removed.
  9250. (file): New variable.
  9251. (size): Removed.
  9252. (operator=): Updated.
  9253. (getPath): New function.
  9254. (getLength): New function.
  9255. (toFileEntry): New function.
  9256. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9257. (execute): Use toStream.
  9258. (showFileEntry): Removed.
  9259. * src/MetalinkRequestInfo.h
  9260. (targetFiles): New variable.
  9261. (setTargetFiles): New variable.
  9262. * src/MetalinkRequestInfo.cc
  9263. (execute): Added the ability to print file information included in
  9264. a metalink file.
  9265. Added selective download mode to metalink.
  9266. * src/main.cc
  9267. (showUsage): Updated to denote that -S and --select-file options are
  9268. applicable to metalink.
  9269. * src/FileEntry.h
  9270. (operator=): New function.
  9271. (getBasename): New function.
  9272. (getDirname): New function.
  9273. * src/Util.h, src/Util.cc
  9274. (toStream): New function.
  9275. * src/Xml2MetalinkProcessor.cc: Updated.
  9276. Made aria2 work with metalink with directory structure.
  9277. * src/File.h, src/File.cc
  9278. (getBasename): New function.
  9279. (getDirname): New function.
  9280. * src/RequestGroup.h, src/RequestGroup.cc
  9281. (_topDir): New variable.
  9282. (setTopDir): New function.
  9283. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9284. Rewrote HTTP header parsing with stringstream.
  9285. * src/HttpConnection.h, src/HttpConnection.cc
  9286. (HttpRequestEntry): New class.
  9287. (headerBuf): Removed.
  9288. (headerBufLength): Removed.
  9289. (outstandingHttpRequests): Now its element type is
  9290. HttpRequestEntryHandle.
  9291. (findEndOfHeader): Removed.
  9292. (receiveResponse): Rewritten.
  9293. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9294. Updated doc for -j option to notice that it should be used with -i
  9295. option.
  9296. * src/main.cc (showUsage)
  9297. Removed unused classes.
  9298. * src/RequestInfo.h
  9299. (FileInfo): Removed.
  9300. (checksum): Removed.
  9301. (fileInfo): Removed.
  9302. (setChecksum): Removed.
  9303. (getChecksum): Removed.
  9304. (getFileInfo): Removed.
  9305. Use ISO units.
  9306. * src/ConsoleDownloadEngine.cc
  9307. * src/TorrentConsoleDownloadEngine.cc
  9308. * src/Util.cc (abbrevSize)
  9309. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9310. Added the default listening ports to the help message.
  9311. * src/main.cc (showUsage)
  9312. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9313. Reduce the number of calls to gettimeofday to lower CPU load.
  9314. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9315. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9316. * src/Peer.h (calculateUploadSpeed): New function.
  9317. (calculateDownloadSpeed): New function.
  9318. * src/DefaultPeerStorage.cc
  9319. (CalculateStat): Added _now variable.
  9320. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9321. and Peer::calculateUploadSpeed(const struct timeval&)
  9322. Drop connection if no request or piece message is exchanged in
  9323. a certain interval.
  9324. * src/DefaultBtInteractive.h
  9325. (btRuntime): New variable.
  9326. (inactiveCheckPoint): New variable.
  9327. (checkActiveInteraction): New function.
  9328. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9329. request or piece message is received.
  9330. (checkActiveInteraction): New function.
  9331. (doInteractionProcessing): Call checkActiveInteraction.
  9332. Fixed the bug that causes remote Metalink and Torrent files are not
  9333. processed.
  9334. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9335. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. Changed format of log file.
  9337. * src/SimpleLogger.cc
  9338. * Release 0.11.0
  9339. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. * src/AbstractCommand.cc
  9341. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9342. MSG_MAX_TRY from error to info.
  9343. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9344. * src/message.h
  9345. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9346. (MSG_DOWNLOAD_ABORTED): Added %s.
  9347. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9348. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9349. * src/PeerAbstractCommand.cc
  9350. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9351. * src/Request.h
  9352. (cookieBox): Made ShardHandle.
  9353. * src/RequestGroup.h, src/RequestGroup.cc
  9354. (createNextCommandWithAdj): New function.
  9355. * src/FileAllocationCommand.cc
  9356. (executeInternal): Use createNextCommandWithAdj().
  9357. * src/CheckIntegrityCommand.cc
  9358. (executeInternal): Use createNextCommandWithAdj().
  9359. Added --load-cookies command-option.
  9360. * src/OptionHandlerFactory.cc
  9361. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9362. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9363. Now aria2 can handle cookie's expiration date.
  9364. * src/Cookie.h (expires): Changed its type to time_t.
  9365. * src/main.cc: Added --load-cookies command-line option.
  9366. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9367. * src/Util.h, src/Util.cc (httpGMT): New function.
  9368. * src/Request.cc (Request): Initialize cookieBox using
  9369. CookieBoxFactory.
  9370. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9371. * src/CookieParser.h, src/CookieParser.cc: New class.
  9372. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9373. * src/HttpResponseCommand.cc
  9374. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9375. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9376. download.
  9377. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Added -j command-line option.
  9379. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9380. * src/main.cc
  9381. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9382. Rewritten using stringstream.
  9383. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9384. Rewritten using stringstream.
  9385. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Make download size shown in MB, KB.
  9387. * src/ConsoleDownloadEngine.h (sendStatistics)
  9388. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9389. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Accept incoming connections if download rate is low.
  9391. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9392. (_lowestSpeedLimit): New variable.
  9393. (setLowestSpeedLimit): New function.
  9394. (execute): Accept incoming connections if download rate is low.
  9395. MAX_PEERS is ignored in this case.
  9396. Disable PREF_OUT in multiple concurrent download:
  9397. * src/RequestGroup.h, src/RequestGroup.cc
  9398. (setUserDefinedFilename): New function.
  9399. * src/DownloadEngineFactory.cc
  9400. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9401. concurrent download.
  9402. * src/DefaultSegmentManFactory.cc
  9403. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9404. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9406. Added its overloaded method.
  9407. * src/RequestGroup.h
  9408. (_numConcurrentCommand): New variable.
  9409. (setNumConcurrentCommand): New function.
  9410. * src/RequestGroup.cc
  9411. Abort download if same file is being downloaded concurrently.
  9412. * src/RequestGroup.h, src/RequestGroupMan.cc
  9413. (isSameFileBeingDownloaded): New function.
  9414. * src/HttpResponseCommand.cc (executeInternal)
  9415. * src/FtpNegotiateCommand.cc (recvSize)
  9416. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9417. * main.cc: Added help message for -i option.
  9418. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9420. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9421. * src/MetalinkEntry.h
  9422. (checksum): Changed to ChecksumHandle
  9423. * src/MetalinkRequestInfo.cc
  9424. (checksum): Changed to ChecksumHandle
  9425. * src/File.cc
  9426. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9427. * src/common.h
  9428. (DIR_OPEN_MODE): New definition
  9429. * src/RequestGroup.cc
  9430. (prepareForNextAction): Added an argument.
  9431. * src/message.h
  9432. (MSG_GOOD_CHECKSUM): New definition
  9433. (MSG_BAD_CHECKSUM): New definition
  9434. * src/HttpResponseCommand.cc
  9435. (handleDefaultEncoding): Continue download sequence in new
  9436. non-segmented download.
  9437. * src/FileAllocationEntry.h
  9438. (_nextDownloadCommand): New variable.
  9439. * src/DownloadCommand.cc
  9440. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9441. available.
  9442. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9443. * src/IteratableChecksumValidator.h,
  9444. src/IteratableChecksumValidator.cc: New class.
  9445. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9446. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Change file mode to 666:
  9448. * src/common.h (OPEN_MODE): New definition.
  9449. * src/File.cc
  9450. * src/Util.cc
  9451. * src/Directry.cc
  9452. * src/AbstractDiskWriter.cc
  9453. Change the level of log message "download aborted" to debug:
  9454. * src/PeerAbstractCommand.cc (execute)
  9455. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9456. * src/TrackerWatcherCommand.cc
  9457. (createCommand): Sleep some seconds after request failed.
  9458. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9459. then abort tracker request.
  9460. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. * Added the simultaneous download feature.
  9462. * src/main.cc: Print "Exception caught: " when exception is caught.
  9463. Use CUIDCounter instead of BtRuntime::getNewCuid():
  9464. * src/ActivePeerConnectionCommand.cc
  9465. * src/PeerInteractionCommand.cc
  9466. * src/BtRuntime.h
  9467. (cuidCounter): Removed.
  9468. (getNewCuid): Removed.
  9469. * src/DownloadEngineFactory.cc
  9470. * src/PeerListenCommand.cc
  9471. * src/TrackerUpdateCommand.cc
  9472. * src/PeerInitiateConnectionCommand.cc
  9473. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. * src/PeerAbstractCommand.cc
  9475. (onAbort): Call PeerStorage::returnPeer()
  9476. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  9477. (incomingPeers): New variable.
  9478. (addIncomingPeer): New function.
  9479. (returnPeer): New function.
  9480. (onErasingPeer): New function.
  9481. (addPeer): push_back -> push_front
  9482. (getActivePeers): Rewritten.
  9483. (calculateStat): Rewritten.
  9484. * src/PeerStorage.h
  9485. (TransferStat::copy): New function.
  9486. (TransferStat::TransferStat): New function.
  9487. (TransferStat::operator=): New function.
  9488. (addIncomingPeer): New function.
  9489. (returnPeer): New function.
  9490. * src/PeerListenCommand.cc
  9491. (execute): Use PeerStorage::addIncomingPeer() instead of
  9492. Peer::addPeer().
  9493. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Connect to a peer actively when download speed is lower than specified
  9495. speed in torrent download:
  9496. * src/ActivePeerConnectionCommand.h: New class.
  9497. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. * src/HttpRequest.cc (createRequest): url-encode user-agent
  9499. * src/main.cc: Fixed the bug that prevents download if .netrc
  9500. doesn't exist.
  9501. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. To cache resolved hostname:
  9503. * src/AbstractCommand.h, src/AbstractCommand.cc
  9504. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  9505. Added dns cache.
  9506. * src/FtpInitiateConnectionCommand.cc
  9507. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  9508. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  9509. NameResolver working without ares.
  9510. * src/TorrentRequestInfo.cc
  9511. (execute): Don't cache dns in torrent download.
  9512. * src/HttpInitiateConnectionCommand.cc
  9513. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  9514. * src/DNSCache.h: New class.
  9515. * src/UrlRequestInfo.cc
  9516. (execute): Use dns cache.
  9517. In http request, suppress port number in http request header if port
  9518. is 80 or 443:
  9519. * src/HttpRequest.cc (getHostText): Suppress port number in http
  9520. request header if port is 80 or 443.
  9521. (createProxyRequest): Allways send port number.
  9522. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. To add the command-line option which disables netrc support:
  9524. * src/OptionHandlerFactory.cc
  9525. (createOptionHandlers): Added PREF_NO_NETRC.
  9526. * src/main.cc: Added -n option.
  9527. * src/prefs.h (PREF_NO_NETRC): New definition.
  9528. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  9529. V_TRUE.
  9530. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  9531. is V_FALSE. This may get configurable in the future release.
  9532. To clear peer's error status by time basis:
  9533. * src/PeerAbstractCommand.cc
  9534. (onAbort): Call Peer::startBadCondition().
  9535. * src/Peer.h, src/Peer.cc
  9536. (error): Removed.
  9537. (_badConditionStartTime): New variable.
  9538. (_badConditionInterval): New variable. Initialized to 10 seconds.
  9539. (startBadCondition): New function.
  9540. (isGood): New function.
  9541. * src/DefaultPeerStorage.cc
  9542. (addPeer): Use Peer::isGood().
  9543. (FindFinePeer): Use Peer::isGood().
  9544. Always include port number in http request header:
  9545. * src/HttpRequest.cc (getHostText): Always include port number in
  9546. http request header.
  9547. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. To the ability to read options from a config file:
  9549. * src/main.cc: Command-line parameter validation is delegated to
  9550. OptionHandler class.
  9551. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9552. * src/Option.h, src/Option.cc (clear): New function.
  9553. * src/OptionParser.h, src/OptionParser.cc: New class.
  9554. * src/OptionHandler.h: New class.
  9555. * src/NameMatchOptionHandler.h: New class.
  9556. * src/OptionHandlerImpl.h: New classes.
  9557. * src/prefs.h: '_' -> '-'
  9558. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9559. (FTP_PASV): New definition.
  9560. * src/Util.h, src/Util.cc (getRealSize): New function.
  9561. To disable netrc support if .netrc file does not have correct
  9562. permissions:
  9563. * src/File.h, src/File.cc (mode): New function.
  9564. To prevent confidential information to be logged:
  9565. * src/HttpConnection.h, src/HttpConnection.cc
  9566. (eraseConfidentialInfo): New function.
  9567. (sendRequest): Call eraseConfidentialInfo().
  9568. (sendProxyRequest): Call eraseConfidentialInfo().
  9569. * src/main.cc: Validate permissions of .netrc file.
  9570. To add --user-agent command-line option:
  9571. * src/main.cc: Added new command line option: --user-agent
  9572. * src/prefs.h (PREF_USER_AGENT): New definition.
  9573. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9574. parameter to HttpRequest object.
  9575. * src/AbstractProxyRequestCommand.cc
  9576. (executeInternal): Set user-agent option parameter to HttpRequest
  9577. object.
  9578. Marged the patches from Dan Fandrich.
  9579. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Use filename and size from Metalink file instead of sending HEAD
  9581. request:
  9582. * src/UrlRequestInfo.h
  9583. (_filename): New variable.
  9584. (_totalLength): New variable.
  9585. (setTotalLength): New variable.
  9586. (setFilename): New variable.
  9587. * src/MetalinkRequestInfo.cc
  9588. (execute): Set filename and size to UrlRequestInfo
  9589. * src/UrlRequestInfo.cc
  9590. (execute): Use filename and size from Metalink instead of seding
  9591. HEAD request to servers.
  9592. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. To add the ability to resume downloading a partially downloaded file
  9594. which is downloaded from the beginning:
  9595. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9596. takes this role.
  9597. * src/main.cc: Added -c option.
  9598. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9599. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9600. * src/prefs.h (PREF_CONTINUE): New definition.
  9601. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9602. * src/DefaultDiskWriter.cc
  9603. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9604. * src/AbstractDiskWriter.h
  9605. (glowFileAllocator): New variable.
  9606. * src/AbstractDiskWriter.cc
  9607. (openExistingFile): Now preallocate file space from the end of the
  9608. existing file if totalLength argument is specified and grater than 0.
  9609. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9610. to download exists in local, continue the download of the file.
  9611. --allow-overwrite=true is assumed in this context.
  9612. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9613. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9614. Throw exception if --check-integrity=true is specified but chunk
  9615. checksums are not provided:
  9616. * src/UrlRequestInfo.cc
  9617. Do not print URLs to stdout:
  9618. * src/UrlRequestInfo.cc
  9619. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. * src/Request.h: Use AuthResolver to get authentication information.
  9621. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9622. set to RequestFactory object.
  9623. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9624. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9625. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9626. create Request object.
  9627. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9628. To integrate Netrc into exsiting classes:
  9629. * src/Request.h
  9630. (_userDefinedAuthConfig): New variable.
  9631. (findNetrcAuthenticator): New function.
  9632. (segment): Removed.
  9633. (setUserDefinedAuthConfig): New function.
  9634. (resolveHttpAuthConfigItem): New function.
  9635. (resolveFtpAuthConfigItem): New function.
  9636. (resolveHttpProxyAuthConfigItem): New function.
  9637. * src/HttpRequest.h
  9638. (authConfig): Removed.
  9639. (proxyAuthConfig): Removed.
  9640. (setAuthConfig): Removed.
  9641. (setProxyAuthConfig): Removed.
  9642. * src/UrlRequest.h
  9643. (getHeadResult): Added a parameter: authConfigHandle
  9644. * src/common.h
  9645. (SingletonHolder.h): New include.
  9646. * src/main.cc
  9647. (Netrc.h): New include.
  9648. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9649. Added initial value of PREF_NETRC_PATH.
  9650. Added the initialization of netrc.
  9651. * src/AuthConfig.h: New class.
  9652. * src/prefs.h
  9653. (PREF_NETRC_PATH): New definition.
  9654. * src/HttpAuthConfig.h: Removed.
  9655. * src/Netrc.cc
  9656. (getRequiredNextToken): New function.
  9657. (skipMacdef): New function.
  9658. (parse): Rewritten.
  9659. * src/Netrc.h
  9660. (getRequiredNextToken): New function.
  9661. (skipMacdef): New function.
  9662. * src/Util.h, src/Util.cc
  9663. (getHomeDir): New function.
  9664. * src/TrackerWatcherComand.cc
  9665. (createRequestCommand): Use AuthConfig.
  9666. * src/FtpConnection.cc
  9667. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9668. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9669. * src/Request.cc
  9670. (findNetrcAuthenticator): New function.
  9671. (resolveHttpAuthConfigItem): New function.
  9672. (resolveFtpAuthConfigItem): New function.
  9673. (resolveHttpProxyAuthConfigItem): New function.
  9674. * src/UrlRequestInfo.cc: Use AuthConfig.
  9675. * src/HttpRequest.cc
  9676. (createRequest): Use authConfig.
  9677. (getProxyAuthString): Use authConfig.
  9678. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9679. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9680. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. To reduce overhead to find commands whose socket is either
  9682. readable or writable in the download engine loop:
  9683. * src/Command.h, src/Command.cc
  9684. (STATUS): New enum.
  9685. (status): New variable.
  9686. (statusMatch): New function.
  9687. (setStatusActive): New function.
  9688. (setStatusInactive): New function.
  9689. * src/DownloadEngine.h, src/DownloadEngine.cc
  9690. (executeCommand): New function.
  9691. (run): Simplified.
  9692. (waitData): Call Command::setStatusActive() when command's socket is
  9693. readable or writable.
  9694. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. To handle Segment as SegmentHandle:
  9696. * src/AbstractCommand.cc (execute): Rewritten.
  9697. * src/SegmentMan.h: Segment -> SegmentHandle
  9698. Introducded HttpResponse class, HttpRequest class to improve code
  9699. extensiveness and make it clear:
  9700. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9701. HttpResponse class.
  9702. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9703. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9704. * src/HttpConnection.cc: Contruction of http request were moved to
  9705. HttpRequest class.
  9706. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9707. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9708. * src/HttpAuthConfig.h: New class.
  9709. * src/Range.h: New class.
  9710. To make FtpTunnel{Request, Response}Command and
  9711. HttpProxy{Request, Response}Command derived from
  9712. AbstractProxy{Request, Response}Command:
  9713. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9714. Derived from AbstractProxyRequestCommand class.
  9715. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9716. Derived from AbstractProxyResponseCommand class.
  9717. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9718. Derived from AbstractProxyRequestCommand class.
  9719. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9720. Derived from AbstractProxyResponseCommand class.
  9721. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9722. : New class.
  9723. * src/AbstractProxyResponseCommand.h,
  9724. src/AbstractProxyResponseCommand.cc: New class.
  9725. To add netrc support:
  9726. * src/Netrc.h, src/Netrc.cc: New class.
  9727. * src/Util.h, src/Util.cc (split): New function.
  9728. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9729. "Content-Range" header instead of "Range" header.
  9730. * src/HttpHeader.h
  9731. (getStatus): Removed.
  9732. (setStatus): Removed.
  9733. * src/Segment.h
  9734. (getPositionToWrite): New function.
  9735. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. * src/HttpHeader.h
  9737. (Range.h): New include.
  9738. (status): New variable.
  9739. (HttpHeader): Initialized status with 0.
  9740. (getStatus): New function.
  9741. (setStatus): New function.
  9742. (getRange): New function.
  9743. (HttpHeaderHandle): New function.
  9744. * src/HttpHeader.cc
  9745. (getRange): New function.
  9746. * src/Request.h
  9747. (RequestWeakHandle): New definition.
  9748. * src/HttpConnection.h
  9749. (HttpConnectionHandle): New type definition.
  9750. * src/HttpConnection.cc
  9751. (receiveResponse): Set HTTP status to headers.
  9752. * src/main.cc
  9753. (showUsage): Fixed typo.
  9754. * src/Segment.h
  9755. (SegmentHandle): New type definition.
  9756. * src/BitfieldMan.h
  9757. (getMissingUnusedLength): New function.
  9758. * src/BitfieldMan.cc
  9759. (getMissingUnusedLength): New function.
  9760. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9761. To fix static initialization order problem:
  9762. * src/BitfieldManFactory.h
  9763. (defaultRandomizer): Removed.
  9764. (factory): New variable.
  9765. (getNewFactory): Removed.
  9766. (getFactoryInstance): New function.
  9767. (setDefaultRandomizer): Rewritten.
  9768. (getDefaultRandomizer): Rewritten.
  9769. * src/BitfieldManFactory.cc
  9770. (defaultRandomizer): Removed.
  9771. (factory): Initialized to 0.
  9772. (BitfieldManFactory): Initialized randomizer to 0.
  9773. * src/DefaultPieceStorage.cc
  9774. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9775. * src/Peer.cc
  9776. (Peer): getNewFactory() -> getFactoryInstance()
  9777. * src/SegmentMan.cc
  9778. (initBitfield): getNewFactory() -> getFactoryInstance()
  9779. * src/Piece.cc
  9780. (Piece): getNewFactory() -> getFactoryInstance()
  9781. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. To fix the bug that causes crash on Max OS X:
  9783. * src/SimpleRandomizer.h
  9784. (getInstance): Create new instance if the static variable is null.
  9785. * src/SimpleRandomizer.cc
  9786. (randomizer): Initialized to 0.
  9787. * src/BitfieldManFactory.h
  9788. (getNewFactory): Removed the call to setRandomizer().
  9789. To fix the miscalculation of the range of checksum:
  9790. * src/BitfieldMan.h
  9791. (isBitSetOffsetRange): New function.
  9792. * src/BitfieldMan.cc
  9793. (isBitSetOffsetRange): New function.
  9794. * src/SegmentMan.cc
  9795. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9796. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9797. * Release 0.10.1
  9798. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. To lower CPU usage in BitTorrent download when --max-upload-limit
  9800. command-line option specified:
  9801. * src/DefaultBtMessageDispatcher.cc
  9802. (sendMessages): Calculate uploading speed only when current message
  9803. is uploading data and is not sent yet.
  9804. * src/DefaultPeerStorage.h
  9805. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9806. * src/HttpResponseCommand.cc
  9807. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9808. This fixes compile error in Soralis 10.
  9809. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. To fix segfault in Metalink download:
  9811. * src/UrlRequestInfo.h
  9812. (filename): Removed.
  9813. (totalLength): Removed.
  9814. (setTotalLength): Removed.
  9815. (setFilename): Removed.
  9816. * src/MetalinkRequestInfo.cc
  9817. (execute): Do not set filename and totalLength to reqInfo.
  9818. Set chunk checksum to reqInfo if it is not null.
  9819. * src/HttpResponseCommand.cc
  9820. (executeInternal): Fixed filename in log.
  9821. (handleDefaultEncoding): Removed the call to initBitfield() and
  9822. markAllPiecesDone().
  9823. (handleOtherEncoding): Added HEAD method handling.
  9824. * src/FtpNegotiateCommand.cc
  9825. (executeInternal): Added SEQ_HEAD_OK handling.
  9826. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9827. return false.
  9828. * src/FtpNegotiateCommand.h
  9829. (SEQ_HEAD_OK): New definition.
  9830. * src/SegmentMan.cc
  9831. (initBitfield): Delete bitfield.
  9832. (isChunkChecksumValidationReady): Fixed the condition.
  9833. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9834. works fine.
  9835. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. * src/Xml2MetalinkProcessor.h
  9837. (xpathExists): New function.
  9838. * src/Xml2MetalinkProcessor.cc
  9839. (xpathExists): New function.
  9840. Not to send HEAD request if filename and size are available in Metalink
  9841. file:
  9842. * src/UrlRequestInfo.h
  9843. (filename): New variable.
  9844. (totalLength): New variable.
  9845. (setTotalLength): New function.
  9846. (setFilename): New function.
  9847. * src/MetalinkRequestInfo.cc
  9848. (execute): Set filename and size to UrlRequestInfo.
  9849. * src/MetalinkEntry.cc
  9850. (MetalinkEntry): Initialize size with 0.
  9851. * src/UrlRequestInfo.cc
  9852. (execute): Set filename and size to SegmentMan.
  9853. Not to download rest of the files after selected files are downloaded
  9854. in BitTorrent:
  9855. * src/PieceStorage.h
  9856. (allDownloadFinished): New function.
  9857. * src/DefaultBtAnnounce.cc
  9858. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9859. downloadFinished.
  9860. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9861. * src/DefaultPieceStorage.cc
  9862. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9863. Commented out the call to finishSelectiveDownloadingMode().
  9864. (downloadFinished): Call isFilteredAllBitSet() instead of
  9865. isAllBitSet().
  9866. (allDownloadFinished): New function.
  9867. * src/DefaultBtInteractive.cc
  9868. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9869. downloadFinished().
  9870. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9871. * src/TorrentDownloadEngine.cc
  9872. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9873. * src/BitfieldMan.h
  9874. (isFilteredAllBitSet): New function.
  9875. * src/ShareRatioSeedCriteria.h
  9876. (PieceStorage.h): New include.
  9877. (pieceStorage): New variable.
  9878. (evaluate):
  9879. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9880. * src/BitfieldMan.cc
  9881. (isFilteredAllBitSet): New function.
  9882. (isAllBitSet): Filter is not took into account.
  9883. Rename --force-truncate as --allow-overwrite:
  9884. * src/TorrentRequestInfo.cc
  9885. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9886. * src/main.cc
  9887. (showUsage): --force-truncate -> --allow-overwrite
  9888. * src/message.h
  9889. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9890. * src/prefs.h
  9891. (PREF_FORCE_TRUNCATE): Removed.
  9892. (PREF_ALLOW_OVERWRITE): New definition.
  9893. * src/SegmentMan.cc
  9894. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9895. * src/MetalinkRequestInfo.cc
  9896. (execute): Queueing message are now logged in info level.
  9897. * src/common.h
  9898. (LONG_LONG_MAX): Removed.
  9899. (LONG_LONG_MIN): Removed.
  9900. * src/HttpResponseCommand.cc
  9901. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9902. * src/FtpNegotiateCommand.cc
  9903. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9904. * src/main.cc
  9905. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9906. command-line option.
  9907. (main): Added --check-integriy and --realtime-chunk-checksum
  9908. command-line option.
  9909. --force-truncate -> --allow-overwrite
  9910. Set initial value of --check-integrity option to false.
  9911. Don't show usage when error occurs while persing command-line options.
  9912. Removed deprecated --upload-limit option.
  9913. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9914. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9915. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9916. * src/BtAllowedFastMessage.cc:
  9917. * src/BtBitfieldMessage.cc
  9918. * src/BtCancelMessage.cc
  9919. * src/BtChokeMessage.cc
  9920. * src/BtHaveAllMessage.cc
  9921. * src/BtHaveMessage.cc
  9922. * src/BtHaveNoneMessage.cc
  9923. * src/BtInterestedMessage.cc
  9924. * src/BtNotInterestedMessage.cc
  9925. * src/BtPieceMessage.cc
  9926. * src/BtPortMessage.cc
  9927. * src/BtRejectMessage.cc
  9928. * src/BtRequestMessage.cc
  9929. * src/BtSuggestPieceMessage.cc
  9930. * src/BtUnchokeMessage.cc
  9931. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9932. files are affected.
  9933. * src/ChunkChecksumValidator.cc
  9934. * src/SegmentMan.cc
  9935. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. To add chunk checksum validation:
  9937. * src/MetalinkEntry.h
  9938. (MetalinkChunkChecksum.h): New include.
  9939. (chunkChecksum): New variable.
  9940. * src/Request.h
  9941. (method): New variable.
  9942. (setMethod): New function.
  9943. (getMethod): New function.
  9944. (METHOD_GET): New static constant.
  9945. (METHOD_HEAD): New static constant.
  9946. * src/Xml2MetalinkProcessor.h
  9947. (getPieceHash): New function.
  9948. * src/PieceStorage.h
  9949. (markAllPiecesDone): New function.
  9950. (checkIntegrity): New function.
  9951. * src/FileAllocator.h
  9952. (NullFileAllocationMonitor.h): New include.
  9953. (FileAllocator): Initialize fileAllocationMonitor with new
  9954. NullFileAllocationMonitor().
  9955. * src/MultiDiskAdaptor.h
  9956. (messageDigest.h): Remove include.
  9957. (ctx): Removed.
  9958. (hashUpdate): Added ctx.
  9959. (MultiDiskAdaptor): Removed ctx.
  9960. (sha1Sum): Renamed as messageDigest.
  9961. (messageDigest): New function.
  9962. * src/UrlRequestInfo.h
  9963. (HeadResult): New class.
  9964. (digestAlgo): New variable.
  9965. (chunkChecksumLength): New variable.
  9966. (chunkChecksums): New variable.
  9967. (getHeadResult): New function.
  9968. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9969. (setDigestAlgo): New function.
  9970. (setChunkChecksumLength): New function.
  9971. (setChunkChecksums): New function.
  9972. * src/DefaultPieceStorage.cc
  9973. (DiskAdaptorWriter.h): New include.
  9974. (ChunkChecksumValidator.h): New include.
  9975. (markAllPiecesDone): New function.
  9976. (checkIntegrity): New function.
  9977. * src/DefaultBtContext.h
  9978. (getPieceHashes): New function.
  9979. * src/TorrentRequestInfo.cc
  9980. (execute): Try to validate chunk checksum if file already exists and
  9981. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9982. * src/messageDigest.h
  9983. (~MessageDigestContext): Added digestFree().
  9984. * src/MetalinkRequestInfo.cc
  9985. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9986. * src/DiskAdaptor.h
  9987. (messageDigest.h): New include.
  9988. (sha1Sum): Renamed as messageDigest.
  9989. (messageDigest): New function.
  9990. * src/DownloadCommand.h
  9991. (PeerStat.h): New include.
  9992. (maxDownloadSpeedLimit): New variable.
  9993. (startupIdleTime): New variable.
  9994. (lowestDownloadSpeedLimit): New variable.
  9995. (peerStat): New variable.
  9996. (setMaxDownloadSpeedLimit): New function.
  9997. (setStartupIdleTime): New function.
  9998. (setLowestDownloadSPeedLimit): New function.
  9999. * src/BtContext.h
  10000. (getPieceHashes): New function.
  10001. * src/main.cc
  10002. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10003. option to true for testing purpose.
  10004. * src/BtPieceMessage.cc
  10005. (checkPieceHash): Use messageDigest
  10006. * src/DownloadEngine.cc
  10007. (SetDescriptor): Removed.
  10008. (AccumulateActiveCommand): Removed.
  10009. (waitData): Rewritten.
  10010. (updateFdSet): Rewritten.
  10011. * src/MultiDiskAdaptor.cc
  10012. (hashUpdate): Added ctx.
  10013. (sha1Sum): Renamed as messageDigest.
  10014. (messageDigest): New function.
  10015. * src/BitfieldMan.h
  10016. (isBitRangeSet): New function.
  10017. (unsetBitRange): New function.
  10018. * src/ByteArrayDiskWriter.h
  10019. (sha1Sum): Renamed as messageDigest.
  10020. (messageDigest): New function.
  10021. * src/ConsoleDownloadEngine.cc
  10022. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10023. * src/DiskWriter.h
  10024. (messageDigest.h): New include.
  10025. (sha1Sum): Renamed as messageDigest.
  10026. (messageDigest): New function.
  10027. * src/ChunkChecksumValidator.h: New class.
  10028. * src/DiskAdaptorWriter.h: New class.
  10029. * src/prefs.h
  10030. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10031. (PREF_CHECK_INTEGRITY): New definition.
  10032. * src/HttpResponseCommand.cc
  10033. (handleDefaultEncoding): Added method "HEAD" handling.
  10034. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10035. (handleOtherEncoding):
  10036. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10037. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10038. startupIdleTime, lowestDownloadSpeedLimit to command.
  10039. * src/SegmentMan.h
  10040. (getSegmentEntryByIndex): New function.
  10041. (getSegmentEntryByCuid): New function.
  10042. (getSegmentEntryIteratorByCuid): New function.
  10043. (diskWriter): DiskWriter -> DiskWriterHandle
  10044. (pieceHashes): New variable.
  10045. (chunkHashLength): New variable.
  10046. (digestAlgo): New variable.
  10047. (FindPeerStat): Removed.
  10048. (getPeerStat): Rewritten.
  10049. (markAllPiecesDone): New function.
  10050. (checkIntegrity): New function.
  10051. (tryChunkChecksumValidation): New function.
  10052. (isChunkChecksumValidationReady): New function.
  10053. * src/BitfieldMan.cc
  10054. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10055. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10056. blocks to 0.
  10057. (isBitRangeSet): New function.
  10058. (unsetBitRange): New function.
  10059. * src/FtpNegotiateCommand.cc
  10060. (executeInternal): Set maxDownloadSpeedLimit,
  10061. startupIdleTime, lowestDownloadSpeedLimit to command.
  10062. (recvSize): Added method "HEAD" handling.
  10063. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10064. * src/AbstractSingleDiskAdaptor.cc
  10065. (sha1Sum): Renamed as messageDigest.
  10066. (messageDigest): New function.
  10067. * src/AbstractSingleDiskAdaptor.h
  10068. (sha1Sum): Renamed as messageDigest.
  10069. (messageDigest): New function.
  10070. * src/Util.h
  10071. (indexRange): New function.
  10072. * src/MetalinkEntry.cc
  10073. (MetalinkEntry): Initialized chunkChecksum to 0.
  10074. * src/ShaVisitor.cc
  10075. (~ShaVisitor): Removed the call to ctx.digestFree().
  10076. * src/SegmentMan.cc
  10077. (ChunkChecksumValidator.h): New include.
  10078. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10079. to DIGEST_ALGO_SHA1.
  10080. (~SegmentMan): Removed diskWriter.
  10081. (FindSegmentEntryByIndex): Removed.
  10082. (FindSegmentEntryByCuid): Removed.
  10083. (checkoutSegment): Rewritten.
  10084. (findSlowerSegmentEntry): Rewritten.
  10085. (getSegment): Rewritten.
  10086. (updateSegment): Rewritten.
  10087. (completeSegment): Rewritten.
  10088. (markAllPiecesDone): New function.
  10089. (checkIntegrity): New function.
  10090. (isChunkChecksumValidationReady): New function.
  10091. (tryChunkChecksumValidation): New function.
  10092. * src/Xml2MetalinkProcessor.cc
  10093. (getEntry): Get size and set it to entry.
  10094. Get chunk checksum and set it to entry.
  10095. (getPieceHash): New function.
  10096. * src/Util.cc
  10097. (sha1Sum): Removed ctx.digestFree()
  10098. (fileChecksum): Removed ctx.digestFree()
  10099. (indexRange): New function.
  10100. * src/Request.cc
  10101. (METHOD_GET): New variable.
  10102. (METHOD_HEAD): New variable.
  10103. (Request): Added method.
  10104. * src/UrlRequestInfo.cc
  10105. (FatalException.h): New include.
  10106. (message.h): New include.
  10107. (operator<<): Added operator<< for class HeadResult.
  10108. (getHeadResult): New function.
  10109. (execute): Get filename and size in separate download engine.
  10110. * src/ChunkChecksumValidator.cc: New class.
  10111. * src/DownloadCommand.cc:
  10112. (DownloadCommand): Added peerStat.
  10113. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10114. the value from Option.
  10115. The buffer size is now 16KB.
  10116. Use peerStat member instead of getting it from SegmentMan.
  10117. Use startupIdleTime member instead of gettingit from Option.
  10118. Added chunk checksum validation.
  10119. * src/AbstractDiskWriter.cc
  10120. (AbstractDiskWriter): Removed ctx.
  10121. (~AbstractDiskWriter): Removed ctx.digestFree()
  10122. (writeDataInternal): Returns the return value of write.
  10123. (readDataInternal): Returns the return value of read.
  10124. (sha1Sum): Renamed as messageDigest
  10125. (messageDigest): New function.
  10126. * src/AbstractDiwkWriter.h
  10127. (messageDigest.h): Removed include.
  10128. (ctx): Removed.
  10129. (sha1Sum): Renamed as messageDigest
  10130. (messageDigest): New function.
  10131. * src/DefaultPieceStorage.h
  10132. (markAllPiecesDone): New function.
  10133. (checkIntegrity): New function.
  10134. * src/NullFileAllocationMonitor.h: New class.
  10135. * src/MetalinkChunkChecksum.h: New class.
  10136. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10137. To decrease CPU usage in bittorrent download, calculation results in
  10138. BitfieldMan were cached and realtime fetching PeerObject was removed
  10139. with WeakHandle introduced. Option values are set to the objects
  10140. by setter before download begins.
  10141. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10142. * src/DefaultBtRequestFactory.h
  10143. (dispatcher): BtMessageDispatcherHandle ->
  10144. BtMessageDispatcherWeakHandle.
  10145. (messageFactory): New variable.
  10146. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10147. BtMessageDispatcherWeakHandle.
  10148. (setBtMessageFactory): New function.
  10149. * src/DefaultBtMessageDispatcher.cc:
  10150. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10151. from Option.
  10152. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10153. feating the value from Option.
  10154. Use messageFactory member.
  10155. * src/PeerInteractionCommand.cc
  10156. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10157. Add reverse dependencies to factory object.
  10158. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10159. dispatcher.
  10160. Set messageFactory to receiver.
  10161. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10162. btInteractive.
  10163. Set receiver to peerObject.
  10164. Set maxDownloadSpeedLimit to this.
  10165. (executeInternal): Use maxDownloadSpeedLimit member.
  10166. * src/BtChokeMessage.cc
  10167. (doReceivedAction): Use dispatcher, requestFactory member.
  10168. (onSendComplete): Use dispatcher member.
  10169. * src/PeerInteractionCommand.h
  10170. (maxDownloadSpeedLimit): New variable.
  10171. * src/DefaultBtMessageReceiver.h
  10172. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10173. (dispatcher):
  10174. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10175. (messageFactory): New variable.
  10176. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10177. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10178. (setDispatcher):
  10179. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10180. (setBtMessageFactory): New function.
  10181. * src/DefaultBtInteractive.cc
  10182. (initiateHandshake): Use messageFactory member.
  10183. (addBitfieldMessageToQueue): Use messageFactory member.
  10184. (addAllowedFastMessageToQueue): Use messageFactory member.
  10185. (decideChoking): Use messageFactory member.
  10186. (checkHave): Use messageFactory member.
  10187. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10188. (receiveMessages): Use maxDownloadSpeedLimit member.
  10189. (decideInterest): Use messageFactory member.
  10190. * src/BtRequestMessage.cc
  10191. (doReceivedAction): Use messageFactory, dispatcher member.
  10192. (onQueued): Use dispatcher member.
  10193. * src/BtPieceMessage.cc
  10194. (doReceivedAction): Use dispatcher member.
  10195. (send): Use peerConnection member.
  10196. (onWrongPiece): Use requestFactory member.
  10197. (handleChokingEvent): Use messageFactory, dispatcher member.
  10198. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10199. * src/BtMessageDispatcher.h
  10200. (BtMessageDispatcherWeakHandle): New type definition.
  10201. * src/SimpleBtMessage.cc
  10202. (send): Use peerConnection member.
  10203. * src/BtRejectMessage.cc
  10204. (doReceivedAction): Use dispatcher member.
  10205. * src/DefaultBtMessageDispatcher.h
  10206. (Option.h): Removed include.
  10207. (messageFactory): New variable.
  10208. (option): Removed.
  10209. (maxUploadSpeedLimit): New variable.
  10210. (requestTimeout): New variable.
  10211. (DefaultBtMessageDispatcher): Removed option.
  10212. Added maxUploadSpeedLimit, requestTimeout.
  10213. (setOption): Removed.
  10214. (getOption): Removed.
  10215. (setMaxUploadSpeedLimit): New function.
  10216. (setRequestTimeout): New function.
  10217. (setBtMessageFactory): New function.
  10218. * src/DefaultBtInteractive.h
  10219. (btMessageReceiver):
  10220. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10221. (dispatcher):
  10222. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10223. (btRequestFactory):
  10224. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10225. (peerConnection):
  10226. PeerConnectionHandle -> PeerConnectionWeakHandle
  10227. (messageFactory): New variable.
  10228. (option): Removed.
  10229. (keepAliveInterval): New variable.
  10230. (maxDownloadSpeedLimit): New variable.
  10231. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10232. (setBtMessageReceiver):
  10233. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10234. (setDispatcher):
  10235. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10236. (setBtRequestFactory):
  10237. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10238. (setPeerConnection):
  10239. PeerConnectionHandle -> PeerConnectionWeakHandle
  10240. (setOption): Removed.
  10241. (setKeepAliveInterval): New function.
  10242. (setMaxDownloadSpeedLimit): New function.
  10243. (setBtMessageFactory): New function.
  10244. * src/BitfieldMan.h
  10245. (cachedNumMissingBlock): New variable.
  10246. (cachedNumFilteredBlock): New variable.
  10247. (cachedCompletedLength): New variable.
  10248. (cachedFilteredComletedLength): New variable.
  10249. (cachedFilteredTotalLength): New variable.
  10250. (countMissingBlockNow): New function.
  10251. (countFilteredBlockNow): New function.
  10252. (getFilteredTotalLengthNow): New function.
  10253. (getCompletedLengthNow): New function.
  10254. (getFilteredCompletedLengthNow): New function.
  10255. (updateCache): New function.
  10256. * src/AbstractBtMessage.h
  10257. (BtMessageDispatcher.h): New include.
  10258. (PeerConnection.h): New include.
  10259. (BtRequestFactory.h): New include
  10260. (BtMessageFactory.h): New include.
  10261. (dispatcher): New variable.
  10262. (messageFactory): New variable.
  10263. (peerConnection: New variable.
  10264. (setBtMessageDispatcher): New function.
  10265. (setPeerConnection): New function.
  10266. (setBtMessageFactory): New function.
  10267. (setBtRequestFactory): New function.
  10268. * src/DefaultBtMessageFactory.cc
  10269. (setCommonProperty): Set dispatcher, requestFactory, this,
  10270. peerConnection to msg.
  10271. * src/BtRegistry.h
  10272. (BT_MESSAGE_RECEIVER): New macro.
  10273. * src/PeerConnection.h
  10274. (PeerConnectionWeakHandle): New type definition.
  10275. * src/BtMessageFactory.h
  10276. (BtMessageFactoryWeakHandle): New type definition.
  10277. * src/BitfieldMan.cc
  10278. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10279. cachedCompletedLength, cachedFilteredComletedLength,
  10280. cachedFilteredTotalLength.
  10281. Call updateCache().
  10282. (countMissingBlock): Return cachedNumMissingBlock.
  10283. (countMissingBlockNow): New function.
  10284. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10285. (countFilteredBlockNow): New function.
  10286. (setBit): Call updateCache().
  10287. (unsetBit): Call updateCache().
  10288. (setBitfield): Call updateCache().
  10289. (clearAllBit): Call updateCache().
  10290. (setAllBit): Use setBitInternal instead of setBit.
  10291. Call updateCache().
  10292. (addFilter): Call updateCache().
  10293. (enableFilter): Call updateCache().
  10294. (disableFilter): Call updateCache().
  10295. (clearFilter): Call updateCache().
  10296. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10297. (getFilteredTotalLengthNow): New function.
  10298. (getCompletedLength): Return cachedCompletedLength.
  10299. (getCompletedLengthNow): New function.
  10300. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10301. (getFilteredCompletedLengthNow): New function.
  10302. (updateCache): New function.
  10303. * src/BtMessageReceiver.h
  10304. (BtMessageReceiverWeakHandle): New type definition.
  10305. * src/DefaultBtMessageReceiver.cc
  10306. (receiveHandshake): Use messageFactory member.
  10307. (sendHandshake): Use messageFactory member.
  10308. (receiveMessage): Use messageFactory member.
  10309. * src/DefaultBtMessageFactory.h
  10310. (dispatcher): New variable.
  10311. (requestFactory): New variable.
  10312. (peerConnection): New variablle.
  10313. (setBtMessageDispatcher): New function.
  10314. (setBtRequestFactory): New function.
  10315. (setPeerConnection): New function.
  10316. * src/SharedHandle.h
  10317. (RefCount): New class.
  10318. (WeakHandle): New class.
  10319. * src/PeerObject.h
  10320. (BtMessageReceiver.h): New include.
  10321. (PeerObject): Added btMessageReceiver.
  10322. (btMessageReceiver): New variable.
  10323. * src/Util.cc
  10324. (countBit): Simplified.
  10325. * src/BtCancelMessage.cc
  10326. (doReceivedAction): Use dispatcher member.
  10327. * src/BtRequestFactory.h
  10328. (BtRequestFactoryWeakHandle): New type definition.
  10329. * src/PeerStorage.h
  10330. (downloadSpeed): int -> uint32_t
  10331. (uploadSpeed): int -> uint32_t
  10332. (sessionDownloadLength): long long int -> uint64_t
  10333. (sessionUploadLength): long long int -> uint64_t
  10334. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. To add RecoverableException, FatalException:
  10336. * src/AbstractCommand.cc
  10337. (onAbort): Exception -> RecoverableException
  10338. * src/PeerAbstractCommand.h
  10339. (RecoverableException.h): New include.
  10340. (onAbort): Exception -> RecoverableException.
  10341. * src/PeerInteractionCommand.cc
  10342. (onAbort): Exception -> RecoverableException.
  10343. * src/PeerAbstractCommand.cc
  10344. (execute): Exception -> RecoverableException.
  10345. (onAbort): Exception -> RecoverableException.
  10346. * src/TorrentRequestInfo.cc
  10347. (execute): Exception -> RecoverableException.
  10348. * src/MetalinkRequestInfo.cc
  10349. (execute): Exception -> RecoverableException.
  10350. * src/MetaFileUtil.cc: RecoverableException.
  10351. * src/AbstractCommand.h
  10352. (onAbort): Exception -> RecoverableException.
  10353. * src/DlRetryEx.h: Exception -> RecoverableException.
  10354. * src/DlAbortEx.h: Exception -> RecoverableException.
  10355. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10356. * src/Util.cc: Exception -> RecoverableException.
  10357. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10358. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10359. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10360. To make ID static const int
  10361. * src/BtInterestedMessage.h
  10362. (ID_t): Removed.
  10363. (ID): New variable.
  10364. (getId): Made non-const.
  10365. * src/BtPieceMessage.h
  10366. (ID_t): Removed.
  10367. (ID): New variable.
  10368. (getId): Made non-const.
  10369. * src/BtChokeMessage.h
  10370. (ID_t): Removed.
  10371. (ID): New variable.
  10372. (getId): Made non-const.
  10373. * src/BtHaveAllMessage.h
  10374. (ID_t): Removed.
  10375. (ID): New variable.
  10376. (getId): Made non-const.
  10377. * src/BtKeepAliveMessage.h
  10378. (ID_t): Removed.
  10379. (ID): New variable.
  10380. (getId): Made non-const.
  10381. * src/BtHandshakeMessage.h
  10382. (ID): New variable.
  10383. (getId): Made non-const.
  10384. * src/BtSuggestPieceMessage.h
  10385. (ID_t): Removed.
  10386. (ID): New variable.
  10387. (getId): Made non-const.
  10388. * src/BtPortMessage.h
  10389. (ID_t): Removed.
  10390. (ID): New variable.
  10391. (getId): Made non-const.
  10392. * src/AbstractBtMessage.h
  10393. (id): Removed.
  10394. (AbstractBtMessage): Removed id.
  10395. (getId): Removed.
  10396. * src/BtHaveMessage.h
  10397. (ID_t): Removed.
  10398. (ID): New variable.
  10399. (getId): Made non-const.
  10400. * src/BtAllowedFastMessage.h
  10401. (ID_t): Removed.
  10402. (ID): New variable.
  10403. (getId): Made non-const.
  10404. * src/BtCancelMessage.h
  10405. (ID_t): Removed.
  10406. (ID): New variable.
  10407. (getId): Made non-const.
  10408. * src/BtNotInterestedMessage.h
  10409. (ID_t): Removed.
  10410. (ID): New variable.
  10411. (getId): Made non-const.
  10412. * src/BtChokeMessage.h
  10413. (ID_t): Removed.
  10414. (ID): New variable.
  10415. (getId): Made non-const.
  10416. * src/BtRejectMessage.h
  10417. (ID_t): Removed.
  10418. (ID): New variable.
  10419. (getId): Made non-const.
  10420. * src/BtBitfieldMessage.h
  10421. (ID_t): Removed.
  10422. (ID): New variable.
  10423. (getId): Made non-const.
  10424. * src/BtUnchokeMessage.h
  10425. (ID_t): Removed.
  10426. (ID): New variable.
  10427. (getId): Made non-const.
  10428. * src/BtRequestMessage.h
  10429. (ID_t): Removed.
  10430. (ID): New variable.
  10431. (getId): Made non-const.
  10432. * src/BtHaveMessage.h
  10433. (ID_t): Removed.
  10434. (ID): New variable.
  10435. (getId): Made non-const.
  10436. To add --force-truncate command-line option and a check whether
  10437. the file already exists:
  10438. * src/DirectDiskAdaptor.h
  10439. (getFilePath): Made virtual public.
  10440. * src/MultiDiskAdaptor.h
  10441. (File.h): New include.
  10442. (DiskWriterEntry::fileEntry): Made private.
  10443. (DiskWriterEntry::fileExists): New function.
  10444. (DiskWriterEntry::getFileEntry): New function.
  10445. (fileExists): New function.
  10446. (getFilePath): New function.
  10447. * src/TorrentRequestInfo.cc
  10448. (FatalException.h): New include.
  10449. (message.h): New include.
  10450. (RecoverableException.h): New include.
  10451. (execute): Added a check whether file is already exists or not.
  10452. * src/DiskAdaptor.h
  10453. (fileExists): New function.
  10454. (getFilePath): New function.
  10455. * src/main.cc
  10456. (showUsage): Added an explanation of --force-truncate command-line
  10457. option.
  10458. (main): Added --force-truncate command-line option.
  10459. * src/Exception.h
  10460. (setMsg): buf[256] -> buf[1024]
  10461. * src/CopyDiskWriter.h
  10462. (getFilePath): Made public virtual.
  10463. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  10464. (fileExists): New function.
  10465. * src/DownloadEngineFactory.cc
  10466. (newTorrentConsoleEngine): Don't open file here.
  10467. * src/message.h
  10468. (EX_FILE_ALREADY_EXISTS): New definition.
  10469. * src/prefs.h
  10470. (PREF_FOECE_TRUNCATE): New definition.
  10471. * src/HttpResponseCommand.cc
  10472. (handleDefaultEncoding): Added a check whether the file already exists.
  10473. * src/SegmentMan.h
  10474. (fileExists): New function.
  10475. (shouldCancelDownloadForSafety): New function.
  10476. * src/FtpNegotiateCommand.cc
  10477. (recvSize): Added a check whether the file already exists.
  10478. * src/AbstractSingleDiskAdaptor.cc
  10479. (File.h): New include.
  10480. (fileExists): New function.
  10481. * src/AbstractSingleDiskAdaptor.h
  10482. (getFilePath): Removed.
  10483. (fileExists): New function.
  10484. * src/SegmentMan.cc
  10485. (fileExists): New function.
  10486. (shouldCancelDownloadForSafety): New function.
  10487. To fix regression bug in torrent downloading:
  10488. * src/DefaultBtRequestFactory.cc
  10489. (doChokedAction): New function.
  10490. * src/DefaultBtRequestFactory.h
  10491. (doChokedAction): New function.
  10492. * src/DefaultBtMessageDispatcher.cc
  10493. (doChokedAction): Do not delete request if its target is in allowed
  10494. fast set.
  10495. * src/DefaultBtInteractive.cc
  10496. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  10497. (sendKeepAlive): Send keep alive message even if the outgoing message
  10498. queue is not empty.
  10499. (decideInterest): Simplified the code.
  10500. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  10501. it is already called when BtChokeMessage is received from a peer.
  10502. * src/BtRequestFactory.h
  10503. (doChokedAction): New function.
  10504. To clean up code:
  10505. * src/PeerInteractionCommand.h
  10506. (executeInternal): Added virtual keyword explicitly.
  10507. (prepareForRetry): Added virtual keyword explicitly.
  10508. (prepareForNextPeer): Added virtual keyword explicitly.
  10509. (onAbort): Added virtual keyword explicitly.
  10510. * src/RequestSlot.cc
  10511. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  10512. * src/BtPieceMessage.cc
  10513. (doReceivedAction): Added a debug log of piece's bitfield.
  10514. * src/Piece.h
  10515. (getBitfieldLength): New function.
  10516. * src/ByteArrayDiskWriter.cc
  10517. (clear): Added buf = 0 to avoid double free corruption.
  10518. * src/FileAllocator.cc
  10519. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  10520. Added cp.reset().
  10521. * src/BitfieldMan.h
  10522. (operator=): Rewritten.
  10523. * src/BitfieldMan.cc
  10524. (BitfieldMan): Initialized bitfield, useBitfield.
  10525. * src/PeerConnection.cc
  10526. (receiveMessage): Added a call to socket->readable() after getting
  10527. message length to avoid possible EOF.
  10528. * src/Util.cc
  10529. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  10530. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10531. To add an ability to pre-allocate file space:
  10532. * src/DirectDiskAdaptor.h: Rewritten.
  10533. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  10534. * src/MultiDiskAdaptor.h: Rewritten.
  10535. * src/DefaultPieceStorage.cc
  10536. (MultiDiskWriter.h): Removed include.
  10537. (PreAllocationDiskWriter.h): Removed include.
  10538. (FileAllocationMonitor.h): New include.
  10539. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  10540. (initStorage): Rewritten.
  10541. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10542. * src/FileAllocator.h: New class.
  10543. * src/FileAllocator.cc: New class.
  10544. * src/FileAllocationMonitor.h: New class.
  10545. * src/FileAllocationMonitor.cc: New class.
  10546. * src/ConsoleFileAllocationMonitor.h: New class.
  10547. * src/ConsoleFileAllocationMonitor.cc: New class.
  10548. * src/AbstractSingleDiskAdaptor.h: New class.
  10549. * src/AbstractSingleDiskAdaptor.cc: New class.
  10550. * src/DiskAdaptor.h
  10551. (Directory.h): Removed include.
  10552. (DiskWriter.h): Removed include.
  10553. (FileEntry.h): Removed include.
  10554. (diskWriter): Removed.
  10555. (DiskAdaptor): Removed diskWriter.
  10556. (openFile): Made pure virtual.
  10557. (closeFile): Made pure virtual.
  10558. (openExistingFile): Made pure virtual.
  10559. (initAndOpenFile): Made pure virtual.
  10560. (writeData): Made pure virtual.
  10561. (readData): Made pure virtual.
  10562. (sha1Sum): Made pure virtual.
  10563. (getStoreDir): Returns const reference of storeDir.
  10564. (DiskAdaptorHandle): New type definition.
  10565. * src/main.cc
  10566. (ConsoleFileAllocationMonitor.h): New include.
  10567. (showUsage): Added default value description of -s option.
  10568. Added the description of --file-allocation option.
  10569. (main): Set default value of --file-allocation option to 'none'.
  10570. Added --file-allocation command-line option.
  10571. Setup FileAllocationMonitorFactory.
  10572. * src/FtpInitiateConnectionCommand.cc
  10573. (executeInternal): Removed diskWriter related processing, which was
  10574. moved to FtpNegotiationCommand.cc.
  10575. * src/DirectDiskAdaptor.cc
  10576. (getFilePath): Made non-const.
  10577. * src/CopyDiskAdaptor.h
  10578. (DiskAdaptor.h): Removed include.
  10579. (DiskWriter.h): Removed include.
  10580. (AbstractSingleDiskAdaptor.h): New include.
  10581. (getFilePath): Made non-const. Added virtual keyword.
  10582. (CopyDiskAdaptor): Removed diskWriter.
  10583. (getTempFile): Returns const reference.
  10584. (CopyDiskAdaptorHandle): New type definition.
  10585. * src/ByteArrayDiskWriter.cc
  10586. (clear): Simplified.
  10587. (initAndOpenFile): Rewritten.
  10588. (openFile): Call initAndOpenFile()
  10589. * src/MultiDiskAdaptor.cc: Rewritten.
  10590. * src/DownloadEngineFactory.cc
  10591. (FileAllocator.h): New include.
  10592. (FileAllocationMonitor.h): New include.
  10593. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10594. create DefaultDiskWriter with file allocator.
  10595. * src/DiskWriter.h
  10596. (initAndOpenFile): Added totalLength argument.
  10597. (openFile): Added totalLength argument.
  10598. * src/prefs.h
  10599. (PREF_FILE_ALLOCATION): New definition.
  10600. (V_PREALLOC): New definition.
  10601. (V_NONE): New definition.
  10602. * src/HttpResponseCommand.cc
  10603. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10604. size.
  10605. * src/FtpNegotiateCommand.cc
  10606. (Util.h): New include.
  10607. (recvSize): Open file here.
  10608. * src/Util.h
  10609. (ullitos): New function.
  10610. * src/CopyDiskWriter.h
  10611. (getFilePath): Made non-const.
  10612. * src/DefaultDiskWriter.h
  10613. (Option.h): New include.
  10614. (totalLength): Removed.
  10615. (DefaultDiskWriter): Removed totalLength.
  10616. (initAndOpenFile): Added totalLength argument.
  10617. (DefaultDiskWriterHandle): New type definition.
  10618. (createNewDiskWriter): New function.
  10619. * src/Util.cc
  10620. (ullitos): New function.
  10621. * src/DefaultDiskWriter.cc
  10622. (message.h): New include.
  10623. (FileAllocator.h): New include.
  10624. (prefs.h): New include.
  10625. (Util.h): New include.
  10626. (DefaultDiskWriter): Removed totalLength.
  10627. (initAndOpenFile): Added file allocation.
  10628. (createNewDiskWriter): New function. Just for temporary solution.
  10629. It will be rewritten later.
  10630. * src/DiskAdaptor.cc
  10631. (DiskAdaptor): Removed diskWriter.
  10632. * src/AbstractDiskWriter.cc
  10633. (LogFactory.h): New include.
  10634. (AbstractDiskWriter): Added fileAllocator, logger.
  10635. (openFile): Added totalLength argument.
  10636. * src/AbstractDiskWriter.h
  10637. (FileAllocator.h): New include.
  10638. (Logger.h): New include.
  10639. (fileAllocator): New variable.
  10640. (logger): New variable.
  10641. (openFile): Added totalLength argument. Added virtual keyword
  10642. explicitly.
  10643. (openExistingFile): Added totalLength argument. Added virtual keyword
  10644. explicitly.
  10645. (closeFile): Added virtual keyword explicitly.
  10646. (sha1Sum): Added virtual keyword explicitly.
  10647. (writeData): Added virtual keyword explicitly.
  10648. (readData): Added virtual keyword explicitly.
  10649. (setFileAllocator): New function.
  10650. * src/DefaultPieceStorage.h
  10651. (FileAllocator.h): New include.
  10652. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10653. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10654. * src/FileProgressMonitor.h: New class.
  10655. To compile aria2 on PC-BSD:
  10656. * src/DefaultBtContext.cc
  10657. (libgen.h): New include.
  10658. To fix memory leak:
  10659. * src/Exception.h
  10660. (~Exception): Delete cause. Fixed memory leak.
  10661. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10662. Rewritten a portion of bittorrent implementation:
  10663. * src/BtMessageValidator.h: New class.
  10664. * src/BtBitfieldMessageValidator.h: New class.
  10665. * src/BtHandshakeMessageValidator.h: New class.
  10666. * src/BtRequestMessageValidator.h: New class.
  10667. * src/BtSuggestPieceMessageValidator.h: New class.
  10668. * src/BtAllowedFastMessageValidator.h: New class.
  10669. * src/BtRejectMessageValidator.h: New class.
  10670. * src/BtCancelMessageValidator.h: New class.
  10671. * src/BtPieceMessageValidator.h: New class.
  10672. * src/BtHaveMessageValidator.h: New class.
  10673. * src/BtEventListener.h: New class.
  10674. * src/AbstractBtEventListener.h: New class.
  10675. * src/BtEvent.h: New class.
  10676. * src/BtChokingEvent.h: New class.
  10677. * src/BtChokedEvent.h: New class.
  10678. * src/BtCancelSendingPieceEvent.h: New class.
  10679. * src/BtAbortOutstandingRequestEvent.h: New class.
  10680. * src/Randomizer.h: New class.
  10681. * src/SimpleRandomizer.h: New class.
  10682. * src/BtMessage.h: New class.
  10683. * src/AbstractBtMessage.h: New class.
  10684. * src/SimpleBtMessage.h: New class.
  10685. * src/BtHaveMessage.h: New class.
  10686. * src/BtInterestedMessage.h: New class.
  10687. * src/BtAllowedFastMessage.h: New class.
  10688. * src/BtUnchokeMessage.h: New class.
  10689. * src/BtCancelMessage.h: New class.
  10690. * src/BtNotInterestedMessage.h: New class.
  10691. * src/BtChokeMessage.h: New class.
  10692. * src/BtHaveNoneMessage.h: New class.
  10693. * src/BtHandshakeMessage.h: New class.
  10694. * src/BtSuggestPieceMessage.h: New class.
  10695. * src/BtHaveMessage.h: New class.
  10696. * src/BtPieceMessage.h: New class.
  10697. * src/BtHaveAllMessage.h: New class.
  10698. * src/BtKeepAliveMessage.h: New class.
  10699. * src/BtPortMessage.h: New class.
  10700. * src/BtRejectMessage.h: New class.
  10701. * src/BtBitfieldMessage.h: New class.
  10702. * src/BtRequestMessage.h: New class.
  10703. * src/DefaultBtRequestFactory.h: New class.
  10704. * src/DefaultBtMessageReceiver.h: New class.
  10705. * src/BtInteractive.h: New class.
  10706. * src/BtMessageDispatcher.h: New class.
  10707. * src/DefaultBtMessageDispatcher.h: New class.
  10708. * src/DefaultBtInteractive.h: New class.
  10709. * src/BitfieldManFactory.h: New class.
  10710. * src/HandleRegistry.h: New class.
  10711. * src/BtMessageFactory.h: New class.
  10712. * src/BtMessageReceiver.h: New class.
  10713. * src/DefaultBtMessageFactory.h: New class.
  10714. * src/PeerObject.h: New class.
  10715. * src/BtRequestFactory.h: New class.
  10716. * src/SuggestPieceMessage.h: Removed.
  10717. * src/PortMessage.h: Removed.
  10718. * src/SuggestPieceMessage.h: Removed.
  10719. * src/KeepAliveMessage.h: Removed.
  10720. * src/HandshakeMessage.h: Removed.
  10721. * src/PeerInteraction.h: Removed.
  10722. * src/UnchokeMessage.h: Removed.
  10723. * src/PieceMessage.h: Removed.
  10724. * src/RequestMessage.h: Removed.
  10725. * src/InterestedMessage.h: Removed.
  10726. * src/HaveMessage.h: Removed.
  10727. * src/CancelMessage.h: Removed.
  10728. * src/RejectMessage.h: Removed.
  10729. * src/AllowedFastMessage.h: Removed.
  10730. * src/HaveNoneMessage.h: Removed.
  10731. * src/SimplePeerMessage.h: Removed.
  10732. * src/HaveAllMessage.h: Removed.
  10733. * src/BitfieldMessage.h: Removed.
  10734. * src/PeerMessageFactory.h: Removed.
  10735. * src/NotInterestedMessage.h: Removed.
  10736. * src/ChokeMessage.h: Removed.
  10737. * src/PeerMessage.h: Removed.
  10738. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10739. To know root cause of exception:
  10740. * src/Exception.h
  10741. (cause): New variable.
  10742. (Exception): Added a parameter.
  10743. (getMsg): Return const reference to msg.
  10744. (getCause): New function.
  10745. * src/DlRetryEx.h
  10746. (DlRetryEx): Added a parameter 'cause'.
  10747. Added an overloaded constructor.
  10748. (DlAbortEx): Added a parameter 'cause'.
  10749. Added an overloaded constructor.
  10750. * src/SimpleLogger.cc
  10751. (writeLog): Log nested exception messages recursively.
  10752. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. * src/DefaultBtProgressInfoFile.cc
  10754. (load): Fixed memory leak when the infohash doesn't match.
  10755. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10756. * src/DefaultPeerStorage.cc
  10757. (calculateStat): Simplified the code by combining 2 loops into 1.
  10758. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10759. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10760. for BitTorrent download:
  10761. * src/PeerAbstractCommand.cc
  10762. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10763. * src/main.cc:
  10764. (timeoutSpecified): Removed.
  10765. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10766. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10767. * src/TorrentRequestInfo.cc
  10768. (timeoutSpecified): Removed.
  10769. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10770. timeout value.
  10771. * src/prefs.h
  10772. (PREF_BT_TIMEOUT): New definition.
  10773. Delete unused variables:
  10774. * src/TorrentRequestInfo.cc
  10775. (requestInfo): Removed.
  10776. Move setSignalHander to Util::setGlobalSignalHandler:
  10777. * src/TorrentRequestInfo.cc:
  10778. setSignalHander -> Util::setGlobalSignalHandler
  10779. * src/main.cc
  10780. (setSignalHander): Removed.
  10781. (main): setSignalHander -> Util::setGlobalSignalHandler
  10782. * src/Util.h
  10783. (setGlobalSignalHandler): New function.
  10784. * src/Util.cc
  10785. (setGlobalSignalHandler): New function.
  10786. * src/UrlRequestInfo.cc:
  10787. setSignalHander -> Util::setGlobalSignalHandler
  10788. Reset peer status in order to exit gracefully:
  10789. * src/PeerAbstractCommand.cc
  10790. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10791. To fix the bug that causes the number of bytes uploaded is not saved
  10792. to .aria2 file:
  10793. * src/DefaultPeerStorage.h
  10794. (removedPeerSessionDownloadLength): New variable.
  10795. (removedPeerSessionUploadLength): New variable.
  10796. * src/DefaultPeerStorage.cc
  10797. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10798. removedPeerSessionUploadLength(0).
  10799. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10800. through all peers, and then add removedPeerSessionDownloadLength(
  10801. removedPeerSessionUploadLength) to it.
  10802. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10803. (to) the peer to removedPeerSessionDownloadLength
  10804. (removedPeerSessionUploadLength).
  10805. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. To add Metalink location option:
  10807. * src/MetalinkRequestInfo.cc
  10808. (execute): Call MetalinkEntry::setLocationPreference()
  10809. * src/main.cc
  10810. (showUsage): Added the help message for --metalink-location option.
  10811. (main): Added --metalink-location option.
  10812. * src/prefs.h
  10813. (PREF_METALINK_LOCATION): New definition.
  10814. * src/MetalinkEntry.cc
  10815. (AddLocationPreference): New function object.
  10816. (setLocationPreference): New function.
  10817. * src/Xml2MetalinkProcessor.cc
  10818. (getResource): Set location attribute to MetalinkResource
  10819. To show URLs to download
  10820. * src/UrlRequestInfo.h
  10821. (printUrls): New function.
  10822. To add multiple <file> Metalink support:
  10823. * src/MetalinkEntry.h
  10824. (MetalinkResources): Removed.
  10825. (setLocationPreference): New function.
  10826. (MetalinkEntryHandle): New type definition.
  10827. (MetalinkEntries): New type definition.
  10828. * src/Xml2MetalinkProcessor.h
  10829. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10830. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10831. (parseFile): Metalinker* -> MetalinkerHandle
  10832. * src/UrlRequestInfo.h
  10833. (execute): RequestInfo* -> RequestInfos
  10834. * src/MetalinkRequestInfo.cc
  10835. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10836. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10837. (execute): RequestInfo* -> RequestInfos
  10838. Added multiple <file> support. Print filename when it is queued.
  10839. * src/MetalinkRequestInfo.h
  10840. (execute): RequestInfo* -> RequestInfos
  10841. (getDownloadEngine): Removed.
  10842. * src/RequestInfo.h
  10843. (RequestInfoHandle): New type definition.
  10844. (RequestInfos): New type definition.
  10845. (execute): RequestInfo* -> RequestInfos
  10846. (getDownloadEngine): Removed.
  10847. * src/MetalinkResource.h
  10848. (MetalinkResourceHandle): New type definition.
  10849. (MetalinkResources): New type definition.
  10850. * src/MetalinkEntry.cc
  10851. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10852. because the element is now of type MetalinkResourceHandle.
  10853. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10854. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10855. (dropUnsupportedResource): Removed the deletion of the elements of
  10856. resources because the element is now of type MetalinkResourceHandle.
  10857. * src/Xml2MetalinkProcessor.cc
  10858. (parseFile): Metalinker* -> MetalinkerHandle
  10859. MetalinkEntry* -> MetalinkEntryHandle
  10860. Removed try-catch block.
  10861. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10862. MetalinkResource* -> MetalinkResourceHandle
  10863. Removed try-catch block.
  10864. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10865. Free result by using xmlXPathFreeObject()
  10866. * src/Metalinker.cc
  10867. (~Metalinker): Removed the deletion of entries.
  10868. MetalinkEntry* -> MetalinkEntryHandle
  10869. (queryEntry): Add multiple <file> Metalink support.
  10870. * src/Metalinker.h
  10871. (MetalinkEntries): Removed.
  10872. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10873. * src/MetalinkProcessor.h
  10874. (parseFile): Metalinker* -> MetalinkerHandle
  10875. Bug fixes:
  10876. * src/PeerChokeCommand.cc
  10877. (execute): cat01->cat02
  10878. * src/DefaultPieceStorage.cc
  10879. (DefaultPieceStorage): Added diskAdaptor(0)
  10880. * src/TrackerWatcherComand.cc:
  10881. (execute): Use btAnnounce->noMoreAnnounce()
  10882. to determin whether the function returns true or not.
  10883. * src/TrackerUpdateCommand.cc:
  10884. (execute): Use btAnnounce->noMoreAnnounce()
  10885. to determin whether the function returns true or not.
  10886. * src/FtpConnection.cc
  10887. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10888. This is the fix of the busy loop bug.
  10889. * src/DownloadCommand.cc
  10890. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10891. cached PeerStat.
  10892. The value of "name" entry in torrent file is now set by
  10893. *DiskAdaptor::setTopDir(...) methods.
  10894. * src/MultiDiskAdaptor.h
  10895. (topDir): New variable.
  10896. (setTopDir): New function.
  10897. (getTopDir): New function.
  10898. * src/MultiDiskAdaptor.cc
  10899. (getFilePath): Concat storDir, "/" and topDir.
  10900. (mkdir): Use getFilePath() to get the directory path for output.
  10901. * src/DefaultPieceStorage.cc
  10902. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10903. CopyDiskAdaptor.
  10904. * src/CopyDiskAdaptor.h
  10905. (topDir): New variable.
  10906. (setTopDir): New function.
  10907. (getTopDir): New function.
  10908. * src/CopyDiskAdaptor.cc
  10909. (fixFilename): Updated.
  10910. Misc
  10911. * src/UrlRequestInfo.h
  10912. (e): Removed.
  10913. (UrlRequestInfo): Removed e.
  10914. (getDownloadEngine): Removed.
  10915. * src/UrlRequestInfo.cc
  10916. (handler): Rewritten.
  10917. (printUrls): New function.
  10918. (execute): Call printUrls().
  10919. * src/HandshakeMessage.cc
  10920. (check): peerinteraction->getBtContext() -> btContext
  10921. * src/PeerInteraction.h
  10922. (getBtContext): Removed.
  10923. * src/TorrentRequestInfo.h
  10924. (execute): RequestInfo* -> RequestInfos
  10925. (getDownloadEngine): Removed.
  10926. * src/TorrentRequestInfo.cc
  10927. (haltRequested): Removed.
  10928. (btHaltRequested): New variable.
  10929. (torrentHandler): haltRequested -> btHaltRequested
  10930. (execute): RequestInfo* -> RequestInfos
  10931. * src/TorrentConsoleDownloadEngine.cc
  10932. (afterEachIteration): haltRequested -> btHaltRequested.
  10933. * src/ConsoleDownloadEngine.h
  10934. (initStatistics): Added virtual.
  10935. (calculateStatistics): Added virtual.
  10936. (onEndOfRun): Added virtual.
  10937. (afterEachIteration): Added virtual.
  10938. * src/ConsoleDownloadEngine.cc
  10939. (haltRequested): New variable.
  10940. (afterEachIteration): New function.
  10941. * src/main.cc
  10942. (requestInfo): Removed.
  10943. * src/SegmentMan.cc
  10944. (findSlowerSegmentEntry): Refactored.
  10945. * Release 0.9.0
  10946. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10947. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10948. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10949. * src/TorrentMan.h: Removed.
  10950. * src/TorrentMan.cc: Removed.
  10951. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10952. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10953. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10954. * src/PeerAbstractCommand.cc: Use btRuntime.
  10955. * src/BtContextAwareCommand.h: New class.
  10956. * src/FileEntry.h: Added accessor methods for following variables.
  10957. (path): Made private.
  10958. (length): Made private.
  10959. (offset): Made private.
  10960. (extracted): Made private.
  10961. (requested): Made private.
  10962. (FileEntries): New definition.
  10963. (FileEntryHandle): New definition.
  10964. * src/FileEntry.cc: New file.
  10965. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10966. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10967. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10968. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10969. * src/PieceStorage.h: New file.
  10970. * src/PeerInteractionCommand.h: Use btContext.
  10971. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10972. btRuntime.
  10973. * src/DefaultBtProgressInfoFile.h: New file.
  10974. * src/DefaultBtProgressInfoFile.cc: New file.
  10975. * src/File.cc
  10976. (Util.h): New include.
  10977. (mkdirs): New function.
  10978. * src/MultiDiskAdaptor.h
  10979. (mkdir): New function.
  10980. * src/PeerListProcessor.h
  10981. (Peers): Removed.
  10982. * src/PeerInteraction.h
  10983. (torrentMan): Removed.
  10984. (btContext): New variable.
  10985. (peerStorage): New variable.
  10986. (pieceStorage): New variable.
  10987. (btAnnounce): New variable.
  10988. (getTorrentMan): Removed.
  10989. (getBtContext): New function.
  10990. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10991. btAnnounce.
  10992. * src/HandshakeMessage.h
  10993. (TorrentMan.h): Removed.
  10994. * src/HandshakeMessage.cc: Use btContext.
  10995. * src/DefaultBtAnnounce.cc: New file.
  10996. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10997. * src/DefaultPieceStorage.cc: New file.
  10998. * src/DefaultBtContext.h: New file.
  10999. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11000. Use the accessor methods of FileEntry.
  11001. * src/CookieBox.cc: Updated to use Util::slice().
  11002. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11003. * src/common.h (SharedHandle.h): New include.
  11004. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11005. pieceStorage.
  11006. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11007. * src/DiskAdaptor.h
  11008. (topDir): Removed.
  11009. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11010. (setTopDir): Removed.
  11011. (getTopDir): Removed.
  11012. * src/BtContext.h: New file.
  11013. * src/DefaultPeerStorage.h: New file.
  11014. * src/PieceMessage.h (TorrentMan.h): Removed.
  11015. * src/RequestMessage.h (TorrentMan.h): Removed.
  11016. * src/TorrentDownloadEngine.h
  11017. (uploadLength): New variable.
  11018. (btContext): New variable.
  11019. (btRuntime): New variable.
  11020. (pieceStorage): New variable.
  11021. (peerStorage): New variable.
  11022. (btAnnounce): New variable.
  11023. (btProgressInfoFile): New variable.
  11024. (torrentMan): Removed.
  11025. (setBtContext): New function.
  11026. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11027. peerStorage, btAnnounce, btProgressInfoFile.
  11028. * src/Piece.h
  11029. (toString): New function.
  11030. (Pieces): New type definition.
  11031. * src/Peer.h
  11032. (active): New variable.
  11033. (Peer): Added active.
  11034. (activate): Set active to true.
  11035. (deactivate): Set active to false.
  11036. (isActive): New function.
  11037. (Peers): New type definition.
  11038. * src/DirectDiskAdaptor.cc
  11039. (getFilePath): Use the accessor methods of FileEntry.
  11040. * src/TorrentConsoleDownloadEngine.h
  11041. (afterEachIteration): New function.
  11042. * src/TorrentConsoleDownloadEngine.cc
  11043. (haltRequested): New variable.
  11044. (sendStatistics): Use pieceStorage, btRuntime.
  11045. (afterEachIteration): New function.
  11046. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11047. * src/Directry.h
  11048. (Directory): New function.
  11049. (DirectoryHandle): New type definition.
  11050. * src/BtProgressInfoFile.h: New file.
  11051. * src/RequestMessage.cc: Use pieceStorage.
  11052. * src/BtRuntime.h: New file.
  11053. * src/DefaultBtContext.cc: New file.
  11054. * src/BitfieldMan.h
  11055. (getCompletedLength): New function(private).
  11056. (getCompletedLength): New function.
  11057. (getFilteredCompletedLength): New function.
  11058. * src/BitfieldMan.h
  11059. (getCompletedLength): New function(private).
  11060. (getCompletedLength): New function.
  11061. (getFilteredCompletedLength): New function.
  11062. * src/MultiDiskAdaptor.cc
  11063. (mkdir): New function.
  11064. (openFile): Call mkdir().
  11065. (initAndOpenFile): Call mkdir().
  11066. * src/CancelMessage.h
  11067. (TorrentMan.h): Removed.
  11068. * src/RejectMessage.h
  11069. (TorrentMan.h): Removed.
  11070. * src/DownloadEngineFactory.cc
  11071. (DefaultPieceStorage.h): New include.
  11072. (DefaultPeerStorage.h): New include.
  11073. (DefaultBtAnnounce.h): New include.
  11074. (DefaultBtProgressInfoFile.h): New include.
  11075. (newTorrentConsoleEngine): Rewritten.
  11076. * src/ShareRatioSeedCriteria.h
  11077. (torrentMan): Removed.
  11078. (btContext): New variable.
  11079. (peerStorage): New variable.
  11080. (btRuntime): New variable.
  11081. (evaluate): Use btContext, btRuntime, peerStorage.
  11082. * src/AnnounceTier.h: New file.
  11083. * src/BtAnnounce.h: New file.
  11084. * src/BtRegistry.h: New file.
  11085. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11086. * src/PeerConnection.h (TorrentMan.h): Removed.
  11087. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11088. * src/Util.h
  11089. (slice): Added an argument.
  11090. * src/Util.cc
  11091. (slice): Added an argument to control whether trim is made or not.
  11092. * src/PeerStorage.h: New file.
  11093. * src/BtRegistry.cc: New file.
  11094. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11095. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11096. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11097. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11098. * src/TorrentRequestInfo.h
  11099. (e): Removed.
  11100. (showFileEntry): Added an argument.
  11101. (getDownloadEngine): Return 0.
  11102. * src/DefaultBtAnnounce.h: New file.
  11103. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11104. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11105. * src/PeerMessageFactory.h
  11106. (btContext): New variable.
  11107. (pieceStorage): New variable.
  11108. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11109. btAnnounce.
  11110. * src/DiskAdaptor.cc
  11111. (DiskAdaptor): Removed topDir.
  11112. (~DiskAdaptor): Removed topDir.
  11113. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11114. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11115. * src/File.h (mkdirs): New function.
  11116. * src/DefaultPeerStorage): New file.
  11117. * src/DownloadEngineFactory.h
  11118. (newTorrentConsoleEngine): Use btContext.
  11119. * src/BtContextAwareCommand.cc: New file.
  11120. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11121. * src/PeerMessage.h
  11122. (btContext): New variable.
  11123. (peerStorage): New variable.
  11124. (pieceStorage): New variable.
  11125. (setBtContext): New function.
  11126. * src/Directry.cc
  11127. (Directory): New function.
  11128. (createDir): Do nothing if name.size() == 0.
  11129. * src/AnnounceList.h
  11130. (AnnounceTier): Removed.
  11131. (AnnounceTiers): Removed.
  11132. * src/DefaultPieceStorage.h: New file.
  11133. * src/Piece.cc (toString): New function.
  11134. To fix typo:
  11135. * src/main.cc (showVersion): Fixed typo.
  11136. To fix compile warning:
  11137. * src/DelegatingPeerListProcessor.cc
  11138. (canHandle): Added "return false".
  11139. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11140. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11141. make the process of announce request testable.
  11142. * src/TrackerWatcherCommand.h
  11143. (TimeA2.h): Removed.
  11144. (interval): Removed.
  11145. (checkPoint): Removed.
  11146. (createRequestCommand): Added an argument 'url'.
  11147. (TrackerWatherCommand): Removed interval.
  11148. (createCommand): New function.
  11149. * src/DownloadEngineFactory.cc
  11150. (newTorrentConsoleEngine): Updated according to the changes in
  11151. TrackerWatherCommand.
  11152. * src/TorrentMan.cc
  11153. (DelegatingPeerListProcessor.h): New includes.
  11154. (TorrentMan): Added the initialization of announceInterval.
  11155. (isStoppedAnnounceReady): New function.
  11156. (isCompletedAnnounceReady): New function.
  11157. (isDefaultAnnounceReady): New function.
  11158. (isAnnounceReady): New function.
  11159. (getAnnounceUrl): New function.
  11160. (announceStart): New function.
  11161. (announceFailure): New function.
  11162. (announceSuccess): New function.
  11163. (isAllAnnounceFailed): New function.
  11164. (resetAnnounce): New function.
  11165. (processAnnounceResponse): New function.
  11166. (needMorePeerConnection): New function.
  11167. (noMoreAnnounce): New function.
  11168. * src/TrackerUpdateCommand.h
  11169. (getTrackerResponse): int->size_t
  11170. * src/TorrentMan.h
  11171. (isStoppedAnnounceReady): New function.
  11172. (isCompletedAnnounceReady): New function.
  11173. (isDefaultAnnounceReady): New function.
  11174. (announceInterval): New variable.
  11175. (isAnnounceReady): New function.
  11176. (getAnnounceUrl): New function.
  11177. (announceStart): New function.
  11178. (announceFailure): New function.
  11179. (announceSuccess): New function.
  11180. (isAllAnnounceFailed): New function.
  11181. (resetAnnounce): New function.
  11182. (processAnnounceResponse): New function.
  11183. (needMorePeerConnection): New function.
  11184. (noMoreAnnounce): New function.
  11185. * src/TrackerWatcherCommand.cc
  11186. (TrackerWatherCommand): Removed interval and checkPoint.
  11187. (execute): Rewritten.
  11188. (createCommand): New function.
  11189. (createRequestCommand): Rewritten.
  11190. * src/TrackerUpdateCommand.cc
  11191. (MetaFileUtil.h): Removed.
  11192. (DelegatingPeerListProcessor.h): Removed.
  11193. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11194. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11195. Request -> RequestHandle:
  11196. * src/HttpResponseCommand.h: Request->RequestHandle
  11197. * src/AbstractCommand.cc: Request->RequestHandle
  11198. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11199. * src/HttpRequestCommand.cc: Request->RequestHandle
  11200. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11201. * src/AbstractCommand.h: Request->RequestHandle
  11202. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11203. * src/HttpResponseCommand.cc: Request->RequestHandle
  11204. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11205. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11206. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11207. * src/HttpConnection.h: Request->RequestHandle
  11208. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11209. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11210. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11211. * src/DownloadCommand.h: Request->RequestHandle
  11212. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11213. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11214. * src/HttpRequestCommand.h: Request->RequestHandle
  11215. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11216. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11217. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11218. * src/HttpDownloadCommand.h: Request->RequestHandle
  11219. * src/FtpConnection.cc: Request->RequestHandle
  11220. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11221. * src/UrlRequestInfo.cc: Request->RequestHandle
  11222. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11223. * src/HttpConnection.h: Request->RequestHandle
  11224. * src/DownloadCommand.cc: Request->RequestHandle
  11225. * src/FtpConnection.h: Request->RequestHandle
  11226. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11227. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11228. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11229. * src/Request.h
  11230. (SharedHandle.h): New include.
  11231. (RequestHandle): New type definition.
  11232. (Requests): Redefined.
  11233. To add MULTITRACKER support:
  11234. * src/TrackerWatcherCommand.h
  11235. (createRequestCommand): New function.
  11236. * src/DownloadEngineFactory.cc
  11237. (newTorrentConsoleEngine): Removed req.
  11238. * src/prefs.h
  11239. (PREF_TRACKER_MAX_TRIES): New definition.
  11240. * src/TorrentMan.cc
  11241. (TorrentMan): Removed req. Added trackerNumTry.
  11242. (~TorrentMan): Removed req.
  11243. (setupInternal1): Added announceList.
  11244. * src/TorrentRequestInfo.cc
  11245. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11246. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11247. * src/main.cc
  11248. (main): Added PREF_TRACKER_MAX_TRIES.
  11249. * src/TorrentMan.h
  11250. (Request.h): Removed.
  11251. (AnnounceList.h): New include.
  11252. (trackerNumTry): New variable.
  11253. (req): Removed.
  11254. (announceList): New variable.
  11255. * src/TrackerWatcherCommand.cc
  11256. (execute): Rewritten.
  11257. (createRequestCommand): New function.
  11258. * src/TrackerUpdateCommand.cc
  11259. (execute): Updated with the use of AnnounceList.
  11260. * src/AnnounceList.cc: New class.
  11261. * src/AnnounceList.h: New class.
  11262. To fix typo:
  11263. * src/prefs.h
  11264. (PREF_MAX_TRIES): max_try->max_tries
  11265. To not to decode "+" as space in URL decode:
  11266. * src/Util.cc
  11267. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11268. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11269. To add timeout to async name resolution:
  11270. * src/AbstractCommand.h
  11271. (nameResolveFinished): New function. This is not elegant way. It needs
  11272. to be more refined.
  11273. (nameResolverCheck): New variable.
  11274. * src/AbstractCommand.cc
  11275. (AbstractCommand): Added nameResolverCheck.
  11276. (execute): Added the check whether the name resolution has finished.
  11277. (setNameResolverCheck): Set nameResolverCheck to true.
  11278. (disableNameResolverCheck): Set nameResolverCheck to false.
  11279. (nameResolverFinished): New function.
  11280. * src/FtpInitiateConnectionCommand.h
  11281. (nameResolverFinished): New function.
  11282. * src/FtpInitiateConnectionCommand.cc
  11283. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11284. * src/HttpInitiateConnectionCommand.h
  11285. (nameResolverFinished): New function.
  11286. * src/HttpInitiateConnectionCommand.cc
  11287. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11288. * src/prefs.h
  11289. (PREF_DNS_TIMEOUT): New definition.
  11290. * src/main.cc
  11291. (main): Added PREF_DNS_TIMEOUT.
  11292. To add the support for a non-compact response from a tracker:
  11293. * src/PeerListProcessor.h: New class.
  11294. * src/DefaultPeerListProcessor.h: New class.
  11295. * src/DefaultPeerListProcessor.cc: New class.
  11296. * src/CompactPeerListProcessor.h: New class.
  11297. * src/CompactPeerListProcessor.cc: New class.
  11298. * src/DelegatingPeerListProcessor.h: New class.
  11299. * src/DelegatingPeerListProcessor.cc: New class.
  11300. * src/TorrentMan.cc
  11301. (addPeer): New function(overload).
  11302. (addPeer): Delete unused peers only when new peer is added.
  11303. * src/TorrentMan.h
  11304. (PeerListProcessor.h): Included.
  11305. (Peers): Removed.
  11306. (addPeer): New function(overload).
  11307. * src/TrackerUpdateCommand.cc
  11308. (netinet/in.h): Removed.
  11309. (DelegatingPeerListProcessor.h): Included.
  11310. (execute): Updated to use DelegatingPeerListProcessor.
  11311. To fix the memory leak in TorrentMan::peers:
  11312. * src/PeerAbstractCommand.cc
  11313. (onAbort): Added peer->resetStatus().
  11314. * src/Peer.h
  11315. (resetStatus): Made public.
  11316. To improve the precision of the speed calculation:
  11317. * src/SpeedCalc.h
  11318. (nextInterval): New variable.
  11319. * src/SpeedCalc.cc
  11320. (reset): Added nextInterval.
  11321. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11322. (changeSw): Set nextInterval to 15 seconds relative to the current
  11323. instant time.
  11324. * src/main.cc
  11325. (showVersion): Updated.
  11326. (showUsage): Updated.
  11327. * Release 0.8.1
  11328. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11329. * src/main.cc
  11330. (showUsage): Commented out --min-segment-size option.
  11331. (main): Commented out --min-segment-size option.
  11332. * Release 0.8.0
  11333. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. * src/*.{h,cc}:
  11335. Added an exception to the license which allows linking with OpenSSL.
  11336. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11337. * src/AbstractCommand.cc
  11338. (execute): Check whether the download has finished before checking
  11339. socket status.
  11340. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11341. Do not exit even if no segment is available.
  11342. * src/prefs.h
  11343. (PREF_STARTUP_IDLE_TIME): New definition.
  11344. * src/PeerInteractionCommand.cc
  11345. (executeInternal): Removed max speed limit. Because it performs bad.
  11346. (receiveMessages): Added max speed limit. This was better than above,
  11347. but still a little bit to be desired. Sometimes the download speed
  11348. became much faster than I specified.
  11349. * src/SpeedCalc.h
  11350. (start): New variable.
  11351. (accumulatedLength): New variable.
  11352. (getAvgSpeed): New function.
  11353. * src/SpeedCalc.cc
  11354. (reset): Added start, accumulatedLength.
  11355. (update): Added calculation of an average speed.
  11356. (getAvgSpeed): New function.
  11357. * src/DownloadCommand.h
  11358. (sw): Removed.
  11359. * src/main.cc
  11360. (main): Added PREF_STARTUP_IDLE_TIME.
  11361. * src/PeerStat.h
  11362. (STATUS): Added REQUEST_IDLE.
  11363. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11364. (getAvgDownloadSpeed): New function
  11365. (requestIdle): New function.
  11366. * src/SegmentMan.h
  11367. (SegmentEntryHandle): New type definition.
  11368. (SegmentEntries): Now holds SegmentEntryHandle.
  11369. (findSlowerSegmentEntry): New funtion.
  11370. * src/SegmentMan.cc
  11371. (save): Updated according to the changes in SegmentEntries.
  11372. (read): Updated according to the changes in SegmentEntries.
  11373. (FindSegmentEntryByIndex): Updated according to the changes in
  11374. SegmentEntries.
  11375. (FindSegmentEntryByCuid): Updated according to the changes in
  11376. SegmentEntries.
  11377. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11378. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11379. Renamed uitr as itr.
  11380. (findSlowerSegmentEntry): New function.
  11381. (getSegment): Updated according to the changes in SegmentEntries.
  11382. Added the feature that cancels the segment with slow server and fast
  11383. one takes it over.
  11384. (cancelSegment): Updated according to the changes in SegmentEntries.
  11385. (getDownloadLength): Updated according to the changes in
  11386. SegmentEntries.
  11387. (init): Assigned 0 to bitfield after deleting it.
  11388. * src/DownloadCommand.cc
  11389. (STARTUP_IDLE_TIME): Removed.
  11390. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11391. * src/PeerChokeCommand.cc
  11392. (optUnchokingPeer): Updated according to the changes in Peer.
  11393. (ResetDelta): Removed.
  11394. (UploadFaster): Updated according to the changes in Peer.
  11395. (DownloadFaster): Updated according to the changes in Peer.
  11396. (execute): I clarify the meaning of "upload" and "download" here.
  11397. "upload" means the transfer from localhost to remote host.
  11398. "download" means the transfer from remote host to localhost.
  11399. Based on this rule, I swapped orderByUploadRate and
  11400. orderByDownloadRate.
  11401. * src/PeerInteractionCommand.cc
  11402. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11403. (executeInternal): Removed the argument of
  11404. peerInteraction->sendMessages().
  11405. (receiveMessages): Rewritten download speed limit.
  11406. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11407. * src/HttpResponseCommand.cc
  11408. (handleDefaultEncoding): If file size is unknown in torrent request,
  11409. do not call segmentMan->initBitfield() here.
  11410. Disabled persistent connection feature in torrent request.
  11411. * src/UrlRequestInfo.h
  11412. (UrlRequestInfo): Removed const qualifier from option.
  11413. * src/TorrentMan.h
  11414. (TransferStat): New class.
  11415. (deltaDownloadLength): Removed.
  11416. (deltaUploadLength): Removed.
  11417. (addDeltaDownloadLength): Removed.
  11418. (getDeltaDownloadLength): Removed.
  11419. (resetDeltaDownloadLength): Removed.
  11420. (addDeltaUploadLength): Removed.
  11421. (getDeltaUploadLength): Removed.
  11422. (resetDeltaUploadLength): Removed.
  11423. (addActivePeer): Added peer->activate().
  11424. (deleteActivePeer): Added peer->deactivate().
  11425. (calculateStat): New function.
  11426. * src/TorrentMan.cc
  11427. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11428. (calculateStat): New function.
  11429. * src/PeerInteraction.h
  11430. (uploadLimit): Removed.
  11431. (option): New variable.
  11432. (setUploadLimit): Removed.
  11433. (getUploadSpeed): Removed.
  11434. (sendMessages): Removed the argument "currentUploadSpeed".
  11435. * src/PeerInteraction.cc
  11436. (prefs.h): Included.
  11437. (PeerInteraction): Removed uploadLimit. Added option.
  11438. (sendMessages): Rewritten upload speed limit.
  11439. (sendHandshake): Removed the argument from sendMessages().
  11440. (sendBitfield): Removed the argument from sendMessages().
  11441. * src/PeerAbstractCommand.cc
  11442. (execute): Commented out the portion of upload limit.
  11443. (onAbort): Removed peer->resetStatus().
  11444. * src/TorrentRequestInfo.cc
  11445. (timeoutSpecified): Declared extern.
  11446. (execute): Set timeout to 180 if timeout is not specified by.
  11447. command-line.
  11448. * src/PieceMessage.cc
  11449. (receivedAction): Added peer->updateDownloadLength().
  11450. Removed peer->addPeerUpload().
  11451. Removed torrentMan->addDeltaDownloadLength().
  11452. (send): Added peer->updateUploadLength().
  11453. Removed peer->addPeerDownload().
  11454. Removed torrentMan->addDeltaUploadLength().
  11455. * src/main.cc
  11456. (timeoutSpecified): New variable.
  11457. (main): Set timeoutSpecified to false.
  11458. If the command-line option "--upload-limit" is specified, then
  11459. timeoutSpecified is set to true. This option will remain in the next
  11460. release, but be deprecated in the future release.
  11461. * src/TorrentRequestInfo.h
  11462. (TorrentRequestInfo): Removed const qualifier from op.
  11463. * src/PeerStat.h
  11464. (uploadSpeed): New variable.
  11465. (PeerStat): Added default value to cuid.
  11466. (calculateUploadSpeed): New function.
  11467. (updateUploadLength): New function.
  11468. (getMaxUploadSpeed): New function.
  11469. (getAvgUploadSpeed): New function.
  11470. (reset): Added uploadSpeed. Set status to IDLE.
  11471. * src/TorrentDownloadEngine.h
  11472. (cp): Declared as Time.
  11473. (sessionDownloadLengthArray): Removed.
  11474. (sessionUploadLengthArray): Removed.
  11475. (currentCp): Removed.
  11476. (lastCalcStat): New variable
  11477. (lastElapsed): Removed.
  11478. (sessionDownloadLength): Removed.
  11479. (calculateStat): New function.
  11480. * src/TorrentDownloadEngine.cc
  11481. (initStatistics): Removed lastElapsed, cp[],
  11482. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  11483. currentCp, sessionDownloadLength.
  11484. Added cp.reset() and lastCalcStat.reset().
  11485. (calculateSpeed): Changed the name of the argument.
  11486. (calculateStatistics): Rewritten.
  11487. (calculateStat): New function.
  11488. * src/Peer.h
  11489. (PeerStat.h): Included.
  11490. (peerUpload): Removed.
  11491. (peerDownload): Removed.
  11492. (peerStat): New variable.
  11493. (sessionUploadLength): New variable.
  11494. (sessionDownloadLength): New variable.
  11495. (deltaUpload): Removed.
  11496. (deltaDownload): Removed.
  11497. (resetStatus): Made private.
  11498. (Peer): Added sessionUploadLength, sessionDownloadLength.
  11499. Removed peerUpload, peerDownload.
  11500. (updateUploadLength): New function.
  11501. (addDeltaUpload): Removed.
  11502. (updateDownloadLength): New function.
  11503. (resetDeltaUpload): Removed.
  11504. (getDeltaUpload): Removed.
  11505. (addDeltaDownload): Removed.
  11506. (calculateUploadSpeed): New function.
  11507. (resetDeltaDownload): Removed.
  11508. (getDeltaDownload): Removed.
  11509. (calculateDownloadSpeed): New function.
  11510. (getSessionUploadLength): New function.
  11511. (getSessionDownloadLength): New function.
  11512. (activate): New function.
  11513. (deactivate): New function.
  11514. (addPeerUpload): Removed.
  11515. (setPeerUpload): Removed.
  11516. (getPeerUpload): Removed.
  11517. (addPeerDownload): Removed.
  11518. (setPeerDownload): Removed.
  11519. (getPeerDownload): Removed.
  11520. * src/Peer.cc
  11521. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  11522. * src/MetalinkRequestInfo.h
  11523. (MetalinkRequestInfo): Removed const qualifier from op.
  11524. * src/RequestInfo.h
  11525. (op): Removed const qualifier.
  11526. (RequestInfo): Removed const qualifier from op.
  11527. * src/prefs.h
  11528. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  11529. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  11530. * src/PeerInteractionCommand.cc
  11531. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  11532. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  11533. * src/PeerInteraction.cc
  11534. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  11535. * src/main.cc
  11536. (showUsage): Updated the description of "--lowest-speed-limit" option.
  11537. Added the description of "--max-download-limit" option.
  11538. Removed the description of "--upload-limit" option.
  11539. Added the description of "--max-upload-limit" option.
  11540. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  11541. Added "--max-download-limit" option and "--max-upload-limit" option.
  11542. Added the warning message if "--upload-limit" option is used.
  11543. * src/DownloadCommand.cc
  11544. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  11545. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11546. To rewrite segment download mechanism for HTTP/FTP download.
  11547. Use BitfieldMan to manage segment download.
  11548. * src/HttpResponseCommand.h
  11549. (executeInternal): Pass the reference of segment.
  11550. * src/AbstractCommand.cc
  11551. (prepareForRetry): Call segmentMan->cancelSegment here.
  11552. (onAbort): Call segmentMan->cancelSegment here.
  11553. * src/HttpDownloadCommand.cc
  11554. (prepareForNextSegment): New function.
  11555. * src/DownloadEngineFactory.cc
  11556. (newConsoleEngine): Removed splitter.
  11557. (newTorrentConsoleEngine): Removed splitter.
  11558. * src/Request.h
  11559. (segment): Renamed from seg.
  11560. * src/FtpInitiateConnectionCommand.h
  11561. (executeInternal): Pass the reference of segment.
  11562. * src/AbstractCommand.h
  11563. (executeInternal): Pass the reference of segment.
  11564. * src/pref.h
  11565. (PREF_SEGMENT_SIZE): New definition.
  11566. * src/HttpProxyRequestCommand.h
  11567. (executeInternal): Pass the reference of segment.
  11568. * src/HttpResponseCommand.cc
  11569. (checkResponse): Allowed status 206 when a request range starts 0.
  11570. (handleDefaultEncoding): Rewritten the code related to Segment.
  11571. (handleOtherEncoding): Rewritten the code related to Segment.
  11572. * src/SegmentMan.h
  11573. (SegmentEntry): New class.
  11574. (SegmentEntries): New type definition.
  11575. (bitfield): New variable.
  11576. (usedSegmentEntries): New variable.
  11577. (onNullBitfield): New function.
  11578. (checkoutSegment): New function.
  11579. (segments): Removed.
  11580. (splitter): Removed.
  11581. (unregisterId): Removed.
  11582. (getSegment): New function(overload)
  11583. (getDownloadedSize): Removed.
  11584. (cancelSegment): New function.
  11585. (completeSegment): New function.
  11586. (initBitfield): New function.
  11587. (hasSegment): New function.
  11588. (getDownloadLength): New function.
  11589. * src/BitfieldMan.h
  11590. (getStartIndex): New function.
  11591. (getEndIndex): New function.
  11592. (getMissingUnusedIndex): New function(overload).
  11593. (getSparseMissingUnusedIndex): New function.
  11594. * src/BitfieldMan.cc
  11595. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11596. (getMissingUnusedIndex): New function(overload).
  11597. (Range): New class.
  11598. (getStartIndex): New function.
  11599. (getEndIndex): New function.
  11600. (getSparseMissingUnusedIndex): New function.
  11601. (isBitSetInternal): Return false if the given index is less than 0.
  11602. * src/HttpInitiateConnectionCommand.h
  11603. (executeInternal): Pass the reference of segment.
  11604. * src/FtpNegotiateCommand.h
  11605. (executeInternal): Pass the reference of segment.
  11606. * src/FtpNegotiateCommand.cc
  11607. (recvSize): Initialize bitfield here.
  11608. * src/FtpTunnelResponseCommand.h
  11609. (executeInternal): Pass the reference of segment.
  11610. * src/HttpConnection.cc
  11611. (createRequest): Rewritten range header processing.
  11612. * src/DownloadCommand.h
  11613. (executeInternal): Pass the reference of segment.
  11614. (prepareForRetry): Removed.
  11615. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11616. function.
  11617. * src/main.cc
  11618. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11619. * src/SegmentMan.cc
  11620. (SegmentMan): Added bitfield. Removed splitter.
  11621. (~SegmentMan): Added bitfield. Removed splitter.
  11622. (unregisterId): Removed.
  11623. (getSegment): Rewritten.
  11624. (updateSegment): Rewritten.
  11625. (save): Rewritten.
  11626. (read): Rewritten.
  11627. (finished): Rewritten.
  11628. (getDownloadedSize): Removed.
  11629. (initBitfield): New function.
  11630. (FindSegmentEntryByIndex): New function object.
  11631. (FindSegmentEntryByCuid): New function object.
  11632. (checkoutSegment): New function.
  11633. (onNullBitfield): New function.
  11634. (getSegment): New function(overload).
  11635. (CancelSegment): New function object.
  11636. (cancelSegment): New function.
  11637. (completeSegment): New function.
  11638. (hasSegment): New function.
  11639. (getDownloadLength): New function.
  11640. * src/FtpInitiateConnectionCommand.cc
  11641. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11642. * src/Segment.h: Rewritten.
  11643. * src/Segment.cc (operator<<): New function.
  11644. * src/HttpDownloadCommand.h
  11645. (prepareForNextSegment): New function.
  11646. * src/Request.cc
  11647. (resetUrl): Made segment null.
  11648. * src/DownloadEngine.cc
  11649. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11650. * src/HttpProxyRequestCommand.h
  11651. (executeInternal): Pass the reference of segment.
  11652. * src/DownloadCommand.cc
  11653. (executeInternal): Rewritten the code related to Segment.
  11654. (prepareForRetry): Removed.
  11655. (prepareForNextSegment): Rewritten.
  11656. * src/FtpTunnelResponseCommand.h
  11657. (executeInternal): Pass the reference of segment.
  11658. To add HTTP 1.1 persistent connection support(experimental)
  11659. * src/HttpRequestCommand.cc
  11660. (executeInternal): Disable keep alive if it is disabled by
  11661. configuration.
  11662. * src/Request.h
  11663. (keepAlive): New variable.
  11664. (isKeepAlive): New function.
  11665. (setKeepAlive): New function.
  11666. * src/pref.h
  11667. (PREF_HTTP_KEEP_ALIVE): New definition.
  11668. * src/HttpResponseCommand.cc
  11669. (executeInternal): Check the remote server supports keep alive.
  11670. * src/HttpConnection.cc
  11671. (createRequest): Send "Connection: close" only if keep alive is
  11672. disabled.
  11673. * src/main.cc
  11674. (main):
  11675. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11676. To add max download speed limit:
  11677. * src/pref.h
  11678. (PREF_MAX_SPEED_LIMIT): New definition.
  11679. * src/PeerInteractionCommand.cc
  11680. (executeInternal): Added max download speed limit. Not tested yet.
  11681. * src/SegmentMan.h
  11682. (PeerStats): New type definition.
  11683. (peerStats): New variable.
  11684. (registerPeerStat): New function.
  11685. (FindPeerStat): New function object.
  11686. (getPeerStat): New function.
  11687. (calculateDownloadSpeed): New function.
  11688. * src/SpeedCalc.h: New class.
  11689. * src/SpeedCalc.cc: New class.
  11690. * src/main.cc
  11691. (main):
  11692. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11693. download speed is not restricted).
  11694. * src/PeerStat.h: New class.
  11695. * src/SegmentMan.cc
  11696. (registerPeerStat): New function.
  11697. (calculateDownloadSpeed): New function.
  11698. * src/DownloadCommand.cc
  11699. (STARTUP_IDLE_TIME): New definition.
  11700. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11701. downloadStart.
  11702. (~DownloadCommand): Call peerStat->downloadStop.
  11703. (executeInternal): Added download speed limitter. Rewritten lowest
  11704. speed limitter.
  11705. * src/HttpConnection.cc
  11706. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11707. * src/AbstractCommand.cc
  11708. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11709. Added hostname to the error message.
  11710. * src/ConsoleDownloadEngine.cc
  11711. (calculateStatistics): Initialize psize with dlSize.
  11712. * src/PieceMessage.cc
  11713. (receivedAction): Do not call peerInteraction->abortPiece here.
  11714. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11715. * src/BitfieldMan.h
  11716. (clearAllUseBit): New function.
  11717. (setAllUseBit): New function.
  11718. * src/BitfieldMan.cc
  11719. (clearAllBit): Do not clear useBitfield here.
  11720. (clearAllUseBit): New function.
  11721. (setAllUseBit): New function.
  11722. * src/Piece.cc
  11723. (clearAllBlock): Call bitfield->clearAllUseBit().
  11724. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11725. To make filename URL-decoded:
  11726. * src/HttpResponseCommand.h: Updated doc.
  11727. * src/HttpResponseCommand.cc
  11728. (determinFilename): Made filename URL-decoded.
  11729. * src/FtpInitiateConnectionCommand.cc
  11730. (executeInternal): Made filename URL-decoded.
  11731. * src/Util.h (urldecode): New function.
  11732. * src/Util.cc (urldecode): New function.
  11733. To fix a bug that caused assertion failure in ares_strerror:
  11734. * src/NameResolver.cc (callback): Fixed the bug.
  11735. * Release 0.7.3
  11736. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11737. To add --seed-time and --seed-ratio command-line option:
  11738. * src/Option.h (getAsDouble): New function.
  11739. * src/Option.cc (getAsDouble): New function.
  11740. * src/SeedCheckCommand.h: New class.
  11741. * src/SeedCheckCommand.cc: New class.
  11742. * src/DownloadEngineFactory.cc
  11743. (SeedCheckCommand.h): Included.
  11744. (UnionSeedCriteria.h): Included.
  11745. (TimeSeedCriteria.h): Included.
  11746. (ShareRatioSeedCriteria.h): Included.
  11747. (newTorrentConsoleEngine): Added the processing of seed option.
  11748. * src/SeedCriteria.h: New class.
  11749. * src/ShareRatioSeedCriteria.h: New class.
  11750. * src/TimeSeedCriteria.h: New class.
  11751. * src/UnionSeedCriteria.h: New class.
  11752. * src/prefs.h
  11753. (PREF_SEED_TIME): New definition.
  11754. (PREF_SEED_RATIO): New definition.
  11755. * src/main.cc
  11756. (showUsage): Added --seed-time and --seed-ratio option.
  11757. (main): Added --seed-time and --seed-ratio option.
  11758. Made default log file name "/dev/null".
  11759. * src/SharedHandle.h
  11760. (SharedHandle): Copy constructor. Made it assignable from the
  11761. SharedHandle of the subclasses.
  11762. (operator=): Made it assignable from the SharedHandle of the
  11763. subclasses.
  11764. (getRefCount): New function.
  11765. To add notice log level and the switch to write log to stdout. This
  11766. switch is configurable per log level.
  11767. * src/Logger.h
  11768. (notice): New function.
  11769. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11770. constant.
  11771. * src/LogFactory.cc
  11772. (getInstance): The use of NullLogger was removed. A log message with
  11773. notice log level was made written to stdout along with log file.
  11774. * src/NullLogger.h
  11775. (notice): New function.
  11776. * src/SimpleLogger.h
  11777. (writeHeader): Added the 'file' argument.
  11778. (writeLog): Added the 'file' argument.
  11779. (writeFile): New function.
  11780. (stdoutField): New variable.
  11781. (SimpleLogger): Removed the default constructor.
  11782. (SimpleLogger): Made the default value of logfile 0.
  11783. (debug): Added 'virtual' keyword.
  11784. (info): Added 'virtual' keyword.
  11785. (warn): Added 'virtual' keyword.
  11786. (error): Added 'virtual' keyword.
  11787. (notice): New function.
  11788. (setStdout): New function.
  11789. * src/SimpleLogger.cc
  11790. (WRITE_LOG): Replaced writeLog with writeFile.
  11791. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11792. (SimpleLogger): Removed the default constructor.
  11793. (setStdout): New function.
  11794. (writeLog): Added the handling of NOTICE log level.
  11795. (writeFile): New function.
  11796. (notice): New function.
  11797. * src/TorrentMan.h: Updated doc.
  11798. * src/BitfieldMan.h: Updated doc.
  11799. * src/TrackerWatcherCommand.cc
  11800. (execute): Return true if error occurred in the request to the tracker
  11801. and halt is requested.
  11802. * src/TrackerUpdateCommand.cc
  11803. (execute): Return true if error occurred in the request to the tracker
  11804. and halt is requested.
  11805. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11806. DownloadEngine:
  11807. * src/TorrentConsoleDownloadEngine.h
  11808. (onSelectiveDownloadingCompletes): Removed.
  11809. * src/TorrentConsoleDownloadEngine.cc
  11810. (onSelectiveDownloadingCompletes): Removed.
  11811. * src/TorrentDownloadEngine.h
  11812. (onEndOfRun): Added 'virtual' keyword.
  11813. (afterEachIteration): Removed.
  11814. (onSelectiveDownloadingCompletes): Removed.
  11815. * src/TorrentDownloadEngine.cc
  11816. (onEndOfRun): Removed filenameFixed.
  11817. (afterEachIteration): Removed.
  11818. * src/TorrentMan.cc
  11819. (completePiece): Call onDownloadComplete here.
  11820. (onDownloadComplete): Added 2 log messages.
  11821. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11822. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11823. * src/NameResolver.h: Added the prototype declaration of callback().
  11824. To support c-ares library:
  11825. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11826. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11827. * src/FtpInitiateConnectionCommand.h:
  11828. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11829. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11830. * src/HttpInitiateConnectionCommand.h:
  11831. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11832. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11833. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11834. #1542285 by tizianomueller)
  11835. * src/HttpInitiateConnectionCommand.cc:
  11836. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11837. * src/FtpInitiateConnectionCommand.cc:
  11838. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11839. * src/DownloadEngine.h:
  11840. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11841. * src/DownloadEngine.cc:
  11842. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11843. To fix the bug that causes compilation failure with metalink-support
  11844. disabled(bug#1543587):
  11845. * src/main.cc: Fixed with the patch by tizianomueller.
  11846. * Release 0.7.2
  11847. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11848. * src/main.cc
  11849. (main): Added a message to inform users that aria2 is starting to
  11850. verify checksum.
  11851. * src/RequestInfo.cc
  11852. (printDownloadAbortMessage): Added a message to inform users that
  11853. transfer can be resumed.
  11854. * src/FeatureConfig.cc
  11855. (FEATURE_ASYNC_DNS): New definition.
  11856. (FeatureConfig): Added aysnc DNS entry.
  11857. To replace CommandUuid with Command* in SocketEntry and
  11858. NameResolverEntry:
  11859. * src/DownloadEngine.h
  11860. (CommandUuids): Removed.
  11861. (SocketEntry::commandUuid): Removed.
  11862. (SocketEntry::command): New variable.
  11863. (SocketEntry::SocketEntry): Updated.
  11864. (SocketEntry::operator==): Updated.
  11865. (NameResolverEntry::commandUuid): Removed.
  11866. (NameResolverEntry::command): New variable.
  11867. (NameResolverEntry::NameResolverEntry): Updated.
  11868. (NameResolverEntry::operator==): Updated.
  11869. (waitData): Changed the argument type.
  11870. (addSocketForReadCheck): Changed the argument type.
  11871. (deleteSocketForReadCheck): Changed the argument type.
  11872. (addSocketForWriteCheck): Changed the argument type.
  11873. (deleteSocketForWriteCheck): Changed the argument type.
  11874. (addNameResolverCheck): Changed the argument type.
  11875. (deleteNameResolverCheck): Changed the argument type.
  11876. * src/DownloadEngine.cc
  11877. (FindCommand): Removed.
  11878. (run): Removed activeUuid. Added activeCommands instead.
  11879. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11880. (AccumulateActiveCommand): New function object.
  11881. (waitData): Use AccumulateActiveCommand.
  11882. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11883. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11884. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11885. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11886. (addNameResolverCheck): Use Command instead of CommandUuid.
  11887. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11888. * src/AbstractCommand.cc
  11889. (disableReadCheckSocket): Updated according to the changes in
  11890. DownloadEngine.
  11891. (setReadCheckSocket): Updated according to the changes in
  11892. DownloadEngine.
  11893. (disableWriteCheckSocket): Updated according to the changes in
  11894. DownloadEngine.
  11895. (setWriteCheckSocket): Updated according to the changes in
  11896. DownloadEngine.
  11897. (setNameResolverCheck): Updated according to the changes in
  11898. DownloadEngine.
  11899. (disableNameResolverCheck): Updated according to the changes in
  11900. DownloadEngine.
  11901. * src/AbstractCommand.cc
  11902. (disableReadCheckSocket): Updated according to the changes in
  11903. DownloadEngine.
  11904. (setReadCheckSocket): Updated according to the changes in
  11905. DownloadEngine.
  11906. (disableWriteCheckSocket): Updated according to the changes in
  11907. DownloadEngine.
  11908. (setWriteCheckSocket): Updated according to the changes in
  11909. DownloadEngine.
  11910. * release 0.7.1
  11911. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11912. To handle the case where some BitTorrent tracker requires all letters
  11913. except for [A-Za-z0-9] is URL encoded.
  11914. * src/Util.h
  11915. (torrentUrlencode): New function.
  11916. * src/Util.cc
  11917. (ctype.h): Included.
  11918. (torrentUrlencode): New function.
  11919. * src/TrackerWatcherCommand.cc
  11920. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11921. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11922. To add asynchronous DNS support(libares):
  11923. * src/AbstractCommand.h
  11924. (setNameResolverCheck): New function.
  11925. (disableNameResolverCheck): New function
  11926. (resolveHostname): New function.
  11927. * src/AbstractCommand.cc
  11928. (setNameResolverCheck): New function.
  11929. (disableNameResolverCheck): New function
  11930. (resolveHostname): New function.
  11931. * src/FtpInitiateConnectionCommand.h
  11932. (nameResolver): New function.
  11933. * src/FtpInitiateConnectionCommand.cc
  11934. (Util.h): Included.
  11935. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11936. disableWriteCheckSocket.
  11937. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11938. (executeInternal): Added async DNS support.
  11939. * src/HttpInitiateConnectionCommand.h
  11940. (nameResolver): New function.
  11941. * src/HttpInitiateConnectionCommand.cc
  11942. (DlRetryEx.h): Included.
  11943. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11944. disableWriteCheckSocket.
  11945. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11946. (executeInternal): Added async DNS support.
  11947. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11948. by extern "C" declaration.
  11949. * src/NameResolver.cc: New class.
  11950. * src/Util.h:
  11951. (isNumberAndDotsNotation): New function
  11952. * src/Util.cc
  11953. (isNumberAndDotsNotation): New function.
  11954. * src/DownloadEngine.h
  11955. (NameResolver.h): Included.
  11956. (NameResolverEntry): New class.
  11957. (NameResolverEntries): New type definition.
  11958. (addNameResolverCheck): New function.
  11959. (deleteNameResolverCheck): New function.
  11960. * src/DownloadEngine.cc
  11961. (run): Initialize cp with 0.
  11962. (SetDescriptor::operator()): Added for NameResolverEntry.
  11963. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11964. (waitData): Check nameResolver entries.
  11965. (updateFdSet): Update fds in nameResolver entries.
  11966. (addNameResolverCheck): New function.
  11967. (deleteNameResolverCheck): new function.
  11968. * src/PeerInteractionCommand.cc
  11969. (executeInternal): Fixed wrong socket handling.
  11970. * src/main.cc
  11971. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11972. * src/Util.cc
  11973. (fileChecksum): Removed the call to ctx.digestReset().
  11974. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. * po/ru.po: Azamat sent me Russian translation.
  11976. * src/FtpNegotiateCommand.cc
  11977. (recvGreeting): Call disableWriteCheckSocket just after
  11978. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11979. (recvRetr): Recognized status code 125 as a acceptable response code.
  11980. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11981. case-insesitive filesystem(BUG#1531057).
  11982. * src/Time.h: Renamed as TimeA2.h.
  11983. * src/Time.cc: Renamed as TimeA2.cc.
  11984. * src/TimeA2.h: New class.
  11985. * src/TimeA2.cc: New class.
  11986. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11987. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11988. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11989. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11990. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11991. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11992. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11993. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11994. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11995. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11996. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11997. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11998. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11999. * release 0.7.0
  12000. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12001. * src/PeerChokeCommand.h
  12002. (PeerChokeCommand): Rearranged the arguments.
  12003. * src/PeerChokeCommand.cc
  12004. (PeerChokeCommand): Rearranged the arguments.
  12005. * src/MetalinkEntry.h
  12006. (Checksum.h): Included.
  12007. (md5): Removed.
  12008. (sha1): Removed.
  12009. (checksum): New variable.
  12010. (operator=): Updated.
  12011. (check): Removed.
  12012. * src/prefs.h
  12013. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12014. (PREF_FOLLOW_TORRENT): New definition.
  12015. (PREF_SELECT_FILE): New definition.
  12016. (PREF_FOLLOW_METALINK): New definition.
  12017. * src/MetalinkResource.h
  12018. (TYPE_HTTPS): Added to enum TYPE.
  12019. * src/TorrentMan.cc
  12020. (~TorrentMan): Rewritten.
  12021. * src/MultiDiskWriter.cc
  12022. (MultiDiskAdaptor): Updated according to the changes in
  12023. MessageDigestContext.
  12024. (~MultiDiskAdaptor): Updated according to the changes in
  12025. MessageDigestContext.
  12026. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12027. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12028. * src/Util.h
  12029. (fileChecksum): Updated according to the changes in
  12030. MessageDigestContext.
  12031. * src/Util.cc
  12032. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12033. (fileChecksum): Updated according to the changes in
  12034. MessageDigestContext.
  12035. * src/messageDigest.h: Rewritten.
  12036. * src/MetalinkEntry.cc
  12037. (check): Removed.
  12038. (Supported): Updated.
  12039. (dropUnsupportedResource): Fixed a memory leak.
  12040. * src/ShaVisitor.cc
  12041. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12042. (~ShaVisitor): Updated according to the changes in
  12043. MessageDigestContext.
  12044. (visit): Updated according to the changes in MessageDigestContext.
  12045. * src/main.cc
  12046. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12047. command-line option added.
  12048. * src/DownloadEngine.h
  12049. (SocketEntry): New class.
  12050. (SocketEntries): New definition.
  12051. (PairFind): Removed.
  12052. (SockCmdMap): Removed.
  12053. * src/DownloadEngine.cc
  12054. (DownloadEngine): Rewritten.
  12055. (~DownloadEngine): Rewritten.
  12056. (run): Renamed activeCommandUuids as activeUuids.
  12057. (SetDescriptor): Rewritten.
  12058. (AccumulateActiveCommandUuid): Removed.
  12059. (AccumulateActiveUuid): New function object.
  12060. (waitData): Rewritten.
  12061. (updateFdSet): Rewritten.
  12062. (addSocket): Rewritten.
  12063. (deleteSocket): Rewritten.
  12064. (addSocketForReadCheck): Rewritten.
  12065. (deleteSocketForReadCheck): Rewritten.
  12066. (addSocketForWriteCheck): Rewritten.
  12067. (deleteSocketForWriteCheck): Rewritten.
  12068. * src/Xml2MetalinkProcessor.cc
  12069. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12070. * src/DownloadCommand.cc
  12071. (executeInternal): Added the check routine for lowest speed limit.
  12072. * src/AbstractDiskWriter.cc
  12073. (AbstractDiskWriter): Updated according to the changes in
  12074. MessageDigestContext.
  12075. (~AbstractDiskWriter): Updated according to the changes in
  12076. MessageDigestContext.
  12077. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12078. * src/RequestInfo.h: New class.
  12079. * src/UrlRequestInfo.h: New class.
  12080. * src/UrlRequestInfo.cc: New class.
  12081. * src/TorrentRequestInfo.h: New class.
  12082. * src/TorrentRequestInfo.cc: New class.
  12083. * src/MetalinkRequestInfo.h: New class.
  12084. * src/MetalinkRequestInfo.cc: New class.
  12085. * src/Checksum.h: New class.
  12086. * src/DownloadEngineFactory.h: New class.
  12087. * src/DownloadEngineFactory.cc: New class.
  12088. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12089. * src/Option.h
  12090. (getAsBool): New function.
  12091. * src/Option.cc
  12092. (prefs.h): Included.
  12093. (defined): 0-length value is now recognized as undefined.
  12094. (getAsInt): Rewritten.
  12095. (getAsLLInt): Rewritten.
  12096. (getAsBool): New function.
  12097. * src/FeatureConfig.h: Rewritten.
  12098. * src/FeatureConfig.cc: Rewritten.
  12099. * src/prefs.h
  12100. (PREF_STDOUT_LOG): New definition.
  12101. (PREF_LOG): New definition.
  12102. (PREF_DIR): New definition.
  12103. (PREF_OUT): New definition.
  12104. (PREF_SPLIT): New definition.
  12105. (PREF_DAEMON): New definition.
  12106. (PREF_REFERER): New definition.
  12107. (PREF_TORRENT_FILE): New definition.
  12108. (PREF_LISTEN_PORT): New definition.
  12109. (PREF_METALINK_FILE): New definition.
  12110. (PREF_METALINK_VERSION): New definition.
  12111. (PREF_METALINK_LANGUAGE): New definition.
  12112. (PREF_METALINK_OS): New definition.
  12113. (PREF_METALINK_SERVERS): New definition.
  12114. * src/main.cc
  12115. (main): Following command-line parameters are now put into Option
  12116. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12117. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12118. metalinkLanguage, metalinkOs, metalinkServers
  12119. To fix the bug that aria2 can not handle http response header properly.
  12120. * src/HttpHeader.cc
  12121. (put): Made name lowercased.
  12122. (defined): Made name lowercased.
  12123. (getFirst): Made name lowercased.
  12124. (get): Made name lowercased.
  12125. (getFirstAsInt): Rewritten.
  12126. (getFirstAsLLInt): Rewritten.
  12127. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12128. * src/TorrentMan.h:
  12129. (advertisePiece): Updated doc.
  12130. (getAdvertisedPieceIndexes): Updated doc.
  12131. (removeAdvertisedPiece); New function.
  12132. * src/TorrentMan.cc
  12133. (FindElapsedHave): New function object.
  12134. (removeAdvertisedPiece): New function.
  12135. * src/HaveEraseCommand.h: New class.
  12136. * src/HaveEraseCommand.cc: New class.
  12137. * src/FeatureConfig.h: New class.
  12138. * src/FeatureConfig.cc: New class.
  12139. * src/Request.h
  12140. (defaultPorts): Removed.
  12141. * src/Request.cc
  12142. (FeatureConfig.h): Included.
  12143. (Request): Removed the statements related to defaultPorts.
  12144. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12145. A default port number is now retrieved from FeatureConfig.
  12146. * src/main.cc
  12147. (HaveEraseCommand.h): Included.
  12148. (showVersion): Added the output of feature list.
  12149. (main): Added HaveEraseCommand to command queue in BitTorrent
  12150. downloading.
  12151. * src/PeerInteractionCommand.h
  12152. (chokeCheckPoint): Commented out.
  12153. (periodicExecPoint): New variable.
  12154. * src/PeerInteractionCommand.cc
  12155. (executeInternal): Following methods are now called in at least every
  12156. 0.5 seconds to reduce CPU usage:
  12157. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12158. checkHave(), sendKeepAlive().
  12159. (checkLongTimePeerChoking): Commented out.
  12160. * src/BitfieldMan.h
  12161. (getNthBitIndex): Changed the method signature.
  12162. (getMissingIndexRandomly): Changed the method signature.
  12163. * src/BitfieldMan.cc
  12164. (getNthBitIndex): Rewritten
  12165. (getMissingIndexRandomly): Rewritten.
  12166. (hasMissingPiece): Rewritten.
  12167. (getMissingIndex): Refactored.
  12168. (getMissingUnusedIndex); Refactored.
  12169. (getMissingIndex): Refactored.
  12170. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12171. * src/PeerMessage.h
  12172. (Piece.h): Included.
  12173. (SharedHandle.h): Included.
  12174. (invalidate): New variable.
  12175. (uploading): New variable.
  12176. (isInvalidate): New function.
  12177. (isUploading): New function.
  12178. (onPush): New function.
  12179. (onChoked): New function.
  12180. (onCanceled): New function.
  12181. (onAbortPiece): New function.
  12182. (PeerMessageHandle): New type definition.
  12183. * src/PeerMessage.cc
  12184. (PeerMessage): Added the initialization for invalidate and uploading.
  12185. * src/CancelMessage.h
  12186. (CancelMessage): Rewritten.
  12187. * src/RejectMessage.h
  12188. (RejectMessage): Rewritten.
  12189. * src/Metalinker.h
  12190. (operator=): Defined.
  12191. * src/MetaEntry.h
  12192. (operator=): Defined.
  12193. * src/MetalinkResource.h
  12194. (operator=): Defined.
  12195. * src/AllowedFastMessage.h
  12196. (AllowedFastMessage): Rewritten.
  12197. * src/HandshakeMessage.h
  12198. (HandshakeMessage): New function(overload).
  12199. * src/HandshakeMessage.cc
  12200. (HandshakeMessage): Rewritten.
  12201. (init): New function.
  12202. * src/HaveMessage.h
  12203. (HaveMessage): Rewritten.
  12204. * src/Time.h
  12205. (operator=): Defined the function body here.
  12206. * src/Time.cc
  12207. (operator=): Removed.
  12208. * src/SocketCore.h
  12209. (operator==): Defined here.
  12210. (operator!=): Defined here.
  12211. (operator<): Defined here.
  12212. * src/SocketCore.cc
  12213. (operator==): Removed.
  12214. (operator<): Removed.
  12215. * src/BitfieldMan.h
  12216. (operator=): Defined the function body here.
  12217. * src/BitfieldMan.cc
  12218. (operator=): Removed.
  12219. * src/TorrentMan.h
  12220. (deleteErrorPeer): Removed.
  12221. (deleteUnusedPeer); New function.
  12222. * src/TorrentMan.cc
  12223. (addPeer): Call deleteUnusedPeer.
  12224. (deleteErrorPeer): Removed.
  12225. (deleteUnusedPeer): New function.
  12226. * src/PeerAbstractCommand.h
  12227. (setNoCheck): New function.
  12228. (noCheck): New variable.
  12229. * src/PeerAbstractCommand.cc
  12230. (PeerAbstractCommand): Added the initialization of noCheck.
  12231. (execute): Added a check for noCheck.
  12232. (setNoCheck): New function.
  12233. * src/Util.h
  12234. (stdio.h): Included.
  12235. * src/Util.cc
  12236. (unistd.h): Included.
  12237. * src/DefaultDiskWriter.cc
  12238. (unistd.h): Included.
  12239. * src/Peer.h
  12240. (operator==): Defined the function body here.
  12241. (operator!=): Defined the function body here.
  12242. * src/Peer.cc
  12243. (operator==): Removed.
  12244. (operator!=): Removed.
  12245. * src/Piece.h
  12246. (Piece): Defined the function body here(copy constructor).
  12247. (operator=): Defined the function body here.
  12248. (operator==): Defined the function body here.
  12249. * src/Piece.cc
  12250. (Piece): Removed(copy constructor).
  12251. (operator=): Removed.
  12252. (operator==): Removed.
  12253. * src/PeerMessageUtil.h
  12254. (ChokeMessage.h): Removed.
  12255. (UnchokeMessage.h): Removed.
  12256. (InterestedMessage.h): Removed.
  12257. (NotInterestedMessage.h): Removed.
  12258. (HaveMessage.h): Removed.
  12259. (BitfieldMessage.h): Removed.
  12260. (RequestMessage.h): Removed.
  12261. (CancelMessage.h): Removed.
  12262. (PieceMessage.h): Removed.
  12263. (HandshakeMessage.h): Removed.
  12264. (KeepAliveMessage.h): Removed.
  12265. (PortMessage.h): Removed.
  12266. (HaveAllMessage.h): Removed.
  12267. (HaveNoneMessage.h): Removed.
  12268. (PeerConnection.h): Removed.
  12269. (HandshakeMessage.h): Included.
  12270. * src/BitfieldMessage.h
  12271. (init): New function.
  12272. (BitfieldMessage): Rewritten.
  12273. (BitfieldMessage): New function(overload).
  12274. * src/RequestSlot.h
  12275. (operator=): Defined the function body here.
  12276. (operator==): Defined the function body here.
  12277. * src/RequestSlot.cc
  12278. (operator=): Removed.
  12279. (operator==): Removed.
  12280. To remove the dependency on the PeerMessage subclass from
  12281. PeerInteraction:
  12282. * src/PeerMessageFactory.h: New class.
  12283. * src/PeerMessageFactory.cc: New class.
  12284. * src/SimplePeerMessage.cc
  12285. (send): If invalidate is true then do nothing.
  12286. * src/PeerInteractionCommand.cc
  12287. (HandshakeMessage.h): Included.
  12288. (KeepAliveMessage.h): Included.
  12289. (ChokeMessage.h): Included.
  12290. (UnchokeMessage.h): Included.
  12291. (HaveMessage.h): Included.
  12292. (executeInternal): Call setNoCheck().
  12293. Removed setWriteCheckSocket(socket).
  12294. * src/PeerInteraction.h
  12295. (ChokeMessage.h): Removed.
  12296. (UnchokeMessage.h): Removed.
  12297. (InterestedMessage.h): Removed.
  12298. (NotInterestedMessage.h): Removed.
  12299. (HaveMessage.h): Removed.
  12300. (BitfieldMessage.h): Removed.
  12301. (RequestMessage.h): Removed.
  12302. (CancelMessage.h): Removed.
  12303. (PieceMessage.h): Removed.
  12304. (HandshakeMessage.h): Removed.
  12305. (KeepAliveMessage.h): Removed.
  12306. (PortMessage.h): Removed.
  12307. (HaveAllMessage.h): Removed.
  12308. (HaveNoneMessage.h): Removed.
  12309. (RejectMessage.h): Removed.
  12310. (AllowedFastMessage.h): Removed.
  12311. (SuggestPieceMessage.h): Removed.
  12312. (PeerMessageFactory.h): Included.
  12313. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12314. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12315. (PeerMessageFactory): New variable.
  12316. (createPeerMessage): Removed.
  12317. (createHandshakeMessage): Removed.
  12318. (setPeerMessageCommonProperty): Removed.
  12319. (addRequestSlot): New function.
  12320. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12321. (getPeerMessageFactory): New function.
  12322. (createRequestMessage): Removed.
  12323. (createCancelMessage): Removed.
  12324. (createPieceMessage): Removed.
  12325. (createHaveMessage): Removed.
  12326. (createChokeMessage): Removed.
  12327. (createUnchokeMessage): Removed.
  12328. (createInterestedMessage): Removed.
  12329. (createNotInterestedMessage): Removed.
  12330. (createBitfieldMessage): Removed.
  12331. (createKeepAliveMessage): Removed.
  12332. (createHaveAllMessage): Removed.
  12333. (createHaveNoneMessage): Removed.
  12334. (createRejectMessage): Removed.
  12335. (createAllowedFastMessage): Removed.
  12336. * src/PeerInteraction.cc
  12337. (PeerInteraction): Allocate PeerMessageFactory here.
  12338. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12339. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12340. PieceMessage::ID.
  12341. (addMessage): Simplified by using PeerMessage::onPush().
  12342. (addRequestSlot): New function.
  12343. (rejectAllPieceMessageInQueue): Simplified by using
  12344. PeerMessage::onChoked().
  12345. (rejectPieceMessageInQueue): Simplified by using
  12346. PeerMessage::onCanceled().
  12347. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12348. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12349. (createHandshakeMessage): Removed.
  12350. (createPeerMessage): Removed.
  12351. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12352. (setPeerMessageCommonProperty): Removed.
  12353. (createRequestMessage): Removed.
  12354. (createCancelMessage): Removed.
  12355. (createPieceMessage): Removed.
  12356. (createHaveMessage): Removed.
  12357. (createChokeMessage): Removed.
  12358. (createUnchokeMessage): Removed.
  12359. (createInterestedMessage): Removed.
  12360. (createNotInterestedMessage): Removed.
  12361. (createBitfieldMessage): Removed.
  12362. (createKeepAliveMessage): Removed.
  12363. (createHaveAllMessage): Removed.
  12364. (createHaveNoneMessage): Removed.
  12365. (createRejectMessage): Removed.
  12366. (createAllowedFastMessage): Removed.
  12367. * src/PieceMessage.h
  12368. (createRejectMessage): New function.
  12369. (PieceMessage): Rewritten.
  12370. (onChoked): New function.
  12371. (onCanceled): New function.
  12372. * src/PieceMessage.cc
  12373. (send): If invalidate is true then do nothing, just return.
  12374. (createRejectMessage): New function.
  12375. (onChoked): New function.
  12376. (onCanceled): New function.
  12377. * src/RequestMessage.h
  12378. (RequestMessage): Rewritten.
  12379. (onPush): New function.
  12380. (onAbortPiece): New function.
  12381. * src/RequestMessage.cc
  12382. (onPush): New function.
  12383. (onAbortPiece): New function.
  12384. Update fd_set when a socket is added or deleted in order to improve
  12385. performance:
  12386. * src/DownloadEngine.h
  12387. (rfdset): New variable.
  12388. (wfdset): New variable.
  12389. (updateFdSet): New function.
  12390. * src/DownloadEngine.cc
  12391. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12392. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12393. (waitData): Copy rfdset and wfdset.
  12394. (updateFdSet): New function.
  12395. (addSocket): Call updateFdSet.
  12396. (deleteSocket): Call updateFdSet.
  12397. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12398. To add the support for Metalink3.0 backward compatible links:
  12399. * src/Request.h
  12400. (SAFE_CHARS): Added '#'.
  12401. (METALINK_MARK): New definition.
  12402. * src/Request.cc
  12403. (parseUrl): Added the support for Metalink3.0 backward compatible
  12404. links.
  12405. etc
  12406. * src/PeerInteraction.cc
  12407. (MsgPushBack): Removed.
  12408. (sendMessages): Use STL copy and back_inserter.
  12409. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12410. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12411. * src/TorrentMan.h
  12412. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12413. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12414. * src/SharedHandle.h: New class.
  12415. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12416. * src/HttpResponseCommand.h
  12417. (HttpResponseCommand): Wrapped Socket.
  12418. * src/SocketCore.h
  12419. (operator==): New function.
  12420. (operator!=): New function.
  12421. (operator<): New function.
  12422. (getSockfd): New function.
  12423. (isOpen): New function.
  12424. (writeData): New function.
  12425. * src/SocketCore.cc
  12426. (operator==): New function.
  12427. (operator!=): New function.
  12428. (operator<): New function.
  12429. * src/AbstractCommand.h
  12430. (socket): Changed its type to SocketHandle.
  12431. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12432. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12433. (disableReadCheckSocket): New function.
  12434. (disableWriteCheckSocket): New function.
  12435. (readCheckTarget): Changed its type to SocketHandle.
  12436. (writeCheckTarget): Changed its type to SocketHandle.
  12437. (AbstractCommand): Replaced Socket with SocketHandle.
  12438. * src/AbstractCommand.cc
  12439. (AbstractCommand): Replaced Socket with SocketHandle.
  12440. (~AbstractCommand): Removed the deallocation for Socket object.
  12441. (disableReadCheckSocket): New function.
  12442. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12443. (disableWriteCheckSocket): New function.
  12444. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12445. * src/HttpDownloadCommand.cc
  12446. (DownloadCommand): Replaced Socket with SocketHandle.
  12447. * src/PeerAbstractCommand.h
  12448. (socket): Changed its type to SocketHandle.
  12449. (peer): Changed its type to PeerHandle.
  12450. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12451. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12452. (disableReadCheckSocket): New function.
  12453. (disableWriteCheckSocket): New function.
  12454. (readCheckTarget): Changed its type to SocketHandle.
  12455. (writeCheckTarget): Changed its type to SocketHandle.
  12456. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12457. Replaced Peer with PeerHandle.
  12458. * src/HttpRequestCommand.cc
  12459. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12460. Use disableReadCheckSocket.
  12461. * src/PeerInitiateConnectionCommand.h
  12462. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12463. * src/PeerChokeCommand.cc
  12464. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  12465. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  12466. (execute): Use PeerHandle.
  12467. * src/PeerConnection.h
  12468. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  12469. (socket): Changed its type to SocketHandle.
  12470. (PeerConnection): Replaced Socket with SocketHandle.
  12471. * src/PeerConnection.cc
  12472. (PeerConnection): Replaced Socket with SocketHandle.
  12473. * src/PeerInteractionCommand.h
  12474. (PeerInteractionCommand): Replaced socket with SocketHandle.
  12475. Replaced Peer with PeerHandle.
  12476. * src/PeerInteractionCommand.cc
  12477. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  12478. Replaced Peer with PeerHandle.
  12479. (executeInternal): Use disableWriteCheckSocket.
  12480. Use HandshakeMessageHandle.
  12481. (receiveMessages): Use PeerMessageHandle.
  12482. (prepareForNextPeer): Use PeerHandle.
  12483. * src/HttpProxyRequestCommand.h
  12484. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12485. * src/HttpResponseCommand.cc
  12486. (HttpResponseCommand): Replaced Socket with SocketHandle.
  12487. * src/TorrentMan.cc
  12488. (nullPeer): Added external reference.
  12489. (~TorrentMan): Removed the deallocation of the elements of peers.
  12490. (addPeer): Rewritten.
  12491. (isPeerAvailable): Use nullPeer.
  12492. (deleteOldpeers): Replaced with deleteErrorPeer.
  12493. (deleteErrorPeer): New function.
  12494. (getPeer): Use PeerHandle and nullPeer.
  12495. (hasMissingPiece): Replaced Peer with PeerHandle.
  12496. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12497. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12498. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12499. (getMissingPiece): Replaced Peer with PeerHandle.
  12500. * src/FtpNegotiateCommand.cc
  12501. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  12502. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  12503. (recvGreeting): Use disableWriteCheckSocket.
  12504. (recvPasv): Removed the allocation of Socket.
  12505. Use disableReadCheckSocket.
  12506. (sendRestPasv): Use disableWriteCheckSocket.
  12507. (recvRetr): Changed assertion.
  12508. * src/PeerInteraction.h
  12509. (SharedHandle.h): Included SharedHandle.h.
  12510. (PeerMessageHandle): New type definition.
  12511. (HandshakeMessageHandle): New type definition.
  12512. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  12513. (peer): Changed its type to PeerHandle.
  12514. (createHandshakeMessage): Replaced HandshakeMessage with
  12515. HandshakeMessageHandle.
  12516. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  12517. (PeerInteraction): Replaced Peer with PeerHandle.
  12518. Replaced Socket with SocketHandle.
  12519. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12520. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12521. (receiveHandshake): Replaced HandshakeMessage with
  12522. HandshakeMessageHandle.
  12523. * src/PeerInteraction.cc
  12524. (PeerInteraction): Replaced Peer with PeerHandle.
  12525. Replaced Socket with SocketHandle.
  12526. (~PeerInteraction): Removed the deallocation of the elements of
  12527. messageQueue.
  12528. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  12529. (isSendingMessageInProgress): Replaced PeerMessage with
  12530. PeerMessageHandle.
  12531. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  12532. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12533. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  12534. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  12535. (abortPiece): Use PeerMessageHandle.
  12536. (receiveHandshake): Replaced HandshakeMessage with
  12537. HandshakeMessageHandle. Removed try-catch block.
  12538. (createHandshakeMessage): Replaced HandshakeMessage with
  12539. HandshakeMessageHandle.
  12540. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12541. Removed try-catch block.
  12542. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  12543. * src/HttpProxyResponseCommand.cc
  12544. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12545. * src/FtpTunnelResponseCommand.h
  12546. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12547. * src/HttpConnection.cc
  12548. (HttpConnection): Replaced Socket with SocketHandle.
  12549. * src/PeerAbstractCommand.cc
  12550. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12551. (~PeerAbstractCommand): Removed the deallocation of socket.
  12552. Use disableReadCheckSocket, disableWriteCheckSocket.
  12553. (disableReadCheckSocket): New function.
  12554. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12555. (disableWriteCheckSocket): New function.
  12556. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12557. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12558. * src/FtpTunnelRequestCommand.cc
  12559. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12560. (~FtpTunnelRequestCommand): Corrected indentation.
  12561. * src/DownloadCommand.h
  12562. (DownloadCommand): Replaced Socket with SocketHandle.
  12563. * src/PeerListenCommand.cc
  12564. (PeerListenCommand): Removed the initialization of socket.
  12565. (~PeerListenCommand): Removed the deallocation of socket.
  12566. (bindPort): Use SocketHandle.
  12567. (execute): Use SocketHandle and PeerHandle.
  12568. * src/FtpDowndloadCommand.cc
  12569. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12570. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12571. * src/main.cc
  12572. (main): Corrected indentation.
  12573. * src/HttpInitiateConnectionCommand.cc
  12574. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12575. (executeInternal): Removed the allocation of socket.
  12576. * src/HttpRequestCommand.h
  12577. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12578. * src/FtpNegotiationCommand.h
  12579. (dataSocket): Changed its type to SocketHandle.
  12580. (serverSocket): Changed its type to SocketHandle.
  12581. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12582. * src/TorrentMan.h
  12583. (MAX_PEER_UPDATE): Removed.
  12584. (MAX_PEERS): New definition.
  12585. (Peers): The element is now of type PeerHandle.
  12586. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12587. (getPeer): Replaced Peer with PeerHandle.
  12588. (deleteOldErrorPeers): Removed.
  12589. (deleteErrorPeer): New function.
  12590. (hasMissingPiece): Replaced Peer with PeerHandle.
  12591. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12592. (getMissingPiece): Replaced Peer with PeerHandle.
  12593. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12594. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12595. (addActivePeer): Replaced Peer with PeerHandle.
  12596. (deleteActivePeer): Replaced Peer with PeerHandle.
  12597. Added a check for the return value of find.
  12598. * src/FtpTunnelResponseCommand.cc
  12599. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12600. * src/FtpInitiateConnectionCommand.cc
  12601. (executeInternal): Removed the allocation of socket.
  12602. * src/DownloadEngine.h
  12603. (Sockets): An element is now of type SocketHandle.
  12604. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12605. (CommandUuids): New type definition.
  12606. (rsockets): Changed its type to SockCmdMap.
  12607. (wsockets): Changed its type to SockCmdMap.
  12608. (addSocket): Rewritten.
  12609. (deleteSocket): Rewritten.
  12610. (addSocketForReadCheck): Rewritten.
  12611. (deleteSocketForReadCheck): Rewritten.
  12612. (addSocketForWriteCheck): Rewritten.
  12613. (deleteSocketForWriteCheck): Rewritten.
  12614. (PairFind): New template class.
  12615. * src/HttpDownloadCommand.h
  12616. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12617. * src/FtpConnection.cc
  12618. (FtpConnection): Replaced Socket with SocketHandle.
  12619. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12620. block.
  12621. * src/InitiateConnectionCommandFactory.cc
  12622. (DlAbortEx.h): Included DlAbortEx.h.
  12623. (createInitiateConnectionCommand): Throw exception if the protocol of
  12624. requested URI is not supported.
  12625. * src/Peer.cc
  12626. (nullPeer): Changed its type to PeerHandle.
  12627. (operator==): New function.
  12628. (operator!=): New function.
  12629. * src/Peer.h
  12630. (SharedHandle.h): Included SharedHandle.h.
  12631. (operator==): New function.
  12632. (operator!=): New function.
  12633. (Peer): Added the default constructor.
  12634. Use resetStatus() to initialize member variables.
  12635. (nullPeer): Removed.
  12636. * src/TrackerUpdateCommand.cc
  12637. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12638. with MIN_PEERS.
  12639. * src/PeerListenCommand.h
  12640. (socket): Changed its type to SocketHandle.
  12641. * src/Command.h
  12642. (CommandUuid): New type definition.
  12643. (uuid): New variable.
  12644. (uuidGen): New variable.
  12645. (Command): Added the initialization of uuid.
  12646. (getUuid): New function.
  12647. * src/Socket.h
  12648. (Socket): Removed.
  12649. (SocketHandle): New type definition.
  12650. * src/DownloadEngine.h
  12651. (FindCommand): New function object.
  12652. (run): The portion of socket check was rewritten.
  12653. (SetDescriptor): New function object.
  12654. (AccumulateActiveCommandUuid): New function object.
  12655. (waitData): Rewritten.
  12656. (addSocket): Rewritten.
  12657. (deleteSocket): Rewritten.
  12658. (addSocketForReadCheck): Rewritten.
  12659. (addSocketForWriteCheck): Rewritten.
  12660. (deleteSocketForReadCheck): Rewritten.
  12661. (deleteSocketForWriteCheck): Rewritten.
  12662. * src/HttpProxyResponseCommand.h
  12663. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12664. * src/HttpConnection.h
  12665. (socket): Changed its type to SocketHandle.
  12666. (HttpConnection): Replaced Socket with SocketHandle.
  12667. * src/PeerInitiateConnectionCommand.cc
  12668. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12669. (executeInternal): Removed the allocation of socket.
  12670. (prepareForNextPeer): Use PeerHandle.
  12671. * src/PeerMessage.h
  12672. (peer): Changed its type to PeerHandle.
  12673. (getPeer): Replaced Peer with PeerHandle.
  12674. (setPeer): Replaced Peer with PeerHandle.
  12675. * src/DownloadCommand.cc
  12676. (DownloadCommand): Replaced Socket with SocketHandle.
  12677. * src/FtpConnection.h
  12678. (socket): Changed its type to SocketHandle.
  12679. (FtpConnection): Replaced Socket with SocketHandle.
  12680. (sendPort); Replaced Socket with SocketHandle.
  12681. * src/FtpDowndloadCommand.h
  12682. (ctrlSocket): Changed its type to SocketHandle.
  12683. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12684. * src/HttpProxyRequestCommand.cc
  12685. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12686. * src/FtpTunnelRequestCommand.h
  12687. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12688. etc
  12689. * src/PeerChokeCommand.h
  12690. (setAllPeerChoked): Removed.
  12691. (setAllPeerResetDelta): Removed.
  12692. * src/PeerChokeCommand.cc
  12693. (setAllPeerChoked): Removed.
  12694. (ChokePeer): New function object.
  12695. (setAllPeerResetDelta): Removed.
  12696. (ResetDelta): New function object.
  12697. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12698. (execute): Show download speed when the local node is a seeder.
  12699. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12700. using STL.
  12701. * src/TrackerWatcherCommand.h
  12702. (MIN_PEERS): Removed.
  12703. * src/TorrentMan.cc
  12704. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12705. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12706. To fix the bug that .aria2 file is not saved if downloading is stopped
  12707. by the errors:it results that aria2 can not resume downloading:
  12708. * src/main.cc
  12709. (normalDownload): Added the call to save().
  12710. (main): Added the deletion of the elements in 'reserved'.
  12711. To fix log:
  12712. * src/PeerInteraction.cc
  12713. (receiveHandshake): Fixed log.
  12714. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12715. To improve download performance in BitTorrent:
  12716. * src/TorrentMan.cc
  12717. (getPeer): Check the number of connections. Return nullPeer if
  12718. it is greater than MAX_PEER_UPDATE.
  12719. This code was originally here, but was removed in 0.5.1.
  12720. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12721. To improve the conditional compilation:
  12722. * src/MultiDiskWriter.h:
  12723. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12724. * src/MultiDiskWriter.cc:
  12725. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12726. * src/Util.h:
  12727. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12728. Added ENABLE_BITTORRENT around computeFastSet().
  12729. * src/Util.cc:
  12730. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12731. Added ENABLE_BITTORRENT around computeFastSet().
  12732. * src/messageDigest.h:
  12733. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12734. * src/ShaVisitor.h:
  12735. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12736. * src/ShaVisitor.cc:
  12737. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12738. * src/main.cc:
  12739. Added ENABLE_BITTORRENT around includes and blocks related to
  12740. BitTorrent.
  12741. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12742. digest support is not available.
  12743. * src/AbstractDiskWriter.h:
  12744. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12745. * src/AbstractDiskWriter.cc:
  12746. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12747. * src/MetalinkEntry.cc
  12748. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12749. support is not available.
  12750. To add command-line options for Metalink:
  12751. * src/main.cc:
  12752. Added metalink-version, metalink-language, metalink-os,
  12753. follow-metalink.
  12754. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12755. * src/main.cc: Use these definition.
  12756. * Release 0.6.0
  12757. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12758. To add Metalink support(http/ftp only):
  12759. * src/AbstractCommand.h
  12760. (tryReserved): New function.
  12761. * src/AbstractCommand.cc
  12762. (execute): Call tryReserved().
  12763. (tryReserved): New function.
  12764. * src/Request.h
  12765. (Requests): New type definition.
  12766. * src/SegmentMan.h
  12767. (reserved): New variable.
  12768. * src/Util.h
  12769. (fileChecksum): New function.
  12770. (toUpper): New function.
  12771. (toLower): New function.
  12772. * src/Util.cc
  12773. (messageDigest.h): Included.
  12774. (trim): Trim \r\n\t.
  12775. (fileChecksum): New function.
  12776. (toUpper): New function.
  12777. (toLower): New function.
  12778. * src/main.cc
  12779. (normalDownload): New function.
  12780. (main): Added 2 command-line options: metalink-file,
  12781. metalink-connection. Their usage has not been written yet.
  12782. * src/MetalinkProcessor.h: New class.
  12783. * src/Xml2MetalinkProcessor.h: New class.
  12784. * src/Xml2MetalinkProcessor.cc: New class.
  12785. * src/MetalinkEntry.h: New class.
  12786. * src/MetalinkEntry.cc: New class.
  12787. * src/MetalinkResource.h: New class.
  12788. * src/MetalinkResource.cc: New class.
  12789. To add md5 message digest checking:
  12790. * src/messageDigest.h: Rewritten.
  12791. * src/MultiDiskWriter.cc: Updated according to the changes in
  12792. messageDigest.h.
  12793. * src/ShaVisitor.cc: Updated according to the changes in
  12794. messageDigest.h.
  12795. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12796. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12797. messageDigest.h.
  12798. To fix a bug that causes segfault when the payload length in peer
  12799. message is less than 0:
  12800. * src/PeerConnection.cc:
  12801. (receiveMessage): Fixed the bug.
  12802. * src/PeerMessageUtil.cc
  12803. (checkLength): Throw an exception if length is less than or equals to
  12804. 0.
  12805. To add new interfaces to Base64 encoding/decoding:
  12806. * src/Base64.h
  12807. (part_encode): Changed the method signature.
  12808. (encode): New function(overload).
  12809. (decode): New function(overload).
  12810. * src/Base64.cc
  12811. (part_encode): Rewritten.
  12812. (encode): Rewritten.
  12813. (encode): New function(overload).
  12814. To prevent a peer to download same piece if there is an error in
  12815. checksum:
  12816. * src/PieceMessage.cc
  12817. (receivedAction): Call peerInteraction->abortPiece().
  12818. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12819. To fix the bug that causes same have message is sent many times to
  12820. a single peer.
  12821. * src/Time.cc
  12822. (isNewer): Use Util::difftv().
  12823. * src/Util.cc
  12824. (difftv): Added a cast to (long long int).
  12825. * src/TorrentMan.cc
  12826. (advertisePiece): Use push_front.
  12827. (getAdvertisedPieceIndexes): A performance improvement was made.
  12828. To fix the bug that sends tracker requests without a sleep interval
  12829. when the number of connections is less than 15.
  12830. * src/TrackerWatcherCommand.cc
  12831. (execute): Now the number of connections is not a factor to decide
  12832. whether or not a tracker request should be sent or not.
  12833. * src/Time.h
  12834. (setTimeInSec): New function.
  12835. * src/Time.cc
  12836. (setTimeInSec): New function.
  12837. etc.
  12838. * src/ChokeMessage.cc
  12839. (receivedAction): Removed peer->snubbing = false
  12840. * src/PeerConnection.h
  12841. (receiveHandshake): Updated doc.
  12842. * src/TorrentMan.h
  12843. (getAdvertisedPieceIndexes): Updated the method signature.
  12844. * src/TorrentMan.cc
  12845. (getAdvertisedPieceIndexes): Updated the method signature.
  12846. * src/Time.h
  12847. (getTimeInMicros): Added a cast to (long long int).
  12848. (getTimeInMillis): Added a cast to (long long int).
  12849. * Release 0.5.2
  12850. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12851. To make a listening socket non-block:
  12852. * src/SocketCore.h
  12853. (setNonBlockingMode): New function.
  12854. * src/SocketCore.cc
  12855. (setNonBlockingMode): New function.
  12856. (beginListen): Added a call to setNonBlockingMode().
  12857. (acceptConnection): Call setNonBlockingMode().
  12858. (setBlockingMode): Updated.
  12859. To handle tracker's NAT-checking:
  12860. * src/PeerConnection.cc
  12861. (receiveHandshake): 'msg' param is filled with received data and
  12862. its length is assigned to 'length' param, even if all handshake
  12863. message is not yet received.
  12864. * src/PeerInteractionCommand.cc
  12865. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12866. a new peer connects to localhost.
  12867. A call to peerInteraction->sendHandshake() was removed because
  12868. it is called from peerInteraction->receiveHandshake(true).
  12869. * src/PeerInteraction.h
  12870. (quickReplied): New variable.
  12871. (receiveHandshake): Added an argument.
  12872. * src/PeerInteraction.cc
  12873. (PeerInteraction): Added the initialization of quickReplied.
  12874. (receiveHandshake): Send handshake message as soon as the info hash
  12875. in a handshake message from a peer is correct.
  12876. To change the random part of peer id and key parameter:
  12877. * src/TorrentMan.h
  12878. (key): New variable.
  12879. * src/TorrentMan.cc
  12880. (setupInternal1): Use Util::randomAlpha() to generate random part
  12881. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12882. key is also generated by Util::randomAlpha() and it is now 8 character
  12883. long.
  12884. * src/Util.h
  12885. (randomAlpha): New function.
  12886. * src/Util.cc
  12887. (randomAlpha): New function.
  12888. * src/TrackerWatcherCommand.cc
  12889. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12890. Added no_peer_id=1.
  12891. Set snubbing flag to false when a choke message is received from a
  12892. snubbed peer.
  12893. * src/ChokeMessage.cc
  12894. (receivedAction): Set snubbing flag to false.
  12895. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12896. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12897. * src/SimpleLogger.h (writeHeader): New function.
  12898. * src/SimpleLogger.cc (writeHeader): New function.
  12899. (writeLog): Fixed the bug that causes segfaults if exception message
  12900. contains an unescaped "%" character.
  12901. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12902. when a tracker request fails.
  12903. * src/Request.cc (parseUrl): Query string is now handled properly.
  12904. * Release 0.5.1
  12905. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12906. To add Time class which represents a specific instant in time and
  12907. its precision is microseconds. Time checking procedures were rewritten
  12908. using this object.
  12909. * src/Time.h: New class.
  12910. * src/Time.cc: New class.
  12911. * src/AbstractCommand.h
  12912. (updateCheckPoint): Removed.
  12913. (isTimeoutDetected): Removed.
  12914. (checkPoint): Changed the type to Time.
  12915. (timeout): New variable.
  12916. (setTimeout): New function.
  12917. * src/AbstractCommand.cc
  12918. (AbstractCommand): Removed the initialization of checkPoint.
  12919. Added the initialization of timeout.
  12920. (updateCheckPoint): Removed.
  12921. (isTimeoutDetected): Removed.
  12922. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12923. * src/PeerChokeCommand.h
  12924. (checkPoint): Changed the type to Time.
  12925. * src/PeerChokeCommand.cc
  12926. (PeerChokeCommand): Removed the initialization of checkPoint.
  12927. (execute): Rewritten using Time object.
  12928. * src/TrackerWatcherCommand.h
  12929. (checkPoint): Changed the type to Time.
  12930. * src/TrackerWatcherCommand.cc
  12931. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12932. (execute): Rewritten.
  12933. * src/ConsoleDownloadEngine.h
  12934. (cp): Changed the type to Time.
  12935. (startup): Changed the type to Time.
  12936. * src/ConsoleDownloadEngine.cc
  12937. (initStatistics): Use cp.reset(), startup.reset().
  12938. (calculateStatistics): Rewritten using Time object.
  12939. * src/PeerAbstractCommand.h
  12940. (updateCheckPoint): Removed.
  12941. (isTimeoutDetected): Removed.
  12942. (checkPoint): Changed the type to Time.
  12943. * src/PeerAbstractCommand.cc
  12944. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12945. (updateCheckPoint): Removed.
  12946. (isTimeoutDetected): Removed.
  12947. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12948. * src/PeerInteractionCommand.cc
  12949. (PeerInteractionCommand): Removed the initializations of struct
  12950. timeval variables.
  12951. * src/PeerInteractionCommand.h
  12952. (keepAliveCheckPoint): Changed the type to Time.
  12953. (chokeCheckPoint): Changed the type to Time.
  12954. (freqCheckPoint): Changed the type to Time.
  12955. (haveCheckTime): Changed the type to Time.
  12956. * src/PeerInteractionCommand.cc
  12957. (executeInternal): Rewritten using Time object.
  12958. (detectMessageFlooding): Rewritten using Time object.
  12959. (checkLongTimePeerChoking): Rewritten using Time object.
  12960. (sendKeepAlive): Rewritten using Time object.
  12961. (checkHave): Rewritten using Time object.
  12962. * src/SleepCommand.h
  12963. (checkPoint): Changed the type to Time.
  12964. * src/SleepCommand.cc
  12965. (SleepCommand): Removed the initialization of checkPoint.
  12966. (execute): Rewritten using Time object.
  12967. * src/TorrentAutoSaveCommand.h
  12968. (checkPoint): Changed the type to Time.
  12969. * src/TorrentAutoSaveCommand.cc
  12970. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12971. (execute): Rewritten.
  12972. * src/DownloadCommand.h
  12973. (sw): Changed the type to Time.
  12974. * src/DownloadCommand.cc
  12975. (DownloadCommand): Removed the initialization of sw.
  12976. (executeInternal): Rewritten.
  12977. * src/RequestSlot.h
  12978. (dispatchedTime): Changed the type to Time.
  12979. * src/RequestSlot.cc
  12980. (RequestSlot): Removed the call to setDispatchedTime().
  12981. (setDispatchedTime): Rewirtten.
  12982. (isTimeout): Rewritten.
  12983. (getLatencyInMillis): Rewritten.
  12984. * src/TorrentDownloadEngine.h
  12985. (cp): Changed the type to Time[2].
  12986. (startup): Changed the type to Time.
  12987. * src/TorrentDownloadEngine.cc
  12988. (initStatistics): Rewritten.
  12989. (calculateStatistics): Rewritten.
  12990. * src/DownloadEngine.cc
  12991. (run): Rewritten.
  12992. To detect all attempts to connect to the tracker are failed:
  12993. * src/AbstractCommand.cc
  12994. (execute): Increment e->segmentMan->errors if a command aborted.
  12995. * src/SegmentMan.h
  12996. (errors): New variable.
  12997. * src/SegmentMan.cc
  12998. (SegmentMan): Added the initialization of errors.
  12999. (init): Added the initialization of errors.
  13000. * src/TrackerWatcherCommand.cc
  13001. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13002. request was failed.
  13003. To handle snubbed peers:
  13004. * src/PeerChokeCommand.cc
  13005. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13006. (execute): Snubbed peers don't get unchoked.
  13007. * src/PeerInteraction.h
  13008. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13009. * src/PeerInteraction.cc
  13010. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13011. back the requested 16k block in 60 seconds.
  13012. * src/PieceMessage.cc
  13013. (receivedAction): A peer's snubbed state is cleard if it sends
  13014. the requested 16k block in 60 seconds.
  13015. * src/Peer.h
  13016. (snubbing): New variable.
  13017. * src/Peer.cc
  13018. (resetStatus): Added snubbed = false.
  13019. To fix the bug that causes have message is not sent:
  13020. * src/PeerInteractionCommand.cc
  13021. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13022. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13023. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13024. * src/TorrentMan.h
  13025. (HaveEntry): New class.
  13026. (advertisePiece): Rewritten.
  13027. (getAdvertisedPieceIndexes): Rewritten.
  13028. (Haves): Changed the type.
  13029. (getAdvertisedPieceIndexes): Added an argument.
  13030. Others:
  13031. * src/TorrentMan.h
  13032. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13033. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13034. * src/TorrentMan.cc
  13035. (getPeer): Don't check the number of connections here.
  13036. (setupInternal1): Changed peerId.
  13037. * src/PeerInteractionCommand.h
  13038. (KEEP_ALIVE_INTERVAL): New definition.
  13039. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13040. * src/main.cc
  13041. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13042. * src/DownloadEngine.h: Removed unnecessary header includes.
  13043. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13044. To fix the bug that causes segfaults if a tracker returns a zero-length
  13045. list as "peers":
  13046. * src/TrackerUpdateCommand.cc
  13047. (execute): Added a check to see wether the type of peers is Data*.
  13048. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13049. * Release 0.5.0
  13050. To fix compile issue with gcc3:
  13051. * src/CancelMessage.h
  13052. (ID): Renamed as ID_t
  13053. (ID_t): New enum.
  13054. * src/RejectMessage.h
  13055. (ID): Renamed as ID_t
  13056. (ID_t): New enum.
  13057. * src/SuggestPieceMessage.h
  13058. (ID): Renamed as ID_t
  13059. (ID_t): New enum.
  13060. * src/AllowedFastMessage.h
  13061. (ID): Renamed as ID_t
  13062. (ID_t): New enum.
  13063. * src/PortMessage.h
  13064. (ID): Renamed as ID_t
  13065. (ID_t): New enum.
  13066. * src/HaveNoneMessage.h
  13067. (ID): Renamed as ID_t
  13068. (ID_t): New enum.
  13069. * src/KeepAliveMessage.h
  13070. (ID): Renamed as ID_t
  13071. (ID_t): New enum.
  13072. * src/HaveAllMessage.h
  13073. (ID): Renamed as ID_t
  13074. (ID_t): New enum.
  13075. * src/UnchokeMessage.h
  13076. (ID): Renamed as ID_t
  13077. (ID_t): New enum.
  13078. * src/BitfieldMessage.h
  13079. (ID): Renamed as ID_t
  13080. (ID_t): New enum.
  13081. * src/PieceMessage.h
  13082. (ID): Renamed as ID_t
  13083. (ID_t): New enum.
  13084. * src/RequestMessage.h
  13085. (ID): Renamed as ID_t
  13086. (ID_t): New enum.
  13087. * src/NotInterestedMessage.h
  13088. (ID): Renamed as ID_t
  13089. (ID_t): New enum.
  13090. * src/ChokeMessage.h
  13091. (ID): Renamed as ID_t
  13092. (ID_t): New enum.
  13093. * src/InterestedMessage.h
  13094. (ID): Renamed as ID_t
  13095. (ID_t): New enum.
  13096. * src/HaveMessage.h
  13097. (ID): Renamed as ID_t
  13098. (ID_t): New enum.
  13099. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13100. * src/PeerAbstractCommand.h
  13101. (beforeSocketCheck): Removed.
  13102. * src/PeerAbstractCommand.cc
  13103. Modified in order to call executeInternal() even if socket check
  13104. and upload limit check fail.
  13105. * src/PeerInteractionCommand.h
  13106. (keepAlive): Removed.
  13107. (sendKeepAlive): New function.
  13108. (checkHave): New function.
  13109. (beforeSocketCheck): Removed.
  13110. * src/PeerInteractionCommand.cc
  13111. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13112. calls to checkHave() and sendKeepAlive().
  13113. (keepAlive): Renamed to sendKeepAlive().
  13114. (sendKeepAlive): New function.
  13115. (beforeSocketCheck): Removed.
  13116. (checkHave): New function.
  13117. * src/BitfieldMan.cc
  13118. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13119. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13120. 0.
  13121. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13122. * src/TorrentMan.h
  13123. (UsedPieces): Removed.
  13124. (Pieces): New type definition.
  13125. * src/Piece.h: Updated doc.
  13126. * src/Peer.h
  13127. (totalLength): Removed.
  13128. * src/Peer.cc
  13129. (updateLatency): Fixed the latency calculation.
  13130. * src/TorrentMan.cc
  13131. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13132. than or equal to MAX_PEER_LIST_SIZE.
  13133. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13134. then return false.
  13135. (deleteOldErrorPeers): Rewritten.
  13136. (deleteUsedPiece): Fixed the miss use of STL remove.
  13137. * src/PeerInteraction.h
  13138. (Pieces): Removed.
  13139. (deleteTimeoutRequestSlot): Removed.
  13140. (deleteCompletedRequestSlot): Removed.
  13141. (checkRequestSlot): New function.
  13142. * src/PeerInteraction.cc
  13143. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13144. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13145. (checkRequestSlot): New function.
  13146. * src/DownloadEngine.cc
  13147. (run): Clear activeSockets before calling waitData().
  13148. (waitData): Removed a call to activeSockets.clear().
  13149. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13150. To attempt to handle EINTR:
  13151. * src/SocketCore.cc
  13152. (isReadable): Added EINTR handling.
  13153. (isWritable): Added EINTR handling.
  13154. To improve the performance:
  13155. * src/AbstractCommand.cc
  13156. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13157. * src/PeerInteractionCommand.h
  13158. (receiveMessage): Renamed as receiveMessages().
  13159. (receiveMessages): New function.
  13160. * src/PeerInteractionCommand.cc
  13161. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13162. () function. detectMessageFlooding() is moved here.
  13163. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13164. (). The flooding detection for have message is comment out.
  13165. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13166. Util::difftv().
  13167. (receiveMessage): Renamed as receiveMessages().
  13168. (receiveMessages): New function.
  13169. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13170. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13171. * src/SleepCommand.cc
  13172. (execute): Use Util::difftvsec() instead of Util::difftv().
  13173. * src/BitfieldMan.h
  13174. (getNthBitIndex): New function.
  13175. (hasMissingPiece): New function.
  13176. (getAllMissingIndexes): New function.
  13177. * src/BitfieldMan.cc
  13178. (countSetBit): Rewritten.
  13179. (getNthBitIndex): New function.
  13180. (getMissingIndexRandomly): Rewritten.
  13181. (hasMissingPiece): New function.
  13182. (getAllMissingIndexes): New function.
  13183. * src/TorrentMan.cc
  13184. (hasMissingPiece): New function.
  13185. (deleteUsedPiece): Rewritten using STL.
  13186. * src/PeerInteraction.cc
  13187. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13188. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13189. (addRequests): Updated the number of pending requests.
  13190. * src/PeerAbstractCommand.cc
  13191. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13192. (execute): Returns true if TorrentMan::isHalt() is true.
  13193. Corrected the condition of upload limit checking.
  13194. * src/Util.h
  13195. (countBit): New function.
  13196. * src/Util.cc
  13197. (nbits): New variable.
  13198. (countBit): New function.
  13199. * src/DownloadEngine.h
  13200. (SockCmdMap): New type definition.
  13201. (waitData): Added an argument.
  13202. (addSocket): Added an argument.
  13203. (addSocketForReadCheck): Added an argument.
  13204. (addSocketForWriteCheck): Added an argument.
  13205. * src/DownloadEngine.cc
  13206. (run): Executes only commands whose sockets are ready to read or write.
  13207. All commands are executed in every 1 second.
  13208. (waitData): Calls select() again if it returned
  13209. EINTR.
  13210. (addSocket): Saves socket and command object pair to the map.
  13211. (deleteSocket): Deletes socket and command object pair from the map.
  13212. (addSocketForReadCheck): Added an argument.
  13213. (addSocketForWriteCheck): Added an argument.
  13214. * src/DownloadCommand.cc
  13215. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13216. To send "event=stopped" to the tracker when the application finishes:
  13217. * src/PeerChokeCommand.h
  13218. (checkPoint): New variable.
  13219. * src/PeerChokeCommand.cc
  13220. (PeerChokeCommand): Added the initialization of checkPoint.
  13221. (execute): The interval check is now done by checkPoint, not
  13222. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13223. * src/TorrentMan.h
  13224. (halt): New function.
  13225. (hasMissingPiece): New function.
  13226. (isHalt): New function.
  13227. (setHalt): New function.
  13228. * src/TorrentMan.cc
  13229. (TorrentMan): Added the initialization of halt.
  13230. * src/TorrentAutoSaveCommand.h
  13231. (checkPoint): New variable.
  13232. * src/PeerListenCommand.cc
  13233. (execute): Returns true if TorrentMan::isHalt() is true.
  13234. * src/main.cc
  13235. (setSignalHander): Added flags argument.
  13236. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13237. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13238. Removed printDownloadAbortMessage() after torrent downloading loop.
  13239. * src/TorrentAutoSaveCommand.cc
  13240. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13241. (execute): Returns true if TorrentMan::isHalt() is true.
  13242. The interval check is now done by checkPoint, not SleepCommand.
  13243. * src/TrackerWatcherCommand.cc
  13244. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13245. event=stopped.
  13246. * src/TrackerUpdateCommand.cc
  13247. (prepareForRetry): Do not use SleepCommand here.
  13248. (execute): Returns true if TorrentMan::isHalt() is true.
  13249. Others:
  13250. * src/TorrentMan.cc
  13251. (getMissingPieceIndex): Updated log message.
  13252. * src/PeerInteraction.cc
  13253. (createPeerMessag): Updated log message.
  13254. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13255. To add the ability to download several pieces in mix in a command and
  13256. increase the number of request slots according to request-cancel
  13257. latency:
  13258. * src/PeerInteractionCommand.cc
  13259. (executeInternal): The number of messages to be received at a time
  13260. is increased from 10 to 50.
  13261. * src/LogFactory
  13262. (getInstance): Added NullLogger.
  13263. * src/NullLogger.h: New class.
  13264. * src/BitfieldMan.h
  13265. (getMissingIndex): New function.
  13266. * src/BitfieldMan.cc
  13267. (getMissingIndex): New function.
  13268. * src/TorrentMan.h
  13269. (checkOutPiece): New function.
  13270. (getMissingPieceIndex): New function.
  13271. (getMissingFastPieceIndex): New function.
  13272. (getMissingFastPiece): New function.
  13273. * src/TorrentMan.cc
  13274. (updatePiece): Rewritten using STL.
  13275. (syncPiece): Rewritten using STL.
  13276. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13277. checkOutPiece().
  13278. (getMissingPieceIndex): New function.
  13279. (getMissingFastPieceIndex): New function.
  13280. (getMissingFastPiece): New function.
  13281. (checkOutPiece): New function.
  13282. * src/PeerInteraction.h
  13283. (Pieces): New type definition.
  13284. (piece): Removed.
  13285. (pieces): New variable.
  13286. (getNewPieceAndSendInterest): Added the "piece" argument.
  13287. (abortPiece): Added the "piece" argument.
  13288. (abortAllPieces): New function.
  13289. (isInRequestSlot): New function.
  13290. (hasDownloadPiece): Added the "index" argument.
  13291. (setDownloadPiece): Removed.
  13292. (getDownloadPiece): Added the "index" argument.
  13293. (updatePiece): New function.
  13294. (createRequestMessage): Added the "index" argument.
  13295. * src/PeerInteraction.cc
  13296. (onChoked): Rewritten.
  13297. (abortPiece): Rewirtten.
  13298. (abortAllPieces): New function.
  13299. (deleteTimeoutRequestSlot): Rewritten.
  13300. Clarified code a little bit.
  13301. (deleteCompletedRequestSlot): Rewritten.
  13302. (isInRequestSlot): New function.
  13303. (syncPiece): Rewritten.
  13304. (updatePiece): New function.
  13305. (getNewPieceAndSendInterest): Rewritten.
  13306. (addRequests): Rewritten.
  13307. (getDownloadPiece): Rewritten.
  13308. (hasDownloadPiece): Rewritten.
  13309. (createRequestMessage): Added the "index" argument.
  13310. * src/common.h
  13311. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13312. (DIV_FLOOR): New definition.
  13313. * src/PieceMessage.cc
  13314. (receivedAction): Update request-piece latency here.
  13315. * src/RequestSlot.h
  13316. (getLatencyInMillis): New function.
  13317. * src/RequestSlot.cc
  13318. (isTimeout): Rewritten using getLatencyInMillis.
  13319. (getLatencyInMillis): New function.
  13320. * src/Piece.h
  13321. (operator==): New function.
  13322. (getMissingBlockIndex): New function.
  13323. * src/Piece.cc
  13324. (operator==): New function.
  13325. (getMissingBlockIndex): New function.
  13326. * src/Peer.h
  13327. (DEFAULT_LATENCY): New definition.
  13328. (latency): New variable.
  13329. (updateLatency): New function.
  13330. (getLatency): New function.
  13331. * src/Peer.cc
  13332. (resetStatus): Reset latecy.
  13333. (updateLatency): New function.
  13334. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13335. * src/SocketCore.cc
  13336. (isReadable): Added secure to the condition.
  13337. * src/HttpConnection.cc
  13338. (receiveResponse): Fixed a bug that causes no response header
  13339. exception.
  13340. * src/Peer.h
  13341. (getFastSet): Fixed the return value type.
  13342. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13343. To remove a wait from download loop:
  13344. * src/DownloadEngine.cc
  13345. (run): Comment out shortSleep.
  13346. To rewrite the message handling:
  13347. * src/SimplePeerMessage.h: New class.
  13348. * src/SimplePeerMessage.cc: New class.
  13349. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13350. (msg): New variable.
  13351. (create): New function.
  13352. (send): Removed.
  13353. (getMessage): New function.
  13354. (getMessageLength): New function.
  13355. * src/CancelMessage.cc
  13356. (create): New function.
  13357. (receivedAction): Replaced deleteRequestMessageInQueue with
  13358. rejectPieceMessageInQueue.
  13359. (send): Removed.
  13360. (getMessage): New function.
  13361. (getMessageLength): New function.
  13362. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13363. (msg): New variable.
  13364. (msgLength): New variable.
  13365. (~BitfieldMessage): Deleted msg.
  13366. (send): Removed.
  13367. (getMessage): New function.
  13368. (getMessageLength): New function.
  13369. * src/BitfieldMessage.cc
  13370. (create): New function.
  13371. (send): Removed.
  13372. (getMessage): New function.
  13373. (getMessageLength): New function.
  13374. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13375. (msg): New variable.
  13376. (sendPredicate): New function.
  13377. (onSendComplete): New function.
  13378. (send): Removed.
  13379. (getMessage): New function.
  13380. (getMessageLength): New function.
  13381. (create): New function.
  13382. * src/ChokeMessage.cc
  13383. (create): New function.
  13384. (send): Removed.
  13385. (sendPredicate): New function.
  13386. (getMessage): New function.
  13387. (getMessageLength): New function.
  13388. (onSendComplete): New function.
  13389. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13390. (msg): New variable.
  13391. (send): Removed.
  13392. (getMessage): New function.
  13393. (getMessageLength): New function.
  13394. * src/KeepAliveMessage.cc
  13395. (send): Removed.
  13396. (getMessage): New function.
  13397. (getMessageLength): New function.
  13398. * src/PortMessage.h
  13399. (create): New function.
  13400. (receivedAction): Updated log message.
  13401. * src/PortMessage.cc: New file.
  13402. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13403. (msg): New variable.
  13404. (sendPredicate): New function.
  13405. (onSendComplete): New function.
  13406. (create): New function.
  13407. (send): Removed.
  13408. (getMessage): New function.
  13409. (getMessageLength): New function.
  13410. * src/UnchokeMessage.cc
  13411. (create): New function.
  13412. (send): Removed.
  13413. (sendPredicate): New function.
  13414. (getMessage): New function.
  13415. (getMessageLength): New function.
  13416. (onSendComplete): New function.
  13417. * src/PieceMessage.h
  13418. (leftPieceDataLength): Removed.
  13419. (leftDataLength): New variable.
  13420. (headerSend): New variable.
  13421. (pendingCount): New variable.
  13422. (msgHeader): New variable.
  13423. (sendPieceData): New function.
  13424. (incrementPendingCount): New function.
  13425. (isPendingCountMax): New function.
  13426. (create): New function.
  13427. (getMessageHeader): New function.
  13428. (getMessageHeaderLength): New function.
  13429. * src/PieceMessage.cc
  13430. (create): New function.
  13431. (getMessageHeader): New function.
  13432. (getMessageHeaderLength): New function.
  13433. (send): Rewritten.
  13434. (sendPieceData): New function.
  13435. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13436. (msg): New variable.
  13437. (create): New function.
  13438. (getMessage): New function.
  13439. (getMessageLength): New function.
  13440. * src/HaveMessage.cc
  13441. (create): New function.
  13442. (send): Removed.
  13443. (sendPieceData): New function.
  13444. (getMessage): New function.
  13445. (getMessageLength): New function.
  13446. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13447. (msg): New variable.
  13448. (create): New function.
  13449. (send): Removed.
  13450. (getMessage): New function.
  13451. (getMessageLength): New function.
  13452. * src/RequestMessage.cc
  13453. (create): New function.
  13454. (receivedAction): Added the handling of fast extension.
  13455. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13456. (send): Removed.
  13457. (getMessage): New function.
  13458. (getMessageLength): New function.
  13459. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  13460. (msg): New variable.
  13461. (sendPredicate): New function.
  13462. (onSendComplete): New function.
  13463. (create): New function.
  13464. (getMessage): New function.
  13465. (getMessageLength): New function.
  13466. * src/InterestedMessage.cc
  13467. (create): New function.
  13468. (send): Removed.
  13469. (sendPieceData): New function.
  13470. (getMessage): New function.
  13471. (getMessageLength): New function.
  13472. (onSendComplete): New function.
  13473. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  13474. (msg): New variable.
  13475. (sendPieceData): New function.
  13476. (onSendComplete): New function.
  13477. (create): New function.
  13478. (send): Removed.
  13479. (getMessage): New function.
  13480. (getMessageLength): New function.
  13481. * src/NotInterestedMessage.cc
  13482. (create): New function.
  13483. (send): Removed.
  13484. (sendPredicate): New function.
  13485. (getMessage): New function.
  13486. (getMessageLength): New function.
  13487. (onSendComplete): New function.
  13488. * src/AllowedFastMessage.h: New class.
  13489. * src/AllowedFastMessage.cc: New class.
  13490. * src/RejectMessage.h: New class.
  13491. * src/RejectMessage.cc: New class.
  13492. * src/SuggestPieceMessage.h: New class.
  13493. * src/SuggestPieceMessage.cc: New class.
  13494. * src/HaveAllMessage.h: New class.
  13495. * src/HaveAllMessage.cc: New class.
  13496. * src/HaveNoneMessage.h: New class.
  13497. * src/HaveNoneMessage.cc: New class.
  13498. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  13499. (msg): New variable.
  13500. (reserved): New variable.
  13501. (create): New function.
  13502. (getId): New function.
  13503. (receivedAction): New function.
  13504. (getMessage): New function.
  13505. (getMessageLength): New function.
  13506. (isFastExtensionSupported): New function.
  13507. * src/HandshakeMessage.cc
  13508. (HandshakeMessage): Moved here from HandshakeMessage.h.
  13509. (create): New function.
  13510. (getMessage): New function.
  13511. (getMessageLength): New function.
  13512. (toString): Added the output of reserved field.
  13513. (check): Added const qualifier.
  13514. (isFastExtensionSupported): New function.
  13515. * src/PeerMessageUtil.h
  13516. (createChokeMessage): Removed.
  13517. (createUnchokeMessage): Removed.
  13518. (createInterestedMessage): Removed.
  13519. (createNotInterestedMessage): Removed.
  13520. (createHaveMessage): Removed.
  13521. (createBitfieldMessage): Removed.
  13522. (createRequestMessage): Removed.
  13523. (createCancelMessage): Removed.
  13524. (createPieceMessage): Removed.
  13525. (createPortMessage): Removed.
  13526. (createChokeMessage): Removed.
  13527. (createUnchokeMessage): Removed.
  13528. (createInterestedMessage): Removed.
  13529. (createNotInterestedMessage): Removed.
  13530. (createHaveMessage): Removed.
  13531. (createBitfieldMessage): Removed.
  13532. (createRequestMessage): Removed.
  13533. (createCancelMessage): Removed.
  13534. (createPieceMessage): Removed.
  13535. (createKeepAliveMessage): Removed.
  13536. (createHandshakeMessage): Removed.
  13537. (setIntParam): New function.
  13538. (createPeerMessageString): New function.
  13539. * src/PeerMessageUtil.cc
  13540. (createChokeMessage): Removed.
  13541. (createUnchokeMessage): Removed.
  13542. (createInterestedMessage): Removed.
  13543. (createNotInterestedMessage): Removed.
  13544. (createHaveMessage): Removed.
  13545. (createBitfieldMessage): Removed.
  13546. (createRequestMessage): Removed.
  13547. (createCancelMessage): Removed.
  13548. (createPieceMessage): Removed.
  13549. (createPortMessage): Removed.
  13550. (createRequestMessage): Removed.
  13551. (createCancelMessage): Removed.
  13552. (createPieceMessage): Removed.
  13553. (createHaveMessage): Removed.
  13554. (createChokeMessage): Removed.
  13555. (createUnchokeMessage): Removed.
  13556. (createInterestedMessage): Removed.
  13557. (createNotInterestedMessage): Removed.
  13558. (createBitfieldMessage): Removed.
  13559. (createKeepAliveMessage): Removed.
  13560. (createHandshakeMessage): Removed.
  13561. (setIntParam): New function.
  13562. (createPeerMessageString): New function.
  13563. * src/PeerConnection.h
  13564. (peer): Removed.
  13565. (torrentMan): Removed.
  13566. (createNLengthMessage): Removed.
  13567. (setIntParam): Removed.
  13568. (writeOutgoingMessageLog): Removed all overloaded functions.
  13569. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13570. (sendMessage): New function.
  13571. (sendHandshake): Removed.
  13572. (sendKeepAlive): Removed.
  13573. (sendChoke): Removed.
  13574. (sendUnchoke): Removed.
  13575. (sendInterested): Removed.
  13576. (sendNotInterested): Removed.
  13577. (sendHave): Removed.
  13578. (sendBitfield): Removed.
  13579. (sendRequest): Removed.
  13580. (sendPiece): Removed.
  13581. (sendPieceHeader): Removed.
  13582. (sendPieceData): Removed.
  13583. (sendCancel): Removed.
  13584. (getPeer): Removed.
  13585. * src/PeerConnection.cc
  13586. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13587. (sendHandshake): Removed.
  13588. (sendKeepAlive): Removed.
  13589. (createNLengthMessage): Removed.
  13590. (setIntParam): Removed.
  13591. (writeOutgoingMessageLog): Removed all overloaded functions.
  13592. (sendChoke): Removed.
  13593. (sendUnchoke): Removed.
  13594. (sendInterested): Removed.
  13595. (sendNotInterested): Removed.
  13596. (sendHave): Removed.
  13597. (sendBitfield): Removed.
  13598. (sendRequest): Removed.
  13599. (sendPiece): Removed.
  13600. (sendPieceHeader): Removed.
  13601. (sendPieceData): Removed.
  13602. (sendMessage): New function.
  13603. (sendCancel): Removed.
  13604. * src/PeerInteractionCommand.cc
  13605. (PeerInteractionCommand): Call setUploadLimit.
  13606. (executeInternal): Call setUploadLimit.
  13607. Added the handling of "inProgress" state of handshake message.
  13608. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13609. sendNow().
  13610. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13611. sendNow().
  13612. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13613. * src/TorrentMan.h
  13614. (PEER_ID_LENGTH): New definition.
  13615. (hasAllPieces): New function.
  13616. * src/TorrentMan.cc
  13617. (getMissingPiece): Added the handling of fast extension.
  13618. (cancelPiece): Call updatePiece().
  13619. (hasAllPieces): New function.
  13620. * src/PeerInteraction.h
  13621. (fastSet): New variable.
  13622. (getNewPieceAndSendInterest): Changed the return type to void.
  13623. (send): Renamed as sendMessages.
  13624. (deleteAllRequestSlot): Removed.
  13625. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13626. (cancelAllRequest): Removed all overloaded functions.
  13627. (deleteAllRequestSlot): Removed.
  13628. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13629. (rejectPieceMessageInQueue): New function.
  13630. (rejectAllPieceMessageInQueue): New function.
  13631. (onChoked): New function.
  13632. (isSendingMessageInProgress): New function.
  13633. (getCorrespondingRequestSlot): Changed its arguments.
  13634. (isInFastSet): New function.
  13635. (addFastSetIndex): New function.
  13636. (addRequests): New function.
  13637. (sendNow): Removed.
  13638. (trySendNow): Removed.
  13639. (sendBitfield): New function.
  13640. (sendAllowdFast): New function.
  13641. (createHaveAllMessage): New function.
  13642. (createHaveNoneMessage): New function.
  13643. (createRejectMessage): New function.
  13644. (createAllowedFastMessage): New function.
  13645. * src/PeerInteraction.cc
  13646. (send): Renamed as sendMessages.
  13647. (sendMessages): New function.
  13648. (MsgPushBack): New class.
  13649. (isSendingMessageInProgress): New function.
  13650. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13651. (rejectAllPieceMessageInQueue): New function.
  13652. Added the handling of fast extension.
  13653. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13654. (rejectPieceMessageInQueue): New function.
  13655. Added the handling of fast extension.
  13656. (deleteRequestSlot): Replaced for loop with std::find.
  13657. (onChoked): New function.
  13658. (deleteAllRequestSlot): Removed.
  13659. (abortPiece): Rewirtten.
  13660. (deleteTimeoutRequestSlot): Updated log messages.
  13661. (getCorrespondingRequestSlot): Changed its arguments.
  13662. (cancelAllRequest): Removed all overloaded functions.
  13663. (receiveHandshake): Added the check to see whether an incoming peer
  13664. supports fast extension.
  13665. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13666. PeerMessageUtil.
  13667. (createPeerMessage): Use create() of each message class instead of
  13668. PeerMessageUtil.
  13669. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13670. AllowedFastMessage were added.
  13671. (getNewPieceAndSendInterest): Changed its return value type to void.
  13672. Added the handling of fast extension.
  13673. (addRequests): New function.
  13674. (sendNow): Removed.
  13675. (sendHandshake): Rewritten.
  13676. (trySendNow): Removed.
  13677. (sendBitfield): New function.
  13678. (sendAllowdFast): New function.
  13679. (isInFastSet): New function.
  13680. (addFastSetIndex): New function.
  13681. (createRequestMessage): Use RequestMessage::create instead of
  13682. PeerMessageUtil.
  13683. (createCancelMessage): Use CancelMessage::create instead of
  13684. PeerMessageUtil.
  13685. (createPieceMessage): Use PieceMessage::create instead of
  13686. PeerMessageUtil.
  13687. (createHaveMessage): Use HaveMessage::create instead of
  13688. PeerMessageUtil.
  13689. (createChokeMessage): Use ChokeMessage::create instead of
  13690. PeerMessageUtil.
  13691. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13692. PeerMessageUtil.
  13693. (createInterestedMessage): Use InterestedMessage::create instead of
  13694. PeerMessageUtil.
  13695. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13696. of PeerMessageUtil.
  13697. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13698. PeerMessageUtil.
  13699. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13700. PeerMessageUtil.
  13701. (createHaveAllMessage): New function.
  13702. (createHaveNoneMessage): New function.
  13703. (createRejectMessage): New function.
  13704. (createAllowedFastMessage: New function.
  13705. * src/Util.h
  13706. (sha1Sum): New function.
  13707. (computeFastSet): New function.
  13708. * src/Util.cc
  13709. (sha1Sum): New function.
  13710. (computeFastSet): New function.
  13711. * src/Peer.h
  13712. (fastExtensionEnabled): New variable.
  13713. (fastSet): New variable.
  13714. (setAllBitfield): New function.
  13715. (setFastExtensionEnabled): New function.
  13716. (isFastExtensionEnabled): New function.
  13717. (addFastSetIndex): New function.
  13718. (getFastSet): New function.
  13719. (isInFastSet): New function.
  13720. (countFastSet): New function.
  13721. * src/Peer.cc
  13722. (isInFastSet): New function.
  13723. (addFastSetIndex): New function.
  13724. (setAllBitfield): New function.
  13725. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13726. sockets.
  13727. * src/PeerAbstractCommand.cc
  13728. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13729. and uploadLimit.
  13730. (execute): Changed the procedure of checking sockets. The upload speed
  13731. checking were added.
  13732. (setUploadLimit): New function.
  13733. (setUploadLimitCheck): New function.
  13734. * src/PeerAbstractCommand.h
  13735. (setUploadLimit): New function.
  13736. (setUploadLimitCheck): New function.
  13737. (uploadLimit): New variable.
  13738. (uploadLimitCheck): New variable.
  13739. To contact a tracker regularly:
  13740. * src/TrackerWatcherCommand.h (interval): New variable.
  13741. (checkPoint): New variable.
  13742. (TrackerWatcherCommand): Added interval argument.
  13743. * src/TrackerWatcherCommand.cc
  13744. (TrackerWatcherCommand): Initialized checkPoint.
  13745. (execute): Now a tracker is contacted in every specified period.
  13746. If peer list is not needed, send request with numwant=0.
  13747. * src/TrackerUpdateCommand.cc
  13748. (execute): Updated log messages.
  13749. * src/DownloadEngine.cc
  13750. (~DownloadEngine): Removed two asserts.
  13751. (waitData): Uncommented wfds. May be a bug fix.
  13752. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13753. * src/PeerInteractionCommand.h
  13754. (checkInactiveConnection): Removed.
  13755. * src/PeerInteractionCommand.cc
  13756. (executeInternal): Removed following function calls:
  13757. detectMessageFlooding(), checkLongTimePeerChoking and
  13758. checkInactiveConnection().
  13759. (checkInactiveConnection): Removed.
  13760. (detectMessageFlooding): Removed function call to
  13761. checkInactiveConnection().
  13762. * src/PeerMessageUtil.h
  13763. (createChokeMessage): New function. Overload.
  13764. (createUnchokeMessage): New function. Overload.
  13765. (createInterestedMessage): New function. Overload.
  13766. (createNotInterestedMessage): New function. Overload.
  13767. (createHaveMessage): New function. Overload.
  13768. (createBitfieldMessage): New function. Overload.
  13769. (createRequestMessage): New function. Overload.
  13770. (createCancelMessage): New function. Overload.
  13771. (createPieceMessage): New function. Overload.
  13772. (createKeepAliveMessage): New function. Overload.
  13773. * src/PeerMessageUtil.cc
  13774. (createChokeMessage): New function. Overload.
  13775. (createUnchokeMessage): New function. Overload.
  13776. (createInterestedMessage): New function. Overload.
  13777. (createNotInterestedMessage): New function. Overload.
  13778. (createHaveMessage): New function. Overload.
  13779. (createBitfieldMessage): New function. Overload.
  13780. (createRequestMessage): New function. Overload.
  13781. (createCancelMessage): New function. Overload.
  13782. (createPieceMessage): New function. Overload.
  13783. (createKeepAliveMessage): New function. Overload.
  13784. * src/SendMessageQueue.cc
  13785. (createRequestMessage): Use PeerMessageUtil.
  13786. (createCancelMessage): Use PeerMessageUtil.
  13787. (createPieceMessage): Use PeerMessageUtil.
  13788. (createHaveMessage): Use PeerMessageUtil.
  13789. (createChokeMessage): Use PeerMessageUtil.
  13790. (createUnchokeMessage): Use PeerMessageUtil.
  13791. (createInterestedMessage): Use PeerMessageUtil.
  13792. (createNotInterestedMessage): Use PeerMessageUtil.
  13793. (createBitfieldMessage): Use PeerMessageUtil.
  13794. (createKeepAliveMessage): Use PeerMessageUtil.
  13795. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13796. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13797. * src/PeerInteraction.h: New class.
  13798. * src/PeerInteraction.cc: New class.
  13799. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13800. Each peer message has its own class.
  13801. * src/PendingMessages.h: Removed.
  13802. * src/PendingMessages.cc: Removed. The sending process was moved to
  13803. each message class.
  13804. * src/RequestSlotMan.h: Removed.
  13805. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13806. SendMessageQueue.
  13807. * src/RequestMessage.h: New class.
  13808. * src/RequestMessage.cc: New class.
  13809. * src/CancelMessage.h: New class.
  13810. * src/CancelMessage.cc: New class.
  13811. * src/BitfieldMessage.h: New class.
  13812. * src/BitfieldMessage.cc: New class.
  13813. * src/ChokeMessage.h: New class.
  13814. * src/ChokeMessage.cc: New class.
  13815. * src/KeepAliveMessage.h: New class.
  13816. * src/KeepAliveMessage.cc: New class.
  13817. * src/PortMessage.h: New class.
  13818. * src/UnchokeMessage.h: New class.
  13819. * src/UnchokeMessage.cc: New class.
  13820. * src/PieceMessage.h: New class.
  13821. * src/PieceMessage.cc: New class.
  13822. * src/HaveMessage.h: New class.
  13823. * src/HaveMessage.cc: New class.
  13824. * src/BitfieldMessage.h: New class.
  13825. * src/BitfieldMessage.cc: New class.
  13826. * src/NotInterestedMessage.h: New class.
  13827. * src/NotInterestedMessage.cc: New class.
  13828. * src/InterestedMessage.h: New class.
  13829. * src/InterestedMessage.cc: New class.
  13830. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13831. (getSendMessageQueue): New function.
  13832. (setSendMessageQueue): New function.
  13833. * src/HandshakeMessage.cc: New class.
  13834. * src/PeerConnection.h (receiveMessage): Changed return value and
  13835. arguments.
  13836. (receiveHandshake): Changed return value and arguments.
  13837. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13838. here.
  13839. (receiveHandshake): Do not create handshake class here.
  13840. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13841. (piece): Removed.
  13842. (syncPiece): Removed.
  13843. (sendInterest): Removed.
  13844. (sendMessages): Removed.
  13845. (createRequestPendingMessage): Removed.
  13846. (checkPieceHash): Removed.
  13847. (erasePieceOnDisk): Removed.
  13848. (getNewPieceAndSendInterest): Removed.
  13849. (onGotNewPice): Removed.
  13850. (onGotWrongPiece): Removed.
  13851. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13852. Removed peerConnection, piece.
  13853. (~PeerInteractionCommand): Removed peerConnection.
  13854. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13855. (syncPiece): Moved to SendMessageQueue.
  13856. (decideChoking): Removed PendingMessage.
  13857. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13858. The action after receiving peer message was moved to each message
  13859. class.
  13860. (onGotNewPice): Moved to SendMessageQueue.
  13861. (onGotWrongPiece): Moved to SendMessageQueue.
  13862. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13863. (sendInterest): Moved to SendMessageQueue.
  13864. (createRequestPendingMessage): Removed.
  13865. (sendMessages): Moved to SendMessageQueue.
  13866. (onAbort): Use SendMessageQueue::abortPiece()
  13867. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13868. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13869. (checkPieceHash): Moved to SendMessageQueue.
  13870. (erasePieceOnDisk): Moved to SendMessageQueue.
  13871. * src/PeerMessageUtil.h
  13872. (createBitfieldMessage): Removed.
  13873. (createHaveMessage): Changed return value and arguments.
  13874. (createBitfieldMessage): Changed return value and arguments.
  13875. (createRequestCancelMessage): Removed.
  13876. (createPieceMessage): Changed return value and arguments.
  13877. (getShortIntParam): New function.
  13878. (checkIndex): Changed arguments.
  13879. (checkBegin): Changed arguments.
  13880. (checkLength): Changed arguments.
  13881. (checkPieceOffset): Removed.
  13882. (checkRange): New function.
  13883. (checkBitfield): Changed arguments.
  13884. (createPeerMessage): Removed.
  13885. (checkIntegrity): Removed.
  13886. (createHandshakeMessage): Changed arguments.
  13887. (createChokeMessage): New function.
  13888. (createUnchokeMessage): New function.
  13889. (createInterestedMessage): New function.
  13890. (createNotInterestedMessage): New function.
  13891. (createRequestMessage): New function.
  13892. (createCancelMessage): New function.
  13893. (createPortMessage): New function.
  13894. * src/PeerMessageUtil.cc
  13895. (createBitfieldMessage): Removed.
  13896. (createHaveMessage): Changed return value and arguments.
  13897. (createBitfieldMessage): Changed return value and arguments.
  13898. (createRequestCancelMessage): Removed.
  13899. (createPieceMessage): Changed return value and arguments.
  13900. (getShortIntParam): New function.
  13901. (checkIndex): Changed arguments.
  13902. (checkBegin): Changed arguments.
  13903. (checkLength): Changed arguments.
  13904. (checkPieceOffset): Removed.
  13905. (checkRange): New function.
  13906. (checkBitfield): Changed arguments.
  13907. (createPeerMessage): Removed.
  13908. (checkIntegrity): Removed.
  13909. (createHandshakeMessage): Changed arguments.
  13910. (createChokeMessage): New function.
  13911. (createUnchokeMessage): New function.
  13912. (createInterestedMessage): New function.
  13913. (createNotInterestedMessage): New function.
  13914. (createRequestMessage): New function.
  13915. (createCancelMessage): New function.
  13916. (createPortMessage): New function.
  13917. * src/PeerMessage.h
  13918. (id): Removed.
  13919. (index): Removed.
  13920. (begin): Removed.
  13921. (length): Removed.
  13922. (bitfield): Removed.
  13923. (bitfieldLength): Removed.
  13924. (block): Removed.
  13925. (blockLength): Removed.
  13926. (inProgress): New variable.
  13927. (cuid): New variable.
  13928. (peer): New variable.
  13929. (sendMessageQueue): New variable.
  13930. (logger): New variable.
  13931. (setBitfield): Removed.
  13932. (getBitfield): Removed.
  13933. (setBlock): Removed.
  13934. (getBlock): Removed.
  13935. (getBitfieldLength): Removed.
  13936. (getBlockLength): Removed.
  13937. (isInProgress): New function.
  13938. (toString): Made pure virtual.
  13939. (check): New function.
  13940. (send): New function.
  13941. (receivedAction): New function.
  13942. (getId): Made pure virtual.
  13943. (setId): Removed.
  13944. (getIndex): Removed.
  13945. (setIndex): Removed.
  13946. (getBegin): Removed.
  13947. (setBegin): Removed.
  13948. (getLength): Removed.
  13949. (setLength): Removed.
  13950. (getCuid): New function.
  13951. (setCuid): New function.
  13952. (getPeer): New function.
  13953. (setPeer): New function.
  13954. (getSendMessageQueue): New function.
  13955. (setSendMessageQueue): New function.
  13956. (ID): Removed.
  13957. * src/PeerMessage.cc
  13958. (setBitfield): Removed.
  13959. (setBlock): Removed.
  13960. (toString): Removed.
  13961. * src/TorrentMan.h
  13962. (getPieceLength): New function.
  13963. (getPieceLength): New function.
  13964. * src/SendMessageQueue.h
  13965. (REQUEST_TIME_OUT): New definition.
  13966. (RequestSlots): New definition.
  13967. (MessageQueue): New definition.
  13968. (requestSlotMan): Removed.
  13969. (pendingMessages): Removed.
  13970. (requestSlots): New variable.
  13971. (messageQueue): New variable.
  13972. (torrentMan): New variable.
  13973. (peerConnection): New variable.
  13974. (peer): New variable.
  13975. (piece): New variable.
  13976. (getNewPieceAndSendInterest): New function.
  13977. (createPeerMessage): New function.
  13978. (createHandshakeMessage): New function.
  13979. (send): Made private.
  13980. (setPeerMessageCommonProperty): New function.
  13981. (deleteAllRequestSlot): New function.
  13982. (deleteRequestMessageInQueue): New function.
  13983. (cancelAllRequest): Made private.
  13984. (cancelAllRequest): Made private.
  13985. (countRequestSlot): Made private.
  13986. (addPendingMessage): Removed.
  13987. (deletePendingPieceMessage): Removed.
  13988. (deletePendingRequestMessage): Removed.
  13989. (addMessage): New function.
  13990. (deletePieceMessageInQueue): New function.
  13991. (deleteTimeoutRequestSlot): Changed argument.
  13992. (deleteCompletedRequestSlot): Changed argument.
  13993. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13994. (getCorrespondingRequestSlot): New function.
  13995. (countPendingMessage): Removed.
  13996. (countMessageInQueue): New function.
  13997. (getTorrentMan): New function.
  13998. (getPeerConnection): New function.
  13999. (hasDownloadPiece): New function.
  14000. (getDownloadPiece): New function.
  14001. (setDownloadPiece): New function.
  14002. (syncPiece): New function.
  14003. (sendMessages): New function.
  14004. (sendNow): New function.
  14005. (trySendNow): New function.
  14006. (abortPiece): New function.
  14007. (sendHandshake): New function.
  14008. (receiveMessage): New function.
  14009. (receiveHandshake): New function.
  14010. (createRequestMessage): New function.
  14011. (createCancelMessage): New function.
  14012. (createPieceMessage): New function.
  14013. (createHaveMessage): New function.
  14014. (createChokeMessage): New function.
  14015. (createUnchokeMessage): New function.
  14016. (createInterestedMessage): New function.
  14017. (createNotInterestedMessage): New function.
  14018. (createBitfieldMessage): New function.
  14019. (createKeepAliveMessage): New function.
  14020. * src/SendMessageQueue.cc
  14021. (SendMessageQueue): Removed requestSlotMan.
  14022. Instantiated peerConnection here.
  14023. (~SendMessageQueue): Removed requestSlotMan.
  14024. Added deletion of peerConnection and the contents of messageQueue.
  14025. (send): Updated according to the change of messageQueue.
  14026. (addPendingMessage): Renamed to addMessage.
  14027. (addMessage): New function.
  14028. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14029. (deletePieceMessageInQueue): New function.
  14030. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14031. (deleteRequestMessageInQueue): New function.
  14032. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14033. here.
  14034. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14035. (...) was moved here.
  14036. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14037. moved here.
  14038. (deleteCompletedRequestSlot):
  14039. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14040. (getCorrespondingRequestSlot):
  14041. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14042. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14043. (countPendingMessage): Renamed to countMessageInQueue.
  14044. (countMessageInQueue): New function.
  14045. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14046. (receiveHandshake): New function.
  14047. (createHandshakeMessage): New function.
  14048. (receiveMessage): New function.
  14049. (createPeerMessage): New function.
  14050. (syncPiece): New function.
  14051. (getNewPieceAndSendInterest): New function.
  14052. (sendMessages): New function.
  14053. (sendNow): New function.
  14054. (trySendNow): New function.
  14055. (sendHandshake): New function.
  14056. (abortPiece): New function.
  14057. (getDownloadPiece): New function.
  14058. (getPeerMessageCommonProperty): New function.
  14059. (createRequestMessage): New function.
  14060. (createCancelMessage): New function.
  14061. (createPieceMessage): New function.
  14062. (createHaveMessage): New function.
  14063. (createChokeMessage): New function.
  14064. (createUnchokeMessage): New function.
  14065. (createInterestedMessage): New function.
  14066. (createNotInterestedMessage): New function.
  14067. (createBitfieldMessage): New function.
  14068. (createKeepAliveMessage): New function.
  14069. To add simple Content-Disposition support:
  14070. * src/HttpResponseCommand.h (determinFilename): New function.
  14071. * src/HttpResponseCommand.cc (executeInternal):
  14072. Use determinFilename(headers) instead of req->getFile() when comparing
  14073. filename.
  14074. (determinFilename): New function.
  14075. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14076. req->getFile().
  14077. (handleOtherEncoding): Use determinFilename(headers) instead of
  14078. req->getFile().
  14079. * src/Util.h (getContentDispositionFilename): New function.
  14080. * src/Util.cc (getContentDispositionFilename): New function.
  14081. * src/LogFactory.h (release): New function.
  14082. * src/LogFactory.cc (release): New function.
  14083. To fix a bug that causes out-of-bound exception when HTTP status
  14084. line is wrong:
  14085. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14086. size.
  14087. * src/common.h (Deleter): New class.
  14088. * src/SegmentMan.cc
  14089. (~SegmentMan): Added deletion of splitter and diskWriter.
  14090. * src/DownloadEngine.h
  14091. (Commands): Use deque.
  14092. (clearQueue): New function.
  14093. * src/DownloadEngine.cc
  14094. (~DownloadEngine): Added deletion of segmentMan.
  14095. (cleanQueue): New function.
  14096. * src/TorrentDownloadEngine.h
  14097. (TorrentDownloadEngine): The implementation was moved to
  14098. TorrentDownloadEngine.cc.
  14099. (~TorrentDownloadEngine): The implementation was moved to
  14100. TorrentDownloadEngine.cc.
  14101. * src/TorrentDownloadEngine.cc
  14102. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14103. * src/main.cc
  14104. (clearRequest): Removed.
  14105. (handler): Added deletion of e.
  14106. (torrentHandler): Added deletion of te.
  14107. (main): Do not share splitter.
  14108. Use Deleter instead of clearRequest.
  14109. Deletion of classes were updated.
  14110. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14111. * src/main.cc (main): Fixed typo.
  14112. * src/message.h: Fixed typo.
  14113. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14114. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14115. To add --select-file command-line option:
  14116. * src/Util.cc
  14117. (unfoldRange): New function.
  14118. (getNum): New function.
  14119. (unfoldSubRange): New function
  14120. * src/main.cc
  14121. (showUsage): Added help message.
  14122. (main): Added --select-file command-line option. Updated the layout of
  14123. file listing.
  14124. * src/common.h
  14125. (Integers): New definition.
  14126. * src/SocketCore.cc
  14127. (writeData): Removed timeout argument.
  14128. (readData): Removed timeout argument.
  14129. (peekData): Removed timeout argument.
  14130. * src/Socket.cc
  14131. (writeData): Removed timeout argument.
  14132. (readData): Removed timeout argument.
  14133. (peekData): Removed timeout argument.
  14134. * Release 0.4.1
  14135. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14136. To deploy upload rate based choking algorithm:
  14137. * src/PeerInteractionCommand.cc
  14138. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14139. peer currently used.
  14140. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14141. download completes. Simplified.
  14142. (receiveMessage): Updated.
  14143. * src/TorrentMan.h
  14144. (activePeers): New variable.
  14145. (addActivePeer): New function.
  14146. (getActivePeers): New function.
  14147. (deleteActivePeer): New function.
  14148. * src/TorrentMan.cc
  14149. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14150. * src/PeerAbstractCommand.cc
  14151. (onAbort): Use peer->resetStatus().
  14152. * src/main.cc
  14153. (PeerChokeCommand.h): Included.
  14154. (main): Added the instance of ChokingCommand to the command queue.
  14155. * src/Peer.h
  14156. (amChoking): Renamed from amChocking
  14157. (chokingRequired): New variable.
  14158. (optUnchoking): New variable.
  14159. (deltaUpload): New variable.
  14160. (deltaDownload): New variable.
  14161. (addDeltaUpload): New function.
  14162. (resetDeltaUpload): New function.
  14163. (addDeltaDownload): New function.
  14164. (resetDeltaDownload): New function.
  14165. (addPeerUpload): Added a call to addDeltaUpload.
  14166. (addPeerDownload): Added a call to addDeltaDownload.
  14167. * src/Peer.cc
  14168. (shouldBeChoking): Renamed from shouldChoke.
  14169. (resetStatus): New function.
  14170. * src/PeerChokeCommand.h: New class.
  14171. * src/PeerChokeCommand.cc: New class.
  14172. To add lazy upload speed limiter:
  14173. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14174. statistics calculation to TorrentDownloadEngine.
  14175. * src/TorrentConsoleDownloadEngine.cc
  14176. (sendStatistics): Renamed from printStatistics.
  14177. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14178. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14179. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14180. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14181. calculation.
  14182. (sendStatistics): New function as pure virtual function.
  14183. (getUploadSpeed): New function.
  14184. * src/TorrentDownloadEngine.cc
  14185. (initStatistics): New function.
  14186. (calculateSpeed): New function.
  14187. (calculateStatistics): New function.
  14188. * src/SendMessageQueue.h
  14189. (uploadLength): New variable.
  14190. (send): Added an argument.
  14191. (setUploadLimit): New function.
  14192. (getUploadLimit): New function.
  14193. * src/SendMessageQueue.cc
  14194. (send): Added upload speed limiter.
  14195. * src/prefs.h
  14196. (PREF_UPLOAD_LIMIT): New definition.
  14197. * src/PeerInteractionCommand.cc
  14198. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14199. * src/main.cc
  14200. (main): Added --upload-limit option
  14201. For bug fixes:
  14202. * src/main.cc
  14203. (showUsage): Corrected --listen-port help
  14204. Other changes:
  14205. * src/TorrentMan.cc
  14206. (getPeer): Return nullPeer if connection is grather than
  14207. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14208. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14209. To add some useful information to the exception message:
  14210. * src/SocketCore.cc : Updated messages.
  14211. * src/SegmentMan.cc :
  14212. * src/TorrentMan.cc : Updated messages.
  14213. * src/MultiDiskWriter.cc : Updated messages.
  14214. * src/Util.cc : Updated messages.
  14215. * src/AbstractDiskWriter.cc : Updated messages.
  14216. * src/PreAllocationDiskWriter.cc : Updated messages.
  14217. * src/message.cc : Added new messages. Updated some messages.
  14218. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14219. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14220. Updated threshold from 30 to 15.
  14221. * src/AbstractDiskWriter.h (filename): New variable.
  14222. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14223. (createFile): Assigned filename.
  14224. * src/main.cc: Updated the help message for http-auth-scheme.
  14225. * Release 0.4.0
  14226. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14227. To add TrackerUpdateCommand with which replaces
  14228. CompactTrackerResponseProcessor:
  14229. * src/TrackerWatcherCommand.h (req): Removed.
  14230. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14231. if the number of peer connections are less than 30.
  14232. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14233. * src/SegmentMan.h (diskWriter): New function.
  14234. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14235. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14236. (main): Use TrackerUpdateCommand.
  14237. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14238. (req): New variable.
  14239. (setTrackerResponseProcessor): Removed.
  14240. (getTrackerResponseProcessor): Removed.
  14241. (processTrackerResponse): Removed.
  14242. * src/DownloadEngine.h (diskWriter): Removed.
  14243. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14244. to torrentMan->processTrackerResponse().
  14245. To add Util::expandBuffer:
  14246. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14247. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14248. * src/Util.h (expandBuffer): New function.
  14249. To fix the bug that causes segmentation fault when "-l ." is specified
  14250. in command-line option:
  14251. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14252. (openFile): New function.
  14253. (closeFile): New function.
  14254. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14255. (~SimpleLogger): Call closeFile();
  14256. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14257. * src/main.cc (main): Added a check to see logger is configured
  14258. properly.
  14259. To enable HTTP authentication without specifying "--http-auth-scheme"
  14260. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14261. * src/HttpConnection.cc (createRequest): Send Authorization header
  14262. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14263. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14264. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14265. * src/Peer.cc (shouldChoke): Updated algorithm.
  14266. * src/message.h (EX_AUTH_FAILED): New definition.
  14267. (EX_FILE_OPEN): New definition.
  14268. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14269. if status == 401.
  14270. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14271. if req->isTorrent == true.
  14272. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14273. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14274. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14275. (createFile): Updated message.
  14276. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14277. To add a readout of estimated remaining time to normal HTTP/FTP
  14278. downloads:
  14279. * src/ConsoleDownloadEngine.h (startup): New variable.
  14280. (startupLength): New variable.
  14281. (isStartupLengthSet): New variable.
  14282. (avgSpeed): New variable.
  14283. (eta): New variable.
  14284. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14285. estimated remaining time.
  14286. (initStatistics): Initialized newly added variables.
  14287. (calculateStatistics): Calculate average speed and estimated remaining
  14288. time.
  14289. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14290. * src/TrackerDownloadCommand.h: Removed.
  14291. * src/TrackerDownloadCommand.cc: Removed.
  14292. * src/TrackerInitCommand.h: Removed.
  14293. * src/TrackerInitCommand.cc: Removed.
  14294. * src/TrackerUpdateCommand.h: Removed.
  14295. * src/TrackerUpdateCommand.cc: Removed.
  14296. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14297. url written in TrackerInitCommand was moved here. Do not create
  14298. tracker request command if torrentMan->trackers != 0.
  14299. * src/CompactTrackerResponseProcessor.h: New class.
  14300. * src/CompactTrackerResponseProcessor.cc: New class.
  14301. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14302. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14303. Decoupled TorrentDownloadEngine from this.
  14304. * src/SegmentMan.h (init): New function.
  14305. * src/SegmentMan.cc (init): New function.
  14306. * src/TorrentMan.h (responseProcessor): New variable.
  14307. (trackers): New variable.
  14308. (setTrackerResponseProcessor): New function.
  14309. (getTrackerResponseProcessor): New function.
  14310. (processTrackerResponse): New function.
  14311. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14312. (processTrackerResponse): New function.
  14313. * src/main.cc (main): Use ByteArrayDiskWriter and
  14314. CompactTrackerResponseProcessor.
  14315. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14316. processTrackerResponse().
  14317. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14318. readout.
  14319. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14320. which indicates download has completed.
  14321. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14322. (closeFile): fd >= 0, not fd > 0
  14323. * src/main.cc (main): Added short cut for show-files.
  14324. Added short cut for torrent-file.
  14325. Added new command-line option listen-port.
  14326. Updated i18n messages.
  14327. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14328. To add LogFactory which creates singleton logger:
  14329. * src/LogFactory.h: New class.
  14330. * src/LogFactory.cc: New class.
  14331. * src/Command.h (logger): New variable.
  14332. (Constructor): Use LogFactory.
  14333. * src/AbstractCommand.cc: Use Command::logger
  14334. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14335. Use LogFactory.
  14336. * src/SegmentSplitter.h : Made logger protected.
  14337. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14338. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14339. * src/DownloadEngine.h : Made logger protected.
  14340. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14341. * src/PeerInteractionCommand.cc : Use Command::logger.
  14342. * src/HttpResponseCommand.cc : Use Command::logger.
  14343. * src/SegmentMan.h : Made logger private.
  14344. * src/TorrentMan.h : Made logger private.
  14345. * src/TorrentMan.cc : Use LogFactory.
  14346. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14347. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14348. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14349. Use LogFactory.
  14350. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14351. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14352. Use LogFactory.
  14353. * src/DownloadCommand.cc : Use Command::logger.
  14354. * src/PeerAbstractCommand.cc : Use Command::logger.
  14355. * src/PeerListenCommand.cc : Use Command::logger.
  14356. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14357. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14358. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14359. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14360. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14361. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14362. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14363. Use LogFactory.
  14364. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14365. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14366. Use LogFactory.
  14367. * src/main.cc (main): Use LogFactory.
  14368. * src/DiskAdaptor.h (logger): New variable.
  14369. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14370. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14371. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14372. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14373. parameter to a tracker request.
  14374. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14375. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14376. * src/main.cc (setSignalHander): New function.
  14377. (main): Added a handler for SIGTERM.
  14378. (handler): Updated message.
  14379. (torrentHandler): Updated message.
  14380. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14381. * src/TorrentConsoleDownloadEngine.cc
  14382. (onPartialDownloadingCompletes): Renamed as
  14383. onSelectiveDownloadingCompletes.
  14384. (onSelectiveDownloadingCompletes): Updated message.
  14385. To add DiskAdaptor which abstract DiskWriter family:
  14386. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14387. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14388. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14389. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14390. MultiDiskAdaptor.h.
  14391. (readFileEntry): Changed its arguments.
  14392. (setup): setupDiskWriter is merged into this function.
  14393. (setupDiskWriter): Removed.
  14394. (setFileFilter): New function.
  14395. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14396. made in readFileEntry.
  14397. (getFilePath): Removed.
  14398. (getTempFilePath): Removed.
  14399. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14400. (fixFilename): Removed.
  14401. (copySingleFile): Removed.
  14402. (splitMultiFile): Removed.
  14403. (deleteTempFile): Removed.
  14404. (setFileEntriesToDownload): Removed.
  14405. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14406. (isSelectiveDownloadingMode): New function.
  14407. (setAllMultiFileRequestedState): Removed.
  14408. (finishPartialDownloadingMode): Renamed as
  14409. finishSelectiveDownloadingMode.
  14410. (finishSelectiveDownloadingMode): New function.
  14411. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14412. (getSelectedTotalLength): New function.
  14413. (onDownloadComplete): Use diskAdaptor.
  14414. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14415. (Range): Removed.
  14416. (setMultiFileEntries): Renamed as setFileEntries.
  14417. (setFileEntries): New function.
  14418. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14419. (pieceLength): New variable.
  14420. * src/main.cc (printDownloadCompeleteMessage): New function.
  14421. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14422. (main): Renamed torrent-show-files to show-files.
  14423. Rewritten file contents listing.
  14424. * src/TorrentMan.h (FileEntry): Removed.
  14425. (multiFileTopDir): Removed.
  14426. (multiFileEntries): Removed.
  14427. (diskWriter): Removed.
  14428. (diskAdaptor): New variable.
  14429. * src/DefaultDiskWriter.h (totalLength): New variable.
  14430. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14431. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14432. diskWriter.
  14433. * src/TorrentConsoleDownloadEngine.h
  14434. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14435. (partialTotalLength): Renamed as selectedTotalLength.
  14436. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14437. openExistingFile, otherwise call initAndOpenFile.
  14438. (closeFile): fd > 0, not fd != 0.
  14439. * src/DirectDiskAdaptor.h: New class.
  14440. * src/DirectDiskAdaptor.cc: New class.
  14441. * src/MultiDiskAdaptor.h: New class.
  14442. * src/MultiDiskAdaptor.cc: New class.
  14443. * src/CopyDiskAdaptor.h: New class.
  14444. * src/CopyDiskAdaptor.cc: New class.
  14445. * src/DiskAdaptor.h: New class.
  14446. * src/DiskAdaptor.cc: New class.
  14447. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14448. (PREF_SHOW_FILES): New definition.
  14449. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14450. To add the ability to download multi torrent into respective files
  14451. directly:
  14452. * src/DiskWriter.h (openFile): New function.
  14453. (seek): Removed.
  14454. * src/MultiDiskWriter.h: New class.
  14455. * src/MultiDiskWriter.cc: New class.
  14456. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14457. protected.
  14458. (openFile): New function.
  14459. * src/AbstractDiskWriter.cc (openFile): New function.
  14460. * src/prefs.h (V_FALSE): New definition.
  14461. (PREF_DIRECT_FILE_MAPPING): New definition.
  14462. * src/TorrentMan.h (setupDiskWriter): New function.
  14463. (setAllMultiFileRequestedState): New function.
  14464. (onDownloadComplete): New function.
  14465. * src/TorrentMan.cc : Included MultiDiskWriter.h
  14466. (setupDiskWriter): New function.
  14467. (getFilePath): Updated.
  14468. (getTempFilePath): Updated.
  14469. (getSegmentFilePath): Updated.
  14470. (fixFilename): Updated.
  14471. (deleteTempFile): Updated.
  14472. (setAllMultiFileRequestedState): New function.
  14473. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  14474. (finishPartialDownloadingMode): Reset requested flags.
  14475. (onDownloadComplete): New function.
  14476. * src/main.cc: Added --direct-file-mapping option.
  14477. Use TorrentMan::setupDiskWriter().
  14478. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  14479. onDownloadComplete().
  14480. To fix ETA bug:
  14481. * src/Util.h (difftvsec): New function.
  14482. * src/Util.cc (difftvsec): New function.
  14483. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  14484. type of "elapsed" instead of long long int.
  14485. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  14486. The updates of statistics takes place every 1 seconds.
  14487. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  14488. (calculateSpeed): Changed its argument signature.
  14489. * src/PeerMessage.cc (toString): Fixed message.
  14490. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14491. To print ETA:
  14492. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  14493. completion handling when dealing with
  14494. TorrentMan::isPartialDownloadingMode() == true.
  14495. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  14496. New function.
  14497. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  14498. (sessionDownloadLength): New variable.
  14499. (avgSpeed): New variable.
  14500. (eta): New variable.
  14501. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  14502. new variables: eta, avgSpeed, startup.
  14503. (calculateSpeed): Calculate average speed and ETA.
  14504. (printStatistics): Added ETA.
  14505. * src/Util.h (secfmt): New function.
  14506. * src/Util.cc (secfmt): New function.
  14507. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14508. To detect "keep alive" flooding:
  14509. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  14510. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  14511. variable: keepAliveCount.
  14512. (detectMessageFlooding): Added "keep alive" flooding detection.
  14513. (receiveMessage): Increase keepAliveCount when "keep alive" message
  14514. received.
  14515. To add the ability to download only specified files in multi-file
  14516. torrent:
  14517. * src/BitfieldMan.h (filterBitfield): New variable.
  14518. (filterEnabled): New variable.
  14519. (setFilterBit): New function.
  14520. (enableFilter): New function.
  14521. (disableFilter): New function.
  14522. (isFilterEnabled): New function.
  14523. (getFilteredTotalLength): New function.
  14524. (getCompletedLength): New function.
  14525. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  14526. filterBitfield, filterEnabled.
  14527. (CopyConstructor): Added filterBitfield and filterEnabled.
  14528. (operator==): Added filterBitfield and filterEnabled.
  14529. (Destructor): Added filterBitfield.
  14530. (getMissingIndex): Use filterBitfield.
  14531. (getMissingUnusedIndex): Use filterBitfield.
  14532. (getFirstMissingUnusedIndex): Use filterBitfield.
  14533. (getFirstMissingUnusedIndex): Use filterBitfield.
  14534. (getAllMissingIndexes): Use filterBitfield.
  14535. (countMissingBlock): Use filterBitfield.
  14536. (countBlock): Use filterBitfield.
  14537. (setBitInternal): Added new argument on.
  14538. (setUseBit): Use setBitInternal.
  14539. (unsetUseBit): Use setBitInternal.
  14540. (setBit): Use setBitInternal.
  14541. (unsetBit): Use setBitInternal.
  14542. (isAllBitSet): Use filterBitfield.
  14543. (setFilterBit): New function.
  14544. (addFilter): New function.
  14545. (enableFilter): New function.
  14546. (disableFilter): New function.
  14547. (clearFilter): New function.
  14548. (isFilterEnabled): New function.
  14549. (getFilteredTotalLength): New function.
  14550. (getCompletedLength): New function.
  14551. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14552. Initalized newly added variables.
  14553. [FileEntry](offset): New variable.
  14554. [FileEntry](extracted): New variable.
  14555. [FileEntry](requested): New variable.
  14556. (readFileEntry): New function.
  14557. (option): New variable.
  14558. (splitMultiFile): Removed const qualifier.
  14559. (fixFilename): Removed const qualifier.
  14560. (readFileEntryFromMetaInfoFile): New function.
  14561. (finishPartialDownloadingMode): New function.
  14562. (isPartialDownloadingMode): New function.
  14563. (setFileEntriesToDownload): New function.
  14564. (getCompletedLength): New function.
  14565. (getPartialTotalLength): New function.
  14566. * src/TorrentMan.cc (readFileEntry): New function.
  14567. (setup): Use readFileEntry. If no-preallocation option is specified,
  14568. use DefaultDiskWriter.
  14569. (readFileEntryFromMetaInfoFile): New function.
  14570. (fixFilename): Removed const qualifier.
  14571. (splitMultiFile): Removed const qualifier.
  14572. (setFileEntriesToDownload): New function.
  14573. (isPartialDownloadingMode): New function.
  14574. (finishPartialDownloadingMode): New function.
  14575. (getCompletedLength): New function.
  14576. (getPartialTotalLength): New function.
  14577. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14578. New variable.
  14579. (partialTotalLength): New variable.
  14580. (downloadLength): New variable.
  14581. (totalLength): New variable.
  14582. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14583. Added log.
  14584. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14585. partialTotalLength, downloadLength, totalLength.
  14586. (calculate): Calculate downloadLength and totalLength.
  14587. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14588. * src/main.cc (addCommand): Changed argument signature.
  14589. (main): Added new variable: args. Added new option "torrent-show-files"
  14590. "no-preallocation". Usage is not updated yet.
  14591. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14592. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14593. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14594. Attempt to add the ability to listing file entries in a .torrent file.
  14595. This feature is not yet complete.
  14596. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14597. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14598. (getName): New function.
  14599. * src/TorrentMan.h (getMultiFileEntries): New function.
  14600. (getName): New function.
  14601. * src/main.cc (main): Use above 2 funtion.
  14602. * Release 0.3.2
  14603. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14604. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14605. (detectMessageFlooding): Updated threshold value.
  14606. (checkLongTimePeerChoking): Updated timeout value.
  14607. (getNewPieceAndSendInterest): Added debug log.
  14608. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14609. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14610. (getPeer): Updated.
  14611. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14612. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14613. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14614. is localhost.
  14615. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14616. * src/PendingMessage.cc (processMessage): Not to send piece message
  14617. if peer is not interested in the pieces localhost has.
  14618. * src/Peer.cc (shouldChoke): Updated.
  14619. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14620. * src/Util.cc (isPowerOf): New function.
  14621. * src/Util.h (isPowerOf): New function.
  14622. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14623. whether or not it is power of 2.
  14624. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14625. Added new class SendMessageQueue that includes PendingMessages and
  14626. RequestSlotMan.
  14627. * src/SendMessageQueue.h: New class.
  14628. * src/SendMessageQueue.cc: New class.
  14629. * src/PendingMessage.h: Added new member variable blockIndex and its
  14630. accessors.
  14631. (createRequestMessage): Updated.
  14632. * src/PendingMessage.cc (createRequestMessage): Updated.
  14633. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14634. SendMessageQueue.
  14635. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14636. (receiveMessage): Updated with SendMessageQueue.
  14637. (deletePendingPieceMessage): Removed.
  14638. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14639. (sendInterest): Updated with SendMessageQueue.
  14640. (createRequestPendingMessage): Updated with SendMessageQueue.
  14641. (sendMessages): Updated with SendMessageQueue.
  14642. (onAbort): Updated with SendMessageQueue.
  14643. (keepAlive): Updated with SendMessageQueue.
  14644. (beforeSocketCheck): Updated SendMessageQueue.
  14645. * src/PeerInteractionCommand (sendMessages): Shuffle
  14646. missingBLockIndexes before using it.
  14647. Added its own timeout for peer connection.
  14648. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14649. setter.
  14650. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14651. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14652. Added setTimeout() call.
  14653. (executeInternal): Added setTimeout() call.
  14654. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14655. Added timeout.
  14656. (isTimeoutDetected): Updated.
  14657. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14658. option.
  14659. Added *simple* message flooding checker.
  14660. * src/PeerInteractionCommand.cc (executeInternal):
  14661. Added detectMessageFlooding() call.
  14662. (detectMessageFlooding): New function.
  14663. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14664. (beforeSocketCheck): Added detectMessageFlooding() call.
  14665. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14666. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14667. Removed deletePendingPieceMessage(), getRequestSlot(),
  14668. deleteRequestSlot(), deleteAllRequestSlot().
  14669. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14670. Added checkLongTimePeerChoking() call.
  14671. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14672. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14673. if duplicate == false.
  14674. The parameter "uploaded" and "downloaded" in the tracker request are
  14675. the size since the client sent the "started" event to the tracker.
  14676. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14677. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14678. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14679. getSessionDownloadedSize(), getSessionUploadedSize().
  14680. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14681. getSessionUploadedSize() instead of getDownloadedSize(),
  14682. getUploadedSize().
  14683. * src/PendingMessage.cc (processMessage): Do not send request message
  14684. if the peer is choking the client.
  14685. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14686. less than interval.
  14687. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14688. * configure.in: Added gnutls support. Added several CPP macros.
  14689. * m4/openssl.m4: Added.
  14690. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14691. readData(), peekData(). Added gnutls support.
  14692. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14693. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14694. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14695. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14696. Instead, added a check for whether setup method has executed
  14697. successfully.
  14698. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14699. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14700. * src/Makefile.am: Updated.
  14701. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14702. using whether OpenSSL or gcrypt, depending on the result of configure
  14703. script.
  14704. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14705. messageDigest.h.
  14706. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14707. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14708. Fixed memory leak.
  14709. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14710. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14711. Removed instantiation of TrackerInitCommand. Instead,
  14712. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14713. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14714. ENABLE_SSL.
  14715. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14716. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14717. If a piece is already acquired by another command, delete the request
  14718. slots for the piece.
  14719. * src/TrackerUpdateCommand.cc (execute):
  14720. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14721. Added a check whether peer list is null.
  14722. Fixed the bug that causes sending completed event to the tracker
  14723. several times.
  14724. * src/TrackerInitCommand.cc (execute):
  14725. Fixed the bug that causes sending completed event to the tracker
  14726. several times.
  14727. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14728. by using messageDigest.h.
  14729. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14730. * PeerConnection.cc: Replaced log message "keep-alive" with
  14731. "keep alive".
  14732. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14733. localhost long time.
  14734. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14735. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14736. at most 100 failure entry from the list. If with duplicate = false,
  14737. MAX_PEER_LIST is not checked.
  14738. * PeerListenCommand.cc: Fixed the argument order of log message.
  14739. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14740. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14741. Added warn().
  14742. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14743. Implemented warn().
  14744. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14745. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14746. * Request.h: Added AFTER_COMPLETED event.
  14747. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14748. instead of downloaded size and progress(%) after download completes.
  14749. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14750. message to the peer if it is interested in what localhost has
  14751. downloaded.
  14752. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14753. destination instead of just renaming it.
  14754. * TorrentMan.cc: Added deleteTempFile().
  14755. * PeerAbstractCommand.cc: do not stop execution after download
  14756. completes. This makes localhost a seeder.
  14757. * Util.{h,cc}: Added fileCopy().
  14758. * PeerListenCommand.cc: do not stop execution after download completes.
  14759. This makes localhost a seeder.
  14760. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14761. Added TorrentMan::deleteTempFile() to torrentHandler.
  14762. Initialized the variable dir as ".".
  14763. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14764. Deleted renameSingleFile().
  14765. Added copySingleFile(), deleteTempFile().
  14766. * DownloadEngine.h: Added virtual function afterEachIteration().
  14767. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14768. in onEndOfRun() to afterEachIteration().
  14769. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14770. true.
  14771. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14772. In rangedFileCopy(), added try-catch block to properly close file
  14773. descriptors.
  14774. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14775. Added afterEachIteration(), isFilenameFixed().
  14776. * Peer.cc: Changed choking strategy.
  14777. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14778. * TrackerInitCommand.cc: Send completed event only once.
  14779. * DownloadEngine.cc: Added a call to afterEachIteration().
  14780. * TrackerUpdateCommand.cc: Do not stop execution after download
  14781. completes.
  14782. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14783. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14784. received from a tracker.
  14785. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14786. Decreased the number of failure peers to delete to 0(just comment out
  14787. the line).
  14788. * Release 0.3.1
  14789. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14790. * PeerInteractionCommand.cc: added a call to
  14791. TorrentMan::unadvertisePiece in Destructor.
  14792. * PeerInteractionCommand.cc: make have message sent immediately
  14793. if the size of pending message queue is zero.
  14794. * TorrentMan.cc: set the maximum size of peer list to 250.
  14795. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14796. to deque.
  14797. * Util.cc: fixed rangedFileCopy.
  14798. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14799. to Constructor. Also, moved digest cleanup to Destructor.
  14800. * MetaFileUtil.cc: fixed memory leak
  14801. * replaced std::vector with std::deque.
  14802. * AbstractCommand.cc: casted timeout value to long long int.
  14803. * ChunkedEncoding.cc: fixed memory leak.
  14804. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14805. * SleepCommand.cc: casted timeout value to long long int.
  14806. * Data.cc: fixed memory leak.
  14807. * Data.cc: fixed toLLInt().
  14808. * BitfieldMan.cc: fixed memory leak.
  14809. * TorrentMan.cc: initialized storeDir to ".".
  14810. * TorrentMan.cc: fixed memory leak.
  14811. * TorrentMan.cc: corrected file paths of splitted files.
  14812. * PeerAbstractCommand.cc: casted timeout to long long int.
  14813. * main.cc: added delete(req) and delete(te->diskWriter).
  14814. * RequestSlot.cc: casted timeout value to long long int.
  14815. * Request.cc: fixed memory leak.
  14816. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14817. have the piece.
  14818. * Peer.{h,cc}: added hasPiece(int index).
  14819. * main.cc: corrected addCommand.
  14820. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14821. * BitTorrent protocol support added.
  14822. * Release 0.3.0
  14823. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14824. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14825. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14826. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14827. decoding did not work properly.
  14828. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14829. * DownloadEngine.h: included sys/time.h
  14830. * DownloadEngine.cc: remove sys/time.h
  14831. * Makefile.am (SUBDIRS): Add intl.
  14832. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14833. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14834. * main.cc: correct help message for --http-auth-scheme.
  14835. * main.cc: changed e-mail address for bug reports.
  14836. * ja.po: added japanese translation.
  14837. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14838. * SimpleLogger.cc: flush log file instead of stdout.
  14839. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14840. * main.cc: Fixed command-line option: max-tries
  14841. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14842. does not equal to seg.sp.
  14843. * DownloadCommand.cc: If EOF is got from the server and the total size
  14844. of file is not zero, then throw DlRetryEx.
  14845. * main.cc: Set the minium value of min-segment-size to 1024.
  14846. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14847. fails because of a regression since 0.2.0 release.
  14848. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14849. * HttpConnection.cc:
  14850. * common.h: defined the user agent name as macro
  14851. * DownloadEngine.{h, cc}:
  14852. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14853. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14854. * main.cc: Download complete/abort message is now generated by main.
  14855. * Makefile.am (SUBDIRS): Add m4.
  14856. (ACLOCAL_AMFLAGS): New variable.
  14857. (EXTRA_DIST): New variable.
  14858. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14859. * gettext: added gettext functionality
  14860. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14861. * AbstractCommand.cc:
  14862. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14863. unregister its cuid from SegmentMan.
  14864. * DownloadEngine.cc: .aria2 file was written when a downloading
  14865. failed with errors.
  14866. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14867. Added "User-Agent" header to CONNECT proxy request.
  14868. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14869. properly.
  14870. * Logger.h:
  14871. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14872. * ChunkedEncoding.cc: Added #include directive for strings.h
  14873. * Release 0.2.1
  14874. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14875. * Util.{h,cc}: added startsWith().
  14876. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14877. Util::endsWith().
  14878. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14879. * common.h: added #include directive of limit.h.
  14880. * DownloadEngine.cc: added #include directive of sys/time.h and
  14881. algorithm.
  14882. * Exception.h: added #include directive of stdio.h.
  14883. * AbstractCommand.h: added #include directive of sys/time.h.
  14884. * DownloadCommand.h: added #include directive of sys/time.h.
  14885. * *.h: added #include directive of common.h to all base classes.
  14886. subclasses' one was removed.
  14887. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14888. does not define these macros.
  14889. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14890. * Release 0.2.0
  14891. * main.cc:
  14892. * HttpInitiateConnectionCommand.{h,cc}:
  14893. * prefs.h:
  14894. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14895. We can now use GET command in http proxy.
  14896. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14897. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14898. that splits slowest segment of SegmentMan::commands vector.
  14899. This is the default split algorithm of aria2.
  14900. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14901. that splits first segment of SegmentMan::commands vector.
  14902. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14903. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14904. * Segment.h:
  14905. * SegmentMan.cc: Added speed field to Segment.h
  14906. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14907. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14908. * message.h: Change file size related %d to %lld.
  14909. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14910. * FtpInitiateConnectionCommand.{h,cc}:
  14911. * FtpNegotiationCommand.{h,cc}:
  14912. * FtpDownloadCommand.{h,cc}:
  14913. * FtpConnection.{h,cc}: Added FTP support
  14914. * SimpleLogger.cc: Log message now includes time information.
  14915. * main.cc: The value of --http-auth-scheme option is chagned from
  14916. 'BASIC' to 'basic'
  14917. * main.cc: Added --timeout command-line option.
  14918. * main.cc: Added --min-segment-size command-line option.
  14919. * main.cc: Added --max-retries command-line option.
  14920. * prefs.h: option string constants are now defined in prefs.h
  14921. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14922. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14923. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14924. with version 0.1.0's one.
  14925. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14926. * configure.in: Added --enable-ssl option to configure script.
  14927. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14928. cannot permit absoluteURI as Request-URI.
  14929. * HttpConnection.cc: Added Referer support.
  14930. * main.cc: Added referer command-line option.
  14931. * main.cc: Added rety-wait command-line option.
  14932. * Exception.h: Fixed formating bug in Exception::setMsg()
  14933. * SocketCore.{h,cc}:
  14934. * Socket.{h, cc}:
  14935. * Request.cc:
  14936. * InitiateConnectionCommandFactory.cc:
  14937. * HttpRequestCommand.cc: Added HTTPS support.
  14938. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14939. for SocketCore.
  14940. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14941. size is wrong
  14942. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14943. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14944. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14945. * Release 0.1.0