ChangeLog 515 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228
  1. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Documented --bt-tracker-interval option in man page.
  3. * doc/aria2c.1.txt
  4. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Added an option to specify the interval between tracker requests.
  6. If non-zero value is specified, aria2 uses it and ignores the
  7. interval value in the response of tracker. If zero is specified,
  8. aria2 determines the inteval value based on the tarcker response
  9. and download progress.
  10. * src/DefaultBtAnnounce.cc
  11. * src/DefaultBtAnnounce.h
  12. * src/OptionHandlerFactory.cc
  13. * src/RequestGroup.cc
  14. * src/prefs.cc
  15. * src/prefs.h
  16. * src/usage_text.h
  17. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Added operator+=, operator-=, operator-
  19. * src/TransferStat.cc
  20. * src/TransferStat.h
  21. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Refactored RarestPieceSelector to reduce CPU load, especially for
  23. addPieceStats.
  24. * src/RarestPieceSelector.cc
  25. * src/RarestPieceSelector.h
  26. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  28. getAllMissingBlockIndexes to reduce a call to
  29. array_function_base::operator[].
  30. * src/BitfieldMan.cc
  31. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Cached TransferStat/download speed to avoid to sum them up in each
  33. call.
  34. * src/DefaultPeerStorage.cc
  35. * src/DefaultPeerStorage.h
  36. * src/SegmentMan.cc
  37. * src/SegmentMan.h
  38. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Typedefed cuid_t as int32_t in Command.h
  40. * src/CUIDCounter.h
  41. * src/Command.cc
  42. * src/Command.h
  43. * src/DownloadEngine.cc
  44. * src/DownloadEngine.h
  45. * src/PeerStat.h
  46. * src/SegmentMan.cc
  47. * src/SegmentMan.h
  48. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Reduced the number of calls to PeerStorage::calculateStat() and
  50. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  51. transfer rate.
  52. * src/DefaultBtInteractive.cc
  53. * src/DefaultBtMessageDispatcher.cc
  54. * src/DefaultPeerStorage.cc
  55. * src/DefaultPeerStorage.h
  56. * src/DownloadCommand.cc
  57. * src/DownloadEngine.cc
  58. * src/PeerStorage.h
  59. * src/SegmentMan.cc
  60. * src/SegmentMan.h
  61. * test/MockPeerStorage.h
  62. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Prepended _dir+"/" after joining path elements in torrent file.
  64. * src/DefaultBtContext.cc
  65. * test/DefaultBtContextTest.cc
  66. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Added missing IndexBtMessageValidator.h
  68. * src/Makefile.am
  69. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  71. Chinese translations. Thank you for contributing our project.
  72. * po/id.po
  73. * po/it.po
  74. * po/ru.po
  75. * po/uk.po
  76. * po/zh_CN.po
  77. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Updated README
  79. * README
  80. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Bump up version number to 1.3.0
  82. * configure.ac
  83. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Updated doc
  85. * src/DefaultBtContext.h
  86. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Slice/joinPath for name of single torrent.
  88. * src/DefaultBtContext.cc
  89. * test/DefaultBtContextTest.cc
  90. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Updated man page: Documented --dry-run and --index-out
  92. options. Changed the default value of --uri-selector and
  93. --http-auth-challenge options. Removed --direct-file-mapping
  94. option. Added example for --index-out
  95. * doc/aria2c.1.txt
  96. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Updated TEXT_DRY_RUN
  98. * src/usage_text.h
  99. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Changed the default value of --uri-selector option from 'inorder'
  101. to 'feedback'
  102. * src/OptionHandlerFactory.cc
  103. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Included current URI in exception message.
  105. * src/AbstractCommand.cc
  106. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Renamed ServerStatURISelector as FeedbackURISelector.
  108. * src/FeedbackURISelector.cc
  109. * src/FeedbackURISelector.h
  110. * src/Makefile.am
  111. * src/RequestGroupMan.cc
  112. * src/ServerStatURISelector.cc
  113. * src/ServerStatURISelector.h
  114. * test/FeedbackURISelectorTest.cc
  115. * test/Makefile.am
  116. * test/ServerStatURISelectorTest.cc
  117. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  119. all URIs are tested and their timeout is not reached.
  120. * src/AdaptiveURISelector.cc
  121. * src/AdaptiveURISelector.h
  122. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Changed the default value of --http-auth-challenge option to false.
  124. * src/OptionHandlerFactory.cc
  125. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Reuse URIs when all unused URIs run out.
  127. * src/OptionHandlerFactory.cc
  128. * src/RequestGroup.cc
  129. * src/prefs.cc
  130. * src/prefs.h
  131. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  133. and BtRejectMessage are derived from RangeBtMessage class.
  134. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  135. derived from IndexBtMessage class. BtChokeMessage,
  136. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  137. BtNotInterestedMessage and BtUnchokeMessage are derived from
  138. ZeroBtMessage class.
  139. * src/AbstractBtMessage.cc
  140. * src/AbstractBtMessage.h
  141. * src/BtAllowedFastMessage.cc
  142. * src/BtAllowedFastMessage.h
  143. * src/BtAllowedFastMessageValidator.h: Removed
  144. * src/BtBitfieldMessage.cc
  145. * src/BtBitfieldMessage.h
  146. * src/BtCancelMessage.cc
  147. * src/BtCancelMessage.h
  148. * src/BtCancelMessageValidator.h: Removed
  149. * src/BtChokeMessage.cc
  150. * src/BtChokeMessage.h
  151. * src/BtExtendedMessage.cc
  152. * src/BtExtendedMessage.h
  153. * src/BtHandshakeMessage.cc
  154. * src/BtHandshakeMessage.h
  155. * src/BtHaveAllMessage.cc
  156. * src/BtHaveAllMessage.h
  157. * src/BtHaveMessage.cc
  158. * src/BtHaveMessage.h
  159. * src/BtHaveMessageValidator.h: Removed
  160. * src/BtHaveNoneMessage.cc
  161. * src/BtHaveNoneMessage.h
  162. * src/BtInterestedMessage.cc
  163. * src/BtInterestedMessage.h
  164. * src/BtKeepAliveMessage.cc
  165. * src/BtKeepAliveMessage.h
  166. * src/BtNotInterestedMessage.cc
  167. * src/BtNotInterestedMessage.h
  168. * src/BtPieceMessage.cc
  169. * src/BtPieceMessage.h
  170. * src/BtPortMessage.cc
  171. * src/BtPortMessage.h
  172. * src/BtRejectMessage.cc
  173. * src/BtRejectMessage.h
  174. * src/BtRejectMessageValidator.h: Removed
  175. * src/BtRequestMessage.cc
  176. * src/BtRequestMessage.h
  177. * src/BtRequestMessageValidator.h: Removed
  178. * src/BtSuggestPieceMessage.cc
  179. * src/BtSuggestPieceMessage.h
  180. * src/BtSuggestPieceMessageValidator.h: Removed
  181. * src/BtUnchokeMessage.cc
  182. * src/BtUnchokeMessage.h
  183. * src/DefaultBtMessageFactory.cc
  184. * src/IndexBtMessage.cc
  185. * src/IndexBtMessage.h
  186. * src/IndexBtMessageValidator.h
  187. * src/Makefile.am
  188. * src/PeerMessageUtil.cc
  189. * src/PeerMessageUtil.h
  190. * src/RangeBtMessage.cc
  191. * src/RangeBtMessage.h
  192. * src/RangeBtMessageValidator.h
  193. * src/SimpleBtMessage.cc
  194. * src/SimpleBtMessage.h
  195. * src/ZeroBtMessage.cc
  196. * src/ZeroBtMessage.h
  197. * test/BtRequestMessageTest.cc
  198. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Reverted usage_text.h to r1093 to avoid to lose translated
  200. messages.
  201. * src/usage_text.h
  202. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  204. declared as non-const previously is now const and defined in class
  205. definition.
  206. * src/AbstractBtMessage.cc
  207. * src/AbstractBtMessage.h
  208. * src/BtAllowedFastMessage.cc
  209. * src/BtAllowedFastMessage.h
  210. * src/BtBitfieldMessage.h
  211. * src/BtCancelMessage.cc
  212. * src/BtCancelMessage.h
  213. * src/BtChokeMessage.cc
  214. * src/BtChokeMessage.h
  215. * src/BtExtendedMessage.cc
  216. * src/BtExtendedMessage.h
  217. * src/BtHandshakeMessage.cc
  218. * src/BtHandshakeMessage.h
  219. * src/BtHaveAllMessage.cc
  220. * src/BtHaveAllMessage.h
  221. * src/BtHaveMessage.cc
  222. * src/BtHaveMessage.h
  223. * src/BtHaveNoneMessage.cc
  224. * src/BtHaveNoneMessage.h
  225. * src/BtInterestedMessage.cc
  226. * src/BtInterestedMessage.h
  227. * src/BtKeepAliveMessage.cc
  228. * src/BtKeepAliveMessage.h
  229. * src/BtMessage.h
  230. * src/BtNotInterestedMessage.cc
  231. * src/BtNotInterestedMessage.h
  232. * src/BtPieceMessage.h
  233. * src/BtPortMessage.cc
  234. * src/BtPortMessage.h
  235. * src/BtRejectMessage.cc
  236. * src/BtRejectMessage.h
  237. * src/BtRequestMessage.cc
  238. * src/BtRequestMessage.h
  239. * src/BtSuggestPieceMessage.cc
  240. * src/BtSuggestPieceMessage.h
  241. * src/BtUnchokeMessage.cc
  242. * src/BtUnchokeMessage.h
  243. * src/SimpleBtMessage.cc
  244. * src/SimpleBtMessage.h
  245. * test/MockBtMessage.h
  246. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Use FileEntry::exists()
  248. * src/MultiDiskAdaptor.cc
  249. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Added exists()
  251. * src/FileEntry.cc
  252. * src/FileEntry.h
  253. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Added missing prefix dir.
  255. * src/download_helper.cc
  256. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Removed --direct-file-mapping option and CopyDiskAdaptor.
  258. * src/CopyDiskAdaptor.cc: Removed
  259. * src/CopyDiskAdaptor.h: Removed
  260. * src/DefaultPieceStorage.cc
  261. * src/Makefile.am
  262. * src/OptionHandlerFactory.cc
  263. * src/prefs.cc
  264. * src/prefs.h
  265. * src/usage_text.h
  266. * test/CopyDiskAdaptorTest.cc: Removed
  267. * test/Makefile.am
  268. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Rewritten isSameFileBeingDownloaded()
  270. * src/RequestGroupMan.cc
  271. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Removed getName() from DownloadContext. getName() is declared in
  273. BtContext.
  274. * src/BtContext.h
  275. * src/DownloadContext.h
  276. * src/SingleFileDownloadContext.cc
  277. * src/SingleFileDownloadContext.h
  278. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  279. in AbstractSingleDiskAdaptor.
  280. * src/AbstractSingleDiskAdaptor.h
  281. * src/DiskAdaptor.h
  282. * src/MultiDiskAdaptor.h
  283. * src/RequestGroup.cc
  284. Removed setTopDir() and getTopDir() and getTopDirPath() from
  285. MultiDiskAdaptor.
  286. * src/DefaultPieceStorage.cc
  287. * src/MultiDiskAdaptor.cc
  288. * src/MultiDiskAdaptor.h
  289. * test/MultiDiskAdaptorTest.cc
  290. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. FileEntry::getPath() contains store(top level) directory to
  292. simplify path handling operation. In the previous implementation,
  293. store directory is concatenated to FileEntry::getPath() in
  294. DownloadContext.
  295. * src/BtDependency.cc
  296. * src/BtPostDownloadHandler.cc
  297. * src/CopyDiskAdaptor.cc
  298. * src/DefaultBtContext.cc
  299. * src/DirectDiskAdaptor.cc
  300. * src/FileEntry.cc
  301. * src/FileEntry.h
  302. * src/FtpNegotiationCommand.cc
  303. * src/HttpResponse.cc
  304. * src/HttpResponseCommand.cc
  305. * src/Metalink2RequestGroup.cc
  306. * src/MultiDiskAdaptor.cc
  307. * src/MultiDiskAdaptor.h
  308. * src/MultiFileAllocationIterator.cc
  309. * src/RequestGroup.cc
  310. * src/SingleFileDownloadContext.cc
  311. * src/SingleFileDownloadContext.h
  312. * src/download_helper.cc
  313. * test/BtDependencyTest.cc
  314. * test/CopyDiskAdaptorTest.cc
  315. * test/DefaultBtContextTest.cc
  316. * test/DefaultBtProgressInfoFileTest.cc
  317. * test/DirectDiskAdaptorTest.cc
  318. * test/DownloadHelperTest.cc
  319. * test/FileEntryTest.cc
  320. * test/MultiDiskAdaptorTest.cc
  321. * test/MultiFileAllocationIteratorTest.cc
  322. * test/RequestGroupTest.cc
  323. * test/SingleFileDownloadContextTest.cc
  324. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Fixed compiler warning
  326. * src/download_helper.cc
  327. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Throw exception if same infohash torrent is now downloading.
  329. * src/RequestGroup.cc
  330. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Added --dry-run option. In this mode, aria2 just checks whether
  332. the remote file is available and doesn't download data. This
  333. option has effect on HTTP/FTP downloads and BitTorrent downloads
  334. are canceled in this mode.
  335. * src/FtpNegotiationCommand.cc
  336. * src/HttpResponseCommand.cc
  337. * src/HttpResponseCommand.h
  338. * src/OptionHandlerFactory.cc
  339. * src/RequestGroup.cc
  340. * src/RequestGroupMan.cc
  341. * src/prefs.cc
  342. * src/prefs.h
  343. * src/usage_text.h
  344. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Fixed compiler waring
  346. * test/UriListParserTest.cc
  347. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Parse options in -i list using OptionParser.
  349. * src/UriListParser.cc
  350. * src/UriListParser.h
  351. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Don't reset URI in retry to avoid additional round trips because
  353. of redirects.
  354. * src/AbstractCommand.cc
  355. * src/OptionHandlerFactory.cc
  356. * src/prefs.cc
  357. * src/prefs.h
  358. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Declared hide() in OptionHandler.
  360. * src/NameMatchOptionHandler.h
  361. * src/OptionHandler.h
  362. * src/OptionHandlerImpl.h
  363. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Updated doc
  365. * src/Peer.h
  366. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Added log message in setStatusInternal()
  368. * src/ServerStat.cc
  369. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Call ServerStat::setError() in AbstractCommand::onAbort() to
  371. effectively exclude failed server.
  372. * src/AbstractCommand.cc
  373. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Added --index-out option to specify each file path for torrent.
  375. Here index shown in --show-files option is used to specify which
  376. file path should be altered. For example, to change the file path
  377. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  378. option multiple times: --index-out=1=aria2.tar.bz2
  379. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  380. available. This option can be specified in -i list.
  381. * src/DefaultBtContext.cc
  382. * src/DefaultBtContext.h
  383. * src/MultiDiskAdaptor.cc
  384. * src/MultiDiskAdaptor.h
  385. * src/MultiFileAllocationIterator.cc
  386. * src/OptionHandlerFactory.cc
  387. * src/OptionHandlerImpl.h
  388. * src/Util.cc
  389. * src/Util.h
  390. * src/download_helper.cc
  391. * src/prefs.cc
  392. * src/prefs.h
  393. * src/usage_text.h
  394. * test/DefaultBtContextTest.cc
  395. * test/MultiDiskAdaptorTest.cc
  396. * test/MultiFileAllocationIteratorTest.cc
  397. * test/UtilTest.cc
  398. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Use Util::pathJoin()
  400. * src/MetalinkParserController.cc
  401. * test/test.xml
  402. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Use Util::pathJoin()
  404. * src/DefaultBtContext.cc
  405. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Added Util::pathJoin()
  407. * src/Util.h
  408. * test/UtilTest.cc
  409. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Applied basename function to remove directory element in
  411. content-disposition value.
  412. Return empty string if content-disposition value is ".." or ".".
  413. * src/Util.cc
  414. * test/UtilTest.cc
  415. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Added --max-overall-download-limit in man page.
  417. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  418. * doc/aria2c.1.txt
  419. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Added --max-overall-download-limit option. Now --max-upload-limit
  421. option is not ignored when --max-overall-upload-limit option has
  422. non-zero value. aria2 checks download(upload) speed in the order:
  423. first checks overall speed limit and if it is not exceeded, then
  424. checks speed limit per download. Thus you can specify both
  425. value. For example, set --max-overall-download-limit=1M and
  426. --max-download-limit=500K to prevent from one download from eating
  427. all overall speed limit.
  428. * src/DefaultBtInteractive.cc
  429. * src/DefaultBtInteractive.h
  430. * src/DefaultBtMessageDispatcher.cc
  431. * src/DefaultBtMessageDispatcher.h
  432. * src/DownloadCommand.cc
  433. * src/DownloadCommand.h
  434. * src/FtpNegotiationCommand.cc
  435. * src/HttpResponseCommand.cc
  436. * src/OptionHandlerFactory.cc
  437. * src/PeerInteractionCommand.cc
  438. * src/RequestGroup.cc
  439. * src/RequestGroup.h
  440. * src/RequestGroupMan.cc
  441. * src/RequestGroupMan.h
  442. * src/prefs.cc
  443. * src/prefs.h
  444. * src/usage_text.h
  445. * test/DefaultBtMessageDispatcherTest.cc
  446. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Documented select-file option in Input File section.
  448. Documented --http-auth-challenge option.
  449. * doc/aria2c.1.txt
  450. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Now select-file can be specified in the uri list(-i list).
  452. * src/BtContext.cc
  453. * src/BtContext.h
  454. * src/RequestGroup.cc
  455. * src/Sequence.h
  456. * src/download_helper.cc
  457. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Made the upper value of --max-concurrent-downloads options unlimited.
  459. * src/OptionHandlerFactory.cc
  460. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Fixed the bug that disk writer is not created even if it shares
  462. same piece with the preceding file if the length of previous file
  463. is 0.
  464. * src/MultiDiskAdaptor.cc
  465. * test/MultiDiskAdaptorTest.cc
  466. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. In BitTorrent, Open files in read-only mode for hash check. After
  468. that, re-open file in read/write mode only when the download is
  469. not finished.
  470. * src/AbstractDiskWriter.cc
  471. * src/AbstractDiskWriter.h
  472. * src/AbstractSingleDiskAdaptor.cc
  473. * src/AbstractSingleDiskAdaptor.h
  474. * src/BtCheckIntegrityEntry.cc
  475. * src/DiskAdaptor.h
  476. * src/DiskWriter.h
  477. * src/MultiDiskAdaptor.cc
  478. * src/MultiDiskAdaptor.h
  479. * src/RequestGroup.cc
  480. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Added --http-auth-challenge option. If it is set to true(by
  482. default), aria2 sends HTTP authorization header only when it is
  483. requested by the server. If false is set, then authorization
  484. header is always sent to the server. This is useful for servers
  485. that don't respond 401 code when authentication is required.
  486. There is an exception: if username and password are embedded in
  487. URI, authorization header is always sent to the server regardless
  488. of this option.
  489. * src/AuthConfigFactory.cc
  490. * src/HttpSkipResponseCommand.cc
  491. * src/OptionHandlerFactory.cc
  492. * src/prefs.cc
  493. * src/prefs.h
  494. * src/usage_text.h
  495. * test/AuthConfigFactoryTest.cc
  496. * test/HttpRequestTest.cc
  497. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. * Release 1.2.0
  499. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Updated Spanish, Ukrainian, Russian and Japanese translations.
  501. Thanks to all translators.
  502. * po/es.po
  503. * po/ja.po
  504. * po/ru.po
  505. * po/uk.po
  506. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Call deleteSocketForReadCheck() before socket is closed.
  508. * src/HttpListenCommand.cc
  509. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Defined virtual destructor for BObject.
  511. * src/bencode.h
  512. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Rewritten BDE to make it efficient.
  514. * src/bencode.cc
  515. * src/bencode.h
  516. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Removed function throw list.
  518. * src/bencode.cc
  519. * src/bencode.h
  520. * test/BencodeTest.cc
  521. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Enclosed all URLs in double quotes in command-line examples.
  523. * doc/aria2c.1.txt
  524. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Updated reference/see also section.
  526. * README
  527. * doc/aria2c.1.txt
  528. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Reorganized man page based on man man-pages.
  530. * doc/aria2c.1.txt
  531. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  533. because same documents are available in man page. Added
  534. References section.
  535. * README
  536. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  538. PERFORMANCE PROFILE section.
  539. * doc/aria2c.1.txt
  540. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Rewritten the section for configuration file.
  542. * README
  543. * doc/aria2c.1.txt
  544. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  545. Fixed the segmentation fault during execution of choking algorithm
  546. in leecher state because of broken compare operator
  547. implementation.
  548. * src/BtLeecherStateChoke.cc
  549. * src/BtLeecherStateChoke.h
  550. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Open file in binary mode.
  552. * src/CookieStorage.cc
  553. * src/DHTSetup.cc
  554. * src/DHTUtil.cc
  555. * src/Netrc.cc
  556. * src/NsCookieParser.cc
  557. * src/ProtocolDetector.cc
  558. * src/RequestGroupMan.cc
  559. * src/Signature.cc
  560. * src/bencode.cc
  561. * src/download_helper.cc
  562. * src/option_processing.cc
  563. * test/CookieParserTest.cc
  564. * test/DefaultBtProgressInfoFileTest.cc
  565. * test/FileTest.cc
  566. * test/GZipDecoderTest.cc
  567. * test/RequestGroupManTest.cc
  568. * test/SignatureTest.cc
  569. * test/SingleFileAllocationIteratorTest.cc
  570. * test/UriListParserTest.cc
  571. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  572. Removed operator[] because it is ambiguous with built-in []
  573. operator.
  574. * src/array_fun.h
  575. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Fixed compile error
  577. * src/OptionParser.cc
  578. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Added missing call to arrayWrapperConst
  580. * test/array_funTest.cc
  581. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Use array_wrapper instead of array_ptr.
  583. * src/DHTRoutingTableDeserializer.cc
  584. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  586. * src/array_fun.h
  587. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Added array_wrapper template.
  589. * src/array_fun.h
  590. * test/array_funTest.cc
  591. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Use operator T* of array_ptr.
  593. * src/OptionParser.cc
  594. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Use localhost instead of 127.0.0.1
  596. * test/FtpConnectionTest.cc
  597. * test/MSEHandshakeTest.cc
  598. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Added operator T*
  600. * src/array_fun.h
  601. * test/array_funTest.cc
  602. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Use dynamically allocated char array to detect memory access
  604. violation.
  605. * src/DHTRoutingTableDeserializer.cc
  606. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  608. defined.
  609. * src/PeerMessageUtil.cc
  610. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  612. * configure.ac
  613. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Added a check to see struct sockaddr_in has sin_len member.
  615. * configure.ac
  616. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Fixed buffer overrun.
  618. * src/DHTRoutingTableDeserializer.cc
  619. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Added LL for long long int constant.
  621. * test/FtpConnectionTest.cc
  622. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Casted to unsigned int to suppress compiler warning on netbsd.
  624. * src/BtRuntime.h
  625. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Assign the value of tv.tv_sec to time_t timesec instead of giving
  627. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  628. type time_t.
  629. * src/SimpleLogger.cc
  630. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Added test for FtpConnection::receiveSizeResponse().
  632. * test/FtpConnectionTest.cc
  633. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Fix epoll error on the old kernel 2.6.8 or ealier.
  635. * src/EpollEventPoll.cc
  636. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. Use Util::parseLLInt instead of sscanf for portability. The
  638. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  639. * src/FtpConnection.cc
  640. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  642. block. It should not filter anything.
  643. * src/BitfieldMan.cc
  644. * src/ConsoleStatCalc.cc
  645. * test/BitfieldManTest.cc
  646. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Fixed the bug that the boolean options that don't take arguments
  648. don't work.
  649. * src/OptionHandlerImpl.h
  650. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Fixed broken selected file BitTorrent download.
  652. * src/MultiDiskAdaptor.cc
  653. * test/MultiDiskAdaptorTest.cc
  654. * test/MultiFileAllocationIteratorTest.cc
  655. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Fixed #define guard for EpollEventPoll
  657. * src/EpollEventPoll.h
  658. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Wait 2 seconds. 1 second is sometimes not enough.
  660. * test/TimeSeedCriteriaTest.cc
  661. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Use localhost instead of 127.0.0.1.
  663. * test/DHTConnectionImplTest.cc
  664. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Suppressed compiler warning.
  666. * src/AdaptiveURISelector.cc
  667. * src/DefaultPieceStorage.cc
  668. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Defined virtual destructor.
  670. * src/MetalinkParserState.h
  671. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Give NULL for second argument of getaddrinfo instead of "0".
  673. * src/NameResolver.cc
  674. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  676. included strptime doesn't parse data for this format.
  677. * src/FtpConnection.cc
  678. * test/FtpConnectionTest.cc
  679. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. Removed tests giving -1 for unsigned argument.
  681. * test/SingleFileDownloadContextTest.cc
  682. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Don't use sha256 in tests because it might not be supported by the
  684. SSL library.
  685. * test/MetalinkProcessorTest.cc
  686. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Removed tests giving -1 for unsigned argument.
  688. * test/AlphaNumberDecoratorTest
  689. * test/BitfieldManTest.cc
  690. * test/DefaultBtContextTest.cc
  691. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Fixed compile error without libcares when epoll is available.
  693. * src/EpollEventPoll.cc
  694. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Included fstream instead of iostream.
  696. * test/SignatureTest.cc
  697. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Removed #include <algorithm>
  699. * test/RequestGroupTest.cc
  700. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  702. using RequestGroup::extractURIResult().
  703. * src/AdaptiveURISelector.cc
  704. * src/RequestGroup.cc
  705. * src/RequestGroup.h
  706. * test/RequestGroupTest.cc
  707. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Added tests for array_ptr.
  709. * test/array_funTest.cc
  710. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Don't send ip parameter to a tracker if ip parameter is empty
  712. string.
  713. * src/DefaultBtAnnounce.cc
  714. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Adjusted line feed.
  716. * src/version_usage.cc
  717. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  718. Print tags, possible values when OptionHandlerException is caught.
  719. * src/option_processing.cc
  720. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Changed the message for FatalException.
  722. * src/OptionParser.cc
  723. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Documented --bt-external-ip option in man page. Updated man pages
  725. for --proxy-method option.
  726. * doc/aria2c.1.txt
  727. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Use GET method for FTP via HTTP proxy.
  729. * src/FtpInitiateConnectionCommand.cc
  730. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Changed the default value of --proxy-method option from 'tunnel'
  732. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  733. option.
  734. * src/AbstractCommand.cc
  735. * src/AbstractCommand.h
  736. * src/FtpInitiateConnectionCommand.cc
  737. * src/HttpDownloadCommand.cc
  738. * src/HttpInitiateConnectionCommand.cc
  739. * src/HttpInitiateConnectionCommand.h
  740. * src/OptionHandlerFactory.cc
  741. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Initialized _logger
  743. * src/SelectEventPoll.cc
  744. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Defined a copy constructor for the same type.
  746. * src/SharedHandle.h
  747. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Added OptionParser::parseArg() which internally uses getopt_long
  749. to parse command-line options. All command-line options are now
  750. configured by OptionHandler. No manual editing of struct option*
  751. is required any more.
  752. * src/NameMatchOptionHandler.h
  753. * src/OptionHandler.h
  754. * src/OptionHandlerFactory.cc
  755. * src/OptionHandlerImpl.h
  756. * src/OptionParser.cc
  757. * src/OptionParser.h
  758. * src/array_fun.h
  759. * src/main.cc
  760. * src/option_processing.cc
  761. * test/OptionHandlerTest.cc
  762. * test/OptionParserTest.cc
  763. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Fixed configure error with --disable-epoll
  765. * configure.ac
  766. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Fixed compile error when HAVE_EPOLL is not defined.
  768. Fixed linker error on bigendian systems.
  769. * src/SocketCore.cc
  770. * src/SocketCore.h
  771. * test/DefaultBtProgressInfoFileTest.cc
  772. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Added --bt-external-ip option. You can specify the external IP
  774. address to report to a BitTorrent tracker. Although this function
  775. is named 'external', it can accept any kind of IP addresses.
  776. * src/DefaultBtAnnounce.cc
  777. * src/OptionHandlerFactory.cc
  778. * src/option_processing.cc
  779. * src/prefs.cc
  780. * src/prefs.h
  781. * src/usage_text.h
  782. * test/DefaultBtAnnounceTest.cc
  783. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Extracted the algorithm to find the longest incremental sequence
  785. as max_sequence template.
  786. * src/LongestSequencePieceSelector.cc
  787. * src/a2algo.h
  788. * test/Makefile.am
  789. * test/a2algoTest.cc
  790. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  792. * src/usage_text.h
  793. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Updated doc for --uri-selector, --http-server-listen-port and
  795. --enable-http-server option. Documented --event-poll option.
  796. * doc/aria2c.1.txt
  797. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Updated doc for --enable-http-server.
  799. * src/usage_text.h
  800. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Documented --http-server-listen-port and --enable-http-server in
  802. man page.
  803. * doc/aria2c.1.txt
  804. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  806. translations. Thanks to all translators.
  807. * po/es.po
  808. * po/id.po
  809. * po/it.po
  810. * po/ru.po
  811. * po/uk.po
  812. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Bump up version number to 1.2.0
  814. * configure.ac
  815. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. BtContext::getAnnounceTiers() now returns const reference.
  817. * src/BtContext.h
  818. * src/DefaultBtContext.cc
  819. * src/DefaultBtContext.h
  820. * test/MockBtContext.h
  821. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Change the number of retries for tracker request based on the
  823. number of available tracker in a torrent file.
  824. * src/TrackerWatcherCommand.cc
  825. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Added _maxTries property to RequestGroup and assign the option
  827. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  828. RequestGroup::getMaxTries() instead of
  829. Option::getAsInt(PREF_MAX_TRIES).
  830. * src/AbstractCommand.cc
  831. * src/RequestGroup.cc
  832. * src/RequestGroup.h
  833. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  835. Mandriva. I modified the patch: make RequestGroup have the
  836. timeout value and AdaptiveURISelector directly modifies that
  837. value.
  838. * src/AbstractCommand.cc
  839. * src/AdaptiveURISelector.cc
  840. * src/AdaptiveURISelector.h
  841. * src/FtpNegotiationCommand.cc
  842. * src/RequestGroup.cc
  843. * src/RequestGroup.h
  844. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Fixed compiler warning
  846. * test/IteratableChecksumValidatorTest.cc
  847. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  849. integrated downloads. This PieceSelector subclass finds the
  850. longest continuous sequence in the available missing pieces and
  851. selects the last index of such sequence. This makes HTTP/FTP
  852. connections less interrupted by the pieces obtained by BitTorrent
  853. peers.
  854. * src/DefaultPieceStorage.cc
  855. * src/DefaultPieceStorage.h
  856. * src/LongestSequencePieceSelector.cc
  857. * src/LongestSequencePieceSelector.h
  858. * src/Makefile.am
  859. * src/PieceSelector.h
  860. * src/RarestPieceSelector.h
  861. * src/RequestGroup.cc
  862. * test/BtDependencyTest.cc
  863. * test/DefaultPieceStorageTest.cc
  864. * test/IteratableChecksumValidatorTest.cc
  865. * test/LongestSequencePieceSelectorTest.cc
  866. * test/Makefile.am
  867. * test/SegmentManTest.cc
  868. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Fixed the bug that the average speed is wrong in
  870. http/ftp/BitTorrent integrated download. Only the download bytes
  871. in BitTorrent were considered.
  872. * src/RequestGroup.cc
  873. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Choose port for BitTorrent/DHT randomly from the specified range.
  875. * src/DHTConnectionImpl.cc
  876. * src/PeerListenCommand.cc
  877. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Send HTTP Authorization header only if it is requested by the
  879. server(response 401). There are some exceptions. The authorization
  880. header for proxy is always sent if it is available without request
  881. by the server. If username/password is specified in the URI, it
  882. is immediately sent to the server without request by the server.
  883. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  884. SharedHandle<AuthConfig>().
  885. NetrcAuthResolver::resolveAuthConfig() returns
  886. SharedHandle<AuthConfig>() if no AuthConfig is available.
  887. * src/AbstractAuthResolver.cc
  888. * src/AbstractProxyRequestCommand.cc
  889. * src/AuthConfigFactory.cc
  890. * src/AuthConfigFactory.h
  891. * src/HttpConnection.cc
  892. * src/HttpRequest.cc
  893. * src/HttpRequest.h
  894. * src/HttpResponse.cc
  895. * src/HttpResponseCommand.cc
  896. * src/HttpSkipResponseCommand.cc
  897. * test/AuthConfigFactoryTest.cc
  898. * test/HttpRequestTest.cc
  899. * test/HttpResponseTest.cc
  900. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Remove leading "--" from help keyword and a substring after "="
  902. from help keyword, so that one can query options by '-h--max-' or
  903. '-hmax-peers=10'.
  904. * src/option_processing.cc
  905. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Rewritten PStringVisitor and its implementation.
  907. * src/PStringBuildVisitor.cc
  908. * src/PStringBuildVisitor.h
  909. * src/PStringDatum.h
  910. * src/PStringNumLoop.h
  911. * src/PStringSegment.cc
  912. * src/PStringSegment.h
  913. * src/PStringSelect.h
  914. * src/PStringVisitor.h
  915. * src/download_helper.cc
  916. * test/PStringBuildVisitorTest.cc
  917. * test/ParameterizedStringParserTest.cc
  918. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Persist connection between the built-in HTTP server and a client
  920. if a client supports keep-alive. Fixed the bug that aria2 exits
  921. when the HTTP server receives EOF from a client.
  922. * src/HttpServer.cc
  923. * src/HttpServer.h
  924. * src/HttpServerCommand.cc
  925. * src/HttpServerCommand.h
  926. * src/HttpServerResponseCommand.cc
  927. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Added experimental built-in HTTP server. Currently, when a client
  929. accesses to the server, it responds with the current download
  930. progress. By default, it is disabled. To enable the server, give
  931. --enable-http-server option. To change the default port number
  932. for the server to listen to, use --http-server-listen-port option.
  933. The response HTML is very simple and refreshes it self each 1
  934. second. Because of this refresh, you see flicker in normal web
  935. browser such as Firefox. I recommend to use console-based browser
  936. such as elinks, w3m. To connect to the server, run 'elinks
  937. http://localhost:6800/' while running aria2. Please replace port
  938. number '6800'(which is default) with your preference.
  939. * src/DownloadEngineFactory.cc
  940. * src/HttpHeader.cc
  941. * src/HttpHeader.h
  942. * src/HttpHeaderProcessor.cc
  943. * src/HttpHeaderProcessor.h
  944. * src/HttpListenCommand.cc
  945. * src/HttpListenCommand.h
  946. * src/HttpServer.cc
  947. * src/HttpServer.h
  948. * src/HttpServerCommand.cc
  949. * src/HttpServerCommand.h
  950. * src/HttpServerResponseCommand.cc
  951. * src/HttpServerResponseCommand.h
  952. * src/Makefile.am
  953. * src/OptionHandlerFactory.cc
  954. * src/Util.cc
  955. * src/Util.h
  956. * src/help_tags.h
  957. * src/option_processing.cc
  958. * src/prefs.cc
  959. * src/prefs.h
  960. * src/usage_text.h
  961. * test/HttpHeaderProcessorTest.cc
  962. * test/UtilTest.cc
  963. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Removed.
  965. * src/CheckIntegrityMan.cc
  966. * src/FileAllocationMan.cc
  967. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Made (piece) hash check sequential for each RequestGroup because
  969. simultaneous hash check is slower than sequential execution.
  970. * src/CheckIntegrityCommand.cc
  971. * src/CheckIntegrityDispatcherCommand.cc
  972. * src/CheckIntegrityDispatcherCommand.h
  973. * src/CheckIntegrityMan.h
  974. * src/ConsoleStatCalc.cc
  975. * src/DownloadCommand.cc
  976. * src/DownloadEngine.cc
  977. * src/DownloadEngine.h
  978. * src/DownloadEngineFactory.cc
  979. * src/Makefile.am
  980. * src/Makefile.in
  981. * src/RequestGroup.cc
  982. * src/StatCalc.h
  983. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  985. SequentialDispatcherCommand.
  986. * src/FileAllocationDispatcherCommand.cc
  987. * src/SequentialDispatcherCommand.h
  988. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Rewritten FileAllocationDispatcherCommand using brand new
  990. SequentialDispatcherCommand.
  991. * src/DownloadEngineFactory.cc
  992. * src/FileAllocationCommand.cc
  993. * src/FileAllocationDispatcherCommand.cc
  994. * src/FileAllocationDispatcherCommand.h
  995. * src/Makefile.am
  996. * src/SequentialDispatcherCommand.h
  997. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Replaced FileAllocationMan with
  999. SequentialPicker<FileAllocationEntry>.
  1000. * src/BtCheckIntegrityEntry.cc
  1001. * src/ConsoleStatCalc.cc
  1002. * src/DownloadEngine.cc
  1003. * src/DownloadEngine.h
  1004. * src/DownloadEngineFactory.cc
  1005. * src/FileAllocationCommand.cc
  1006. * src/FileAllocationDispatcherCommand.cc
  1007. * src/FileAllocationMan.h
  1008. * src/Makefile.am
  1009. * src/SequentialPicker.h
  1010. * src/StatCalc.h
  1011. * src/StreamCheckIntegrityEntry.cc
  1012. * test/Makefile.am
  1013. * test/SequentialPickerTest.cc
  1014. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Added doc for adaptive URI selector.
  1016. * doc/aria2c.1.txt
  1017. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Added doc for adaptive URI selector.
  1019. * src/usage_text.h
  1020. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Added doc for --bt-max-peers option.
  1022. * doc/aria2c.1.txt
  1023. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Added doc for --bt-hash-check-seed option.
  1025. * doc/aria2c.1.txt
  1026. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Documented exit codes.
  1028. * doc/aria2c.1.txt
  1029. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Added --bt-max-peers option to specify the maximum number of peers
  1031. per torrent. 0 means unlimited number of peers.
  1032. * src/ActivePeerConnectionCommand.cc
  1033. * src/BtRuntime.h
  1034. * src/DefaultPeerStorage.cc
  1035. * src/DefaultPeerStorage.h
  1036. * src/OptionHandlerFactory.cc
  1037. * src/RequestGroup.cc
  1038. * src/option_processing.cc
  1039. * src/prefs.cc
  1040. * src/prefs.h
  1041. * src/usage_text.h
  1042. * test/DefaultPeerStorageTest.cc
  1043. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Added --bt-hash-check-seed option. If true is given to this
  1045. option, after hash check using --check-integrity option and file
  1046. is complete, continue to seed file. If you want to check file and
  1047. download it only when it is damaged or incomplete, set this option
  1048. to false. This option has effect only on BitTorrent download.
  1049. The default value is true(This is the same behavior with the
  1050. previous release).
  1051. * src/BtCheckIntegrityEntry.cc
  1052. * src/OptionHandlerFactory.cc
  1053. * src/option_processing.cc
  1054. * src/prefs.cc
  1055. * src/prefs.h
  1056. * src/usage_text.h
  1057. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Updated copyright year.
  1059. * src/version_usage.cc
  1060. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1062. * doc/aria2c.1.txt
  1063. * src/usage_text.h
  1064. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Made the max value of split option unlimited.
  1066. * doc/aria2c.1.txt
  1067. * src/OptionHandlerFactory.cc
  1068. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Fixed compile warning/error.
  1070. * src/DownloadResult.h
  1071. * src/HttpDownloadCommand.cc
  1072. * src/ServerStat.cc
  1073. * test/RequestGroupTest.cc
  1074. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Added --event-poll option to select the method for polling events.
  1076. The available methods are "select" and "epoll". "epoll" is
  1077. available on Linux only. The earlier release has the compile
  1078. option to choose from these methods.
  1079. * configure.ac
  1080. * src/RequestGroupMan.cc
  1081. * src/OptionHandlerFactory.cc
  1082. * src/EpollEventPoll.h
  1083. * src/StreamFileAllocationEntry.cc
  1084. * src/a2io.h
  1085. * src/SelectEventPoll.h
  1086. * src/option_processing.cc
  1087. * src/prefs.h
  1088. * src/EpollEventPoll.cc
  1089. * src/EventPoll.h
  1090. * src/SocketCore.h
  1091. * src/Makefile.am
  1092. * src/main.cc
  1093. * src/DownloadEngine.h
  1094. * src/SelectEventPoll.cc
  1095. * src/DownloadEngine.cc
  1096. * src/SocketCore.cc
  1097. * src/DownloadEngineFactory.cc
  1098. * src/Makefile.in
  1099. * src/prefs.cc
  1100. * src/usage_text.h
  1101. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Included RecoverableException.h from main.cc
  1103. * src/main.cc
  1104. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1106. now returns last error encountered in the HTTP/FTP downloads as a
  1107. exit status value. If all downloads finished successfully, aria2
  1108. returns 0. The error code is defined in src/DownloadResult.h.
  1109. The error occurred in the download currently in progress is not
  1110. reported as a last error. If no error has encountered but there
  1111. are in progress or waiting downloads, aria2 returns 7.
  1112. * src/AbstractCommand.cc
  1113. * src/DlAbortEx.h
  1114. * src/DlRetryEx.h
  1115. * src/DownloadCommand.cc
  1116. * src/DownloadFailureException.h
  1117. * src/DownloadResult.h
  1118. * src/FtpNegotiationCommand.cc
  1119. * src/HttpSkipResponseCommand.cc
  1120. * src/Makefile.am
  1121. * src/MultiUrlRequestInfo.cc
  1122. * src/MultiUrlRequestInfo.h
  1123. * src/RecoverableException.h
  1124. * src/RequestGroup.cc
  1125. * src/RequestGroup.h
  1126. * src/RequestGroupMan.cc
  1127. * src/RequestGroupMan.h
  1128. * src/URIResult.cc
  1129. * src/URIResult.h
  1130. * src/main.cc
  1131. * src/option_processing.cc
  1132. * test/RequestGroupTest.cc
  1133. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1135. patch adds AdaptiveURISelector, which selects one of the bests
  1136. mirrors for first and reserved connections. For supplementary
  1137. ones, it returns mirrors which has not been tested yet, and if
  1138. each of them already tested, returns mirrors which has to be
  1139. tested again. Otherwise, it doesn't return anymore mirrors.
  1140. * src/AdaptiveURISelector.cc
  1141. * src/AdaptiveURISelector.h
  1142. * src/FtpNegotiationCommand.cc
  1143. * src/HttpResponseCommand.cc
  1144. * src/Makefile.am
  1145. * src/Makefile.in
  1146. * src/OptionHandlerFactory.cc
  1147. * src/RequestGroup.cc
  1148. * src/RequestGroup.h
  1149. * src/RequestGroupMan.cc
  1150. * src/ServerStat.cc
  1151. * src/ServerStat.h
  1152. * src/ServerStatMan.cc
  1153. * src/SpeedCalc.cc
  1154. * src/URISelector.h
  1155. * src/prefs.cc
  1156. * src/prefs.h
  1157. * test/RequestGroupManTest.cc
  1158. * test/ServerStatManTest.cc
  1159. * test/ServerStatTest.cc
  1160. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Fixed unit test error.
  1162. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1163. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. * Release 1.1.2
  1165. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Updated Russian translation. Thanks to the translators.
  1167. * po/ru.po
  1168. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Added the description of --use-head option to man page.
  1170. * doc/aria2c.1.txt
  1171. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Bump up version number to 1.1.2
  1173. * configure.ac
  1174. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Added --use-head option to toggle whether HEAD method should be
  1176. used in the first HTTP request. By default aria2 uses HEAD method
  1177. as the first request. When the server doesn't recognize HEAD, then
  1178. give aria2 --use-head=false to force aria2 to use GET method
  1179. instead.
  1180. * src/OptionHandlerFactory.cc
  1181. * src/RequestGroupMan.cc
  1182. * src/option_processing.cc
  1183. * src/prefs.cc
  1184. * src/prefs.h
  1185. * src/usage_text.h
  1186. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1188. message is received before CHOKE message. The old implementation
  1189. doen't clear the use-bit of the piece when recieved REJECT
  1190. message.
  1191. * src/DefaultBtMessageDispatcher.cc
  1192. * test/DefaultBtMessageDispatcherTest.cc
  1193. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. * Release 1.1.1
  1195. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Bump up version number to 1.1.1.
  1197. * configure.ac
  1198. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1200. is printed repeatedly.
  1201. * src/ConsoleStatCalc.cc
  1202. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. * Release 1.1.0
  1204. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Added ifdef clause for conditional compilation.
  1206. * src/main.cc
  1207. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1209. translations. Thanks to all translators.
  1210. * po/ja.po
  1211. * po/ru.po
  1212. * po/uk.po
  1213. * po/zh_CN.po
  1214. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Added the preceding ">>> " before the message "Printing the
  1216. contents of file..." to make the output more readable.
  1217. * src/main.cc
  1218. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Added try-catch block in the loop in showFiles() to continue the
  1220. operation even if the exception occurred in one file.
  1221. * src/main.cc (showFiles)
  1222. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. Made messages in showFiles() translatable.
  1224. * po/aria2.pot
  1225. * src/main.cc
  1226. * src/message.h
  1227. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Print the contents of Torrent/Metalink files are printed without
  1229. -T/-M options.
  1230. * src/main.cc
  1231. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Escaped '--' with '\--'
  1233. * README
  1234. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Updated "How to build" section in README. Mentioned about
  1236. --with-ca-bundle compile option.
  1237. * README
  1238. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Bump up version number to 1.1.0.
  1240. * configure.ac
  1241. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Added a note for --dht-listen-port option.
  1243. * doc/aria2c.1.txt
  1244. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Update doc for --realtime-chunk-checksum option.
  1246. * doc/aria2c.1.txt
  1247. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Update doc for --realtime-chunk-checksum option.
  1249. * src/usage_text.h
  1250. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Updated French, Japanese, Russian and Ukrainian translations.
  1252. Thanks to all translators.
  1253. * po/fr.po
  1254. * po/ja.po
  1255. * po/ru.po
  1256. * po/uk.po
  1257. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Renamed aria2c.pot to aria2.pot
  1259. * po/aria2.pot
  1260. * po/aria2c.pot: Removed.
  1261. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Removed MetaEntry.h
  1263. * src/Makefile.am
  1264. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Rename file by appending digits if a local file exists and its
  1266. file size is larger than that of remote file with --continue
  1267. option. The old implementation just throws exception in such case.
  1268. * src/RequestGroup.cc
  1269. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Fixed the bug that download progress summary is not printed in the
  1271. interval specified by the option.
  1272. * src/ConsoleStatCalc.cc
  1273. * src/ConsoleStatCalc.h
  1274. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Fixed compiler warning
  1276. * src/Cookie.cc
  1277. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Fixed the cookie implementation based on RFC2965.
  1279. Now if a value in domain field is not started with dot, then
  1280. prepend dot. That means a cookie with domain=sf.net is sent to
  1281. wiki.sf.net.
  1282. * src/Cookie.cc
  1283. * test/CookieParserTest.cc
  1284. * test/CookieStorageTest.cc
  1285. * test/CookieTest.cc
  1286. * test/NsCookieParserTest.cc
  1287. * test/Sqlite3MozCookieParserTest.cc
  1288. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1290. is enabled and the server doesn't support keep-alive.
  1291. * src/AbstractCommand.cc
  1292. * src/DownloadCommand.cc
  1293. * src/HttpDownloadCommand.cc
  1294. * src/HttpDownloadCommand.h
  1295. * src/HttpResponseCommand.cc
  1296. * src/Request.cc
  1297. * src/Request.h
  1298. * test/RequestTest.cc
  1299. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Removed Dictionary/List/Data and its related classes.
  1301. * src/BencodeVisitor.cc: Removed.
  1302. * src/BencodeVisitor.h: Removed.
  1303. * src/Data.cc: Removed.
  1304. * src/Data.h: Removed.
  1305. * src/Dictionary.cc: Removed.
  1306. * src/Dictionary.h: Removed.
  1307. * src/List.cc: Removed.
  1308. * src/List.h: Removed.
  1309. * src/Makefile.am
  1310. * src/MetaEntry.h: Removed.
  1311. * src/MetaEntryVisitor.h: Removed.
  1312. * src/MetaFileUtil.cc: Removed.
  1313. * src/MetaFileUtil.h: Removed.
  1314. * test/BencodeVisitorTest.cc: Removed.
  1315. * test/DataTest.cc: Removed.
  1316. * test/DictionaryTest.cc: Removed.
  1317. * test/ListTest.cc: Removed.
  1318. * test/Makefile.am
  1319. * test/MetaFileUtilTest.cc: Removed.
  1320. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Removed include of MetaEntry.h
  1322. * test/DHTMessageTrackerEntryTest.cc
  1323. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Use BDE instead of Dictionary/List/Data.
  1325. * src/AnnounceList.cc
  1326. * src/AnnounceList.h
  1327. * test/AnnounceListTest.cc
  1328. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Use BDE instead of Dictionary/List/Data.
  1330. * src/DHTAbstractMessage.cc
  1331. * src/DHTAbstractMessage.h
  1332. * src/DHTAnnouncePeerMessage.cc
  1333. * src/DHTAnnouncePeerMessage.h
  1334. * src/DHTAnnouncePeerReplyMessage.cc
  1335. * src/DHTAnnouncePeerReplyMessage.h
  1336. * src/DHTFindNodeMessage.cc
  1337. * src/DHTFindNodeMessage.h
  1338. * src/DHTFindNodeReplyMessage.cc
  1339. * src/DHTFindNodeReplyMessage.h
  1340. * src/DHTGetPeersMessage.cc
  1341. * src/DHTGetPeersMessage.h
  1342. * src/DHTGetPeersReplyMessage.cc
  1343. * src/DHTGetPeersReplyMessage.h
  1344. * src/DHTMessageFactory.h
  1345. * src/DHTMessageFactoryImpl.cc
  1346. * src/DHTMessageFactoryImpl.h
  1347. * src/DHTMessageReceiver.cc
  1348. * src/DHTMessageTracker.cc
  1349. * src/DHTMessageTracker.h
  1350. * src/DHTPingMessage.cc
  1351. * src/DHTPingMessage.h
  1352. * src/DHTPingReplyMessage.cc
  1353. * src/DHTPingReplyMessage.h
  1354. * src/DHTQueryMessage.cc
  1355. * src/DHTQueryMessage.h
  1356. * src/DHTResponseMessage.cc
  1357. * src/DHTResponseMessage.h
  1358. * test/DHTAnnouncePeerMessageTest.cc
  1359. * test/DHTAnnouncePeerReplyMessageTest.cc
  1360. * test/DHTFindNodeMessageTest.cc
  1361. * test/DHTFindNodeReplyMessageTest.cc
  1362. * test/DHTGetPeersMessageTest.cc
  1363. * test/DHTGetPeersReplyMessageTest.cc
  1364. * test/DHTMessageFactoryImplTest.cc
  1365. * test/DHTMessageTrackerTest.cc
  1366. * test/DHTPingMessageTest.cc
  1367. * test/DHTPingReplyMessageTest.cc
  1368. * test/MockDHTMessageFactory.h
  1369. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Added tests the case where length < 0 is specified.
  1371. * test/BencodeTest.cc
  1372. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Fixed memory leak in decoderawstring()
  1374. * src/bencode.cc
  1375. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Added missing #ifdef guard. Added uc() function for String and
  1377. removeKey() for Dict.
  1378. * src/bencode.cc
  1379. * src/bencode.h
  1380. * test/BencodeTest.cc
  1381. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Use BDE instead of Dictionary/List/Data.
  1383. * src/HandshakeExtensionMessage.cc
  1384. * src/HandshakeExtensionMessage.h
  1385. * test/HandshakeExtensionMessageTest.cc
  1386. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Added --max-overall-upload-limit option. This option limits the
  1388. overall upload speed. Stated in help message that the existing
  1389. --max-upload-limit option limits the upload speed per each
  1390. torrent. Man page is also updated.
  1391. * doc/aria2c.1.txt
  1392. * src/DefaultBtMessageDispatcher.cc
  1393. * src/DefaultBtMessageDispatcher.h
  1394. * src/OptionHandlerFactory.cc
  1395. * src/PeerInteractionCommand.cc
  1396. * src/option_processing.cc
  1397. * src/prefs.cc
  1398. * src/prefs.h
  1399. * src/usage_text.h
  1400. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Use BDE instead of Dictionary/List/Data classes.
  1402. * src/CompactPeerListProcessor.cc
  1403. * src/CompactPeerListProcessor.h
  1404. * src/DefaultBtAnnounce.cc
  1405. * src/DefaultBtContext.cc
  1406. * src/DefaultBtContext.h
  1407. * src/DefaultPeerListProcessor.cc
  1408. * src/DefaultPeerListProcessor.h
  1409. * src/DelegatingPeerListProcessor.cc
  1410. * src/DelegatingPeerListProcessor.h
  1411. * src/PeerListProcessor.h
  1412. * src/UTPexExtensionMessage.cc
  1413. * src/Util.h
  1414. * src/message.h
  1415. * test/DefaultBtContextTest.cc
  1416. * test/DefaultPeerListProcessorTest.cc
  1417. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Added bencode helper functions and BDE class.
  1419. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1420. * src/Makefile.am
  1421. * src/bencode.cc
  1422. * src/bencode.h
  1423. * test/BencodeTest.cc
  1424. * test/Makefile.am
  1425. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Fixed the bug that bad URI is sent to the tracker when the announe
  1427. URI in torrent file includes query.
  1428. * src/DefaultBtAnnounce.cc
  1429. * test/DefaultBtAnnounceTest.cc
  1430. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Added Option::blank().
  1432. Use !Option::blank(name) instead of Option::defined(name) for
  1433. the options that take filename.
  1434. * src/MultiUrlRequestInfo.cc
  1435. * src/Option.cc
  1436. * src/Option.h
  1437. * src/main.cc
  1438. * src/option_processing.cc
  1439. * test/OptionTest.cc
  1440. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Documented the default value of --check-certificate option in man
  1442. page.
  1443. * doc/aria2c.1.txt
  1444. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Enabled --check-certificate by default. Added compile
  1446. time(configure) option --with-ca-bundle to specify CA bundle.
  1447. Warn if --check-certificate=true and --ca-certificate is not
  1448. specified or loading CA certificate is failed.
  1449. * configure.ac
  1450. * src/MultiUrlRequestInfo.cc
  1451. * src/OptionHandlerFactory.cc
  1452. * src/message.h
  1453. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Mentioned https tag in help option.
  1455. * doc/aria2c.1.txt
  1456. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Added `https' tag to help option category. Added https tag to
  1458. --ca-certificate, --certificate, --check-certificate and
  1459. --private-key option.
  1460. * src/OptionHandlerFactory.cc
  1461. * src/help_tags.h
  1462. * src/option_processing.cc
  1463. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Changed the package name from `aria2c' to `aria2' in order to fix
  1465. the packaging issue in Debian and Fedora. The name of the
  1466. executable is not changed.
  1467. * configure.ac
  1468. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Fixed typos
  1470. * src/usage_text.h
  1471. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Fixed typos and updated doc.
  1473. * README
  1474. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Fixed typos
  1476. * doc/aria2c.1.txt
  1477. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Fixed typos
  1479. * src/usage_text.h
  1480. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Print a message when no files to download.
  1482. * src/download_helper.cc
  1483. * src/main.cc
  1484. * src/message.h
  1485. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. RFC3986 complied Percent-Encoding(urlencode).
  1487. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1488. ones.
  1489. * src/Request.cc
  1490. * src/Util.cc
  1491. * src/Util.h
  1492. * test/BtHandshakeMessageTest.cc
  1493. * test/DefaultBtAnnounceTest.cc
  1494. * test/DefaultBtContextTest.cc
  1495. * test/RequestTest.cc
  1496. * test/UtilTest.cc
  1497. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Fixed the bug that prevents aria2 from downloading 0-length files
  1499. via HTTP/FTP.
  1500. * src/DefaultBtContext.cc
  1501. * src/DefaultBtContext.h
  1502. * src/DownloadContext.h
  1503. * src/FtpNegotiationCommand.cc
  1504. * src/HttpResponseCommand.cc
  1505. * src/HttpResponseCommand.h
  1506. * src/RequestGroup.cc
  1507. * src/SingleFileDownloadContext.cc
  1508. * src/SingleFileDownloadContext.h
  1509. * test/BtPostDownloadHandlerTest.cc
  1510. * test/MetalinkPostDownloadHandlerTest.cc
  1511. * test/MockBtContext.h
  1512. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1514. * src/option_processing.cc
  1515. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Applied aria2-1.0.1-mingw.patch.
  1517. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1518. mingw.
  1519. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1520. * src/SocketCore.cc
  1521. * src/a2netcompat.h
  1522. * test/SocketCoreTest.cc
  1523. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. * Release 1.0.1
  1525. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Updated Ukrainian and Norwegian Nynorsk translations.
  1527. Thanks to all translators.
  1528. * po/nn.po
  1529. * po/uk.po
  1530. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Don't show download result when -S option is used.
  1532. * src/main.cc
  1533. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Bump up version number to 1.0.1
  1535. * configure.ac
  1536. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Closed files after the test cases in MultiDiskWriterTest::
  1538. testResetDiskWriterEntries(). This will fix the unit test error
  1539. in mingw32 build.
  1540. * test/MultiDiskWriterTest.cc
  1541. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Use HEAD method to get file size from HTTP server for segmented
  1543. downloading.
  1544. The request to the BitTorrent Tracker always uses GET method because
  1545. the response of the tracker is small and it doesn't need segmented
  1546. download.
  1547. * src/FtpNegotiationCommand.cc
  1548. * src/HttpRequest.cc
  1549. * src/HttpResponseCommand.cc
  1550. * src/HttpSkipResponseCommand.cc
  1551. * src/RequestGroup.cc
  1552. * src/RequestGroup.h
  1553. * src/TrackerWatcherCommand.cc
  1554. * test/HttpRequestTest.cc
  1555. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Fixed the bug that causes floating exception when -T option is used and
  1557. no URIs are given.
  1558. * src/download_helper.cc
  1559. * test/DownloadHelperTest.cc
  1560. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1561. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1562. errors in MinGW:
  1563. Closed file after saving server stats (RequestGroupMan.cc)
  1564. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1565. Ignored case & handled 2-digit years (strptime.c)
  1566. Added missing suseconds_t definition (a2time.h)
  1567. Fixed socket CLOSE() define (SocketCore.cc)
  1568. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1569. Changed utime() test values from x000 to x00000 as MinGW failed on
  1570. values less than timezone offset from Unix epoch
  1571. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1572. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1573. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1574. handle negative dates (CookieParserTest.cc)
  1575. * src/a2time.h
  1576. * src/FtpConnection.cc
  1577. * src/RequestGroupMan.cc
  1578. * src/SocketCore.cc
  1579. * src/strptime.c
  1580. * test/CookieParserTest.cc
  1581. * test/CopyDiskAdaptorTest.cc
  1582. * test/FileTest.cc
  1583. * test/FtpConnectionTest.cc
  1584. * test/MultiDiskAdaptorTest.cc
  1585. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1586. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1587. * doc/aria2c.1.txt
  1588. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. * Release 1.0.0
  1590. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Added '~' to reserved characters.
  1592. * src/Util.cc
  1593. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Do not urlencode Request::url in setUrl() because we want unmodified
  1595. URL using Request::getUrl()
  1596. * src/Request.cc
  1597. * src/Request.h
  1598. * test/RequestTest.cc
  1599. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1601. Thanks to all translators.
  1602. * po/bg.po
  1603. * po/fr.po
  1604. * po/ja.po
  1605. * po/ru.po
  1606. * po/uk.po
  1607. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Bump up version number to 1.0.0
  1609. * configure.ac
  1610. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Added nosqlite3 build to build_test.sh.
  1612. Renamed noxml as expat.
  1613. * build_test.sh
  1614. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Updated INPUT FILE section.
  1616. * doc/aria2c.1.txt
  1617. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1619. on big endian systems because test .aria2 files are made for little
  1620. endian systems.
  1621. * test/DefaultBtProgressInfoFileTest.cc
  1622. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Dropped ares support.
  1624. * README
  1625. * configure.ac
  1626. * m4/libares.m4: Removed.
  1627. * src/AsyncNameResolver.cc
  1628. * src/Makefile.am
  1629. * test/Makefile.am
  1630. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1632. Removed const qualifier from DiskWriter::size().
  1633. * src/AbstractDiskWriter.cc
  1634. * src/AbstractDiskWriter.h
  1635. * src/ByteArrayDiskWriter.cc
  1636. * src/ByteArrayDiskWriter.h
  1637. * src/DiskWriter.h
  1638. * test/ByteArrayDiskWriterTest.cc
  1639. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Fixed the bug that causes segmentation fault/bus error during executing
  1641. choking algorithm while seeding. This is caused by improper
  1642. implementation of compare function which returns inconsistent results
  1643. depending on the timing of last unchoke.
  1644. * src/BtSeederStateChoke.cc
  1645. * src/BtSeederStateChoke.h
  1646. * src/DefaultPeerStorage.cc
  1647. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Removed TODO
  1649. * TODO
  1650. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Added a section that explains how to pass argument to options that
  1652. takes optional arguments with its short form.
  1653. * doc/aria2c.1.txt
  1654. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Added -u for the short form of --max-upload-limit option.
  1656. * doc/aria2c.1.txt
  1657. * src/option_processing.cc
  1658. * src/usage_text.h
  1659. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Added -V for the short form of --check-integrity option.
  1661. Now the argument of --check-integrity option is optional:
  1662. if it is omitted, it is evaluated as true.
  1663. * doc/aria2c.1.txt
  1664. * src/option_processing.cc
  1665. * src/usage_text.h
  1666. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Made the default value of --ftp-pasv option set to true and it can take
  1668. true/false values.
  1669. * src/OptionHandlerFactory.cc
  1670. * src/option_processing.cc
  1671. * src/usage_text.h
  1672. * doc/aria2c.1.txt
  1673. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Given custom random number generator to std::random_shuffle.
  1675. * src/AnnounceList.cc
  1676. * src/BtLeecherStateChoke.cc
  1677. * src/BtSeederStateChoke.cc
  1678. * src/DefaultBtRequestFactory.cc
  1679. * src/MetalinkEntry.cc
  1680. * src/RarestPieceSelector.cc
  1681. * src/SimpleRandomizer.cc
  1682. * src/SimpleRandomizer.h
  1683. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Now the default value of --enable-direct-io is true.
  1685. * src/OptionHandlerFactory.cc
  1686. * doc/aria2c.1.txt
  1687. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Erase peer before executing onReturningPeer and onErasingPeer
  1689. because choking algorithm called from onReturningPeer doesn't
  1690. like erasing peer in the active peer list.
  1691. * src/DefaultPeerStorage.cc
  1692. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Instead of creating special filename in createDownloadResult() if
  1694. inMemoryDownload() is true, now it is done in getFilePath().
  1695. * src/RequestGroup.cc
  1696. * test/RequestGroupTest.cc
  1697. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1699. processed in memory. This is the fix for previous comment out.
  1700. * src/MemoryBufferPreDownloadHandler.cc
  1701. * src/RequestGroup.cc
  1702. * src/RequestGroup.h
  1703. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Commented out the code which sets virtual directory path "[MEMORY]"
  1705. propagate directory to store to following RequestGroup.
  1706. * src/MemoryBufferPreDownloadHandler.cc
  1707. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Bump up version number to 1.0.0b
  1709. * configure.ac
  1710. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Added input_uris.txt to EXTRA_DIST
  1712. * test/Makefile.am
  1713. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Removed PeerObject.h from Makefile.am
  1715. * src/Makefile.am
  1716. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Avoid slow seeding
  1718. * src/PeerInteractionCommand.cc
  1719. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Updated usage for -i option.
  1721. * src/usage_text.h (TEXT_INPUT_FILE)
  1722. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Added INPUT FILE section to man page.
  1724. Escaped fake URLs.
  1725. * doc/aria2c.1.txt
  1726. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Fixed wrong note position for -o option.
  1728. * doc/aria2c.1.txt
  1729. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Fixed compile error without SSL/XML library.
  1731. * src/DefaultBtProgressInfoFile.cc
  1732. * src/DefaultBtProgressInfoFile.h
  1733. * src/FileMetalinkParserState.cc
  1734. * src/RequestGroup.h
  1735. * src/SocketCore.cc
  1736. * src/SocketCore.h
  1737. * src/VerificationMetalinkParserState.cc
  1738. * src/download_helper.h
  1739. * src/main.cc
  1740. * test/DefaultBtProgressInfoFileTest.cc
  1741. * test/DownloadHelperTest.cc
  1742. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Rewritten URI handling functions. They are now provided as a testable
  1744. functions.
  1745. * src/Makefile.am
  1746. * src/RequestGroup.cc
  1747. * src/RequestGroup.h
  1748. * src/download_helper.cc
  1749. * src/download_helper.h
  1750. * src/main.cc
  1751. * test/DownloadHelperTest.cc
  1752. * test/Makefile.am
  1753. * test/input_uris.txt
  1754. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Quickly terminate commands when ctrl-c is pressed.
  1756. * src/DownloadEngine.cc
  1757. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Quickly terminate idle commands when download finished.
  1759. * src/AbstractCommand.cc
  1760. * src/DownloadCommand.cc
  1761. * src/DownloadEngine.cc
  1762. * src/DownloadEngine.h
  1763. * src/SleepCommand.cc
  1764. * src/SleepCommand.h
  1765. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Added the ability to specify output filename and directory in input
  1767. file.
  1768. Additional parameters are added in the following line of URIs
  1769. with proceeding white space(s), 1 parameter in 1 line.
  1770. The parameter names are the same with the command-line option name
  1771. without proceeding "--". Not all the options are available here:
  1772. at the moment, 'dir' and 'out' options are avialable.
  1773. Please note that out option has no effect against Metalink or BitTorrent
  1774. downloads.
  1775. Example input file:
  1776. http://host/foo-1.1.tar.bz2
  1777. out=foo.tar.bz2
  1778. dir=/tmp/downloads
  1779. http://host/thundermonkey-2.0.tar.bz2
  1780. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1781. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1782. thundermonkey-2.0.tar.bz2 is saved as
  1783. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1784. * src/BtPostDownloadHandler.cc
  1785. * src/Metalink2RequestGroup.cc
  1786. * src/Metalink2RequestGroup.h
  1787. * src/MetalinkPostDownloadHandler.cc
  1788. * src/UriListParser.cc
  1789. * src/UriListParser.h
  1790. * src/main.cc
  1791. * test/Metalink2RequestGroupTest.cc
  1792. * test/UriListParserTest.cc
  1793. * test/filelist1.txt
  1794. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Fixed error when SSL library is not found.
  1796. * configure.ac
  1797. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Cross referenced among -s, -C and -j options.
  1799. Updated usage of -C and -s options.
  1800. * src/usage_text.h
  1801. * doc/aria2c.1.txt
  1802. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Fixed bad cast in 32bit platforms.
  1804. * test/DefaultPieceStorageTest.cc
  1805. (DefaultPieceStorageTest::testGetCompletedLength)
  1806. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Fixed unit test fails on 32bit platforms.
  1808. * test/CookieParserTest.cc
  1809. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Show an average download speed in Download results.
  1811. * src/BtFileAllocationEntry.cc
  1812. * src/DefaultPieceStorage.cc
  1813. * src/DownloadContext.cc
  1814. * src/DownloadContext.h
  1815. * src/DownloadResult.h
  1816. * src/RequestGroup.cc
  1817. * src/RequestGroupMan.cc
  1818. * src/StreamFileAllocationEntry.cc
  1819. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Fixed the bug that metalink file is not processed if Content-Type
  1821. field has a paramter.
  1822. * src/HttpResponse.cc
  1823. * src/HttpResponse.h
  1824. * test/HttpResponseTest.cc
  1825. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Removed unused code.
  1827. * src/DefaultBtAnnounce.cc
  1828. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1830. the value larger than DefaultPieceStorage::getTotalLength() when
  1831. in flight pieces are involved.
  1832. * src/DefaultPieceStorage.cc
  1833. * test/DefaultPieceStorageTest.cc
  1834. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Bump up version number to 1.0.0a.
  1836. * configure.ac
  1837. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Updated configure.ac
  1839. * configure.ac
  1840. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Added usege for proxy.
  1842. * doc/aria2c.1.txt
  1843. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Added usage for --ca-certificate, --certificate, --private-key and
  1845. --check-certificate options.
  1846. * doc/aria2c.1.txt
  1847. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Updated man page
  1849. * doc/aria2c.1.txt
  1850. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. Added --no-proxy option. It receives comman separated hostname or
  1852. domains to which proxy should not be used.
  1853. aria2 honors the environment variable no_proxy to override no-proxy
  1854. value in configuration file. The user can override the environment
  1855. variable no_proxy with --no-proxy command-line option.
  1856. * src/AbstractCommand.cc
  1857. * src/OptionHandlerFactory.cc
  1858. * src/option_processing.cc
  1859. * src/prefs.cc
  1860. * src/prefs.h
  1861. * src/usage_text.h
  1862. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1864. The CA certificates are specified in --ca-certificate option.
  1865. By default, the verification is disabled. Use --check-certificate
  1866. option to enable it.
  1867. * src/HttpRequestCommand.cc
  1868. * src/LibgnutlsTLSContext.cc
  1869. * src/LibgnutlsTLSContext.h
  1870. * src/LibsslTLSContext.cc
  1871. * src/LibsslTLSContext.h
  1872. * src/MultiUrlRequestInfo.cc
  1873. * src/OptionHandlerFactory.cc
  1874. * src/SocketCore.cc
  1875. * src/SocketCore.h
  1876. * src/a2functional.h
  1877. * src/message.h
  1878. * src/option_processing.cc
  1879. * src/prefs.cc
  1880. * src/prefs.h
  1881. * src/usage_text.h
  1882. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Added client certificate authentication for SSL/TLS.
  1884. Currently a private key must be decrypted for use with aria2.
  1885. If a user accidentally gives encrypted file to aria2 then following
  1886. thing happens:
  1887. If encrypted private key is given to aria2, it behaves differently
  1888. depending on the ssl library it uses. If aria2 built with openssl then
  1889. openssl prompts the user for password. If aria2 build with gnutls then
  1890. aria2 exists with error at start up.
  1891. * src/DownloadEngineFactory.cc
  1892. * src/MultiUrlRequestInfo.cc
  1893. * src/OptionHandlerFactory.cc
  1894. * src/option_processing.cc
  1895. * src/prefs.cc
  1896. * src/prefs.h
  1897. * src/usage_text.h
  1898. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Introduced TLSContext that holds TLS related data that can be shared
  1900. with multiple SSL connections.
  1901. * src/DownloadEngineFactory.cc
  1902. * src/LibgnutlsTLSContext.cc
  1903. * src/LibgnutlsTLSContext.h
  1904. * src/LibsslTLSContext.cc
  1905. * src/LibsslTLSContext.h
  1906. * src/Makefile.am
  1907. * src/SocketCore.cc
  1908. * src/SocketCore.h
  1909. * src/TLSContext.h
  1910. * src/message.h
  1911. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Fixed the bug that the DiskWriter of the first FileEntry whose
  1913. `needsFileAllocation' property is false is not created
  1914. even if it shares a piece with next FileEntry which `requested' property
  1915. is true.
  1916. Fixed the bug that zero-length file is not created if pre file
  1917. allocation is not done.
  1918. * src/MultiDiskAdaptor.cc
  1919. * src/MultiDiskAdaptor.h
  1920. * test/MultiDiskAdaptorTest.cc
  1921. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Added the ability to pool proxy connection.
  1923. The conneciton in FTP with proxy-method=GET is not pooled.
  1924. Proxy-Connection header will not be sent when sending CONNECT method.
  1925. * src/DownloadEngine.cc
  1926. * src/DownloadEngine.h
  1927. * src/FtpFinishDownloadCommand.cc
  1928. * src/FtpInitiateConnectionCommand.cc
  1929. * src/FtpNegotiationCommand.cc
  1930. * src/HttpDownloadCommand.cc
  1931. * src/HttpInitiateConnectionCommand.cc
  1932. * src/HttpRequest.cc
  1933. * src/HttpRequest.h
  1934. * src/HttpResponse.cc
  1935. * src/HttpSkipResponseCommand.cc
  1936. * test/HttpRequestTest.cc
  1937. * test/HttpResponseTest.cc
  1938. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1939. Handle date before epoch.
  1940. To create *bad* Time object, call Time::null().
  1941. * src/CookieParser.cc
  1942. * src/FtpConnection.cc
  1943. * src/FtpConnection.h
  1944. * src/FtpNegotiationCommand.cc
  1945. * src/RequestGroup.cc
  1946. * src/TimeA2.cc
  1947. * src/TimeA2.h
  1948. * test/CookieParserTest.cc
  1949. * test/FtpConnectionTest.cc
  1950. * test/TimeTest.cc
  1951. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1952. Added support for following envrionment variables: http_proxy,
  1953. https_proxy, ftp_proxy and all_proxy.
  1954. Each variable is equivalent to the aria2 option whose name is the
  1955. variable name with '_' replaced with '-'.
  1956. They overrides options specified in aria2.conf file.
  1957. The envrionment variables can be overrode using command-line option.
  1958. * src/option_processing.cc
  1959. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1960. Renamed --http-proxy-method as --proxy-method.
  1961. * src/AbstractCommand.cc
  1962. * src/FtpInitiateConnectionCommand.cc
  1963. * src/HttpInitiateConnectionCommand.cc
  1964. * src/OptionHandlerFactory.cc
  1965. * src/option_processing.cc
  1966. * src/prefs.cc
  1967. * src/prefs.h
  1968. * src/usage_text.h
  1969. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1970. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1971. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1972. Above 3 options and --http-proxy option can handle proxy in URL format
  1973. like: http://user:passwd@host:port.
  1974. If a proxy requires user/password, they must be specified in a URL.
  1975. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1976. instead.
  1977. * src/AbstractCommand.cc
  1978. * src/AbstractCommand.h
  1979. * src/AbstractProxyRequestCommand.cc
  1980. * src/AbstractProxyRequestCommand.h
  1981. * src/AuthConfigFactory.cc
  1982. * src/AuthConfigFactory.h
  1983. * src/FtpFinishDownloadCommand.cc
  1984. * src/FtpInitiateConnectionCommand.cc
  1985. * src/FtpInitiateConnectionCommand.h
  1986. * src/FtpNegotiationCommand.cc
  1987. * src/FtpTunnelRequestCommand.cc
  1988. * src/FtpTunnelRequestCommand.h
  1989. * src/HttpDownloadCommand.cc
  1990. * src/HttpInitiateConnectionCommand.cc
  1991. * src/HttpInitiateConnectionCommand.h
  1992. * src/HttpProxyRequestCommand.cc
  1993. * src/HttpProxyRequestCommand.h
  1994. * src/HttpRequest.cc
  1995. * src/HttpRequest.h
  1996. * src/HttpRequestCommand.cc
  1997. * src/HttpRequestCommand.h
  1998. * src/HttpSkipResponseCommand.cc
  1999. * src/InitiateConnectionCommand.cc
  2000. * src/InitiateConnectionCommand.h
  2001. * src/OptionHandlerFactory.cc
  2002. * src/OptionHandlerImpl.h
  2003. * src/Request.cc
  2004. * src/option_processing.cc
  2005. * src/prefs.cc
  2006. * src/prefs.h
  2007. * src/usage_text.h
  2008. * test/AuthConfigFactoryTest.cc
  2009. * test/HttpRequestTest.cc
  2010. * test/OptionHandlerTest.cc
  2011. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2012. Execute choking algorithm when unchoked and interested peer is
  2013. disconected.
  2014. * src/DefaultPeerStorage.cc
  2015. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2016. Added testcase for BtNotInterestedMessage from unchoked peer.
  2017. * test/BtNotInterestedMessageTest.cc
  2018. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2019. Execute choking algorithm when BtInterestedMessage arrives from
  2020. unchoked peer.
  2021. * src/BtInterestedMessage.cc
  2022. * src/BtInterestedMessage.h
  2023. * src/DefaultBtMessageFactory.cc
  2024. * test/BtInterestedMessageTest.cc
  2025. * test/MockPeerStorage.h
  2026. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2027. AuthConfigFactory is now part of DownloadEngine.
  2028. * src/AbstractProxyRequestCommand.cc
  2029. * src/AuthConfigFactory.h
  2030. * src/DownloadEngine.cc
  2031. * src/DownloadEngine.h
  2032. * src/FtpConnection.cc
  2033. * src/FtpConnection.h
  2034. * src/FtpNegotiationCommand.cc
  2035. * src/HttpConnection.cc
  2036. * src/HttpRequest.cc
  2037. * src/HttpRequest.h
  2038. * src/HttpRequestCommand.cc
  2039. * src/HttpResponse.cc
  2040. * src/HttpResponseCommand.cc
  2041. * src/HttpSkipResponseCommand.cc
  2042. * src/MultiUrlRequestInfo.cc
  2043. * src/main.cc
  2044. * test/FtpConnectionTest.cc
  2045. * test/HttpRequestTest.cc
  2046. * test/HttpResponseTest.cc
  2047. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2048. Corrected catched exception type.
  2049. * src/ServerStatMan.cc
  2050. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2051. DNSCache is now part of DownloadEngine.
  2052. * src/DNSCache.h
  2053. * src/DownloadEngine.cc
  2054. * src/DownloadEngine.h
  2055. * src/InitiateConnectionCommand.cc
  2056. * src/MultiUrlRequestInfo.cc
  2057. * test/Makefile.am
  2058. * test/Makefile.in
  2059. * test/SimpleDNSCacheTest.cc
  2060. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2061. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2062. DownloadEngine.
  2063. * src/ActivePeerConnectionCommand.cc
  2064. * src/BtSetup.cc
  2065. * src/CUIDCounter.h
  2066. * src/DHTSetup.cc
  2067. * src/DownloadCommand.cc
  2068. * src/DownloadEngine.cc
  2069. * src/DownloadEngine.h
  2070. * src/DownloadEngineFactory.cc
  2071. * src/FileAllocationDispatcherCommand.cc
  2072. * src/InitiatorMSEHandshakeCommand.cc
  2073. * src/PeerInitiateConnectionCommand.cc
  2074. * src/PeerInteractionCommand.cc
  2075. * src/PeerListenCommand.cc
  2076. * src/RequestGroup.cc
  2077. * src/StreamFileAllocationEntry.cc
  2078. * src/TrackerWatcherCommand.cc
  2079. * src/main.cc
  2080. * test/RequestGroupManTest.cc
  2081. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2082. Implemented commented code in BtSeederStateChoke
  2083. * src/BtSeederStateChoke.cc
  2084. * src/Peer.cc
  2085. * src/Peer.h
  2086. * src/PeerInteractionCommand.cc
  2087. * src/PeerSessionResource.cc
  2088. * src/PeerSessionResource.h
  2089. * test/MockBtMessageDispatcher.h
  2090. * test/PeerSessionResourceTest.cc
  2091. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2092. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2093. its object.
  2094. * src/AbstractBtMessage.cc
  2095. * src/ActivePeerConnectionCommand.cc
  2096. * src/ActivePeerConnectionCommand.h
  2097. * src/BtContextAwareCommand.cc
  2098. * src/BtContextAwareCommand.h
  2099. * src/BtExtendedMessage.cc
  2100. * src/BtExtendedMessage.h
  2101. * src/BtInterestedMessage.cc
  2102. * src/BtInterestedMessage.h
  2103. * src/BtNotInterestedMessage.cc
  2104. * src/BtNotInterestedMessage.h
  2105. * src/BtRegistry.cc
  2106. * src/BtRegistry.h
  2107. * src/BtSeederStateChoke.cc
  2108. * src/BtSetup.cc
  2109. * src/DHTGetPeersCommand.cc
  2110. * src/DHTGetPeersCommand.h
  2111. * src/DHTPeerAnnounceEntry.cc
  2112. * src/DHTPeerAnnounceEntry.h
  2113. * src/DHTPeerAnnounceStorage.cc
  2114. * src/DHTPeerAnnounceStorage.h
  2115. * src/DHTPeerLookupTask.cc
  2116. * src/DHTPeerLookupTask.h
  2117. * src/DHTSetup.cc
  2118. * src/DHTSetup.h
  2119. * src/DHTTaskFactory.h
  2120. * src/DHTTaskFactoryImpl.cc
  2121. * src/DHTTaskFactoryImpl.h
  2122. * src/DefaultBtAnnounce.cc
  2123. * src/DefaultBtInteractive.cc
  2124. * src/DefaultBtInteractive.h
  2125. * src/DefaultBtMessageDispatcher.cc
  2126. * src/DefaultBtMessageDispatcher.h
  2127. * src/DefaultBtMessageFactory.cc
  2128. * src/DefaultBtMessageFactory.h
  2129. * src/DefaultBtMessageReceiver.cc
  2130. * src/DefaultBtProgressInfoFile.cc
  2131. * src/DefaultBtProgressInfoFile.h
  2132. * src/DefaultBtRequestFactory.cc
  2133. * src/DefaultBtRequestFactory.h
  2134. * src/DefaultExtensionMessageFactory.cc
  2135. * src/DefaultExtensionMessageFactory.h
  2136. * src/DefaultPeerStorage.cc
  2137. * src/DefaultPeerStorage.h
  2138. * src/DownloadEngine.cc
  2139. * src/DownloadEngine.h
  2140. * src/InitiatorMSEHandshakeCommand.cc
  2141. * src/InitiatorMSEHandshakeCommand.h
  2142. * src/MSEHandshake.cc
  2143. * src/MSEHandshake.h
  2144. * src/Makefile.am
  2145. * src/Makefile.in
  2146. * src/PeerChokeCommand.cc
  2147. * src/PeerChokeCommand.h
  2148. * src/PeerInitiateConnectionCommand.cc
  2149. * src/PeerInitiateConnectionCommand.h
  2150. * src/PeerInteractionCommand.cc
  2151. * src/PeerInteractionCommand.h
  2152. * src/PeerObject.h
  2153. * src/PeerReceiveHandshakeCommand.cc
  2154. * src/PeerReceiveHandshakeCommand.h
  2155. * src/ReceiverMSEHandshakeCommand.cc
  2156. * src/RequestGroup.cc
  2157. * src/RequestGroup.h
  2158. * src/RequestGroupMan.cc
  2159. * src/RequestGroupMan.h
  2160. * src/SeedCheckCommand.cc
  2161. * src/SeedCheckCommand.h
  2162. * src/ShareRatioSeedCriteria.h
  2163. * src/SimpleBtMessage.cc
  2164. * src/TrackerWatcherCommand.cc
  2165. * src/TrackerWatcherCommand.h
  2166. * src/UTPexExtensionMessage.cc
  2167. * src/UTPexExtensionMessage.h
  2168. * test/BtCancelMessageTest.cc
  2169. * test/BtChokeMessageTest.cc
  2170. * test/BtExtendedMessageTest.cc
  2171. * test/BtInterestedMessageTest.cc
  2172. * test/BtNotInterestedMessageTest.cc
  2173. * test/BtPieceMessageTest.cc
  2174. * test/BtPortMessageTest.cc
  2175. * test/BtRegistryTest.cc
  2176. * test/BtRejectMessageTest.cc
  2177. * test/BtRequestMessageTest.cc
  2178. * test/DHTPeerAnnounceEntryTest.cc
  2179. * test/DHTPeerAnnounceStorageTest.cc
  2180. * test/DefaultBtMessageDispatcherTest.cc
  2181. * test/DefaultBtMessageFactoryTest.cc
  2182. * test/DefaultBtProgressInfoFileTest.cc
  2183. * test/DefaultBtRequestFactoryTest.cc
  2184. * test/DefaultExtensionMessageFactoryTest.cc
  2185. * test/MSEHandshakeTest.cc
  2186. * test/MockDHTTaskFactory.h
  2187. * test/ShareRatioSeedCriteriaTest.cc
  2188. * test/UTPexExtensionMessageTest.cc
  2189. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2190. Fixed compiler warning.
  2191. * test/UtilTest.cc
  2192. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2193. Treat Cookie object as session cookie if expiry = 0 is given.
  2194. With this change, you can specify session scoped cookies in an external
  2195. file setting expiry value to 0.
  2196. * src/Cookie.cc
  2197. * src/Cookie.h
  2198. * test/CookieParserTest.cc
  2199. * test/CookieStorageTest.cc
  2200. * test/CookieTest.cc
  2201. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2202. Changed signature of DHTMessageFactory::createResponseMessage().
  2203. Removed unused validateIDMatch.
  2204. * src/DHTMessageFactory.h
  2205. * src/DHTMessageFactoryImpl.cc
  2206. * src/DHTMessageFactoryImpl.h
  2207. * src/DHTMessageTracker.cc
  2208. * test/DHTMessageFactoryImplTest.cc
  2209. * test/MockDHTMessageFactory.h
  2210. Dropped DHT message coming from same ID of localhost.
  2211. * src/DHTMessageReceiver.cc
  2212. Rejected adding node whose ID is the same as localhost's.
  2213. * src/DHTRoutingTable.cc
  2214. * test/BtPortMessageTest.cc
  2215. * test/DHTRoutingTableTest.cc
  2216. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2217. Pool connection when redirection occurs with Content-Length = 0.
  2218. * src/HttpSkipResponseCommand.cc
  2219. * src/HttpSkipResponseCommand.h
  2220. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2221. Fixed the bug that causes time out when redirection occurs with
  2222. content-length 0.
  2223. * src/HttpResponseCommand.cc
  2224. * src/HttpSkipResponseCommand.cc
  2225. * src/HttpSkipResponseCommand.h
  2226. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2227. Now each status legends is shown only when it appears in Download
  2228. Result. If Download Result has no item, then status legend will not
  2229. be printed.
  2230. * src/RequestGroupMan.cc
  2231. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2232. Removed duplicate creation of OptionHandlers.
  2233. * src/option_processing.cc
  2234. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2235. Fixed the bug that causes segmentation fault when accessing files which
  2236. don't exist or are not included in --select-file option while
  2237. validating chunk checksum.
  2238. * src/MultiDiskAdaptor.cc
  2239. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2240. Fixed compiler warning.
  2241. * test/UtilTest.cc
  2242. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2243. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2244. * src/IteratableChecksumValidator.cc
  2245. * src/IteratableChunkChecksumValidator.cc
  2246. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2247. * Release 0.16.2
  2248. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2249. Added Serbian translation. Updated Ukrainian translation.
  2250. Thanks to all translators.
  2251. * po/sr.po
  2252. * po/uk.po
  2253. * po/LINGUAS
  2254. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2255. Bump up version number to 0.16.2
  2256. * configure.ac
  2257. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2258. Added length equality test to operator== to drop a piece message
  2259. whose length does not match to the requested one.
  2260. * src/RequestSlot.cc
  2261. * test/DefaultBtMessageDispatcherTest.cc
  2262. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2263. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2264. recieved.
  2265. In this fix, if a request larger than 16KiB length is received, aria2
  2266. disconnects the peer.
  2267. * src/BtConstants.h
  2268. * src/PeerMessageUtil.cc
  2269. * src/PeerMessageUtil.h
  2270. * test/BtRequestMessageTest.cc
  2271. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2272. * Release 0.16.1
  2273. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2274. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2275. * doc/aria2c.1.txt
  2276. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2277. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2278. Updated French, Simplified Chinese and Japanese translations.
  2279. Thanks to all translators.
  2280. en@quot and en@boldquot are also added.
  2281. * po/LINGUAS
  2282. * po/fr.po
  2283. * po/ja.po
  2284. * po/uk.po
  2285. * po/vi.po
  2286. * po/zh_CN.po
  2287. * po/zh_TW.po
  2288. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2289. Bump up version number to 0.16.1.
  2290. * configure.ac
  2291. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2292. Updated README.
  2293. * README
  2294. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2295. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2296. not to replace '--' with em dash character.
  2297. * doc/aria2c.1.txt
  2298. * doc/makeman
  2299. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2300. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2301. every SEC seconds.
  2302. * src/DownloadEngineFactory.cc
  2303. * src/OptionHandlerFactory.cc
  2304. * src/option_processing.cc
  2305. * src/usage_text.h
  2306. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2307. Fixed compile warning on linux-amd64
  2308. * src/FtpConnection.cc
  2309. * src/IteratableChunkChecksumValidator.cc
  2310. * src/MultiDiskAdaptor.cc
  2311. Fixed the bug that unit test fails on linux-amd64
  2312. * test/UtilTest.cc
  2313. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2314. Added --dht-file-path option to change the path to dht.dat, which is a
  2315. serialized DHT routing table.
  2316. * src/OptionHandlerFactory.cc
  2317. * src/option_processing.cc
  2318. * src/usage_text.h
  2319. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2320. Fixed possible underflow.
  2321. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2322. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2323. Fixed the bug that last character in URI is not encoded.
  2324. * src/Request.cc
  2325. * test/RequestTest.cc
  2326. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2327. Fixed the bug that referer header field contains fragment.
  2328. Now Request class removes fragment part of URI and encodes it
  2329. in Request::setUri() and setReferer().
  2330. * src/Request.h
  2331. * src/Request.cc
  2332. * test/RequestTest.cc
  2333. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2334. Added missing m4 macros.
  2335. * m4/cppunit.m4
  2336. * m4/libgcrypt.m4
  2337. * m4/libgnutls-extra.m4
  2338. * m4/libgnutls.m4
  2339. * m4/libxml2.m4
  2340. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2341. Fixed compile error with gcc-4.4(snapshot)
  2342. * src/File.cc
  2343. * src/FtpConnection.cc
  2344. * src/OptionHandlerImpl.h
  2345. * src/Util.cc
  2346. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2347. Removed assert()
  2348. * src/SocketBuffer.cc (SocketBuffer::send)
  2349. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Changed the type of _numNewConnection to unsigned int.
  2351. * src/ActivePeerConnectionCommand.cc
  2352. * src/ActivePeerConnectionCommand.h
  2353. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. * Release 0.16.0
  2355. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2356. Updated doc
  2357. * README
  2358. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2359. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2360. translations. Thanks to all translators.
  2361. * po/bg.po
  2362. * po/de.po
  2363. * po/fr.po
  2364. * po/ja.po
  2365. * po/zh_CN.po
  2366. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2367. Bump up version number to 0.16.0.
  2368. * configure.ac
  2369. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2370. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2371. int32_t.
  2372. Changed the type of count to int32_t.
  2373. * src/Metalink2RequestGroup.cc
  2374. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2375. Added test for Time::elapsed(time_t).
  2376. * test/TimeTest.cc
  2377. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2378. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2379. Util::difftv() should be used instead.
  2380. * src/TimeA2.cc
  2381. * src/TimeA2.h
  2382. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2383. Made socket for dht connections non-blocking
  2384. * src/DHTAbstractMessage.cc
  2385. * src/DHTAbstractMessage.h
  2386. * src/DHTConnection.h
  2387. * src/DHTConnectionImpl.cc
  2388. * src/DHTConnectionImpl.h
  2389. * src/DHTMessage.h
  2390. * src/DHTMessageDispatcherImpl.cc
  2391. * src/DHTMessageDispatcherImpl.h
  2392. * src/DHTUnknownMessage.cc
  2393. * src/DHTUnknownMessage.h
  2394. * src/SocketCore.cc
  2395. * src/SocketCore.h
  2396. * test/MockDHTMessage.h
  2397. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2398. Changed the type of offset to int.
  2399. * src/ParameterizedStringParser.cc
  2400. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2401. Made getAsInt() return int32_t
  2402. * src/Option.h
  2403. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2404. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2405. build.
  2406. * configure.ac
  2407. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2408. Use sqlite3_open if sqlite3_open_v2 is not available.
  2409. * src/Sqlite3MozCookieParser.cc
  2410. * src/Sqlite3MozCookieParser.h
  2411. * m4/sqlite3.m4
  2412. * test/Sqlite3MozCookieParserTest.cc
  2413. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2414. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2415. * src/BtPieceMessage.cc
  2416. * src/DHTPeerAnnounceStorage.cc
  2417. * src/DefaultPieceStorage.cc
  2418. * src/DownloadCommand.cc
  2419. * src/DownloadEngine.cc
  2420. * src/FtpConnection.cc
  2421. * src/PeerConnection.cc
  2422. * src/PeerMessageUtil.cc
  2423. * src/RequestGroup.cc
  2424. * src/RequestGroupMan.cc
  2425. * src/SimpleBtMessage.cc
  2426. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2428. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2429. * src/AbstractDiskWriter.cc
  2430. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2431. Don't set Request::supportsPersistentConnection() in HttpConnection
  2432. since this code is also used in AbstractProxyResponseCommand.
  2433. Moved those code to HttpResponse.
  2434. * src/HttpResponse.cc
  2435. * src/HttpResponse.h
  2436. * src/HttpConnection.cc
  2437. * src/HttpConnection.h
  2438. * src/HttpResponseCommand.cc
  2439. * test/HttpResponseTest.cc
  2440. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2441. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2442. The configuration is minimum: no torrent, no metalink, so there may be
  2443. other compile error on their code.
  2444. * src/a2netcompat.h
  2445. * src/File.cc
  2446. * src/File.h
  2447. * src/SocketCore.cc
  2448. * src/SocketCore.h
  2449. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. Made a socket of incoming peer non-blocking.
  2451. * src/PeerListenCommand.cc
  2452. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2453. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2454. whole message data is not sent in one send() call.
  2455. * src/BtPieceMessage.cc
  2456. * src/BtPieceMessage.h
  2457. * src/PeerConnection.cc
  2458. * src/PeerConnection.h
  2459. * src/SimpleBtMessage.cc
  2460. * src/SimpleBtMessage.h
  2461. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2462. Fixed the bug that aria2 downloads faster than max-download-limit when
  2463. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2464. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2465. , instead of sum of them.
  2466. * src/ActivePeerConnectionCommand.cc
  2467. * src/DefaultBtInteractive.cc
  2468. * src/DownloadCommand.cc
  2469. * src/PeerInteractionCommand.cc
  2470. * src/PeerReceiveHandshakeCommand.cc
  2471. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2472. Fixed the bug that HTTPS download fails.
  2473. * src/AbstractCommand.cc
  2474. * src/AbstractCommand.h
  2475. * src/DownloadCommand.cc
  2476. * src/FtpConnection.cc
  2477. * src/HttpConnection.cc
  2478. * src/HttpRequestCommand.cc
  2479. * src/HttpResponseCommand.cc
  2480. * src/HttpSkipResponseCommand.cc
  2481. * src/MSEHandshake.cc
  2482. * src/PeerConnection.cc
  2483. * src/SocketCore.cc
  2484. * src/SocketCore.h
  2485. Fixed the bug that aria2 doesn't download whole content body and cannot
  2486. reuse connection if chunked transfer encoding and gzip content encoding
  2487. are set.
  2488. * src/DownloadCommand.cc
  2489. * src/HttpSkipResponseCommand.cc
  2490. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2491. Updated man page.
  2492. * doc/aria2c.1.txt
  2493. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2494. When error occurred while aria2 was parsing an .aria2.conf file, print
  2495. the usage of the option that caused error.
  2496. * src/option_processing.cc
  2497. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2498. Fixed compile error on OptionHandlerException
  2499. * src/Makefile.am
  2500. * src/OptionHandlerException.cc
  2501. * src/OptionHandlerException.h
  2502. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2503. Moved message of the error to OptionHandlerException.h
  2504. * src/NameMatchOptionHandler.h
  2505. * src/OptionHandlerException.h
  2506. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2507. When error occurs while aria2 is parsing an command-line option, print
  2508. the usage of the option.
  2509. * src/Makefile.am
  2510. * src/NameMatchOptionHandler.h
  2511. * src/OptionHandlerException.h
  2512. * src/option_processing.cc
  2513. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2514. Reverted previous change.
  2515. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2516. username is not in URI.
  2517. * src/HttpRequest.cc
  2518. * src/Request.cc
  2519. * test/HttpRequestTest.cc
  2520. * test/RequestTest.cc
  2521. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2522. Now colon is required for username and password in FTP URL, like:
  2523. ftp://username:password@host.
  2524. If colon is not there, aria2 don't parse it as a username. For example,
  2525. aria2 don't retrieve username from ftp://username@host.
  2526. This fix was made in order to login FTP server via non-transparent ftp
  2527. proxy.
  2528. * src/Request.cc
  2529. * test/RequestTest.cc
  2530. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2531. Use netrc for HTTP.
  2532. Now FTP user/password is sent in Authorization header when
  2533. --ftp-via-http-proxy=get is given.
  2534. * src/AuthConfigFactory.cc
  2535. * src/HttpRequest.cc
  2536. * src/HttpRequest.h
  2537. * src/NetrcAuthResolver.cc
  2538. * src/NetrcAuthResolver.h
  2539. * src/OptionHandlerFactory.cc
  2540. * src/option_processing.cc
  2541. * src/prefs.cc
  2542. * src/prefs.h
  2543. * test/AuthConfigFactoryTest.cc
  2544. * test/HttpRequestTest.cc
  2545. * test/NetrcAuthResolverTest.cc
  2546. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2547. Issue PWD command first and get working directory and use it as a prefix
  2548. for CWD command.
  2549. * src/DownloadEngine.cc
  2550. * src/DownloadEngine.h
  2551. * src/FtpConnection.cc
  2552. * src/FtpConnection.h
  2553. * src/FtpFinishDownloadCommand.cc
  2554. * src/FtpInitiateConnectionCommand.cc
  2555. * src/FtpNegotiationCommand.cc
  2556. * src/FtpNegotiationCommand.h
  2557. * test/FtpConnectionTest.cc
  2558. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. Removed default user/pass for FTP user/pass, since it should not have
  2560. precedence over netrc configuration by default.
  2561. * src/OptionHandlerFactory.cc
  2562. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2563. Added debug log for socket event.
  2564. * src/AbstractCommand.cc
  2565. * src/PeerAbstractCommand.cc
  2566. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2567. Log microseconds.
  2568. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2569. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Replaced HelpItem.cc with OptionHandler.cc.
  2571. * po/POTFILES.in
  2572. Updated po files with 'make update-po'
  2573. * po/aria2c.pot
  2574. * po/*.po
  2575. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2576. Removed possible values from the text.
  2577. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2578. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2579. Removed unused preferences:
  2580. PREF_NO_PREALLOCATION
  2581. PREF_STDOUT_LOG
  2582. PREF_TRACKER_MAX_TRIES
  2583. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2584. PREF_MIN_SEGMENT_SIZE
  2585. * src/option_processing.cc
  2586. * src/prefs.cc
  2587. * src/prefs.h
  2588. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Integrated HelpItem into OptionParser to ease the workload for adding
  2590. new options. Removed default value from usage text.
  2591. * src/HelpItem.cc: Removed.
  2592. * src/HelpItem.h: Removed.
  2593. * src/HelpItemFactory.cc: Removed.
  2594. * src/HelpItemFactory.h: Removed.
  2595. * src/Makefile.am
  2596. * src/Makefile.in
  2597. * src/NameMatchOptionHandler.h
  2598. * src/OptionHandler.cc
  2599. * src/OptionHandler.h
  2600. * src/OptionHandlerFactory.cc
  2601. * src/OptionHandlerImpl.h
  2602. * src/OptionParser.cc
  2603. * src/OptionParser.h
  2604. * src/TagContainer.cc: Removed.
  2605. * src/TagContainer.h: Removed.
  2606. * src/TaggedItem.cc: Removed.
  2607. * src/TaggedItem.h: Removed.
  2608. * src/main.cc
  2609. * src/option_processing.cc
  2610. * src/usage_text.h
  2611. * src/version_usage.cc
  2612. * test/HelpItemTest.cc: Removed.
  2613. * test/Makefile.am
  2614. * test/Makefile.in
  2615. * test/OptionHandlerTest.cc
  2616. * test/OptionParserTest.cc
  2617. * test/TagContainerTest.cc: Removed.
  2618. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2619. Moved `TransferStat stat = ...' to inside the `if' clause.
  2620. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2621. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Fixed the bug that a block in a piece is requested when same block is
  2623. already requested to the same peer in end game mode.
  2624. * src/BtRequestFactory.h
  2625. * src/DefaultBtInteractive.cc
  2626. * src/DefaultBtRequestFactory.cc
  2627. * src/DefaultBtRequestFactory.h
  2628. * src/DefaultPieceStorage.cc
  2629. * src/DefaultPieceStorage.h
  2630. * src/PieceStorage.h
  2631. * src/UnknownLengthPieceStorage.cc
  2632. * src/UnknownLengthPieceStorage.h
  2633. * test/DefaultBtRequestFactoryTest.cc
  2634. * test/DefaultPieceStorageTest.cc
  2635. * test/MockBtRequestFactory.h
  2636. * test/MockPieceStorage.h
  2637. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2638. Removed _uploadLength and _downloadLength from PeerSessionResource
  2639. and use PeerStat::_sessionUploadLength and
  2640. PeerStat::_sessionDownloadLength.
  2641. * src/PeerSessionResource.cc
  2642. * src/PeerSessionResource.h
  2643. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Fixed the bug that prefixLength of split bucket which doesn't include
  2645. local node ID is incremented.
  2646. * src/DHTBucket.cc
  2647. * src/DHTBucket.h
  2648. * test/DHTBucketTest.cc
  2649. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2650. Added cookies.sqlite to EXTRA_DIST
  2651. * test/Makefile.am
  2652. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2653. Added Turkish translation. Updated French, German, Russian and
  2654. Simplified Chinese translations. Thanks to all translators.
  2655. * po/LINGUAS
  2656. * po/de.po
  2657. * po/fr.po
  2658. * po/ru.po
  2659. * po/tr.po
  2660. * po/zh_CN.po
  2661. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2662. Added deliminating text to the beginning of the log so that one can find
  2663. where the log starts easily.
  2664. * src/main.cc
  2665. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2666. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2667. to fix compile error when async DNS is not enabled by configuration.
  2668. * src/AbstractCommand.cc
  2669. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2670. If establishing conneciton to a server is failed, then mark error on
  2671. its ServerStat.
  2672. Added the cause of error to log when error event occurred.
  2673. Moved message string to message.h for translation.
  2674. * src/AbstractCommand.cc
  2675. * src/AbstractCommand.h
  2676. * src/FtpNegotiationCommand.cc
  2677. * src/HttpRequestCommand.cc
  2678. * src/PeerAbstractCommand.cc
  2679. * src/message.h
  2680. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2681. Added the function to get error message from socket.
  2682. * src/SocketCore.cc
  2683. * src/SocketCore.h
  2684. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2686. * src/RequestGroupMan.cc
  2687. * src/RequestGroupMan.h
  2688. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2689. If error event is received in epoll, then abort download immediately.
  2690. * src/AbstractCommand.cc
  2691. * src/Command.cc
  2692. * src/Command.h
  2693. * src/DownloadEngine.cc
  2694. * src/PeerAbstractCommand.cc
  2695. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2696. Added usage message for --uri-selector, --server-stat-of,
  2697. --server-stat-in, --server-stat-timeout options.
  2698. * src/HelpItemFactory.cc
  2699. * src/usage_text.h
  2700. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2701. Added upper limit of FTP response buffer. The current implementation
  2702. uses 4096bytes as a limit.
  2703. * src/FtpConnection.cc
  2704. * src/FtpConnection.h
  2705. * test/FtpConnectionTest.cc
  2706. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2707. Use non-blocking socket for TCP communication to avoid possible
  2708. blocking due to buffer full.
  2709. * src/AbstractProxyRequestCommand.cc
  2710. * src/FtpConnection.cc
  2711. * src/FtpConnection.h
  2712. * src/FtpNegotiationCommand.cc
  2713. * src/FtpNegotiationCommand.h
  2714. * src/HttpConnection.cc
  2715. * src/HttpConnection.h
  2716. * src/HttpRequestCommand.cc
  2717. * src/InitiatorMSEHandshakeCommand.cc
  2718. * src/InitiatorMSEHandshakeCommand.h
  2719. * src/MSEHandshake.cc
  2720. * src/MSEHandshake.h
  2721. * src/Makefile.am
  2722. * src/PeerConnection.cc
  2723. * src/PeerConnection.h
  2724. * src/PeerInteractionCommand.cc
  2725. * src/PeerListenCommand.cc
  2726. * src/ReceiverMSEHandshakeCommand.cc
  2727. * src/ReceiverMSEHandshakeCommand.h
  2728. * src/SocketBuffer.cc
  2729. * src/SocketBuffer.h
  2730. * src/SocketCore.cc
  2731. * src/SocketCore.h
  2732. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. Call setStatusRealtime() in constructor.
  2734. * src/RealtimeCommand.cc
  2735. * src/RealtimeCommand.h
  2736. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2737. Call Download::setNoWait(true) to execute newly created command without
  2738. a pause.
  2739. * src/AbstractCommand.cc
  2740. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2741. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2742. found' error from HTTP/FTP server NUM times without getting single
  2743. bytes of data, then force the download to fail.
  2744. Basically aria2 tris all URIs available. So if long list of URIs are
  2745. specified in Metalink, then aria2 will take a long time to fail
  2746. eventually if all URIs are outdated. This option eases this situation
  2747. to limit the number of servers to try.
  2748. * src/FtpNegotiationCommand.cc
  2749. * src/HelpItemFactory.cc
  2750. * src/HttpResponseCommand.cc
  2751. * src/OptionHandlerFactory.cc
  2752. * src/PeerStat.h
  2753. * src/RequestGroup.cc
  2754. * src/RequestGroup.h
  2755. * src/SegmentMan.cc
  2756. * src/SegmentMan.h
  2757. * src/option_processing.cc
  2758. * src/prefs.cc
  2759. * src/prefs.h
  2760. * src/usage_text.h
  2761. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2762. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2763. response even if more than one response is in it.
  2764. * src/FtpConnection.cc
  2765. * src/FtpConnection.h
  2766. * test/FtpConnectionTest.cc
  2767. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2768. Merged from stable-0.15
  2769. * m4/libcares.m4
  2770. Use pkg-config
  2771. * m4/sqlite3.m4
  2772. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Removed unnecessary if statement.
  2774. * src/DefaultPieceStorage.cc (initPieceStorage)
  2775. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2776. Added --connect-timeout option to specify connect timeout in seconds.
  2777. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2778. connecting to BitTorrent peer is not controlled by this option.
  2779. * src/AbstractProxyRequestCommand.cc
  2780. * src/FtpNegotiationCommand.cc
  2781. * src/HelpItemFactory.cc
  2782. * src/HttpRequestCommand.cc
  2783. * src/OptionHandlerFactory.cc
  2784. * src/option_processing.cc
  2785. * src/prefs.cc
  2786. * src/prefs.h
  2787. * src/usage_text.h
  2788. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2789. Added help message for -R option.
  2790. * src/HelpItemFactory.cc
  2791. * src/usage_text.h
  2792. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2793. Added the message that the time is in local time zone.
  2794. * src/RequestGroup.cc
  2795. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2796. Implemented the ability to get timestamp from remote FTP server using
  2797. MDTM command described in RFC3659.
  2798. * src/FtpConnection.cc
  2799. * src/FtpConnection.h
  2800. * src/FtpNegotiationCommand.cc
  2801. * src/FtpNegotiationCommand.h
  2802. * test/FtpConnectionTest.cc
  2803. * test/Makefile.am
  2804. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2805. Implemented the ability to get timestamp from remote HTTP server and
  2806. apply it to local file. To enable this feature, --remote-time option
  2807. is added. No usage text has been written yet.
  2808. If several servers returns difference timestamp, then aria2 uses latest
  2809. one.
  2810. * src/CopyDiskAdaptor.cc
  2811. * src/CopyDiskAdaptor.h
  2812. * src/DirectDiskAdaptor.cc
  2813. * src/DirectDiskAdaptor.h
  2814. * src/DiskAdaptor.h
  2815. * src/File.cc
  2816. * src/File.h
  2817. * src/HttpHeader.cc
  2818. * src/HttpHeader.h
  2819. * src/HttpResponse.cc
  2820. * src/HttpResponse.h
  2821. * src/HttpResponseCommand.cc
  2822. * src/HttpResponseCommand.h
  2823. * src/MultiDiskAdaptor.cc
  2824. * src/MultiDiskAdaptor.h
  2825. * src/OptionHandlerFactory.cc
  2826. * src/RequestGroup.cc
  2827. * src/RequestGroup.h
  2828. * src/RequestGroupMan.cc
  2829. * src/option_processing.cc
  2830. * src/prefs.cc
  2831. * src/prefs.h
  2832. * test/CopyDiskAdaptorTest.cc
  2833. * test/FileTest.cc
  2834. * test/Makefile.am
  2835. * test/Makefile.in
  2836. * test/MultiDiskAdaptorTest.cc
  2837. * test/TestUtil.cc
  2838. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2839. Fixed the bug that DiskWriterEntry is not created when its
  2840. FileEntry.isRequested() is false and it doesn't share a piece with
  2841. other FileEntries that are requested. This bug causes segmentation fault
  2842. in the end.
  2843. * src/MultiDiskAdaptor.cc
  2844. * src/MultiDiskAdaptor.h
  2845. * src/MultiFileAllocationIterator.cc
  2846. * test/MultiDiskAdaptorTest.cc
  2847. * test/MultiFileAllocationIteratorTest.cc
  2848. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2849. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2850. called if the number of file entries are greater than max open files.
  2851. * src/AbstractSingleDiskAdaptor.cc
  2852. * src/AbstractSingleDiskAdaptor.h
  2853. * src/DiskAdaptor.h
  2854. * src/MultiDiskAdaptor.cc
  2855. * src/MultiDiskAdaptor.h
  2856. * test/MultiDiskAdaptorTest.cc
  2857. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2858. Added a constuctor that receives struct timeval.
  2859. Added operator<.
  2860. * src/TimeA2.cc
  2861. * src/TimeA2.h
  2862. * test/TimeTest.cc
  2863. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2864. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2865. * src/CookieParser.cc
  2866. * test/CookieParserTest.cc
  2867. * test/HttpResponseTest.cc
  2868. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Implmented the functions to parse date.
  2870. * src/TimeA2.cc
  2871. * src/TimeA2.h
  2872. * test/TimeTest.cc
  2873. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2874. Added "Firefox3 Cookie" feature to FeatureConfig
  2875. * src/FeatureConfig.cc
  2876. * src/FeatureConfig.h
  2877. * test/FeatureConfigTest.cc
  2878. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2879. Bump up version number to 0.16.0b
  2880. * configure.ac
  2881. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2882. Use pkg-config if is is available.
  2883. * m4/openssl.m4
  2884. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2885. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2886. * src/BtAnnounce.h
  2887. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2888. If an error occurred with a URI, remove identical URI from remaining
  2889. URI list because it is likely that same error occurred in the end and it
  2890. is waste of time.
  2891. * src/AbstractCommand.cc
  2892. * src/RequestGroup.cc
  2893. * src/RequestGroup.h
  2894. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2895. Removed wrong comment.
  2896. * src/DefaultPeerStorage.cc
  2897. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2898. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2899. Added return value of getpid() to argument of srand() to achieve more
  2900. randomized value.
  2901. * src/SimpleRandomizer.cc
  2902. * src/SimpleRandomizer.h
  2903. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2904. Contact tracker frequently when the number of connections are 0 and
  2905. download is not finished yet.
  2906. * src/ActivePeerConnectionCommand.cc
  2907. * src/BtAnnounce.h
  2908. * src/DefaultBtAnnounce.cc
  2909. * src/DefaultBtAnnounce.h
  2910. * test/MockBtAnnounce.h
  2911. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. Moved threshold values to UTPexExtensionMessage.
  2913. * src/DefaultBtInteractive.cc
  2914. * src/Peer.cc
  2915. * src/Peer.h
  2916. * src/UTPexExtensionMessage.cc
  2917. * src/UTPexExtensionMessage.h
  2918. * test/UTPexExtensionMessageTest.cc
  2919. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2920. Added _incoming member to Peer class and made it true if the peer
  2921. initiated connection. Don't add those peer to UTPex message.
  2922. If extended handshake is received, assign _incoming to false.
  2923. * src/DefaultBtInteractive.cc
  2924. * src/HandshakeExtensionMessage.cc
  2925. * src/Peer.cc
  2926. * src/Peer.h
  2927. * src/PeerListenCommand.cc
  2928. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2930. Encoding Decoder. Removed size threshold for turning off on the fly
  2931. inflation because resulting file may or may not be inflated depending
  2932. on the file size and I think it is not expected by users.
  2933. This change fixes segmentation fault when Metalink file contains gzipped
  2934. file and its filesize is provided.
  2935. * src/HttpResponseCommand.cc
  2936. * src/HttpResponseCommand.h
  2937. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2938. Made Cookie immutable.
  2939. * src/Cookie.cc
  2940. * src/Cookie.h
  2941. * src/CookieParser.cc
  2942. * src/CookieParser.h
  2943. * src/CookieStorage.cc
  2944. * test/CookieParserTest.cc
  2945. * test/CookieStorageTest.cc
  2946. * test/NsCookieParserTest.cc
  2947. * test/Sqlite3MozCookieParserTest.cc
  2948. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2949. Removed CookieBox, CookieBoxFactory.
  2950. * src/CookieBox.cc
  2951. * src/CookieBox.h
  2952. * src/CookieBoxFactory.cc
  2953. * src/CookieBoxFactory.h
  2954. * src/Makefile.am
  2955. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2956. Use CookieStorage class instead of CookieBox class.
  2957. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2958. * src/AbstractProxyRequestCommand.cc
  2959. * src/CookieStorage.cc
  2960. * src/DownloadEngine.cc
  2961. * src/DownloadEngine.h
  2962. * src/HttpConnection.cc
  2963. * src/HttpConnection.h
  2964. * src/HttpRequest.cc
  2965. * src/HttpRequest.h
  2966. * src/HttpRequestCommand.cc
  2967. * src/HttpResponse.cc
  2968. * src/HttpResponseCommand.cc
  2969. * src/HttpSkipResponseCommand.cc
  2970. * src/Makefile.am
  2971. * src/MultiUrlRequestInfo.cc
  2972. * src/Request.cc
  2973. * src/Request.h
  2974. * src/main.cc
  2975. * test/AllTest.cc
  2976. * test/CookieStorageTest.cc
  2977. * test/CookieTest.cc
  2978. * test/HttpRequestTest.cc
  2979. * test/HttpResponseTest.cc
  2980. * test/Makefile.am
  2981. * test/NsCookieParserTest.cc
  2982. * test/Sqlite3MozCookieParserTest.cc
  2983. * test/nscookietest.txt
  2984. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2985. Updated
  2986. * test/Cookies.sqlite
  2987. * test/nscookietest.txt
  2988. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Added tests for CookieStorage::load()
  2990. * test/CookieStorageTest.cc
  2991. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. Added CookieStorage class which is based on RFC2109 and manages cookies
  2993. more strictly than CookieBox and CookieBoxFactory class.
  2994. * src/CookieStorage.cc
  2995. * src/CookieStorage.h
  2996. * src/Cookie.cc
  2997. * src/Cookie.h
  2998. * test/CookieStorageTest.cc
  2999. * test/CookieTest.cc
  3000. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. Fixed the bug that commands are created more than the number of pieces.
  3002. * src/RequestGroup.cc
  3003. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Fixed infinite loop bug in FTP when SIZE command failed.
  3005. * src/FtpNegotiationCommand.cc
  3006. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3007. Removed DirectDiskAdaptorTest.h
  3008. * test/Makefile.am
  3009. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3010. Fixed chunk checksum validation cannot detect trailing garbage data.
  3011. BUG#2074141
  3012. * src/AbstractSingleDiskAdaptor.cc
  3013. * src/AbstractSingleDiskAdaptor.h
  3014. * src/CheckIntegrityEntry.cc
  3015. * src/CheckIntegrityEntry.h
  3016. * src/DiskAdaptor.h
  3017. * src/MultiDiskAdaptor.cc
  3018. * src/MultiDiskAdaptor.h
  3019. * src/RequestGroup.cc
  3020. * test/DirectDiskAdaptorTest.cc
  3021. * test/MultiDiskAdaptorTest.cc
  3022. * test/TestUtil.cc
  3023. * test/TestUtil.h
  3024. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3025. Bump up version number of dht.dat file to 3. In version 3 format, time
  3026. is stored in 64bit, network byte order.
  3027. New build can load old format(version 2) but it saves the file in new
  3028. format. It means once you used new build, your dht.dat becomes
  3029. incompatible with older build.
  3030. * src/DHTRoutingTableDeserializer.cc
  3031. * src/DHTRoutingTableSerializer.cc
  3032. * test/DHTRoutingTableSerializerTest.cc
  3033. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3034. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3035. * test/Makefile.am
  3036. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3037. Bump up version number of .aria2 control file to 0001.
  3038. New aria2 can still load version 0000 file but it saves the file in
  3039. version 0001 format. It means that new aria2 can resume download
  3040. started by old aria2 but the opposite is not true.
  3041. * src/DefaultBtProgressInfoFile.cc
  3042. * src/DefaultBtProgressInfoFile.h
  3043. * test/DefaultBtProgressInfoFileTest.cc
  3044. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3045. Added ntoh64 and hton64 as inline functions.
  3046. * src/Util.cc
  3047. * test/UtilTest.cc
  3048. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Added sqlite3 depenency and Firefox3 cookie support.
  3050. * README
  3051. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. State that firefox3 cookie is supported explicitly in the usage.
  3053. * src/usage_text.h
  3054. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3055. Externalized message.
  3056. * src/RequestGroupMan.cc
  3057. * src/message.h
  3058. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3059. Save temporary file first and rename to the destination on success.
  3060. Added test cases.
  3061. * src/RequestGroupMan.cc
  3062. * test/RequestGroupManTest.cc
  3063. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3064. Fixed the bug that the number of connected peer is exceeding the limit
  3065. (55 by default) in seeding mode.
  3066. Multiplied 0.8 to _maxUploadSpeedLimit.
  3067. * src/ActivePeerConnectionCommand.cc
  3068. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3069. Clear table item.
  3070. * src/Dictionary.cc
  3071. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3072. Fixed error handling of lseek.
  3073. * src/AbstractDiskWriter.cc
  3074. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3075. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3076. style cookie file.
  3077. * src/usage_text.h
  3078. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3080. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3081. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3082. * src/Util.cc
  3083. * src/Util.h
  3084. * src/CookieParser.cc
  3085. * test/UtilTest.cc
  3086. * test/CookieParserTest.cc
  3087. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. Separate the implementation to load old mozilla format of cookie to
  3089. NsCookieParser class.
  3090. * src/CookieBoxFactory.cc
  3091. * src/CookieBoxFactory.h
  3092. * src/NsCookieParser.cc
  3093. * src/NsCookieParser.h
  3094. * test/NsCookieParserTest.cc
  3095. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3096. Made parse() const
  3097. * src/Sqlite3MozCookieParser.cc
  3098. * src/Sqlite3MozCookieParser.h
  3099. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3100. Added firefox3 cookie support based on the patch submitted by
  3101. tizianomueller.
  3102. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3103. this functionality.
  3104. * configure.ac
  3105. * m4/sqlite3.m4
  3106. * src/CookieBoxFactory.cc
  3107. * src/CookieBoxFactory.h
  3108. * src/Makefile.am
  3109. * src/Makefile.in
  3110. * src/Sqlite3MozCookieParser.cc
  3111. * src/Sqlite3MozCookieParser.h
  3112. * src/main.cc
  3113. * test/CookieBoxFactoryTest.cc
  3114. * test/Makefile.am
  3115. * test/Makefile.in
  3116. * test/Sqlite3MozCookieParserTest.cc
  3117. * test/badcookies.sqlite
  3118. * test/cookies.sqlite
  3119. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3120. Added Danish and Greek translations.
  3121. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3122. Great thanks to all translators.
  3123. * po/LINGUAS
  3124. * po/el.po
  3125. * po/da.po
  3126. * po/es.po
  3127. * po/ca.po
  3128. * po/nn.po
  3129. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3130. Fixed man page: --follow-bittorrent should be --follow-torrent
  3131. * doc/aria2c.1.txt
  3132. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3133. Fixed: numCommand is less than the value specified in -C option.
  3134. * src/RequestGroup.cc
  3135. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3136. Fixed occasional assertion failure in PieceSegment.
  3137. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3138. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3139. creation of duplicate segments and one of the segment was finished then
  3140. assertion failure was caused.
  3141. * src/SegmentMan.cc
  3142. * test/SegmentManTest.cc
  3143. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3144. Added options to load/save the server's performance/status to a file
  3145. and the timeout to drop their data.
  3146. --server-stat-of=FILE specifies the file to which performance data
  3147. is saved.
  3148. --server-stat-if=FILE specifies the file to read previously saved
  3149. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3150. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3151. TIMEOUT is specified in seconds and the default value is 24hours.
  3152. * src/MultiUrlRequestInfo.cc
  3153. * src/OptionHandlerFactory.cc
  3154. * src/RequestGroupMan.cc
  3155. * src/RequestGroupMan.h
  3156. * src/ServerStatMan.cc
  3157. * src/ServerStatMan.h
  3158. * src/option_processing.cc
  3159. * src/prefs.cc
  3160. * src/prefs.h
  3161. * test/ServerStatManTest.cc
  3162. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3163. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3164. * src/ServerStatMan.cc
  3165. * src/ServerStatMan.h
  3166. * test/ServerStatManTest.cc
  3167. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. Implemented ServerStatMan::load(...) function and its test case.
  3169. * src/ServerStat.cc
  3170. * src/ServerStat.h
  3171. * src/ServerStatMan.cc
  3172. * test/ServerStatManTest.cc
  3173. * test/ServerStatTest.cc
  3174. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3175. Use time_t instead of int32_t. Use int64_t where milli second is
  3176. expected.
  3177. * src/TimeA2.cc
  3178. * src/TimeA2.h
  3179. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3180. Implemented ServerStatMan::save(...) function and its test case.
  3181. * src/ServerStat.cc
  3182. * src/ServerStat.h
  3183. * src/ServerStatMan.cc
  3184. * src/ServerStatMan.h
  3185. * test/ServerStatManTest.cc
  3186. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3187. Now aria2 uses name attribute in Metalink as local filename in
  3188. BitTorrent downloads. BUG#2033999
  3189. * src/BtContext.h
  3190. * src/BtDependency.cc
  3191. * src/DefaultBtContext.cc
  3192. * src/DefaultBtContext.h
  3193. * src/SingleFileDownloadContext.cc
  3194. * src/SingleFileDownloadContext.h
  3195. * test/BtDependencyTest.cc
  3196. * test/DefaultBtContextTest.cc
  3197. * test/MockBtContext.h
  3198. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3199. Added AC_C_BIGENDIAN
  3200. * src/configure.ac
  3201. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3202. Limited numCommand less than or equal to the number of piece.
  3203. * src/RequestGroup.cc
  3204. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3205. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3206. directive.
  3207. * test/DefaultPieceStorageTest.cc
  3208. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Fixed memory leak in test code
  3210. * test/AnnounceListTest.cc
  3211. * test/DefaultPeerListProcessorTest.cc
  3212. * test/DefaultPeerStorageTest.cc
  3213. * test/MetaFileUtilTest.cc
  3214. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3215. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3216. * src/DefaultPieceStorage.cc
  3217. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Initialized _directIOAllowed
  3219. * src/MultiDiskAdaptor.cc
  3220. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3221. Fixed memory leak
  3222. * src/GZipDecoder.cc
  3223. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3224. Fixed memory leak
  3225. * src/MetalinkParserStateMachine.cc
  3226. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Fixed memory leak
  3228. * src/Dictionary.cc
  3229. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3230. Fixed memory leak
  3231. * src/IteratableChunkChecksumValidator.h
  3232. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Fixed unmatched malloc/free.
  3234. * src/IteratableChunkChecksumValidator.cc
  3235. * src/IteratableChecksumValidator.cc
  3236. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Removed max chunk size check. This change fixes BUG#2040169
  3238. * src/ChunkedDecoder.cc
  3239. * src/ChunkedDecoder.h
  3240. * test/ChunkedDecoderTest.cc
  3241. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3242. Implemented download speed based URI selection algorithm.
  3243. Introduced new option --uri-selector.
  3244. If --uri-selector=feedback is given, aria2 uses download speed observed
  3245. in the previous downloads and chooses fastest server in the URI list.
  3246. Currently at most 10 URIs are considered to introduce randomeness for
  3247. finding better servers. The speed is average download speed in the
  3248. downloads.
  3249. On the other hand, if --uri-selector=inorder is given, which is default,
  3250. URI is tried in order in URI list.
  3251. The usage text for the new option has not been written yet.
  3252. * src/AbstractCommand.cc
  3253. * src/DownloadCommand.cc
  3254. * src/DownloadEngine.cc
  3255. * src/DownloadEngineFactory.cc
  3256. * src/InOrderURISelector.cc
  3257. * src/InOrderURISelector.h
  3258. * src/OptionHandlerFactory.cc
  3259. * src/PeerStat.h
  3260. * src/RequestGroup.cc
  3261. * src/RequestGroup.h
  3262. * src/RequestGroupMan.cc
  3263. * src/RequestGroupMan.h
  3264. * src/SegmentMan.cc
  3265. * src/SegmentMan.h
  3266. * src/ServerStat.cc
  3267. * src/ServerStat.h
  3268. * src/ServerStatMan.cc
  3269. * src/ServerStatMan.h
  3270. * src/ServerStatURISelector.cc
  3271. * src/ServerStatURISelector.h
  3272. * src/URISelector.h
  3273. * src/option_processing.cc
  3274. * src/prefs.cc
  3275. * src/prefs.h
  3276. * test/InOrderURISelectorTest.cc
  3277. * test/RequestGroupManTest.cc
  3278. * test/ServerStatManTest.cc
  3279. * test/ServerStatURISelectorTest.cc
  3280. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3281. * Release 0.15.1+2
  3282. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3283. Bump up version number to 0.15.1+2
  3284. * configure.ac
  3285. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3286. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3287. * m4/aria2_arg.m4
  3288. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3289. * Release 0.15.1+1
  3290. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3291. Bump up version number to 0.15.1+1
  3292. * configure.ac
  3293. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3294. Fixed the bug that causes segmentaion fault when resuming download
  3295. using metalink without size tag. Reproducible only using HTTP URI.
  3296. * src/HttpResponseCommand.cc
  3297. * src/FtpNegotiationCommand.cc
  3298. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3299. * Release 0.15.1
  3300. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3301. Updated Bulgarian and French translations, thanks to all translators.
  3302. * po/bg.po
  3303. * po/fr.po
  3304. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Bump up version number to 0.15.1
  3306. * configure.ac
  3307. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3308. Avoid repeated call of gettimeofday() when calculating speed.
  3309. * src/SpeedCalc.cc
  3310. * src/SpeedCalc.h
  3311. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Removed writable check when socket's send buffer is full in BitTorrent
  3313. downloads to lower CPU usage.
  3314. * src/PeerInteractionCommand.cc
  3315. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3316. Fixed broken gzip inflation.
  3317. Turn off segmented downloading if gzip content is smaller than or equal
  3318. to 1MiB and inflate the data on the fly, because HTTP response header
  3319. doesn't contain the length of inflated file we can't determin where
  3320. the chunk of data should be written.
  3321. On the other hand, if gzip content is larger than 1MB, then turn off
  3322. on the fly inflation, because some servers returns "content-type: gzip"
  3323. for *.tgz, *.gz files.
  3324. * src/DownloadCommand.cc
  3325. * src/HttpResponseCommand.cc
  3326. * src/HttpResponseCommand.h
  3327. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3328. Applied tizianomueller's patch to fix compile error.
  3329. * test/BitfieldManTest.cc
  3330. * test/BtRequestMessageTest.cc
  3331. * test/DefaultBtContextTest.cc
  3332. * test/DefaultDiskWriterTest.cc
  3333. * test/DefaultPieceStorageTest.cc
  3334. * test/HttpHeaderProcessorTest.cc
  3335. * test/HttpResponseTest.cc
  3336. * test/Metalink2RequestGroupTest.cc
  3337. * test/MetalinkParserControllerTest.cc
  3338. * test/MetalinkProcessorTest.cc
  3339. * test/PeerSessionResourceTest.cc
  3340. * test/UtilTest.cc
  3341. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3342. * Release 0.15.0
  3343. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Reordered src files in POTFILES.in so that usage text appears first.
  3345. * po/POTFILES.in
  3346. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3347. Bump up version number to 0.15.0
  3348. * configure.ac
  3349. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. Added Bulgarian translation.
  3351. Updated Catalan, Spanish, French and Japanese translations.
  3352. Thanks to all translators.
  3353. * po/LINGUAS
  3354. * po/bg.po
  3355. * po/ca.po
  3356. * po/es.po
  3357. * po/fr.po
  3358. * po/ja.po
  3359. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Updated feature list. Added libz for dependency section.
  3361. Added a description about unit testing using CppUnit.
  3362. * README
  3363. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Added a test for libz. Quoted where it is necessary.
  3365. * build_test.sh
  3366. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3367. Added GZip to `Enabled Features' list.
  3368. * src/FeatureConfig.cc
  3369. * src/FeatureConfig.h
  3370. * test/FeatureConfigTest.cc
  3371. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3372. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3373. the transfer has not yet started.
  3374. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3375. * src/SegmentMan.cc
  3376. * src/SegmentMan.h
  3377. * test/SegmentManTest.cc
  3378. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3379. Cache last calculated average download/upload speed.
  3380. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3381. cached value.
  3382. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3383. * src/PeerStat.h
  3384. * src/SpeedCalc.cc
  3385. * src/SpeedCalc.h
  3386. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3387. Call parseUrl directly.
  3388. * src/Request.cc (resetUrl)
  3389. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Supported absolute/relative path in Location header field.
  3391. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3392. * src/HttpHeader.cc
  3393. * src/HttpHeader.h
  3394. * src/HttpResponse.cc
  3395. * src/HttpSkipResponseCommand.cc
  3396. * src/Request.cc
  3397. * test/HttpHeaderTest.cc
  3398. * test/HttpResponseTest.cc
  3399. * test/RequestTest.cc
  3400. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Changed help text for --load-cookie option.
  3402. * doc/aria2c.1.txt
  3403. * src/usage_text.h
  3404. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3405. Regenerated test/Makefile.in to remove stale ChangeLog.
  3406. * test/Makefile.in
  3407. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3408. Updated po files.
  3409. * po/aria2c.pot
  3410. * po/*.po
  3411. * po/*.gmo
  3412. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3413. Bump up version number to 0.15.0b
  3414. * configure.ac
  3415. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3416. Externalize messages.
  3417. * src/RequestGroupMan.cc
  3418. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3419. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3420. Use File::exists() instead of File::isFile() to allow non-regular file
  3421. such as block special files.
  3422. * src/AbstractDiskWriter.cc
  3423. * src/MultiDiskWriter.cc
  3424. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3426. * src/gai_strerror.h
  3427. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Fixed compile error. Thanks gknauf for the patch.
  3429. * src/asctime_r.c
  3430. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. Included asctime_r.h from a2time.h.
  3432. * src/a2time.h
  3433. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3434. Added a message "aria2 doesn't verify signature" to log message when
  3435. signature file is saved.
  3436. * src/RequestGroupMan.cc
  3437. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3438. Added the ability to save signature when download is completed if
  3439. signature is available. The filename of signature file is the path to
  3440. download file followed by ".sig". If it already exists, then signature
  3441. will not be saved.
  3442. * src/RequestGroupMan.cc
  3443. * src/Signature.cc
  3444. * test/SignatureTest.cc
  3445. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Updated the descriptions for --bt-seed-unverified.
  3447. * doc/aria2c.1
  3448. * doc/aria2c.1.html
  3449. * doc/aria2c.1.txt
  3450. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3452. that this is not going to verify files using piece hashes.
  3453. * src/HelpItemFactory.cc
  3454. * src/OptionHandlerFactory.cc
  3455. * src/RequestGroup.cc
  3456. * src/option_processing.cc
  3457. * src/prefs.cc
  3458. * src/prefs.h
  3459. * src/usage_text.h
  3460. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3461. Added the ability to retrieve signature from Metalink file.
  3462. A retrieved signature is stored in Signature class and it is held by
  3463. DownloadContext class. Note that aria2 doesn't verify signature.
  3464. * src/DownloadContext.cc
  3465. * src/DownloadContext.h
  3466. * src/Makefile.am
  3467. * src/Makefile.in
  3468. * src/Metalink2RequestGroup.cc
  3469. * src/MetalinkEntry.cc
  3470. * src/MetalinkEntry.h
  3471. * src/MetalinkParserController.cc
  3472. * src/MetalinkParserController.h
  3473. * src/MetalinkParserStateMachine.cc
  3474. * src/MetalinkParserStateMachine.h
  3475. * src/Signature.cc
  3476. * src/Signature.h
  3477. * src/SignatureMetalinkParserState.cc
  3478. * src/SignatureMetalinkParserState.h
  3479. * src/VerificationMetalinkParserState.cc
  3480. * src/VerificationMetalinkParserState.h
  3481. * test/Metalink2RequestGroupTest.cc
  3482. * test/MetalinkParserControllerTest.cc
  3483. * test/MetalinkProcessorTest.cc
  3484. * test/test.xml
  3485. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3486. Close DiskAdaptor after renaming file.
  3487. * src/RequestGroup.cc
  3488. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3489. Corrected indentation
  3490. * src/DefaultBtProgressInfoFile.cc
  3491. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3492. Moved the calls of std::ios::exceptions() inside of try-catch block
  3493. because if an error occurred in constructor of std::fstream, then
  3494. exception is thrown immediately when std::ios::exceptions() is called
  3495. which results unhandled exception and aria2c aborts.
  3496. * src/DefaultBtProgressInfoFile.cc
  3497. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Added the test for the previous change in DefaultBtContext.cc
  3499. * test/DefaultBtContextTest.cc
  3500. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3501. Fixed the bug that causes infinite loop when the number of pieces are
  3502. fewer than allowed fast set size which is 10 by default.
  3503. * src/DefaultBtContext.cc
  3504. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3505. Updated the descriptions for -j, -s. Added --bt-seed.
  3506. * doc/aria2c.1
  3507. * doc/aria2c.1.html
  3508. * doc/aria2c.1.txt
  3509. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3510. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3511. aria2 seeds previously downloaded files without validating piece hashs.
  3512. * src/HelpItemFactory.cc
  3513. * src/OptionHandlerFactory.cc
  3514. * src/RequestGroup.cc
  3515. * src/option_processing.cc
  3516. * src/prefs.cc
  3517. * src/prefs.h
  3518. * src/usage_text.h
  3519. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. Updated DESCRIPTION of man page.
  3521. * doc/aria2c.1
  3522. * doc/aria2c.1.html
  3523. * doc/aria2c.1.txt
  3524. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3525. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3526. Don't define `struct addrinfo' when __sun is defined.
  3527. * src/getaddrinfo.h
  3528. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3529. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3530. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3531. second argument is of type `struct _stati64'. Otherwise it is defined as
  3532. `struct stat'.
  3533. * src/AbstractDiskWriter.cc
  3534. * src/File.cc
  3535. * src/File.h
  3536. * src/a2io.h
  3537. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3538. Fixed the compile error in hurd-i386
  3539. See the original bug report:
  3540. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3541. * src/a2io.h
  3542. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Code cleanup.
  3544. * src/PeerAbstractCommand.cc
  3545. * src/PeerAbstractCommand.h
  3546. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3547. Removed TransferEncoding.
  3548. * src/DownloadCommand.cc
  3549. * src/DownloadCommand.h
  3550. * src/HttpResponseCommand.cc
  3551. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Updated po files.
  3553. * po/aria2c.pot
  3554. * po/*.po
  3555. * po/*.gmo
  3556. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3557. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3558. * src/A2STR.cc
  3559. * src/A2STR.h
  3560. * src/ChunkedDecoder.cc
  3561. * src/ChunkedDecoder.h
  3562. * src/ChunkedEncoding.cc: Removed
  3563. * src/ChunkedEncoding.h: Removed
  3564. * src/DownloadCommand.cc
  3565. * src/DownloadCommand.h
  3566. * src/HttpDownloadCommand.cc
  3567. * src/HttpResponse.cc
  3568. * src/HttpResponse.h
  3569. * src/HttpResponseCommand.cc
  3570. * src/HttpSkipResponseCommand.cc
  3571. * src/HttpSkipResponseCommand.h
  3572. * src/Makefile.am
  3573. * src/TransferEncoding.h: Removed
  3574. * test/ChunkedDecoderTest.cc
  3575. * test/ChunkedEncodingTest.cc: Removed
  3576. * test/HttpResponseTest.cc
  3577. * test/Makefile.am
  3578. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Use append instead of insert.
  3580. * src/GZipDecoder.cc
  3581. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3582. Updated doc
  3583. * src/Decoder.h
  3584. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3585. Updated usage text for -s option.
  3586. * src/usage_text.h
  3587. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3589. * src/Request.cc
  3590. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3591. Cleaned up configure.ac.
  3592. * configure.ac
  3593. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3594. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3595. AC_ARG_ENABLE.
  3596. * configure.ac
  3597. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3599. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3600. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3601. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3602. fly and writes decoded data to a local disk.
  3603. * README
  3604. * README.html
  3605. * configure.ac
  3606. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3607. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3608. * m4/libz.m4
  3609. * src/Decoder.h
  3610. * src/DownloadCommand.cc
  3611. * src/DownloadCommand.h
  3612. * src/Exception.h
  3613. * src/GZipDecoder.cc
  3614. * src/GZipDecoder.h
  3615. * src/HttpHeader.cc
  3616. * src/HttpHeader.h
  3617. * src/HttpRequest.cc
  3618. * src/HttpRequest.h
  3619. * src/HttpResponse.cc
  3620. * src/HttpResponse.h
  3621. * src/HttpResponseCommand.cc
  3622. * src/Makefile.am
  3623. * test/GZipDecoderTest.cc
  3624. * test/HttpRequestTest.cc
  3625. * test/HttpResponseTest.cc
  3626. * test/Makefile.am
  3627. * test/Makefile.in
  3628. * test/gzip_decode_test.gz
  3629. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3630. Clarified usage of -j option.
  3631. * src/usage_text.h
  3632. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3633. Disabled getting size from the response of RETR.
  3634. If SIZE command failed, then disable resuming and segmented downloading.
  3635. * src/FtpConnection.cc
  3636. * src/FtpConnection.h
  3637. * src/FtpNegotiationCommand.cc
  3638. * src/FtpNegotiationCommand.h
  3639. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3640. Use digits to find first byte of file size, which makes the intention
  3641. of the code clearer.
  3642. * src/FtpConnection.cc
  3643. Don't call validateTotalLength() when size is 0.
  3644. * src/FtpNegotiationCommand.cc
  3645. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3646. Updated po files.
  3647. * po/aria2c.pot
  3648. * po/*.gmo
  3649. * po/*.po
  3650. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Clarified usage text for --split option.
  3652. * src/usage_text.h
  3653. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Bump up version number to 0.15.0dev. "dev" means "development"
  3655. version, which means I started the development of the next release!
  3656. * src/configure.ac
  3657. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. If FTP server returns negative response with REST raw command and
  3659. requested range is not 0, throw exception. If requested range is 0,
  3660. continue download a file from 0 byte.
  3661. * src/FtpNegotiationCommand.cc
  3662. * src/FtpNegotiationCommand.h
  3663. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Supported FTP server which don't recognize SIZE raw command.
  3665. If SIZE raw command is failed, aria2 will try to get file size
  3666. from the response of RETR raw command. If both attempts are failed,
  3667. then resuming and segmented downloading are disabled.
  3668. * src/FtpConnection.cc
  3669. * src/FtpConnection.h
  3670. * src/FtpNegotiationCommand.cc
  3671. * src/FtpNegotiationCommand.h
  3672. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. * Release 0.14.0+1
  3674. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3675. Bump up version number to 0.14.0+1
  3676. * src/configure.ac
  3677. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3678. Fixed the code that refers static member variable from non-static
  3679. context.
  3680. * src/DefaultPeerStorage.cc
  3681. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. * Release 0.14.0
  3683. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. Added build test script
  3685. * build_test.sh
  3686. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3687. Updated ja.po
  3688. * src/ja.po
  3689. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3690. Bump up version number to 0.14.0
  3691. * src/configure.ac
  3692. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Updated ja.po and fr.po. Great thanks for french translators and
  3694. Sebastien WILLEMIJNS.
  3695. * po/fr.po
  3696. * po/ja.po
  3697. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3698. Added configure option to enable/disable epoll support.
  3699. * configure.ac
  3700. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Updated man page.
  3702. * doc/aria2c.1.txt
  3703. * doc/aria2c.1
  3704. * doc/aria2c.1.html
  3705. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3706. Added missing default value '5' to the usage of --split option.
  3707. * src/HelpItemFactory.cc
  3708. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. Filled up pieces based on the number of missing blocks, rather than
  3710. simplay the number of piece * block length.
  3711. * src/BtRequestFactory.h
  3712. * src/DefaultBtInteractive.cc
  3713. * src/DefaultBtInteractive.h
  3714. * src/DefaultBtRequestFactory.cc
  3715. * src/DefaultBtRequestFactory.h
  3716. * src/Piece.cc
  3717. * src/Piece.h
  3718. * test/BitfieldManTest.cc
  3719. * test/DefaultBtRequestFactoryTest.cc
  3720. * test/MockBtRequestFactory.h
  3721. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Made _epEvents a member variable.
  3723. * src/DownloadEngine.cc
  3724. * src/DownloadEngine.h
  3725. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3726. Cancel download if http redirect is bounded more than 20 times.
  3727. * src/AbstractCommand.cc
  3728. * src/HttpSkipResponseCommand.cc
  3729. * src/Request.cc
  3730. * src/Request.h
  3731. * test/RequestTest.cc
  3732. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3733. Fixed unhandled exception(removed keyword `new').
  3734. * src/SocketCore.cc (initEPOLL)
  3735. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. Removed visit(const MetaEntry*)
  3737. * src/MetaEntryVisitor.h:
  3738. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3739. and made them virtual.
  3740. * src/BencodeVisitor.h
  3741. * src/BencodeVisitor.cc
  3742. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3743. Updated po files.
  3744. * po/aria2c.pot
  3745. * po/*.po
  3746. * po/*.gmo
  3747. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3748. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3749. the number of socket to watch out.
  3750. * src/PeerInteractionCommand.cc
  3751. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3752. When there is not enough space in disk when writing a chunk of data,
  3753. aria2 now prints the message to the console to warn user and aborts
  3754. its download. Not all downloads are canceled because some downloads
  3755. may use another disk or partition. BUG#1640332
  3756. * src/AbstractDiskWriter.cc
  3757. * src/PeerAbstractCommand.cc
  3758. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3759. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3760. setHaltRequested(true) to cancel download.
  3761. * src/PeerInteractionCommand.h
  3762. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3763. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3764. socket from int to sock_t as sockets are unsigned in Windows.
  3765. For AsyncNameResolver, DownloadEngine, I did additional modification
  3766. for the portion of the code changed according to epoll support.
  3767. I defined sock_t in a2netcompat.h to use sock_t without including
  3768. SocketCore.h.
  3769. * src/AsyncNameResolver.cc
  3770. * src/AsyncNameResolver.h
  3771. * src/DownloadEngine.cc
  3772. * src/DownloadEngine.h
  3773. * src/SocketCore.cc
  3774. * src/SocketCore.h
  3775. * src/a2netcompat.h
  3776. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3777. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3778. changes in the patch were applied.
  3779. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3780. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3781. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3782. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3784. a2io.h and common.h were modified.
  3785. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3786. MinGW.
  3787. * src/common.h: Changed off_t to 64 bit in MinGW.
  3788. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3790. only a2netcompat.h is modified.
  3791. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3792. directives.
  3793. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3794. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3795. only gai_strerror.h is modified.
  3796. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3797. winsock errors in MinGW.
  3798. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3800. follow sources are applied.
  3801. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3802. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3803. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3804. I included locale.h from Platform.cc.
  3805. * src/main.cc: Moved common setup/teardown code to Platform class.
  3806. * test/AllTest.cc: Use Platform class.
  3807. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3808. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3810. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3811. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3812. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3813. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3814. aria2-0.13.2+1-mingw-2.patch.
  3815. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3816. systems which don't have termious.h. I moved the directive inside of
  3817. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3818. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3819. anyway.
  3820. * src/asctime_r.h
  3821. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3822. I added 2nd argument to the prototype declaration.
  3823. * src/StringFormat.cc: Get rid of vasprintf.
  3824. * src/getaddrinfo.h: Fixed constants.
  3825. * configure.ac: Added the check for asctime_r function.
  3826. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3827. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. Added writable test for Socket when the sending message is in progress.
  3829. Usually the sending message is piece message. Without wriable check,
  3830. upload latency is dropped to more than 1sec.
  3831. * src/PeerInteractionCommand.cc
  3832. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Create only requested files and files which shares a piece with
  3834. requested file in multi-torrent downloads. Directory structures are
  3835. also created in the same rule.
  3836. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3837. DiskWriterEntry as in the previous implementation.
  3838. * src/MultiDiskWriter.cc
  3839. * src/MultiFileAllocationIterator.cc
  3840. * src/MultiFileAllocationIterator.h
  3841. * test/MultiFileAllocationIteratorTest.cc
  3842. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3843. Commented out -lprofiler
  3844. * src/Makefile.am
  3845. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Bump up version number to 0.14.0b.
  3847. * src/configure.ac
  3848. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3849. Actively establish connection to peers in seeding, when peer cache
  3850. is not full and max upload speed limit is not reached.
  3851. * src/ActivePeerConnectionCommand.cc
  3852. * src/ActivePeerConnectionCommand.h
  3853. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3855. to make room more fleshy, recently found peers.
  3856. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3857. it.
  3858. * src/DefaultPeerStorage.cc
  3859. * test/DefaultPeerStorageTest.cc
  3860. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3861. Returns cached data only when the previous receiveHandshake() is called
  3862. with peek = true.
  3863. * src/PeerConnection.cc (receiveHandshake)
  3864. * src/PeerConnection.h (receiveHandshake)
  3865. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Changed default value of -s option from 1 to 5.
  3867. Also max value of -s option is changed from 5 to 16.
  3868. * src/HelpItemFactory.cc
  3869. * src/OptionHandlerFactory.cc
  3870. * src/option_processing.cc
  3871. * src/usage_text.h
  3872. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3873. Changed -s options behavior. Now it means the number of connections
  3874. made simultaneously in each http/ftp download.
  3875. If 1 URL is specified, the behavior is the same with old implementation.
  3876. If -s N is given and more than N URLs are specified, first N URLs are
  3877. used and remaining URLs are used for backup. If less than N URLs are
  3878. specified, some of URLs are used more than once so that totally N
  3879. connections are made simultaneously.
  3880. * src/main.cc
  3881. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3882. Included missing iosfwd or ostream header.
  3883. * src/RequestGroupMan.cc
  3884. * src/TaggedItem.cc
  3885. * src/TaggedItem.h
  3886. * src/Util.cc
  3887. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3888. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3889. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3890. * src/HttpConnection.cc: Included missing sstream.
  3891. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3892. Added --bt-max-open-files option.
  3893. * src/DefaultPieceStorage.cc
  3894. * src/HelpItemFactory.cc
  3895. * src/MultiDiskAdaptor.cc
  3896. * src/MultiDiskAdaptor.h
  3897. * src/OptionHandlerFactory.cc
  3898. * src/option_processing.cc
  3899. * src/prefs.cc
  3900. * src/prefs.h
  3901. * src/usage_text.h
  3902. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3903. Fixed the bug that aria2 aborts when a path to a directory is given
  3904. in command-line.
  3905. * src/ProtocolDetector.cc
  3906. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3907. Limited the number files opened in each BitTorrent download. The default
  3908. value is 100. The option to change this value will be added.
  3909. * src/MultiDiskAdaptor.cc
  3910. * src/MultiDiskAdaptor.h
  3911. * src/MultiFileAllocationIterator.cc
  3912. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3913. Fixed the bug that HTTP downloads don't start with old libraries.
  3914. * src/HttpHeaderProcessor.cc
  3915. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3916. Use empty() instead of size() > 0.
  3917. * src/HttpConnection.cc
  3918. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3919. Drop connection if the incoming peer ID is the same with localhost's
  3920. one. The previous implementation drops connection when incoming peer's
  3921. IP address is the same with localhost's one.
  3922. * src/PeerListenCommand.cc
  3923. * src/DefaultBtInteractive.cc
  3924. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. Returns cached data without checking whether socket is readable
  3926. if the cache is available.
  3927. * src/PeerConnection.cc (receiveHandshake)
  3928. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3929. Included stdint.h
  3930. * src/common.h
  3931. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3932. Removed duplicate HAVE_GETTIMEOFDAY
  3933. * src/Makefile.am
  3934. * src/Makefile.in
  3935. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3936. Use interval as a minInterval when minInterval is not supplied.
  3937. * src/DefaultBtAnnounce.cc
  3938. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3939. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3940. attempt is failed, then 2nd attempt get kicked out more quickly.
  3941. And it is now static const member of DefaultBtAnnounce.
  3942. * src/DefaultBtAnnounce.h
  3943. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3945. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3946. * src/ActivePeerConnectionCommand.cc
  3947. * src/BtConstants.h
  3948. * src/BtRuntime.h
  3949. * src/DHTGetPeersCommand.cc
  3950. * src/DefaultBtAnnounce.cc
  3951. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3952. BtRuntime::MAX_PEERS.
  3953. * src/DefaultPeerStorage.h
  3954. * src/InitiatorMSEHandshakeCommand.cc
  3955. * src/PeerInitiateConnectionCommand.cc
  3956. * src/PeerInteractionCommand.cc
  3957. * src/PeerReceiveHandshakeCommand.cc
  3958. * src/TrackerWatcherCommand.cc
  3959. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Always Connect to _numNewConnection
  3961. * src/ActivePeerConnectionCommand.cc
  3962. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3963. Made `begin' unsigned int.
  3964. * src/GrowSegment.h
  3965. * src/Piece.cc
  3966. * src/Piece.h
  3967. * src/PiecedSegment.cc
  3968. * src/PiecedSegment.h
  3969. * src/Segment.h
  3970. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. Calculate piece hash when data is arrived if the data is arrived in
  3972. order. This removes additional read operation for hash calculation.
  3973. If the data is arrived in out of order, the hash is calucated when the
  3974. piece is completed. This is the same behavior as the old implementation.
  3975. * src/BtPieceMessage.cc
  3976. * src/DefaultBtProgressInfoFile.cc
  3977. * src/DefaultPieceStorage.cc
  3978. * src/DownloadCommand.cc
  3979. * src/DownloadCommand.h
  3980. * src/DownloadEngine.cc
  3981. * src/GrowSegment.cc
  3982. * src/GrowSegment.h
  3983. * src/Piece.cc
  3984. * src/Piece.h
  3985. * src/PiecedSegment.cc
  3986. * src/PiecedSegment.h
  3987. * src/Segment.h
  3988. * test/PieceTest.cc
  3989. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3990. Try to keep the ordering of outgoing piece message.
  3991. * src/DefaultBtMessageDispatcher.cc
  3992. (DefaultBtMessageDispatcher::sendMessages)
  3993. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3994. Fixed busy loop when error/hup epoll events occur.
  3995. * src/AbstractCommand.cc
  3996. * src/PeerAbstractCommand.cc
  3997. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3998. Added --bt-request-peer-speed-limit option, which was a constant
  3999. SLOW_SPEED_THRESHOLD.
  4000. * src/ActivePeerConnectionCommand.cc
  4001. * src/ActivePeerConnectionCommand.h
  4002. * src/BtConstants.h
  4003. * src/HelpItemFactory.cc
  4004. * src/OptionHandlerFactory.cc
  4005. * src/PeerReceiveHandshakeCommand.cc
  4006. * src/option_processing.cc
  4007. * src/prefs.cc
  4008. * src/prefs.h
  4009. * src/usage_text.h
  4010. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Removed repeated call of getTopDirPath(). Instead, call it once and
  4012. cache the result.
  4013. * src/MultiDiskAdaptor.cc
  4014. * src/MultiDiskAdaptor.h
  4015. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4016. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4017. Fixed compile error on debian etch.
  4018. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4019. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4020. it is undefined.
  4021. * src/Util.cc (ULLONG_MAX)
  4022. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Added epoll support. Use epoll if it is available. If not, use select.
  4024. When async dns is enabled in compile time, epoll support is enabled
  4025. only when aria2 is built with c-ares. This condition statement is
  4026. defined in a2io.h.
  4027. Currently aria2 supports both c-ares and ares, but ares is maintained
  4028. for quite a while and debian already has c-ares package, ares support
  4029. will be dropped in the future version.
  4030. * configure.ac
  4031. * src/AbstractCommand.cc
  4032. * src/AsyncNameResolver.cc
  4033. * src/AsyncNameResolver.h
  4034. * src/Command.cc
  4035. * src/Command.h
  4036. * src/DownloadEngine.cc
  4037. * src/DownloadEngine.h
  4038. * src/PeerAbstractCommand.cc
  4039. * src/SocketCore.cc
  4040. * src/SocketCore.h
  4041. * src/a2io.h
  4042. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4044. directive.
  4045. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Do not do write operation to /dev/null file.
  4047. * src/LogFactory.cc
  4048. * src/SimpleLogger.cc
  4049. Replaced vasprintf with vsnprintf
  4050. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4051. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. * src/BtRequestMessage.cc
  4053. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4054. for segmentation fault caused by previous commit.
  4055. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4056. Reduced the usage of gettimeofday().
  4057. * src/DefaultBtMessageDispatcher.cc
  4058. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4059. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4060. * src/RequestSlot.cc
  4061. * src/RequestSlot.h
  4062. (RequestSlot::isTimeout)
  4063. Made RequestSlot have a reference to Piece object to avoid find
  4064. Piece repeatedly.
  4065. * src/DefaultBtMessageDispatcher.cc
  4066. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4067. * src/RequestSlot.cc
  4068. * src/RequestSlot.h
  4069. (RequestSlot::getPiece)
  4070. * test/DefaultBtMessageDispatcherTest.cc
  4071. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4072. * src/TimeA2.cc
  4073. * src/TimeA2.h
  4074. (Time::difference): New function.
  4075. (Time::elapsed): Done optimization.
  4076. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4078. directive.
  4079. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. * src/option_processing.cc: Added missing `defined' keyword to #if
  4081. directive.
  4082. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Bump up version number to 0.13.2+1
  4084. * src/configure.ac
  4085. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4086. Refactored broken outstanding piece handling.
  4087. * src/DefaultPieceStorage.cc
  4088. * src/DefaultPieceStorage.h
  4089. * src/Piece.cc
  4090. * src/Piece.h
  4091. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4092. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4093. name collision of static variable and predefined macro.
  4094. * src/BtContext.cc
  4095. * src/BtContext.h
  4096. * src/CookieBoxFactory.cc
  4097. * src/CookieBoxFactory.h
  4098. * src/CookieParser.cc
  4099. * src/CookieParser.h
  4100. * src/DefaultBtContext.cc
  4101. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4102. * src/RequestGroup.cc
  4103. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4104. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. * Release 0.13.2
  4106. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4107. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4108. * po/fr.po
  4109. * po/ja.po
  4110. * po/aria2c.pot
  4111. * po/*.po
  4112. * po/*.gmo
  4113. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. Bump up version number to 0.13.2
  4115. * src/configure.ac
  4116. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4117. Refactord.
  4118. * src/RequestGroupMan.cc
  4119. (removeStoppedGroup)
  4120. (fillRequestGroupFromReserver)
  4121. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4122. Fixed compile error on Ubuntu.
  4123. * src/BtPieceMessage.cc
  4124. * src/MessageDigestHelper.cc
  4125. * src/Util.cc
  4126. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4127. Fixed compile error when configured with --disable-bittorrent
  4128. * test/DownloadHandlerFactoryTest.cc
  4129. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Done make update-po
  4131. * po/aria2c.pot
  4132. * po/*.po
  4133. * po/*.gmo
  4134. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Bump up version number to 0.13.2rc.
  4136. * src/configure.ac
  4137. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Made option name bold. Updated SYNOPSIS to make it more readable.
  4139. * doc/aria2c.1.txt
  4140. * doc/aria2c.1
  4141. * doc/aria2c.1.html
  4142. * src/version_usage.cc
  4143. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Refactored. Use std::string instead of size and char*.
  4145. * Data.cc
  4146. * Data.h
  4147. * test/Data.cc
  4148. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4149. Added trimSelf(). Rewritten trim() to use trimSelf().
  4150. * Util.cc
  4151. * Util.h
  4152. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4154. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4155. Fixed compile error when configured with --disable-metalink.
  4156. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4157. * test/FeatureConfigTest.cc
  4158. * test/DownloadHandlerFactoryTest.cc
  4159. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4160. Fixed compile error when configured with --without-gnutls
  4161. --without-openssl
  4162. * src/main.cc
  4163. * test/DefaultBtProgressInfoFileTest.cc
  4164. * test/SegmentManTest.cc
  4165. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Fixed compile error with OpenSSL.
  4167. * src/IteratableChunkChecksumValidator.cc
  4168. * src/LibsslDHKeyExchange.h
  4169. * src/MessageDigestHelper.cc
  4170. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4171. Revert the default value of --max-concurrent-downloads to 5.
  4172. Revert the default value of --metalink-servers to 5.
  4173. Man pages was also updated.
  4174. * src/option_processing.cc
  4175. * doc/aria2c.1.txt
  4176. * doc/aria2c.1.html
  4177. * doc/aria2c.1
  4178. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Returns const reference:
  4180. DownloadContext::getPieceHash, DownloadContext::getName,
  4181. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4182. BtContext::getInfoHashAsString,
  4183. * src/BtContext.h
  4184. * src/DefaultBtContext.cc
  4185. * src/DefaultBtContext.h
  4186. * src/DownloadContext.h
  4187. * src/SingleFileDownloadContext.h
  4188. * test/MockBtContext.h
  4189. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. * src/RequestGroup.h (getDir): Removed.
  4191. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Returns const reference. The internal urlencode function was optimized
  4193. a little bit.
  4194. * src/Request.cc
  4195. * src/Request.h
  4196. * src/HttpRequest.cc
  4197. * src/HttpRequest.h
  4198. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4199. Defined option name and possible values as std::string to reduce
  4200. temporary string object creation in runtime.
  4201. * src/HelpItemFactory.cc
  4202. * src/LogFactory.cc
  4203. * src/Option.cc
  4204. * src/OptionHandlerFactory.cc
  4205. * src/option_processing.cc
  4206. * src/prefs.cc
  4207. * src/prefs.h
  4208. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Return const reference.
  4210. * src/DownloadHandlerConstants.cc
  4211. * src/DownloadHandlerConstants.h
  4212. (getMetalinkExtensions)
  4213. (getMetalinkContentTypes)
  4214. (getBtExtensions)
  4215. (getBtContentTypes)
  4216. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4217. * src/HttpHeader.cc (get): Rewritten.
  4218. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Make HttpHeader::getFirst(...) return const reference.
  4220. * src/HttpHeader.cc
  4221. * src/HttpHeader.h
  4222. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4224. it with V_TRUE.
  4225. * src/DefaultPieceStorage.cc
  4226. * src/DownloadCommand.cc
  4227. * src/FtpNegotiationCommand.cc
  4228. * src/HttpRequest.cc
  4229. * src/InitiateConnectionCommand.cc
  4230. * src/RequestGroup.cc
  4231. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4232. Made Option::get(...) return const reference of std::string.
  4233. * src/Option.cc
  4234. * src/Option.h
  4235. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. Replaced std:copy with insert.
  4237. * src/DefaultBtMessageDispatcher.cc
  4238. * src/DefaultPieceStorage.cc
  4239. * src/DownloadEngineFactory.cc
  4240. * src/RequestGroup.cc
  4241. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Included SocketCore.h to fix compiler warning.
  4243. * src/InitiateConnectionCommand.cc
  4244. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Put piece selection strategy algorithm to RarestPieceSelector class,
  4246. Added a switch to choose whether randomized selection so that unit
  4247. tests emit same results in, possibly, win32.
  4248. * src/DefaultPieceStorage.cc
  4249. * src/DefaultPieceStorage.h
  4250. * src/RarestPieceSelector.cc
  4251. * src/RarestPieceSelector.h
  4252. * test/DefaultPieceStorageTest.cc
  4253. * test/RarestPieceSelectorTest.cc
  4254. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. Don't pool connection if HTTP proxy is enabled.
  4256. * src/FtpFinishDownloadCommand.cc
  4257. * src/FtpNegotiationCommand.cc
  4258. * src/HttpSkipResponseCommand.cc
  4259. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4261. * src/AbstractCommand.cc
  4262. * src/AbstractCommand.h
  4263. * src/ActivePeerConnectionCommand.cc
  4264. * src/FtpInitiateConnectionCommand.cc
  4265. * src/HttpInitiateConnectionCommand.cc
  4266. * src/InitiateConnectionCommandFactory.cc
  4267. * src/PeerAbstractCommand.cc
  4268. * src/PeerAbstractCommand.h
  4269. * src/PeerInitiateConnectionCommand.cc
  4270. * src/TrackerWatcherCommand.cc
  4271. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4272. Sort RequestSlot in ascending order and manipulate them using
  4273. lower_bound.
  4274. * src/DefaultBtMessageDispatcher.cc
  4275. * src/DefaultBtMessageDispatcher.h
  4276. (getMessageQueue): Added const qualifier.
  4277. (getRequestSlots): Added const qualifier.
  4278. (sendMessages): Use empty() instead of size().
  4279. (doCancelSendingPieceAction): Use HandleEvent object.
  4280. (doAbortOutstandingRequestAction): Rewritten.
  4281. (doChokedAction): Rewritten.
  4282. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4283. (isOutstandingRequest): Rewritten.
  4284. (getOutstandingRequest): Rewritten.
  4285. (removeOutstandingRequest): Rewritten.
  4286. (addOutstandingRequest): Rewritten.
  4287. * src/RequestSlot.cc
  4288. * src/RequestSlot.h
  4289. (operator=): Rewritten.
  4290. (operator!=): New function.
  4291. (operator<): New function.
  4292. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. * src/DefaultBtRequestFactory.cc
  4294. (doChokedAction): Rewritten.
  4295. (removeCompletedPiece): Rewritten.
  4296. (removeTargetPiece): Rewritten.
  4297. (createRequestMessages): Added the debug log.
  4298. (createRequestMessagesOnEndGame: Added the debug log.
  4299. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4300. Added the debug log message.
  4301. * src/BtPieceMessage.cc (doReceivedAction)
  4302. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4304. used lower_bound to process them rather than linear search.
  4305. * src/DHTPeerAnnounceStorage.cc
  4306. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4307. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4308. peer has at least one completed piece.
  4309. * src/Peer.cc
  4310. * src/Peer.h
  4311. * src/PeerInteractionCommand.cc
  4312. * src/PeerSessionResource.cc
  4313. * src/PeerSessionResource.h
  4314. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4315. Removed unnecessary sorting
  4316. * src/DefaultPieceStorage (DefaultPieceStorage)
  4317. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. Rewritten the portion of the code that mangaes allowed fast indexes.
  4319. * src/PeerSessionResource.cc
  4320. * src/PeerSessionResource.h
  4321. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Removed the invalid string including '\r' from ru.po and
  4323. did make update-po.
  4324. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Added --log-level and --summary-interval to man page.
  4326. * doc/aria2c.1.txt
  4327. * doc/aria2c.1.html
  4328. * doc/aria2c.1
  4329. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Added --log-level option to specify log level. Log messages under
  4331. the specified level are not output. Default value is `debug'.
  4332. * src/HelpItemFactory.cc
  4333. * src/LogFactory.cc
  4334. * src/LogFactory.h
  4335. * src/Logger.h
  4336. * src/OptionHandlerFactory.cc
  4337. * src/SimpleLogger.cc
  4338. * src/SimpleLogger.h
  4339. * src/main.cc
  4340. * src/option_processing.cc
  4341. * src/prefs.h
  4342. * src/usage_text.h
  4343. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4344. Print download progress summary of all parallel downloads in specified
  4345. interval, default 60 secs. While aria2 could download several files
  4346. in parallel (see -j option), it displayed just first download progress,
  4347. and the other downloads are hidden from the users. This new feature
  4348. prints all downloads currently in-progress to the console so that you
  4349. can check the status of all downloads. The interval can be adjusted
  4350. by --summary-interval option.
  4351. The progress readout is now cut so that all fits in the one line of
  4352. console.
  4353. * src/ConsoleStatCalc.cc
  4354. * src/ConsoleStatCalc.h
  4355. * src/HelpItemFactory.cc
  4356. * src/OptionHandlerFactory.cc
  4357. * src/RequestGroupMan.cc
  4358. * src/RequestGroupMan.h
  4359. * src/main.cc
  4360. * src/option_processing.cc
  4361. * src/prefs.h
  4362. * src/usage_text.h
  4363. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4365. * src/DownloadEngine.cc (DownloadEngine)
  4366. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4367. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4368. defined.
  4369. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4370. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4371. Use erase+lower_bound+insert instead of sort.
  4372. * src/DefaultPieceStorage.cc (addPieceStats)
  4373. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4374. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4375. * src/A2STR.cc
  4376. * src/A2STR.h
  4377. * src/OptionParser.cc (parse)
  4378. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4379. Defined fake filename `[tracker.announce]' as static const std::string.
  4380. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4381. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4382. Defined default filename `index.html' as static const std::string
  4383. * src/SingleFileDownloadContext.cc
  4384. * src/SingleFileDownloadContext.h
  4385. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4386. Defined "[MEMORY]" as static const std::string.
  4387. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4388. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4389. Defined control file's version number as static const std::string.
  4390. * src/DefaultBtProgressInfoFile.cc
  4391. * src/DefaultBtProgressInfoFile.h
  4392. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Use Request::METHOD_GET
  4394. * src/RequestGroup.cc (createNextCommandWithAdj)
  4395. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4396. Defined "OK", "ERR", "INPR" as static const std::string
  4397. * src/RequestGroupMan.cc (showDownloadResults)
  4398. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4399. Defined default client used in extended handshake as static const
  4400. std::string
  4401. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4402. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4403. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4404. * src/HttpConnection.cc (eraseConfidentialInfo)
  4405. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4406. Defined default ftp user and password as static const std::string
  4407. * src/AuthConfigFactory.cc
  4408. * src/AuthConfigFactory.h
  4409. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Defined strings used in netrc as static const std::string
  4411. * src/Netrc.cc
  4412. * src/Netrc.h
  4413. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Defined HTTP status as static const std::string
  4415. * src/AbstractProxyResponseCommand.cc
  4416. * src/HttpHeader.cc
  4417. * src/HttpHeader.h
  4418. * src/HttpResponse.cc
  4419. * src/HttpResponseCommand.cc
  4420. * src/HttpSkipResponseCommand.cc
  4421. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Defined "\r\n", "A", "I" as static const std::string
  4423. * src/A2STR.cc
  4424. * src/A2STR.h
  4425. * src/FtpConnection.cc
  4426. * src/FtpConnection.h
  4427. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Added COLON_C(".") and used it in Request::parseUrl()
  4429. * src/A2STR.cc
  4430. * src/A2STR.h
  4431. * src/Request.cc (parseUrl)
  4432. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4433. Changed the type of padName from `const std::string&' to `const char*'.
  4434. * src/MSEHandshake.cc (verifyPadLength)
  4435. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. Defined "sha1" as static const std::string.
  4437. * src/MetalinkParserController.cc
  4438. * src/MetalinkParserController.h
  4439. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Defined message digest algorithm name as static const std::string
  4441. * src/DHTTokenTracker.cc
  4442. * src/DHTUtil.cc
  4443. * src/DefaultBtContext.cc
  4444. * src/MSEHandshake.cc
  4445. * src/MessageDigestHelper.cc
  4446. * src/Peer.cc
  4447. * src/messageDigest.cc
  4448. * src/messageDigest.h
  4449. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. Made string literals used in SAX parser static const std::string.
  4451. * src/FileMetalinkParserState.cc
  4452. * src/FileMetalinkParserState.h
  4453. * src/FilesMetalinkParserState.cc
  4454. * src/FilesMetalinkParserState.h
  4455. * src/InitialMetalinkParserState.cc
  4456. * src/InitialMetalinkParserState.h
  4457. * src/MetalinkMetalinkParserState.cc
  4458. * src/MetalinkMetalinkParserState.h
  4459. * src/PiecesMetalinkParserState.cc
  4460. * src/PiecesMetalinkParserState.h
  4461. * src/ResourcesMetalinkParserState.cc
  4462. * src/ResourcesMetalinkParserState.h
  4463. * src/VerificationMetalinkParserState.cc
  4464. * src/VerificationMetalinkParserState.h
  4465. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4467. * src/A2STR.cc
  4468. * src/A2STR.h
  4469. * src/File.cc
  4470. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. Defined static const std::string IP("ip"), PORT("port") and use them
  4472. instead of string literals.
  4473. * src/DefaultPeerListProcessor.cc
  4474. * src/DefaultPeerListProcessor.h
  4475. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Made string literals for torrent file processing static const
  4477. std::string.
  4478. * src/BtContext.cc
  4479. * src/BtContext.h
  4480. * src/DefaultBtContext.cc
  4481. * src/DefaultBtContext.h
  4482. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. Made string literal for tracker response static const std::string
  4484. * src/BtAnnounce.cc
  4485. * src/BtAnnounce.h
  4486. * src/DefaultBtAnnounce.cc
  4487. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4488. Use DHTMessage::T instead of "t".
  4489. * src/DHTMessageTracker.cc (messageArrived)
  4490. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4491. Made keyName static const. Made trimmed charset static const
  4492. std::string.
  4493. * src/Util.cc (getContentDispositionFilename)
  4494. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4495. Made USER_AGENT const. Made "/" static const std::string.
  4496. * src/A2STR.cc
  4497. * src/A2STR.h
  4498. * src/HttpRequest.cc
  4499. * src/HttpRequest.h
  4500. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4501. Made string listeral to static const std::string:
  4502. "Content-Range", "Content-Length"
  4503. * src/HttpHeader.cc
  4504. * src/HttpHeader.h
  4505. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Made string listeral to static const std::string.
  4507. * src/HttpConnection.cc
  4508. * src/HttpHeader.cc
  4509. * src/HttpHeader.h
  4510. * src/HttpResponse.cc
  4511. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. Made string listeral to static const std::string.
  4513. * src/A2STR.cc
  4514. * src/A2STR.h
  4515. * src/SimpleLogger.cc
  4516. * src/SimpleLogger.h
  4517. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Made string literal to static const std::string.
  4519. Rewritten CookieParser::setField.
  4520. * src/A2STR.cc
  4521. * src/A2STR.h
  4522. * src/CookieBoxFactory.cc
  4523. * src/CookieBoxFactory.h
  4524. * src/CookieParser.cc
  4525. * src/CookieParser.h
  4526. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4527. Made string literal to static const std::string
  4528. * src/DHTAbstractMessage.cc
  4529. * src/DHTAnnouncePeerMessage.cc
  4530. * src/DHTAnnouncePeerMessage.h
  4531. * src/DHTAnnouncePeerReplyMessage.cc
  4532. * src/DHTAnnouncePeerReplyMessage.h
  4533. * src/DHTFindNodeMessage.cc
  4534. * src/DHTFindNodeMessage.h
  4535. * src/DHTFindNodeReplyMessage.cc
  4536. * src/DHTFindNodeReplyMessage.h
  4537. * src/DHTGetPeersMessage.cc
  4538. * src/DHTGetPeersMessage.h
  4539. * src/DHTGetPeersReplyMessage.cc
  4540. * src/DHTGetPeersReplyMessage.h
  4541. * src/DHTMessage.cc
  4542. * src/DHTMessage.h
  4543. * src/DHTMessageFactoryImpl.cc
  4544. * src/DHTMessageReceiver.cc
  4545. * src/DHTPingMessage.cc
  4546. * src/DHTPingMessage.h
  4547. * src/DHTPingReplyMessage.cc
  4548. * src/DHTPingReplyMessage.h
  4549. * src/DHTQueryMessage.cc
  4550. * src/DHTQueryMessage.h
  4551. * src/DHTResponseMessage.cc
  4552. * src/DHTResponseMessage.h
  4553. * src/DHTUnknownMessage.cc
  4554. * src/DHTUnknownMessage.h
  4555. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Made string literal to static const std::string
  4557. * src/BtChokeMessage.cc (toString)
  4558. * src/BtHaveAllMessage.cc (toString)
  4559. * src/BtHaveNoneMessage.cc (toString)
  4560. * src/BtInterestedMessage.cc (toString)
  4561. * src/BtNotInterestedMessage.cc (toString)
  4562. * src/BtUnchokeMessage.cc (toString)
  4563. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Replaced "" with static const variable A2STR::NIL.
  4565. Replaced string comparison against "" with std::string::empty().
  4566. Added PROTO_* to Request class and use them as a protocol string
  4567. constant.
  4568. Made "started", "stopped", "completed" static const variable in
  4569. AnnounceList class.
  4570. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Updated translations. Great thanks to translators.
  4572. * po/ca.po
  4573. * po/de.po
  4574. * po/fr.po
  4575. * po/it.po
  4576. * po/ja.po
  4577. * po/ru.po
  4578. * po/zh_CN.po
  4579. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Updated man page; categorized options and fixed typo.
  4581. * doc/aria2c.1.txt
  4582. * doc/aria2c.1.html
  4583. * doc/aria2c.1
  4584. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. Removed const ref
  4586. * src/MetalinkEntry.cc (AddProtocolPreference)
  4587. * src/RequestGroup.cc (FindServerHostByHostname)
  4588. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Rewritten Accept-Features handling.
  4590. * src/HttpRequestCommand.cc (createHttpRequest)
  4591. * src/a2functional.h
  4592. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Changed method signature:
  4594. DHTAbstractNodeLookupTask::toEntries
  4595. * src/DHTAbstractNodeLookupTask.cc
  4596. * src/DHTAbstractNodeLookupTask.h
  4597. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. Changed method signature:
  4599. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4600. * src/BtContext.h
  4601. * src/DefaultBtContext.cc
  4602. * src/DefaultBtContext.h
  4603. * src/DefaultBtInteractive.cc
  4604. * test/DefaultBtContextTest.cc
  4605. * test/MockBtContext.h
  4606. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. Changed method signature:
  4608. MultiFileAllocationIterator::makeDiskWriterEntries
  4609. * src/MultiFileAllocationIterator.cc
  4610. * src/MultiFileAllocationIterator.h
  4611. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Changed method sinature:
  4613. MetalinkEntry::toFileEntry,
  4614. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4615. Metalinker::queryEntry
  4616. * src/Metalink2RequestGroup.cc
  4617. * src/MetalinkEntry.cc
  4618. * src/MetalinkEntry.h
  4619. * src/MetalinkHelper.cc
  4620. * src/MetalinkHelper.h
  4621. * src/Metalinker.cc
  4622. * src/Metalinker.h
  4623. * src/main.cc
  4624. * test/MetalinkHelperTest.cc
  4625. * test/MetalinkerTest.cc
  4626. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Changed method sinature:
  4628. RequestGroup::getURIs
  4629. * src/RequestGroup.cc
  4630. * src/RequestGroup.h
  4631. * test/Metalink2RequestGroupTest.cc
  4632. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4633. Changed method signature:
  4634. PeerListProcessor::extractPeer
  4635. * src/CompactPeerListProcessor.cc
  4636. * src/CompactPeerListProcessor.h
  4637. * src/DefaultBtAnnounce.cc
  4638. * src/DefaultPeerListProcessor.cc
  4639. * src/DefaultPeerListProcessor.h
  4640. * src/DelegatingPeerListProcessor.cc
  4641. * src/DelegatingPeerListProcessor.h
  4642. * src/PeerListProcessor.h
  4643. * src/UTPexExtensionMessage.cc
  4644. * test/DefaultPeerListProcessorTest.cc
  4645. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Changed method signature:
  4647. BtRequestFactory::createRequestMessages,
  4648. BtRequestFactory::createRequestMessagesOnEndGame
  4649. * src/BtRequestFactory.h
  4650. * src/DefaultBtInteractive.cc
  4651. * src/DefaultBtRequestFactory.cc
  4652. * src/DefaultBtRequestFactory.h
  4653. * test/DefaultBtRequestFactoryTest.cc
  4654. * test/MockBtRequestFactory.h
  4655. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Changed method signature:
  4657. PieceStorage::getInFlightPieces
  4658. * src/DefaultBtProgressInfoFile.cc
  4659. * src/DefaultPieceStorage.cc
  4660. * src/DefaultPieceStorage.h
  4661. * src/PieceStorage.h
  4662. * src/UnknownLengthPieceStorage.cc
  4663. * src/UnknownLengthPieceStorage.h
  4664. * test/DefaultBtProgressInfoFileTest.cc
  4665. * test/MockPieceStorage.h
  4666. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Changed method signature:
  4668. PostDownloadHandler::getNextRequestGroups
  4669. Metalink2RequestGroup::generate
  4670. RequestGroup::postDownloadProcessing
  4671. * src/BtPostDownloadHandler.cc
  4672. * src/BtPostDownloadHandler.h
  4673. * src/Metalink2RequestGroup.cc
  4674. * src/Metalink2RequestGroup.h
  4675. * src/MetalinkPostDownloadHandler.cc
  4676. * src/MetalinkPostDownloadHandler.h
  4677. * src/PostDownloadHandler.h
  4678. * src/RequestGroup.cc
  4679. * src/RequestGroup.h
  4680. * src/RequestGroupMan.cc
  4681. * src/main.cc
  4682. * test/BtPostDownloadHandlerTest.cc
  4683. * test/Metalink2RequestGroupTest.cc
  4684. * test/MetalinkPostDownloadHandlerTest.cc
  4685. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Rewritten AccRequestGroup
  4687. * src/main.cc
  4688. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Rewritten.
  4690. * src/TaggedItem.cc (toTagString)
  4691. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. Rewritten Accept-Features handling.
  4693. * src/HttpRequestCommand.cc (createHttpRequest)
  4694. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. Rewritten accept types handling.
  4696. * HttpRequest.cc (createRequest)
  4697. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4698. Rewritten
  4699. * src/FeatureConfig.cc (featureSummary)
  4700. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4701. Changed method signature:
  4702. PeerStorage::getActivePeers
  4703. * src/DHTPeerAnnounceEntry.cc
  4704. * src/DefaultPeerStorage.cc
  4705. * src/DefaultPeerStorage.h
  4706. * src/PeerStorage.h
  4707. * test/DefaultPeerStorageTest.cc
  4708. * test/MockPeerStorage.h
  4709. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4710. Changed method signature:
  4711. DHTPeerAnnounceStorage::getPeers,
  4712. DHTPeerAnnounceEntry::getPeers
  4713. * src/DHTGetPeersMessage.cc
  4714. * src/DHTPeerAnnounceEntry.cc
  4715. * src/DHTPeerAnnounceEntry.h
  4716. * src/DHTPeerAnnounceStorage.cc
  4717. * src/DHTPeerAnnounceStorage.h
  4718. * test/DHTAnnouncePeerMessageTest.cc
  4719. * test/DHTPeerAnnounceEntryTest.cc
  4720. * test/DHTPeerAnnounceStorageTest.cc
  4721. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4722. Changed method signature:
  4723. NameResolver::resolve
  4724. * src/DHTEntryPointNameResolveCommand.cc
  4725. * src/InitiateConnectionCommand.cc
  4726. * src/NameResolver.cc
  4727. * src/NameResolver.h
  4728. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. Changed method signature:
  4730. PieceStorage::getAdvertisedPieceIndexes
  4731. * src/DefaultBtInteractive.cc
  4732. * src/DefaultPieceStorage.cc
  4733. * src/DefaultPieceStorage.h
  4734. * src/PieceStorage.h
  4735. * src/UnknownLengthPieceStorage.h
  4736. * test/MockPieceStorage.h
  4737. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4738. Changed method signature:
  4739. SegmentMan::getInFlightSegment
  4740. * src/AbstractCommand.cc
  4741. * src/SegmentMan.cc
  4742. * src/SegmentMan.h
  4743. * test/SegmentManTest.cc
  4744. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4745. Changed method signature:
  4746. DHTAbstractNodeLookupTask::getNodesFromMessage
  4747. * src/DHTAbstractNodeLookupTask.cc
  4748. * src/DHTAbstractNodeLookupTask.h
  4749. * src/DHTNodeLookupTask.cc
  4750. * src/DHTNodeLookupTask.h
  4751. * src/DHTPeerLookupTask.cc
  4752. * src/DHTPeerLookupTask.h
  4753. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4755. * src/AbstractCommand.cc
  4756. * src/BtCheckIntegrityEntry.cc
  4757. * src/BtCheckIntegrityEntry.h
  4758. * src/BtFileAllocationEntry.cc
  4759. * src/BtFileAllocationEntry.h
  4760. * src/BtSetup.cc
  4761. * src/BtSetup.h
  4762. * src/CheckIntegrityCommand.cc
  4763. * src/CheckIntegrityEntry.h
  4764. * src/ChecksumCheckIntegrityEntry.cc
  4765. * src/ChecksumCheckIntegrityEntry.h
  4766. * src/DHTSetup.cc
  4767. * src/DHTSetup.h
  4768. * src/DownloadEngine.cc
  4769. * src/FileAllocationCommand.cc
  4770. * src/FileAllocationEntry.h
  4771. * src/RequestGroup.cc
  4772. * src/RequestGroup.h
  4773. * src/RequestGroupMan.cc
  4774. * src/RequestGroupMan.h
  4775. * src/StreamCheckIntegrityEntry.cc
  4776. * src/StreamCheckIntegrityEntry.h
  4777. * src/StreamFileAllocationEntry.cc
  4778. * src/StreamFileAllocationEntry.h
  4779. * src/TrackerWatcherCommand.cc
  4780. * src/a2functional.h
  4781. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4782. Changed method signature:
  4783. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4784. DHTBucket::getGoodNodes,
  4785. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4786. * src/BNode.cc
  4787. * src/BNode.h
  4788. * src/DHTAbstractNodeLookupTask.cc
  4789. * src/DHTAutoSaveCommand.cc
  4790. * src/DHTBucket.cc
  4791. * src/DHTBucket.h
  4792. * src/DHTBucketRefreshTask.cc
  4793. * src/DHTFindNodeMessage.cc
  4794. * src/DHTGetPeersMessage.cc
  4795. * src/DHTRoutingTable.cc
  4796. * src/DHTRoutingTable.h
  4797. * test/BNodeTest.cc
  4798. * test/DHTBucketTest.cc
  4799. * test/DHTRoutingTableTest.cc
  4800. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. In piece selection functions, Pass std::deque<...> by reference rather
  4802. than returning it.
  4803. * src/BitfieldMan.cc
  4804. * src/BitfieldMan.h
  4805. * src/DefaultBtRequestFactory.cc
  4806. * src/DefaultPieceStorage.cc
  4807. * src/Piece.cc
  4808. * src/Piece.h
  4809. * test/BitfieldManTest.cc
  4810. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4811. Implemented rarest piece first piece selection strategy.
  4812. * src/AbstractBtMessage.cc
  4813. * src/AbstractBtMessage.h
  4814. * src/BitfieldMan.cc
  4815. * src/BitfieldMan.h
  4816. * src/BtBitfieldMessage.cc
  4817. * src/BtHaveAllMessage.cc
  4818. * src/BtHaveMessage.cc
  4819. * src/DefaultPieceStorage.cc
  4820. * src/DefaultPieceStorage.h
  4821. * src/PeerInteractionCommand.cc
  4822. * src/PieceStorage.h
  4823. * src/UnknownLengthPieceStorage.h
  4824. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. Rewritten readData and writeData.
  4826. * src/MultiDiskAdaptor.cc
  4827. * src/MultiDiskAdaptor.h
  4828. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Move \n out of the message "Usage: ...".
  4830. * src/version_usage.cc
  4831. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4832. Bump up version number to 0.13.2b.
  4833. * configure.ac
  4834. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4835. Added const qualifier to argument Exception& e.
  4836. * src/Logger.h
  4837. * src/SimpleLogger.cc
  4838. * src/SimpleLogger.h
  4839. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4840. Pool connection when CWD, SIZE command fails.
  4841. * src/FtpNegotiationCommand.cc
  4842. * src/FtpNegotiationCommand.h
  4843. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4844. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4845. * src/HttpResponseCommand.cc
  4846. * src/HttpSkipResponseCommand.cc
  4847. * src/HttpSkipResponseCommand.h
  4848. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Pool connection when a server returns 4xx, 5xx responses.
  4850. * src/HttpNullDownloadCommand.cc
  4851. * src/HttpNullDownloadCommand.h
  4852. * src/HttpResponse.cc
  4853. * src/HttpResponse.h
  4854. * src/HttpResponseCommand.cc
  4855. * src/HttpResponseCommand.h
  4856. * test/HttpResponseTest.cc
  4857. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4858. Print usage when no URL is specifed or bad command-line option is
  4859. specified.
  4860. * src/HelpItemFactory.cc
  4861. * src/help_tags.h
  4862. * src/option_processing.cc
  4863. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Removed duplicate log message.
  4865. * src/AbstractCommand.cc (asyncResolveHostname)
  4866. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4867. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4868. Changed -j option's default value from 5 to 1.
  4869. Added new examples using protocol auto detection feature.
  4870. Removed -T, -M usage where it can be omitted.
  4871. * doc/aria2c.1.txt
  4872. * doc/aria2c.1.html
  4873. * doc/aria2c.1.txt
  4874. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. Updated command-line usage text, so that it tells users that they
  4876. can specify any number of torrent files and metalink files in
  4877. command-line.
  4878. * src/version_usage.cc
  4879. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Changed the default value of -j option to 1.
  4881. * src/HelpItemFactory.cc
  4882. * src/option_processing.cc
  4883. * src/usage_text.h
  4884. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Added the ability to reuse connection in FTP and it is enabled by
  4886. default. It can be disabled by --ftp-reuse-connection=false option.
  4887. * src/Command.cc
  4888. * src/DownloadCommand.cc
  4889. * src/FtpDownloadCommand.cc
  4890. * src/FtpDownloadCommand.h
  4891. * src/FtpFinishDownloadCommand.cc
  4892. * src/FtpFinishDownloadCommand.h
  4893. * src/FtpInitiateConnectionCommand.cc
  4894. * src/FtpNegotiationCommand.cc
  4895. * src/FtpNegotiationCommand.h
  4896. * src/HelpItemFactory.cc
  4897. * src/Makefile.am
  4898. * src/Makefile.in
  4899. * src/OptionHandlerFactory.cc
  4900. * src/option_processing.cc
  4901. * src/prefs.h
  4902. * src/usage_text.h
  4903. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4904. Call Command::transitStatus() before calling Command::execute(),
  4905. so that the status change made in execute() is not cleared.
  4906. * src/DownloadEngine.cc
  4907. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Removed forward declaration of SocketCore class.
  4909. * src/HttpDownloadCommand.h
  4910. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4912. in InitiateConnectionCommandFactory. They should be set only when
  4913. the protocol is HTTP or HTTPS.
  4914. * src/InitiateConnectionCommandFactory.cc
  4915. * src/RequestGroup.cc
  4916. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Fixed infinite loop in checksum checking.
  4918. * src/IteratableChecksumValidator.cc
  4919. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4920. Set _supportsPersistentConnection to true by default.
  4921. * src/Request.cc
  4922. * src/RequestGroup.cc
  4923. * test/HttpRequestTest.cc
  4924. * test/RequestTest.cc
  4925. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Added timeout to socket pool. The default timeout is 15 seconds,
  4927. which is the same value Apache uses.
  4928. * src/DownloadEngine.cc
  4929. * src/DownloadEngine.h
  4930. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Fixed misuse of multimap::find()
  4932. * src/HttpHeader.cc
  4933. * test/HttpHeaderTest.cc
  4934. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4936. option.
  4937. The asynchronous DNS is not capable of IPv6 yet.
  4938. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4939. least for HTTP download.
  4940. * src/AbstractCommand.cc
  4941. * src/AbstractCommand.h
  4942. * src/AsyncNameResolver.cc
  4943. * src/AsyncNameResolver.h
  4944. * src/DHTEntryPointNameResolveCommand.cc
  4945. * src/DHTEntryPointNameResolveCommand.h
  4946. * src/DownloadEngine.cc
  4947. * src/DownloadEngine.h
  4948. * src/FtpInitiateConnectionCommand.cc
  4949. * src/FtpInitiateConnectionCommand.h
  4950. * src/HelpItemFactory.cc
  4951. * src/HttpInitiateConnectionCommand.cc
  4952. * src/HttpInitiateConnectionCommand.h
  4953. * src/InitiateConnectionCommand.cc
  4954. * src/InitiateConnectionCommand.h
  4955. * src/Makefile.am
  4956. * src/Makefile.in
  4957. * src/NameResolver.cc
  4958. * src/NameResolver.h
  4959. * src/OptionHandlerFactory.cc
  4960. * src/SocketCore.cc
  4961. * src/SocketCore.h
  4962. * src/Util.cc
  4963. * src/Util.h
  4964. * src/option_processing.cc
  4965. * src/prefs.h
  4966. * src/usage_text.h
  4967. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Updated man page: --quiet, --header were added.
  4969. --metalink-servers and --enable-http-keep-alive option were updated.
  4970. * doc/aria2c.1
  4971. * doc/aria2c.1.html
  4972. * doc/aria2c.1.txt
  4973. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Enable HTTP keep-alive by default.
  4975. * src/HelpItemFactory.cc
  4976. * src/option_processing.cc
  4977. * src/usage_text.h
  4978. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Disable http keep-alive if the remote server is not HTTP/1.1.
  4980. * src/HttpConnection.cc
  4981. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Receive content body of 302 response so that the connection can be
  4983. reused later when http keep-alive is enabled.
  4984. * src/HttpNullDownloadCommand.cc
  4985. * src/HttpNullDownloadCommand.h
  4986. * src/HttpResponseCommand.cc
  4987. * src/HttpResponseCommand.h
  4988. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4989. const SharedHandle<Request> -> const SharedHandle<Request>&
  4990. * src/FtpDowndloadCommand.cc
  4991. * src/FtpDowndloadCommand.h
  4992. * src/HttpDownloadCommand.cc
  4993. * src/HttpDownloadCommand.h
  4994. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4995. Fixed the bug that the control file(.aria2 file) is not renamed
  4996. according to tryAutoFileRenaming().
  4997. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4998. its control file exist, use them and continue download.
  4999. The old implementation didn't take into account of control file's
  5000. existence, so basically you couldn't continue download of renamed file.
  5001. * src/BtProgressInfoFile.h
  5002. * src/DefaultBtProgressInfoFile.cc
  5003. * src/DefaultBtProgressInfoFile.h
  5004. * src/NullProgressInfoFile.h
  5005. * src/RequestGroup.cc
  5006. * test/DefaultBtProgressInfoFileTest.cc
  5007. * test/MockBtProgressInfoFile.h
  5008. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Change the default value of --metalink-servers option from `5' to `1'.
  5010. * src/HelpItemFactory.cc
  5011. * src/option_processing.cc
  5012. * src/usage_text.h
  5013. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. Reimplemented transparent metalink using Accept request header.
  5015. * src/HttpRequest.cc
  5016. * src/HttpRequest.h
  5017. * src/HttpRequestCommand.cc
  5018. * src/Metalink2RequestGroup.cc
  5019. * src/RequestGroup.cc
  5020. * src/RequestGroup.h
  5021. * test/HttpRequestTest.cc
  5022. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Bump up version number to 0.13.2a
  5024. * configure.ac
  5025. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Updated configure.ac using the result of autoscan.
  5027. * configure.ac
  5028. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. Fixed compilation error without gcrypt/openssl.
  5030. * src/DownloadCommand.cc
  5031. * src/DownloadCommand.h
  5032. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5033. Reorganized version information so that it can be displayed in a
  5034. standard terminal screen without scrolling.
  5035. Removed http, ftp from Configuration section, because they are always
  5036. enabled.
  5037. * src/FeatureConfig.cc
  5038. * src/FeatureConfig.h
  5039. * src/main.cc
  5040. * src/messageDigest.cc
  5041. * src/messageDigest.h
  5042. * src/version_usage.cc
  5043. * test/FeatureConfigTest.cc
  5044. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Masked user ID in log.
  5046. * src/FtpConnection.cc (sendUser)
  5047. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Removed query part from filename in HTTP download. The query part means
  5049. the substring after "?" in URL. Firefox seems do the same thing.
  5050. A query part is sometimes very long and not suitable to filename,
  5051. so I think it is better to remove it from filename.
  5052. * src/HttpRequest.cc
  5053. * src/HttpRequest.h
  5054. * src/Request.cc
  5055. * src/Request.h
  5056. * test/HttpRequestTest.cc
  5057. * test/RequestTest.cc
  5058. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5059. Rewritten Exception class. Throw exception object, not its pointer and
  5060. catch by reference, so that remove problematic delete operator for
  5061. catched exception.
  5062. * src/Exception.cc
  5063. * src/Exception.h
  5064. * test/ExceptionTest.cc
  5065. * src/*: All files throwing/catching exception.
  5066. * test/*: All files throwing/catching exception.
  5067. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5068. Now auto protocol detection is enabled without -Z option.
  5069. But there is a important difference between with/without -Z optoin.
  5070. For example, if you type:
  5071. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5072. then, aria2 interprets there are 3 request groups:
  5073. (1) http://host/file, http://mirror/file <-- multi-source download
  5074. (2) file1.torrent
  5075. (3) file2.metalink
  5076. On the other hand, if you invoke above command with -Z option, it is
  5077. interpreted as 4 request groups:
  5078. (1) http://host/file
  5079. (2) file1.torrent
  5080. (3) file2.metalink
  5081. (4) http://mirror/file
  5082. I think usually user don't mix multi-source URLs and torrent files, so
  5083. there is no big problem here.
  5084. * src/main.cc
  5085. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. Fixed the bug that causes segmentaion fault when reading XML containing
  5087. unescapsed character like '&'.
  5088. Also a modification was made which avoids adding unnecessary
  5089. characters stack and appending unused string.
  5090. * src/ExpatMetalinkProcessor.cc
  5091. * src/FileMetalinkParserState.h
  5092. * src/FilesMetalinkParserState.h
  5093. * src/FinMetalinkParserState.h
  5094. * src/HashMetalinkParserState.h
  5095. * src/InitialMetalinkParserState.h
  5096. * src/LanguageMetalinkParserState.h
  5097. * src/MetalinkMetalinkParserState.h
  5098. * src/MetalinkParserState.h
  5099. * src/MetalinkParserStateMachine.cc
  5100. * src/MetalinkParserStateMachine.h
  5101. * src/OSMetalinkParserState.h
  5102. * src/PieceHashMetalinkParserState.h
  5103. * src/PiecesMetalinkParserState.h
  5104. * src/ResourcesMetalinkParserState.h
  5105. * src/SizeMetalinkParserState.h
  5106. * src/SkipTagMetalinkParserState.h
  5107. * src/URLMetalinkParserState.h
  5108. * src/VerificationMetalinkParserState.h
  5109. * src/VersionMetalinkParserState.h
  5110. * src/XML2SAXMetalinkProcessor.cc
  5111. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. Added StringFormat class, which internally calls vasprintf.
  5113. operator<< is defined for this class, so it can be used with iostream
  5114. classes nicely. SimpleLogger and following functions are rewritten
  5115. using StringFormat class.
  5116. Besides, now Logger class's methods are non-const, many classes
  5117. that has a const Logger* as a member variable are modified to remove
  5118. const qualifier from the variable declaration.
  5119. * src/HelpItemFactory.cc
  5120. * src/Request.cc
  5121. * src/SimpleLogger.cc
  5122. * src/StringFormat.cc
  5123. * src/StringFormat.h
  5124. * src/Util.cc
  5125. * src/option_processing.cc
  5126. * src/version_usage.cc
  5127. * test/StringFormatTest.cc
  5128. * src/*.h: The classes that has const Logger* as a member variable.
  5129. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5131. failed. Also fixed memory link when exception is thrown there.
  5132. * src/main.cc (AccRequestGroup)
  5133. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5134. Added build-in "Accept-Features" support. For now only "metalink" is
  5135. used in this header field.
  5136. This "metalink" value is removed from the list when connecting URLs
  5137. fed by metalink file to avoid loop in "transparent" metlaink.
  5138. * src/HttpRequest.cc
  5139. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5140. header is also held in this variable. Also renamed setUserHeaders as
  5141. addHeader and it was rewritten to add header not just to clear the old
  5142. value.
  5143. * src/HttpRequestCommand.cc
  5144. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5145. from "Accept-Features" list.
  5146. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5147. default.
  5148. * src/RequestGroup.h
  5149. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5150. * src/a2functional.h: Included <string> because Concat class depends on
  5151. it.
  5152. * test/HttpRequestTest.cc
  5153. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Added comment
  5155. * src/RequestGroup.cc (createNextCommand)
  5156. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5157. Capitalized METHOD_GET and METHOD_HEAD
  5158. * src/Request.cc
  5159. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Added getDownloadResults() method
  5161. * src/RequestGroupMan.cc
  5162. * src/RequestGroupMan.h
  5163. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5164. Fixed the bug that aria2 exits when commands is empty() but
  5165. _routineCommands are not.
  5166. * src/DownloadEngine.cc
  5167. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Use the default value pulled from Option object in HelpItemFactory.
  5169. except options whose defualt value is embedded in a usage text.
  5170. * src/HelpItemFactory.cc
  5171. * src/HelpItemFactory.h
  5172. * src/option_processing.cc
  5173. * src/version_usage.cc
  5174. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Added --quiet option to make aria2 quiet (no console output).
  5176. --quiet option is tagged with ADVANCED.
  5177. * src/HelpItemFactory.cc
  5178. * src/LogFactory.cc
  5179. * src/LogFactory.h
  5180. * src/MultiUrlRequestInfo.cc
  5181. * src/MultiUrlRequestInfo.h
  5182. * src/NullStatCalc.h: New class. This class prints nothing.
  5183. * src/OptionHandlerFactory.cc
  5184. * src/main.cc
  5185. * src/option_processing.cc
  5186. * src/prefs.h
  5187. * src/usage_text.h
  5188. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5190. * src/HelpItemFactory.cc (createHelpItems):
  5191. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Fixed compilation error in ExpatMetalinkProcessor.cc
  5193. * src/ExpatMetalinkProcessor.cc
  5194. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. Reuse socket if the origin server supports HTTP keep-alive and
  5196. --enable-http-keep-alive or --enable-http-pipelining is given.
  5197. The current implementation doesn't reuse the connections established
  5198. against proxy server.
  5199. * src/AbstractCommand.cc
  5200. * src/DownloadEngine.cc
  5201. * src/DownloadEngine.h
  5202. * src/HttpDownloadCommand.cc
  5203. * src/HttpInitiateConnectionCommand.cc
  5204. * src/HttpResponseCommand.cc
  5205. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5206. Rewritten HTTP keep-alive and pipelining routine.
  5207. * src/AbstractCommand.cc
  5208. * src/HttpConnection.cc
  5209. * src/HttpDownloadCommand.cc
  5210. * src/HttpRequest.cc
  5211. * src/HttpRequestCommand.cc
  5212. * src/HttpResponseCommand.cc
  5213. * src/Request.cc
  5214. * src/Request.h
  5215. * src/RequestGroup.cc
  5216. * test/HttpRequestTest.cc
  5217. * test/HttpResponseTest.cc
  5218. * test/RequestTest.cc
  5219. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Added missing setUserHeaders call
  5221. * src/HttpRequestCommand.cc
  5222. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5223. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5224. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5225. waste of time because it is more likey false.
  5226. * src/FileAllocationDispatcherCommand.cc (execute)
  5227. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Now HTTP status and version are a member variable of HttpHeader.
  5229. HTTP status is processed as a string, not integer.
  5230. * src/AbstractProxyResponseCommand.cc
  5231. * src/HttpConnection.cc
  5232. * src/HttpHeader.cc
  5233. * src/HttpHeader.h
  5234. * src/HttpHeaderProcessor.cc
  5235. * src/HttpHeaderProcessor.h
  5236. * src/HttpResponse.cc
  5237. * src/HttpResponse.h
  5238. * test/HttpHeaderProcessorTest.cc
  5239. * test/HttpResponseTest.cc
  5240. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Added --header option. You can specify any number of additional HTTP headers
  5242. like:
  5243. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5244. Unlike other commad-line option, you can use --header option multiple times.
  5245. * src/HelpItemFactory.cc
  5246. * src/HttpRequest.{cc, h}
  5247. * src/HttpRequestCommand.cc
  5248. * src/OptionHandlerFactory.cc
  5249. * src/OptionHandlerImpl.h
  5250. * src/option_processing.cc
  5251. * src/prefs.h
  5252. * src/usage_text.h
  5253. * test/HttpRequestTest.cc (testUserHeaders)
  5254. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Eliminates the time lag between sequential downloads and commands in
  5256. the same RequestGroup.
  5257. In old implementation, aria2 occasionally waits 1 seconds before
  5258. executing next command or RequestGroup.
  5259. This is really a waste of time, and new implementation eliminates
  5260. this unnecessary time lag.
  5261. * src/AbstractCommand.cc
  5262. * src/AutoSaveCommand.cc
  5263. * src/CheckIntegrityCommand.cc
  5264. * src/Command.{cc, h}
  5265. * src/DownloadEngine.{cc, h}
  5266. * src/DownloadEngineFactory.cc
  5267. * src/FileAllocationCommand.cc
  5268. * src/FileAllocationDispatcherCommand.cc
  5269. * src/FillRequestGroupCommand.cc
  5270. * src/FtpInitiateConnectionCommand.cc
  5271. * src/HaveEraseCommand.cc
  5272. * src/HttpInitiateConnectionCommand.cc
  5273. * src/HttpResponseCommand.cc
  5274. * src/RealtimeCommand.cc
  5275. * src/RequestGroup.cc
  5276. * src/RequestGroupMan.cc
  5277. * src/StreamFileAllocationEntry.cc
  5278. * src/TimeBasedCommand.{cc, h}
  5279. * src/TimedHaltCommand.cc
  5280. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5281. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5282. keyword explicit and SharedHandle's default constructor initializes
  5283. its internal obj to null, old implementation initializes it using
  5284. obj's default constructor.
  5285. To assign null, write SharedHandle<T> x(...); x.reset();
  5286. TODO: test/SharedHandleTest.cc needs more tests.
  5287. * src/SharedHandle.h
  5288. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Fixed type in man page.
  5290. * doc/aria2c.1.txt
  5291. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5293. * src/SimpleLogger.{cc, h}
  5294. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Implemented auto protocol detection.
  5296. Now you can do:
  5297. aria2c -Z http://host/file file1.torrent file2.metalink
  5298. (Note: -Z option is required for auto protcol detection.)
  5299. Then aria2c downloads 3 files simultaneously:
  5300. 1. http://host/file
  5301. 2. file1.torrent <-- read local torrent file
  5302. 3. file2.metalink <-- read local Metalink file.
  5303. Same thing goes with -i option. Assume your uris.txt contans:
  5304. http://host/file
  5305. file1.torrent
  5306. file2.metalink
  5307. Then you can do: aria2c -i uris.txt
  5308. (Note: -Z option is not needed if -i option is given.)
  5309. * src/main.cc
  5310. * src/ProtocolDetector.{cc, h}
  5311. * test/ProtocolDetectorTest.cc
  5312. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5314. installed
  5315. * src/ARC4Encryptor.h
  5316. * src/ARC4Decryptor.h
  5317. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Renamed argument from 'errno' to 'err', since errno is confused with
  5319. errno defined in errno.h.
  5320. * src/LibgcryptARC4Decryptor.h
  5321. * src/LibgcryptARC4Context.h
  5322. * src/LibgcryptDHKeyExchange.h
  5323. * src/LibgcryptARC4Encryptor.h
  5324. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Rewritten choking algorithm.
  5326. * src/PeerChokeCommand.{cc, h}
  5327. * src/BtInterestedMessage.cc
  5328. * src/PeerSessionResource.{cc, h}
  5329. * src/DefaultPeerStorage.{cc, h}
  5330. * src/BtNotInterestedMessage.cc
  5331. * src/DefaultBtMessageDispatcher.{cc, h}
  5332. * src/BtMessageDispatcher.h
  5333. * src/Peer.{cc, h}
  5334. * src/BtLeecherStateChoke.{cc, h}
  5335. * src/BtSetup.cc
  5336. * src/BtSeederStateChoke.{cc, h}
  5337. * src/PeerStorage.h
  5338. * test/MockPeerStorage.h
  5339. * test/MockBtMessageDispatcher.h
  5340. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Fixed compilation error on x84-64 platform.
  5342. * src/AuthConfig.cc: Included ostream.
  5343. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Rewritten getBasename() and getDirname(), without standard library
  5345. basename(), dirname().
  5346. * src/File.cc
  5347. * test/FileTest.cc
  5348. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Added Simplified Chinese translation. Also updated the following
  5350. translations: Polish, Dutch, German. Great thanks to all translators.
  5351. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Suppress content-range error when 'Content-Range' response header
  5353. doesn't contains bytes-unit specifier 'bytes'
  5354. * src/HttpHeader.cc (getRange)
  5355. * test/HttpHeaderTest.cc
  5356. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5357. Fixed compilation error with g++-4.3
  5358. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Added missing include files for MinGW
  5360. * test/HttpHeaderProcessorTest.cc
  5361. * test/DHTRoutingTableSerializerTest.cc
  5362. * test/DHTRoutingTableDeserializerTest.cc
  5363. * test/UriListParserTest.cc
  5364. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Now download line is printed nicely with no garbage at the end of
  5366. line. I use ioctl to get the columns of terminal.
  5367. If stdout is redirected to another device, instead of carriage return,
  5368. end of line '\n' character is used. This is feature request#1909659
  5369. * src/ConsoleStatCalc.cc (calculateStat)
  5370. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5371. Included a2time.h
  5372. * src/DHTMessageDispatcher.h
  5373. * src/DHTMessageEntry.h
  5374. * src/DHTReplaceNodeTask.h
  5375. * src/DHTMessageTracker.h
  5376. * src/Util.h
  5377. * src/CookieBox.h
  5378. * src/SocketCore.h
  5379. * src/DefaultBtMessageDispatcher.h
  5380. * src/SocketCore.cc
  5381. * src/Util.cc
  5382. * src/DHTPingTask.h
  5383. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Fixed high memory footprint when DHT is enabled.
  5385. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5386. queued than it is processed and the queue is getting longer. As a
  5387. consequence, momory usage is increased.
  5388. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5389. replacement cache in DHTBucket which is described in Kademlia paper.
  5390. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5391. DHTReplaceNodeTask.
  5392. * src/DHTBucket.{h, cc}
  5393. (cacheNode): New function.
  5394. (getCachedNodes): New function.
  5395. (dropNode): Push back cached node to _nodes.
  5396. * test/DHTBucketTest.cc
  5397. (testCacheNode): New test
  5398. (testDropNode): New test
  5399. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5400. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5401. the unused 4KB memory when ssl is not used.
  5402. * src/SocketCore.cc
  5403. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Added summary log for peer announce storage.
  5405. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5406. Removed cast
  5407. * src/DefaultPeerStorage.cc (addPeer)
  5408. Log exception message
  5409. * src/DHTMessageTracker.cc (handleTimeout)
  5410. Fixed casting
  5411. * test/HttpRequestTest.cc
  5412. * test/MetalinkProcessorTest.cc
  5413. * test/PieceTest.cc
  5414. * test/MetalinkEntryTest.cc
  5415. * test/SequenceTest.cc
  5416. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. * src/ParameterizedStringParser.cc (createLoop):
  5418. Removed unused variable sstep.
  5419. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5420. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5421. * src/Util.{h, cc}
  5422. (parseUInt): New function.
  5423. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5424. The actual range is uint32_t.
  5425. * test/UtilTest.cc
  5426. * src/ParameterizedStringParser.cc:
  5427. Use Util::parseUInt() for loop variables.
  5428. * test/ParameterizedStringParserTest.cc
  5429. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5430. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. Rewritten the functions for binding port.
  5432. * src/DHTConnectionImpl.{h, cc}
  5433. * src/PeerListenCommand.{h, cc}
  5434. * src/DHTSetup.cc
  5435. * src/BtSetup.cc
  5436. * test/DHTConnectionImplTest.cc
  5437. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. type cleanup for allmost all remaining files.
  5439. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Type clarification
  5441. * src/PeerSessionResource.{h, cc}
  5442. * src/DefaultPieceStorage.{h, cc}
  5443. * src/Peer.{h, cc}
  5444. * test/PeerSessionResourceTest.cc
  5445. Use div function
  5446. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5447. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Type clarification
  5449. * src/DefaultPeerStorage.{h, cc}
  5450. * test/DefaultPeerStorageTest.cc
  5451. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Type clarification: size_t for length or size, uint64_t for file
  5453. length, off_t for file offset.
  5454. * src/DefaultBtProgressInfoFile.cc
  5455. * src/DefaultBtContext.{h, cc}
  5456. * src/DefaultBtInteractive.cc
  5457. * src/DownloadCommand.{h, cc}
  5458. * src/IteratableChunkChecksumValidator.{h, cc}
  5459. * src/SegmentMan.{h, cc}
  5460. * src/SingleFileDownloadContext.{h, cc}
  5461. * src/IteratableChecksumValidator.{h, cc}
  5462. * src/BtContext.h
  5463. * src/IteratableValidator.h
  5464. * src/DownloadContext.h
  5465. * test/SingleFileDownloadContextTest.cc
  5466. * test/DefaultBtContextTest.cc
  5467. * test/MockBtContext.h
  5468. * test/Metalink2RequestGroupTest.cc
  5469. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Type clarification: size_t for length or size, uint64_t for file
  5471. length, off_t for file offset.
  5472. * src/PiecedSegment.cc
  5473. * src/GrowSegment.h
  5474. * src/DefaultBtRequestFactory.h
  5475. * src/DefaultBtProgressInfoFile.cc
  5476. * src/UnknownLengthPieceStorage.h
  5477. * src/DefaultPieceStorage.cc
  5478. * src/UnknownLengthPieceStorage.cc
  5479. * src/DefaultBtInteractive.cc
  5480. * src/GrowSegment.cc
  5481. * src/BitfieldMan.h
  5482. * src/DownloadCommand.cc
  5483. * src/BtRequestFactory.h
  5484. * src/PiecedSegment.h
  5485. * src/DefaultPieceStorage.h
  5486. * src/Piece.cc
  5487. * src/DefaultBtRequestFactory.cc
  5488. * src/PieceStorage.h
  5489. * src/Segment.h
  5490. * src/Piece.h
  5491. * src/BitfieldMan.cc
  5492. * src/Util.cc
  5493. * test/DefaultBtProgressInfoFileTest.cc
  5494. * test/DefaultPieceStorageTest.cc
  5495. * test/MockPieceStorage.h
  5496. * test/BtRequestMessageTest.cc
  5497. * test/DefaultBtMessageDispatcherTest.cc
  5498. * test/BitfieldManTest.cc
  5499. * test/GrowSegmentTest.cc
  5500. * test/PieceTest.cc
  5501. * test/SegmentTest.cc
  5502. * test/SegmentManTest.cc
  5503. * test/DefaultBtRequestFactoryTest.cc
  5504. * test/MockBtRequestFactory.h
  5505. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. Fixed compilation error with --disable-nls
  5507. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5508. in gettext.h causes the problem.
  5509. * src/common.h
  5510. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Removed subPiece related functions.
  5512. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5513. * src/DefaultPieceStorage.{h, cc}
  5514. * test/PieceTest.cc
  5515. * test/DefaultPieceStorageTest.cc
  5516. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Use unsigned char for data store.
  5518. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Bump up version number to 0.13.0+1
  5520. * configure.ac
  5521. * Release 0.13.0+1
  5522. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Changed inactive connection timeout to 120.
  5524. To accept more mulually interested peers, disconnect peer when there
  5525. is no interest between us after certain time passed.
  5526. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5527. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5528. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5529. when compiled with async DNS support.
  5530. * src/DownloadEngine.cc
  5531. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5532. value '10' will be a little bit short when some DNS servers are
  5533. offline and several DNS servers are tried. It should be configured
  5534. by command-line option.
  5535. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5536. Merged Ross's mingw patch.
  5537. * src/DHTRoutingTableDeserializer.cc
  5538. * src/DHTRoutingTableSerializer.cc
  5539. * src/Platform.{h, cc}
  5540. * src/timegm.h
  5541. * src/gettimeofday.h
  5542. * src/getaddrinfo.h
  5543. * src/SocketCore.h
  5544. * src/common.h
  5545. * src/inet_aton.h
  5546. * src/DownloadEngine.h
  5547. * src/gai_strerror.h
  5548. * src/a2netcompat.h
  5549. * configure.ac
  5550. * configure
  5551. * aclocal.m4
  5552. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. Included missing iostream.
  5554. * test/AllTest.cc
  5555. * test/BtDependencyTest.cc
  5556. * test/BtExtendedMessageTest.cc
  5557. * test/DHTConnectionImplTest.cc
  5558. * test/DHTMessageFactoryImplTest.cc
  5559. * test/DHTMessageTrackerEntryTest.cc
  5560. * test/DHTNodeTest.cc
  5561. * test/DHTRoutingTableSerializerTest.cc
  5562. * test/DefaultBtAnnounceTest.cc
  5563. * test/DefaultBtContextTest.cc
  5564. * test/DefaultBtMessageFactoryTest.cc
  5565. * test/DefaultExtensionMessageFactoryTest.cc
  5566. * test/HandshakeExtensionMessageTest.cc
  5567. * test/HttpResponseTest.cc
  5568. * test/MetalinkProcessorTest.cc
  5569. * test/MultiFileAllocationIteratorTest.cc
  5570. * test/SocketCoreTest.cc
  5571. * test/UTPexExtensionMessageTest.cc
  5572. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5573. Reorganized includes.
  5574. * src/NameResolver.cc
  5575. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Fixed compilation error without ares/c-ares
  5577. * src/NameResolver.h:
  5578. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Added a test for large file.
  5580. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5581. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Fixed the bug that file size is ignored if size > INT32_MAX
  5583. * src/SizeMetalinkParserState.cc (endElement):
  5584. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5585. Bump up version number to 0.13.0
  5586. * configure.ac
  5587. * Release 0.13.0
  5588. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5589. Updated Makfefile.am to make 'make dist' work.
  5590. Now packaged filename is aria2c-VERSION.tar.bz2.
  5591. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5592. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5593. Large file support is now configured by configure script.
  5594. * configure.ac
  5595. Removed unsused source files
  5596. * src/
  5597. * test/
  5598. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5599. Peer.h and BtContext.h respectively.
  5600. * src/Peer.h
  5601. * src/BtContext.h
  5602. Updated translations.
  5603. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5604. translations. Great thanks to all translators!;)
  5605. * po/*.{po, gmo}
  5606. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5608. statically declared sha1 MessageDigestContext.
  5609. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5610. initialization of short-lived MessageDigestContext.
  5611. * src/MessageDigestHelper.{h, cc}
  5612. * src/main.cc
  5613. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5614. the initialization of MessageDigestContext every time in validating
  5615. chunk checksum.
  5616. * src/DownloadCommand.{h, cc}
  5617. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Add a file descriptor which connected to fast peer(latency<1500) to
  5619. select(). This change reduced CPU load.
  5620. * src/PeerInteractionCommand.cc
  5621. * src/DefaultBtInteractive.{h, cc}
  5622. * src/BtInteractive.h
  5623. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Fixed the previous insufficient fix for possible busy loop.
  5625. * src/MSEHandshake.cc (identifyHandshakeType)
  5626. Removed unused functions.
  5627. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5628. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. Fixed possible busy loop if first 20 bytes are not received for a few
  5630. minutes.
  5631. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5632. * src/ReceiverMSEHandshakeCommand.cc
  5633. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Fixed compilation error
  5635. * src/ExpatMetalinkProcessor.cc
  5636. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5638. * src/DHTBucket.cc
  5639. Removed unnecessary cast.
  5640. * src/HandshakeExtensionMessage.cc
  5641. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5643. is missing.
  5644. * src/OptionHandlerFactory.cc
  5645. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Fixed the bug that HAVE message is not sent for a piece they are
  5647. downloaded fom http/ftp server before any BitTorrent handshake is done
  5648. with peers.
  5649. * src/DefaultBtInteractive.cc
  5650. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5652. * src/Makefile.am
  5653. * src/Makefile.in
  5654. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Updated README. Added html version of README and man page.
  5656. * README
  5657. * README.html
  5658. * readme2html: Shell script to generate README.html from README using
  5659. asciidoc.
  5660. * doc/aria2c.1.html
  5661. * doc/makeman: Added the line to generate aria2c.1.html
  5662. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Fixed offset calculation.
  5664. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5665. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Rewritten itos and uitos using template. llitos and ullitos are
  5667. replaced with itos and uitos respectively.
  5668. * src/Util.{h, cc}
  5669. * test/UtilTest.cc
  5670. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5672. of the number of bytes required for storing public key and shared
  5673. secret.
  5674. * src/LibgcryptDHKeyExchange.h
  5675. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5676. * src/MSEHandshake.cc
  5677. * test/DHKeyExchangeTest.cc
  5678. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5679. Removed since they are not used.
  5680. * src/Xml2MetalinkProcessor.{h, cc}
  5681. * src/Socket.cc
  5682. * src/SegmentSplitter.{h, cc}
  5683. * test/Xml2MetalinkProcessorTest.cc
  5684. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Fixed the bug that prevents aria2 from stopping other than by pressing
  5686. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5687. option. aria2 doesn't stop even after --seed-time is satisfied and
  5688. continues to output blank lines in the console.
  5689. * src/ReceiverMSEHandshakeCommand.cc
  5690. * src/PeerReceiveHandshakeCommand.cc
  5691. * src/PeerListenCommand.cc
  5692. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Bump up version number to 0.13.0rc
  5694. * configure.ac
  5695. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Updated man page and some usage text.
  5697. * doc/aria2c.1.txt
  5698. * src/usage_text.h
  5699. * po/*.{po, gmo}
  5700. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. Updated translations. Added Finnish and Hebrew translations.
  5702. Great thanks to all translators!
  5703. * po/*.{po, gmo}
  5704. * po/LINGUAS
  5705. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Log more detailed information about each message.
  5707. * src/DHTQueryMessage.{h, cc}
  5708. * src/DHTGetPeersMessage.{h, cc}
  5709. * src/DHTFindNodeReplyMessage.{h, cc}
  5710. * src/DHTGetPeersReplyMessage.{h, cc}
  5711. * src/DHTAnnouncePeerMessage.{h, cc}
  5712. * src/DHTResponseMessage.{h, cc}
  5713. * src/DHTFindNodeMessage.{h, cc}
  5714. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Use constants defined in prefs.h
  5716. * src/option_processing.cc
  5717. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5719. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5720. Make room for future enchancements for IPv6 addresses.
  5721. Bump up version number of dht.dat file format to 2.
  5722. Not compatible with previous version.
  5723. * src/DHTRoutingTableSerializer.cc
  5724. * src/DHTRoutingTableDeserializer.cc
  5725. * test/DHTRoutingTableSerializerTest.cc
  5726. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Added handling for the return values from
  5728. PeerMessageUtil::createcompact().
  5729. * src/DefaultBtContext.cc (computeFastSet):
  5730. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Fixed abort when peer's ip address is IPv4-mapped address.
  5732. * src/DefaultBtContext.cc (computeFastSet)
  5733. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5734. cannot handle IPv4-mapped addresses.
  5735. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5736. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Proper return value handling for OpenSSL functions.
  5738. * src/LibsslDHKeyExchange.h
  5739. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. Random bytes generation using libgcrypt and OpenSSL.
  5741. * src/DHTUtil.{h, cc}
  5742. * test/DHTUtilTest.cc
  5743. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5745. received.
  5746. * src/DHTMessageReceiver.cc (receiveMessage)
  5747. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5748. Fixed the bug that a return code is always 0. BUG#1897704
  5749. If error occurred during the download or there exist unfinished
  5750. downloads, aria2 returns with code 1.
  5751. * src/RequestGroupMan.{h, cc}
  5752. * src/MultiUrlRequestInfo.{h, cc}
  5753. * src/main.cc
  5754. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. IPv6 support for SocketCore class.
  5756. TODO: In SocketCore::establishConnection(), this is insufficient to
  5757. determin the failure of connect() here because the socket is
  5758. non-blocking state. The next addresses should be tried after select().
  5759. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5760. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5761. instead which address family independent.
  5762. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5763. information in a compact peer format which is for IPv4 only.
  5764. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5765. this is a spec of BitTorrent protocol.
  5766. * src/SocketCore.{h, cc}
  5767. * src/PeerMessageUtil.cc
  5768. * test/SocketCoreTest.cc
  5769. * test/PeerMessageUtilTest.cc
  5770. * test/DHTConnectionImplTest.cc
  5771. Handle IPv4-mapped addresses.
  5772. * src/DHTNode.cc: Now identity is determined by node id.
  5773. * src/DHTMessageTrackerEntry.cc
  5774. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5775. should handle it.
  5776. * src/DHTRoutingTableDeserializer.cc
  5777. * src/DHTMessageFactoryImpl.cc
  5778. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Change the unit of --stop option from a minute to a second.
  5780. * src/usage_text.h
  5781. * src/DownloadEngineFactory.cc
  5782. * src/OptionHandlerFactory.cc
  5783. * src/message.h
  5784. * src/TimedHaltCommand.cc
  5785. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Make listening socket non-block mode.
  5787. * src/FtpConnection.cc
  5788. * src/FtpNegotiationCommand.{h, cc}
  5789. * src/PeerListenCommand.cc
  5790. Fixed the bug that cause slow ftp negotiation.
  5791. * src/FtpNegotiationCommand.{h, cc}
  5792. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Added basic tag to --enable-dht, --dht-listen-port option.
  5794. * src/HelpItemFactory.cc (createHelpItems)
  5795. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Updated text.
  5797. * src/usage_text.h
  5798. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5800. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Determin _threadtholdSpeed in each constructor for
  5802. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5803. * src/ActivePeerConnectionCommand.{h, cc}
  5804. * src/PeerReceiveHandshakeCommand.{h, cc}
  5805. * src/BtSetup.cc
  5806. * src/BtConstants.h
  5807. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Added --bt-min-crypto-level and --bt-require-crypto options.
  5809. * src/OptionHandlerFactory.cc
  5810. * src/MSEHandshake.cc
  5811. * src/HelpItemFactory.cc
  5812. * src/option_processing.cc
  5813. * src/ReceiverMSEHandshakeCommand.cc
  5814. * src/prefs.h
  5815. * src/DefaultBtAnnounce.cc
  5816. * src/InitiatorMSEHandshakeCommand.cc
  5817. * src/usage_text.h
  5818. * test/MSEHandshakeTest.cc
  5819. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Bump version number to 0.13.0b
  5821. * configure.ac
  5822. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5823. Updated doc.
  5824. * src/MessageDigestHelper.h:
  5825. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5826. Use raw message digest as a token instead of its hexadecimal
  5827. representation.
  5828. * src/DHTTokenTracker.cc (generateToken)
  5829. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Added Message Stream Encryption(MSE) support.
  5831. Currently, aria2 accepts incoming connections with Obfuscation Header
  5832. and legacy BitTorrent Header and establishes connections with
  5833. Obfuscation Header first and if failed then retry with legacy
  5834. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5835. choose ARC4. The new option to change the default behavior is planned.
  5836. For tracker extension, "supportcrypto=1" is added statically.
  5837. * src/PeerInitiateConnectionCommand.{h, cc}
  5838. * src/PeerConnection.{h, cc}
  5839. * src/HandleRegistry.h
  5840. * src/SocketCore.h
  5841. * src/PeerReceiveHandshakeCommand.{h, cc}
  5842. * src/BtRegistry.{h, cc}
  5843. * src/PeerListenCommand.cc
  5844. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5845. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5846. * src/MSEHandshake.{h, cc}
  5847. * src/ARC4Encryptor.h
  5848. * src/ARC4Decryptor.h
  5849. * src/LibgcryptARC4Encryptor.h
  5850. * src/LibgcryptARC4Decryptor.h
  5851. * src/LibgcryptARC4Context.h
  5852. * src/LibsslARC4Encryptor.h
  5853. * src/LibsslARC4Decryptor.h
  5854. * src/LibsslARC4Context.h
  5855. * src/DHKeyExchange.h
  5856. * src/LibgcryptDHKeyExchange.h
  5857. * src/LibsslDHKeyExchange.h
  5858. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5859. * test/DefaultBtAnnounceTest.cc
  5860. * test/ARC4Test.cc
  5861. * test/DHKeyExchangeTest.cc
  5862. Removed prepareForRetry() because it is not used.
  5863. * src/PeerAbstractCommand.{h, cc}
  5864. * src/PeerInteractionCommand.{h, cc}
  5865. * src/PeerInitiateConnectionCommand.{h, cc}
  5866. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5867. Added the ability to load nodes from torrent file. These nodes are
  5868. added to the routing table when downloading that torrent.
  5869. * src/BtContext.h
  5870. * src/DefaultBtContext.{h, cc}
  5871. * src/DHTSetup.cc
  5872. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5873. hostname and port pair, and resolves all of them.
  5874. * src/NameResolver.{h, cc}: Added reset().
  5875. * src/RequestGroup.cc
  5876. * test/DefaultBtContextTest.cc
  5877. * test/MockBtContext.h
  5878. Removed assert() from DefaultBtContext and throw exception instead.
  5879. * src/DefaultBtContext.cc
  5880. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Fixed segmentation fault bug when exiting if dht is disabled.
  5882. * src/RequestGroup.cc
  5883. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Fixed typo in log message and define the message in message.h
  5885. * src/TimedHaltCommand.cc
  5886. * src/message.h
  5887. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5888. Included RecoverableException.h to fix compilation error.
  5889. * test/DHTMessageFactoryImplTest.cc
  5890. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5892. * test/DHTPingMessageTest.cc
  5893. * test/DHTGetPeersMessageTest.cc
  5894. * test/DHTFindNodeMessageTest.cc
  5895. * test/DHTAnnouncePeerMessageTest.cc
  5896. * test/MockDHTMessage.h
  5897. * test/MockDHTMessageFactory.h
  5898. * test/MockDHTMessageDispatcher.h: New class.
  5899. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5901. virtual.
  5902. * src/DHTMessageDispatcher.h
  5903. * src/DHTMessageDispatcherImpl.{h, cc}
  5904. * src/DHTSetup.cc
  5905. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Adding handling of DHT error message. Just log error message and
  5907. throw exception.
  5908. * src/DHTMessageFactoryImpl.cc
  5909. * test/DHTMessageFactoryImplTest.cc
  5910. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Added handling of dynamic cast failure.
  5912. * src/DHTNodeLookupTask.cc
  5913. * src/DHTPeerLookupTask.cc
  5914. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. Added the ability to stop aria2 itself when given time has passed
  5916. from start. Use --stop option to specify time in minutes.
  5917. When 0 is given, this feature is disabled.
  5918. * src/OptionHandlerFactory.cc
  5919. * src/TimeBasedCommand.h: Make _interval protected scope.
  5920. * src/HelpItemFactory.cc
  5921. * src/option_processing.cc
  5922. * src/prefs.h
  5923. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5924. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5925. Without this modification, the result list shows "ERR" when aria2 is
  5926. stopped by --stop option. It should be "INPR".
  5927. * src/DownloadEngine.{h, cc}
  5928. * src/DownloadEngineFactory.cc
  5929. * src/usage_text.h
  5930. * src/TimedHaltCommand.{h, cc}: New class.
  5931. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Bootstrap through node added by port message.
  5933. Currently bootstrap is executed if the number of buckets in routing
  5934. table is 1.
  5935. * src/BtPortMessage.{h, cc}
  5936. * src/DefaultBtMessageFactory.{h, cc}
  5937. * src/PeerInteractionCommand.cc
  5938. * test/BtPortMessageTest.cc
  5939. * test/MockDHTTask.h
  5940. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Extract the Peer class's member variables, which are only needed after
  5942. PeerInteractionCommand, into PeerSessionResource class.
  5943. This class is instantiated in PeerInteractionCommand class's ctor and
  5944. released in its dtor.
  5945. This will make Peer class lightweight and uses less memory for peers
  5946. which are not connected and wait in the queue.
  5947. * src/PeerChokeCommand.cc
  5948. * src/PeerSessionResource.{h, cc}
  5949. * src/PeerInteractionCommand.cc
  5950. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5951. * src/DefaultBtInteractive.cc
  5952. * src/BtPieceMessage.cc
  5953. * src/BtInterestedMessage.cc
  5954. * src/BtUnchokeMessage.cc
  5955. * src/DefaultPeerStorage.{h, cc}
  5956. * src/PeerInitiateConnectionCommand.cc
  5957. * src/ActivePeerConnectionCommand.cc
  5958. * src/BtNotInterestedMessage.cc
  5959. * src/DefaultBtMessageDispatcher.cc
  5960. * src/BtChokeMessage.cc
  5961. * src/BtRequestMessage.cc
  5962. * src/Peer.{h, cc}
  5963. * src/BtRegistry.h
  5964. * src/TrackerWatcherCommand.cc
  5965. * src/PeerReceiveHandshakeCommand.cc
  5966. * test/BtExtendedMessageTest.cc
  5967. * test/BtAllowedFastMessageTest.cc
  5968. * test/BtCancelMessageTest.cc
  5969. * test/DefaultPieceStorageTest.cc
  5970. * test/BtBitfieldMessageTest.cc
  5971. * test/BtHaveMessageTest.cc
  5972. * test/BtNotInterestedMessageTest.cc
  5973. * test/BtRequestMessageTest.cc
  5974. * test/PeerSessionResourceTest.cc
  5975. * test/DefaultBtMessageDispatcherTest.cc
  5976. * test/PeerTest.cc
  5977. * test/BtInterestedMessageTest.cc
  5978. * test/BtRejectMessageTest.cc
  5979. * test/BtChokeMessageTest.cc
  5980. * test/DefaultPeerStorageTest.cc
  5981. * test/BtHaveNoneMessageTest.cc
  5982. * test/BtHaveAllMessageTest.cc
  5983. * test/DefaultExtensionMessageFactoryTest.cc
  5984. * test/BtUnchokeMessageTest.cc
  5985. * test/DefaultBtMessageFactoryTest.cc
  5986. * test/HandshakeExtensionMessageTest.cc
  5987. * test/UTPexExtensionMessageTest.cc
  5988. * test/DefaultBtRequestFactoryTest.cc
  5989. * test/BtPieceMessageTest.cc
  5990. Removed typedef PeerStats.
  5991. * src/PeerStat.h
  5992. * src/SegmentMan.cc
  5993. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Added std namespace to copy, remove_copy, back_inserter,
  5995. front_inserter.
  5996. * src/RequestGroupMan.cc
  5997. * src/DefaultPieceStorage.cc
  5998. * src/StreamFileAllocationEntry.cc
  5999. * src/BtFileAllocationEntry.cc
  6000. * src/RequestGroup.cc
  6001. * src/MetalinkEntry.cc
  6002. * src/DelegatingPeerListProcessor.cc
  6003. * src/DefaultBtRequestFactory.cc
  6004. * src/DefaultBtMessageDispatcher.cc
  6005. * src/version_usage.cc: Included <algorithm>
  6006. * src/main.cc
  6007. * src/MetalinkParserController.cc
  6008. * src/DefaultBtContext.cc
  6009. * src/DownloadEngineFactory.cc
  6010. * src/a2algo.h
  6011. Removed.
  6012. * test/StreamUriListParserTest.cc
  6013. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6015. ActivePeerConnectionCommand when it is given and
  6016. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6017. * src/ActivePeerConnectionCommand.{h, cc}
  6018. * src/BtSetup.cc
  6019. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Only add socket to DownloadEngine's select routine when peer or
  6021. localhost is unchoked and interested. This lowers CPU usage a
  6022. little bit.
  6023. * src/PeerInteractionCommand.cc
  6024. * src/PeerAbstractCommand.{h, cc}
  6025. * src/BtInteractive.h
  6026. * src/DefaultBtInteractive.{h, cc}
  6027. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Revert previous change because get_peers message is needed for
  6029. announce_peer anyway.
  6030. * src/DHTGetPeersCommand.cc
  6031. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Request peers thought DHT only when download hasn't finished.
  6033. * src/DHTGetPeersCommand.cc
  6034. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6036. * src/DHTBucketRefreshTask.{h, cc}
  6037. * src/DHTSetup.cc
  6038. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6040. standard classes.
  6041. Included string.h where mem* function are used.
  6042. Added namespace aria2.
  6043. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. Create directory before saving DHT routing table.
  6045. Now ios::failure is now handled properly.
  6046. * src/DHTAutoSaveCommand.cc
  6047. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Removed unnecessary cerr.
  6049. * src/DownloadEngine.cc
  6050. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Catch exception inside DHTMessageReceiver::receiveMessage().
  6052. Log unknown message.
  6053. * src/DHTMessageReceiver.{h, cc}
  6054. * src/DHTMessageFactory.h
  6055. * src/DHTMessageFactoryImpl.{h, cc}
  6056. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6057. * src/DHTInteractionCommand.cc
  6058. * src/DHTUnknownMessage.{h, cc}
  6059. * test/DHTUnknownMessageTest.cc
  6060. * test/MockDHTMessageFactory.h
  6061. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Commented out ip address comparison because a host can have multiple
  6063. ip addresses and it is hard to predict the hostname is resolved into
  6064. which one.
  6065. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6066. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. * po/Makefile.in: Removed since this is generated by configure.
  6068. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. Fixed compiler warning about redefinition of SIZE_MAX.
  6070. Use common.h instead of config.h directly here.
  6071. * src/Platform.{h, cc}
  6072. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6073. here.
  6074. * common.h
  6075. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6076. Updated gettext related files.
  6077. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6078. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6079. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. Added DHT functionality, compatible with mainline.
  6081. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6082. You may need to specify entry point to DHT network using
  6083. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6084. Use --dht-listen-port to specify port number. Make sure that your
  6085. firewall configuration can pass through UDP traffic to the port.
  6086. The routing table is saved in $HOME/.aria2/dht.dat.
  6087. * src/DHT*
  6088. * src/BNode.{h, cc}
  6089. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6090. particular torrent.
  6091. * src/Data.cc: Rewritten ctor.
  6092. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6093. --dht-entry-point.
  6094. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6095. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6096. ends, remove BtContext from DHTPeerAnnounceStorage.
  6097. * src/BtPortMessage.{h, cc}: Rewritten.
  6098. * src/message.h
  6099. * src/OptionHandlerImpl.cc
  6100. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6101. --dht-entry-point.
  6102. * src/Dictionary.{h, cc} (remove): New function.
  6103. * src/prefs.h
  6104. * src/DefaultBtMessageFactory.h
  6105. * src/BtHandshakeMessage.cc
  6106. * src/ActivePeerConnectionCommand.cc
  6107. * src/SocketCore.{h, cc}: Added datagram socket support.
  6108. * src/DefaultBtMessageFactory.cc
  6109. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6110. Create DHT commands.
  6111. * src/BtMessageFactory.h
  6112. * src/PeerMessageUtil.{h, cc}
  6113. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Fixed the bug that log file is not written when configuration file doesn't exist.
  6115. This is caused by using Logger class before LogFactory is not configured.
  6116. BUG #1875079
  6117. * src/option_processing.cc
  6118. Warning message "configuration doesn't exist" is only printed when --conf is
  6119. given.
  6120. * src/option_processing.cc
  6121. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6123. ShaVisitor is now deprecated and slated to be removed.
  6124. * src/DefaultBtContext.cc
  6125. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6126. Externalize message to message.h
  6127. * src/Platform.cc
  6128. * src/message.h
  6129. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6130. Set default domain and default path to cookie.
  6131. * src/HttpResponse.cc
  6132. * src/CookieBox.{h, cc}
  6133. * src/CookieParser.{h, cc}
  6134. * test/CookieParserTest.cc
  6135. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6136. Added --no-conf and --conf-path command-line option.
  6137. --no-conf option disables loading aria2.conf file.
  6138. --conf-path option changes the configuration file path. The default
  6139. file path is $HOME/.aria2/aria2.conf
  6140. Added a warning message when the configuration file is not found.
  6141. * src/HelpItemFactory.cc
  6142. * src/option_processing.cc
  6143. * src/prefs.h
  6144. * src/usage_text.h
  6145. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Added the message to inform users that other help categories are
  6147. available in -h option.
  6148. * src/version_usage.cc
  6149. * src/TagContainer.{h, cc}
  6150. * test/TagContainerTest.cc
  6151. * src/TaggedItem.{h, cc}
  6152. * test/TaggedItemTest.cc
  6153. * src/HelpItem.h
  6154. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6156. from PiecedSegment's ctor.
  6157. Previously Piece::getAllMissingBlockIndexes() is called from
  6158. PiecedSegment() but it is rather expensive since only first element is
  6159. used.
  6160. * src/PiecedSegment.cc
  6161. * src/Piece.{h, cc}
  6162. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6164. each time these functions are called.
  6165. * src/BitfieldMan.{h, cc}
  6166. * test/BitfieldManTest.cc
  6167. * src/array_fun.h
  6168. * test/array_funTest.cc
  6169. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6170. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6171. filtered. Removed unnecessary cast to int32_t.
  6172. * src/BitfieldMan.{h, cc}
  6173. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6175. payload length(4bytes) are received. This happens because lenbufLength
  6176. is not updated in this particular case and successive call of
  6177. receiveMessage() overwrites payload length with bytes recieved which
  6178. are payload body.
  6179. * src/PeerConnection.{h, cc}
  6180. * src/message.h
  6181. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6183. peer if there are peers that have same ipaddr and port.
  6184. I've experiened segmentation fault and "pure virtual function was
  6185. called" error.
  6186. * src/Peer.h
  6187. * test/PeerTest.cc
  6188. * src/DefaultPeerStorage.cc
  6189. * test/DefaultPeerStorageTest.cc
  6190. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Removed a call to isPowerOf() because it is no longer necessary here
  6192. and a request block is not always power of 2.
  6193. BUG#1866924
  6194. * src/PeerMessageUtil.cc (checkLength)
  6195. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Fixed the bug that always first found Segment is removed from
  6197. usedSegmentEntries. Removed unused functions.
  6198. * src/SegmentMan.{h, cc}
  6199. * test/SegmentManTest.cc
  6200. Fixed the bug that ServerHost is not removed.
  6201. * src/RequestGroup.cc
  6202. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. Fixed the bug that SegmentMan::completeSegment() is not called
  6204. even if Segment is complete when --lowest-speed-limit is enabled.
  6205. BUG#1864525
  6206. * src/DownloadCommand.{h, cc}
  6207. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6208. Fixed: hash algorithm 'sha1' is always used.
  6209. * src/DownloadCommand.cc (validatePieceHash)
  6210. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Added --enable-peer-exchange command-line option.
  6212. * src/OptionHandlerFactory.cc
  6213. * src/HelpItemFactory.cc
  6214. * src/option_processing.cc
  6215. * src/usage_text.h
  6216. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Move extension from BtRuntime to ExtensionMessageFactory, because
  6218. extension can be specified per peer, not per torrent.
  6219. * src/DefaultBtInteractive.cc
  6220. * src/BtRuntime.h
  6221. * src/ExtendedMessagingAware.h
  6222. * src/ExtensionMessageFactory.h
  6223. * src/DefaultExtensionMessageFactory.cc
  6224. * test/DefaultExtensionMessageFactoryTest.cc
  6225. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Added categorized option help. Specify category using --help option.
  6227. Also added the ability to search options in forward match.
  6228. * src/HelpItem.{h, cc}
  6229. * test/HelpItemTest.cc
  6230. * src/HelpItemFactory.{h, cc}
  6231. * src/TagContainer.{h, cc}
  6232. * test/TagContainerTest.cc
  6233. * src/option_processing.cc
  6234. * src/prefs.h
  6235. * src/TaggedItem.{h, cc}
  6236. * test/TaggedItemTest.cc
  6237. * src/version_usage.cc
  6238. * src/help_tags.h
  6239. * src/usage_text.h
  6240. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Fixed segmentation fault when bad torrent metainfo is parsed.
  6242. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6243. and then throw exception or skip it.
  6244. * src/DefaultBtContext.{h, cc}
  6245. * test/DefaultBtContextTest.cc
  6246. * src/AnnounceList.cc
  6247. * src/CompactPeerListProcessor.cc
  6248. * src/message.h
  6249. * src/DefaultBtAnnounce.{h, cc}
  6250. * test/DefaultBtAnnounceTest.cc
  6251. * src/BencodeVisitor.cc
  6252. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. Added missing "B"(=Byte). So now the message looks like this:
  6254. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6255. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6256. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6257. Show the seed ratio after torrent downloads.
  6258. For example, after torrent download completed and --seed-time and
  6259. --seed-ratio conditions are fulfilled, following message is printed
  6260. right after "Download complete: .....":
  6261. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6262. * src/RequestGroupMan.cc
  6263. * src/RequestGroup.{h, cc}
  6264. * src/message.h
  6265. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Remove a defunct control file. A defunct control file means that while
  6267. it exists, but the corresponding download file is missing.
  6268. After its removal, a download restarts from the beginning.
  6269. * src/RequestGroup.cc
  6270. * src/message.h
  6271. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Allocate bitfield in Peer when it is really used. More specifically,
  6273. bitfield in Peer is allocated after the connection is established and
  6274. deallocated when the connection is dropped.
  6275. Since 2 parameters(piece length and total length) was removed from the
  6276. constructor of Peer class, many test classes were modified accordingly.
  6277. See svn log for more detailed information.
  6278. * src/PeerInteractionCommand.cc
  6279. * src/CompactPeerListProcessor.cc
  6280. * src/Peer.cc
  6281. * src/DefaultPeerListProcessor.cc
  6282. * src/PeerListenCommand.cc
  6283. * src/PeerReceiveHandshakeCommand.cc
  6284. Fixed memory leak
  6285. * src/Piece.cc
  6286. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6288. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6289. command-line options.
  6290. * src/option_processing.cc
  6291. * src/ActivePeerConnectionCommand.cc
  6292. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. Send have message to peer if it already has the piece.
  6294. * src/BtHaveMessage.{h, cc}
  6295. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6297. port.
  6298. * src/DefaultPeerStorage.{h, cc}
  6299. * test/DefaultPeerStorageTest.cc
  6300. * src/HandshakeExtensionMessage.cc
  6301. * test/HandshakeExtensionMessageTest.cc
  6302. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6303. * src/PeerStorage.h
  6304. * test/MockPeerStorage.h
  6305. * src/PeerListenCommand.cc
  6306. * src/PeerReceiveHandshakeCommand.cc
  6307. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Added --metalink-enable-unique-protocol option.
  6309. * src/Metalink2RequestGroup.cc
  6310. * src/option_processing.cc
  6311. * src/prefs.h
  6312. * src/version_usage.cc
  6313. * doc/aria2c.1.txt
  6314. * doc/aria2c.1
  6315. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. Allow a peer in incomingPeer to be added peers.
  6317. * src/DefaultPeerStorage.cc
  6318. * test/DefaultPeerStorageTest.cc
  6319. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6320. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6321. I could reproduce this bug in following procedure:
  6322. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6323. 2. Restart aria2.
  6324. 3. You see the download stopped around 99%.
  6325. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6326. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6327. If timeout is reached, then _nextCommand is unused and it may contains
  6328. segments and they won't be canceled. Actually, timeout is not needed
  6329. here because if the server dropped connection, then retry is made.
  6330. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Added uTorrent compatible Peer Exchange.
  6332. * src/BencodeVisitor.{h, cc}
  6333. * test/BencodeVisitorTest.cc
  6334. * src/BtConstants.h
  6335. * src/BtContext.h: Added 'private' flag.
  6336. * src/BtExtendedMessage.{h, cc}
  6337. * test/BtExtendedMessageTest.cc
  6338. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6339. reserved field.
  6340. * test/BtHandshakeMessageTest.cc
  6341. * src/BtMessageFactory.h
  6342. * src/BtRegistry.h
  6343. * src/BtRuntime.h: This class holds default extension message IDs for
  6344. aria2. By default, aria2 uses ID 8 for ut_pex.
  6345. * src/DefaultBtContext.cc
  6346. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6347. When it is true, aria2 enables ut_pex. This value is set by
  6348. PeerInteractionCommand.
  6349. * src/DefaultBtMessageFactory.{h, cc}
  6350. * test/DefaultBtMessageFactoryTest.cc
  6351. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6352. handling to DefaultBtInteractive class.
  6353. * src/DefaultExtensionMessageFactory.{h, cc}
  6354. * test/DefaultExtensionMessageFactoryTest.cc
  6355. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6356. the container(peers and incomingPeers. The equality is determined by
  6357. Peer::id).
  6358. * test/DefaultPeerStorageTest.cc
  6359. * src/ExtensionMessage.h
  6360. * test/MockExtensionMessage.h
  6361. * src/ExtensionMessageFactory.h
  6362. * test/MockExtensionMessageFactory.h
  6363. * src/HandshakeExtensionMessage.{h, cc}
  6364. * test/HandshakeExtensionMessageTest.cc
  6365. * src/MetaEntry.h
  6366. * src/Peer.{h, cc}
  6367. * src/PeerInteractionCommand.cc
  6368. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6369. addIncomingPeer.
  6370. * src/PeerMessageUtil.{h, cc}
  6371. * src/PeerObject.h
  6372. * src/UTPexExtensionMessage.{h, cc}
  6373. * test/UTPexExtensionMessageTest.cc
  6374. * src/message.h
  6375. * src/prefs.h
  6376. Fixed the bug that returns incomplete data when it contains null
  6377. character. A convenient constructor was also added.
  6378. * src/Data.{h, cc}
  6379. Rewritten.
  6380. * src/CompactPeerListProcessor.cc
  6381. Fixed typos.
  6382. * src/message.h
  6383. * src/MetaFileUtil.cc
  6384. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Added "Status Legend" label to the explanation text of 'stat' in
  6386. download result and moved it to the last. BUG#1848214
  6387. * src/RequestGroupMan.cc
  6388. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6390. * src/Makefie.am
  6391. * test/Makefile.am
  6392. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. Fixed the bug that prevents aria2 from loading cookie file when expire
  6394. value is greater than 2^31-1. BUG#1851066
  6395. * src/CookieBoxFactory.cc
  6396. * test/CookieBoxFactoryTest.cc
  6397. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6398. Fixed possible memory leak when an exception is thrown.
  6399. * src/XML2SAXMetalinkProcessor.cc
  6400. Added Expat support. If both libxml2 and Expat are installed, then
  6401. libxml2 is used by default.
  6402. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6403. ExpatMetalinkProcessor according to the configuration.
  6404. * src/ExpatMetalinkProcessor.{h, cc}
  6405. * src/main.cc: Removed libxml2 specific header and init/free function.
  6406. * src/MetalinkProcessorFactory.{h, cc}
  6407. * src/MetalinkHelper.cc
  6408. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6409. * src/MetalinkProcessor.h
  6410. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6411. MetalinkProcessorTest is used instead.
  6412. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6413. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6414. MetalinkProcessorFactory::newInstance().
  6415. * m4/libexpat.m4
  6416. * configure.ac: Added configuration options for libexpat.
  6417. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6418. Disabled -s option in metalink download.
  6419. * src/Metalink2RequestGroup.cc
  6420. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. If several protocols are available for a mirror in metalink file,
  6422. aria2 now use one of them. --metalink-preferred-protocol option was
  6423. added to specify the preference of protocol.
  6424. * src/AbstractCommand.cc
  6425. * src/OptionHandlerFactory.cc
  6426. * src/ServerHost.{h, cc}
  6427. * src/Metalink2RequestGroup.cc
  6428. * src/RequestGroup.{h, cc}
  6429. * test/RequestGroupTest.cc
  6430. * src/option_processing.cc
  6431. * src/prefs.h
  6432. * src/HttpResponseCommand.cc
  6433. * src/MetalinkResource.{h, cc}
  6434. * src/FtpNegotiationCommand.cc
  6435. * src/MetalinkEntry.{h, cc}
  6436. * src/MetalinkEntryTest.cc
  6437. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Code cleanup and added debug log.
  6439. * src/PeerConnection.cc
  6440. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6441. Compiler error fix: applied the patch by Tiziano Mueller
  6442. * src/RequestGroup.cc
  6443. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6445. in stopped and completed event.
  6446. * src/AnnounceList.{h, cc}
  6447. * test/AnnounceListTest.cc
  6448. * src/DefaultBtAnnounce.cc
  6449. * test/DefaultBtAnnounceTest.cc
  6450. Sorted URLs.
  6451. * test/Metalink2RequestGroupTest.cc
  6452. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Removed unnecessary string copy. Updated doc and corrected indentation.
  6454. * src/Base64.cc
  6455. Fixed compilation warnings
  6456. * test/DataTest.cc
  6457. * test/HttpRequestTest.cc
  6458. * test/MetaFileUtilTest.cc
  6459. * test/RequestTest.cc
  6460. * Release 0.12.0
  6461. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Updated translations
  6463. * po/{de,fr,ja,nl,ru}.po
  6464. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6465. translations. Many thanks to translators.
  6466. * po/{ca,es,it,pt_BR,sv}.po
  6467. * po/LINGUAS
  6468. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Added a notice about URL
  6470. * src/version_usage.cc
  6471. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6472. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6473. aria2 repeatedly sends stopped request when tracker returns error code.
  6474. * src/AnnounceList.cc
  6475. * test/AnnounceListTest.cc
  6476. * src/AnnounceTier.h
  6477. Added a message when ctrl-c is hit.
  6478. Now second ctrl-c is also handled in signal handler.
  6479. * src/RequestGroupMan.{h, cc}
  6480. * src/RequestGroup.{h, cc}
  6481. * src/MultiUrlRequestInfo.cc
  6482. * src/DownloadEngine.cc
  6483. * src/TrackerWatcherCommand.cc
  6484. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. Code cleanup
  6486. * src/Base64.cc (encode)
  6487. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Changed Direct/IO enable/disable procesure in file allocation routine.
  6489. * src/SingleFileAllocationIterator.cc
  6490. (SingleFileAllocationIterator):
  6491. Disable directIO if offset is not multiple of 512.
  6492. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6493. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6494. Enable created SingleFileAllocationIterator's directIO.
  6495. * src/FileAllocationEntry.cc
  6496. (FileAllocationEntry): Enable directIO here.
  6497. (~FileAllocationEntry): Disable directIO here.
  6498. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6499. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6500. * src/Peer.{h, cc}
  6501. * src/DefaultPieceStorage.cc
  6502. * test/DefaultPieceStorageTest.cc
  6503. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. Rewritten direct I/O support routine
  6505. * src/SingleFileAllocationIterator.cc
  6506. * src/MultiDiskAdaptor.{h, cc}
  6507. * src/ByteArrayDiskWriter.h
  6508. * src/AbstractSingleDiskAdaptor.h
  6509. * src/AbstractDiskWriter.cc
  6510. * src/DefaultPieceStorage.cc
  6511. * src/DiskWriter.h
  6512. * src/BinaryStream.h
  6513. * src/IteratableChunkChecksumValidator.cc
  6514. * src/IteratableChecksumValidator.cc
  6515. * src/CheckIntegrityEntry.cc
  6516. * src/FileAllocationEntry.cc
  6517. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Fixed typo
  6519. * src/version_usage.cc
  6520. Updated doc
  6521. * doc/aria2c.1.txt
  6522. * doc/aria2c.1
  6523. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Fixed compile error without message digest support.
  6525. * src/FileMetalinkParserState.cc
  6526. * src/MetalinkParserController.{h, cc}
  6527. * test/XML2SAXMetalinkProcessorTest.cc
  6528. * test/MetalinkParserControllerTest.cc
  6529. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Enable direct I/O support in checksum checking.
  6531. * src/IteratableChunkChecksumValidator.{h, cc}
  6532. * test/IteratableChunkChecksumValidatorTest.cc
  6533. * src/CheckIntegrityEntry.cc
  6534. * src/PieceHashCheckIntegrityEntry.cc
  6535. * src/IteratableChecksumValidator.{h, cc}
  6536. * src/BtCheckIntegrityEntry.cc: Added doc.
  6537. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Added --allow-piece-length-change option.
  6539. * src/DefaultBtProgressInfoFile.cc
  6540. * test/DefaultBtProgressInfoFileTest.cc
  6541. * src/OptionHandlerFactory.cc
  6542. * src/option_processing.cc
  6543. * src/prefs.h
  6544. * src/version_usage.cc
  6545. * doc/aria2c.1.txt
  6546. * doc/aria2c.1
  6547. Fixed: duplicated result entry appears when exception is thrown in
  6548. RequestGroup::createInitiateConnectionCommand().
  6549. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6550. Add RequestGroup to _requestGroup after RequetGroup::
  6551. createInitiateConnectionCommand() succeeds.
  6552. Externalized message
  6553. * src/XML2SAXMetalinkProcessor.cc
  6554. * src/message.h
  6555. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Forced download abort when received negative response from http/ftp
  6557. server.
  6558. * src/HttpResponseCommand.cc
  6559. * src/FtpNegotiationCommand.cc
  6560. * src/HttpResponse.cc
  6561. * src/FtpConnection.cc
  6562. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6563. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6564. the predecessor, Xml2MetalinkParser class.
  6565. I tested them against 94KB metalink file with 1234 chunk checksums.
  6566. The new one parsed it in 22msec, while it took 6000msec with old one.
  6567. * src/XML2SAXMetalinkProcessor.{h, cc}
  6568. * test/XML2SAXMetalinkProcessorTest.cc
  6569. * src/MetalinkParserController.{h, cc}
  6570. * test/MetalinkParserControllerTest.cc
  6571. * src/MetalinkParserState.h: Also added 16 subclasses.
  6572. * src/main.cc
  6573. * src/Metalink2RequestGroup.cc
  6574. * src/MetalinkHelper.cc
  6575. * src/MetalinkEntry.cc
  6576. * src/ChunkChecksum.h
  6577. Rewritten Base64 class for better performance.
  6578. * src/Base64.{h, cc}
  6579. * test/Base64Test.cc
  6580. * src/HttpRequest.cc
  6581. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6582. Fixed the bug#1841757: aria2 will connect to server to only get
  6583. file size.
  6584. * src/StreamFileAllocationEntry.cc
  6585. * src/option_processing.cc
  6586. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6587. downloads.
  6588. * src/FtpNegotiationCommand.cc
  6589. Suppressed wrong message when finding PreDownloadHandler
  6590. * src/RequestGroup.cc
  6591. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Updated usage
  6593. * src/version_usage.cc
  6594. Updated man page
  6595. * doc/aria2c.1.txt
  6596. * doc/aria2c.1
  6597. Updated po files
  6598. * po/aria2c.pot
  6599. * po/*.po
  6600. * po/*.gmo
  6601. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Eliminated g++-4.2 warning
  6603. * src/DownloadHandlerConstants.{h, cc}
  6604. * src/Util.cc
  6605. * test/MetaFileUtilTest.cc
  6606. * test/PStringBuildVisitorTest.cc
  6607. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6608. * src/RequestGroup.cc
  6609. * src/BtCheckIntegrityEntry.cc
  6610. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Fixed a2io.h
  6612. * src/a2io.h
  6613. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. Added direct I/O support. The current implementation uses O_DIRECT,
  6615. which is not posix standard and is tested on linux 2.6.21.
  6616. Currently only file allocation uses direct I/O.
  6617. * src/SingleFileAllocationIterator.{h, cc}
  6618. * test/SingleFileAllocationIteratorTest.cc
  6619. * src/MultiFileAllocationIterator.{h, cc}
  6620. * test/MultiFileAllocationIteratorTest.cc
  6621. * src/BinaryStream.h
  6622. * src/DiskWriter.h
  6623. * src/AbstractDiskWriter.{h, cc}
  6624. * src/ByteArrayDiskWriter.h
  6625. * src/DiskAdaptor.h
  6626. * src/AbstractSingleDiskAdaptor.{h, cc}
  6627. * src/MultiDiskAdaptor.{h, cc}
  6628. * src/FileAllocationEntry.cc
  6629. * src/Util.{h, cc}
  6630. * src/OptionHandlerFactory.cc
  6631. * src/prefs.h
  6632. * src/version_usage.cc
  6633. * src/option_processing.cc
  6634. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6635. handleException.
  6636. * src/MultiFileAllocationIterator.cc
  6637. Added EINTR handling
  6638. * src/SocketCore.cc
  6639. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Updated usage
  6641. * src/version_usage.cc
  6642. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Applied Ross's patch for MinGW port.
  6644. * src/DownloadEngine.h
  6645. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. Set Content-Type to SingleFileDownloadContext when http response is
  6647. received.
  6648. * src/HttpResponseCommand.cc
  6649. * src/HttpResponse.{h, cc}
  6650. * test/HttpResponseTest.cc
  6651. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Rewritten to add content-type support.
  6653. * src/DownloadHandler.{h, cc}
  6654. * src/BtPostDownloadHandler.{h, cc}
  6655. * test/BtPostDownloadHandlerTest.cc
  6656. * src/MetalinkPostDownloadHandler.{h, cc}
  6657. * test/MetalinkPostDownloadHandlerTest.cc
  6658. * src/PostDownloadHandler.{h, cc}
  6659. * src/DownloadHandlerConstants.{h, cc}
  6660. * src/RequestGroup.cc
  6661. * src/HttpResponseCommand.cc
  6662. * src/FtpNegotiationCommand.cc
  6663. * src/SingleFileDownloadContext.{h, cc}
  6664. * src/RequestGroup.h
  6665. * src/RequestGroupCriteria.h
  6666. * src/ContentTypeRequestGroupCriteria.h
  6667. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6668. If it is give, metalink/torrent file is not written to the disk, but
  6669. just is kept in memory. Parsing is occurred on memory.
  6670. * src/MetalinkHelper.{h, cc}
  6671. * src/MetalinkProcessor.h
  6672. * src/Xml2MetalinkProcessor.{h, cc}
  6673. * test/Xml2MetalinkProcessorTest.cc
  6674. * src/DownloadHandlerFactory.{h, cc}
  6675. * test/DownloadHandlerFactoryTest.cc
  6676. * src/PreDownloadHandler.{h, cc}
  6677. * src/OptionHandlerFactory.cc
  6678. * src/DefaultBtContext.{h, cc}
  6679. * test/DefaultBtContextTest.cc
  6680. * src/version_usage.cc
  6681. * src/Metalink2RequestGroup.{h, cc}
  6682. * src/RequestGroup.{h, cc}
  6683. * src/a2functional.h
  6684. * test/a2functionalTest.cc
  6685. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6686. * src/OptionHandlerImpl.h
  6687. * src/prefs.h
  6688. * src/Util.{h, cc}
  6689. * test/UtilTest.cc
  6690. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6691. memory usage.
  6692. * src/RequestGroupMan.{h, cc}
  6693. * src/DownloadEngine.cc
  6694. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6695. WeakHandle to SharedHandle because WeakHandle could be null.
  6696. * src/RequestGroup.{h, cc}
  6697. * src/DownloadEngineFactory.cc
  6698. * src/DownloadResult.h
  6699. Set totalLength after download finished
  6700. * src/UnknownLengthPieceStorage.{h, cc}
  6701. Keep torrent file specified in metalink in memory.
  6702. * src/Metalink2RequestGroup.cc
  6703. * src/BtDependency.cc
  6704. * src/TrueRequestGroupCriteria.h
  6705. Fixed the bug: seekg is used where seekp should be used.
  6706. * src/ByteArrayDiskWriter.cc
  6707. * test/ByteArraydiskWriterTest.cc
  6708. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Fixed syntax error
  6710. * test/SequenceTest.cc
  6711. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6713. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6714. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6715. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6716. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Added the check to see whether ares_host_callback accepts timeouts
  6718. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6719. * src/NameResolver.{h, cc}
  6720. * m4/libcares.m4
  6721. * configure.ac: Set C++ for language choice.
  6722. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Fixed: compilation fails without c-ares/ares
  6724. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6725. Generate http/ftp commands only when download is incomplete.
  6726. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6727. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Corrected typo. Examples are removed since they are available in man
  6729. page.
  6730. * src/version_usage.cc
  6731. Updated man page.
  6732. * doc/aria2c.1
  6733. * doc/aria2c.1.txt
  6734. * doc/makeman: Commented out sed command.
  6735. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Throw DlAbortEx when a remote file is not found.
  6737. * src/HttpResponse.cc
  6738. * src/FtpNegotiationCommand.cc
  6739. * src/message.h
  6740. Overwrite an existing file if --allow-overwrite=true is given.
  6741. * src/RequestGroup.cc
  6742. Removed unused functions
  6743. * src/AbstractCommand.h
  6744. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Removed 'extern' from 'extern typedef ...' in src/*.h
  6746. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. Updated usage
  6748. * src/version_usage.cc
  6749. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. Trim announce URL
  6751. * src/DefaultBtContext.cc
  6752. * test/ShaVisitorTest.cc
  6753. Trim argument s. Give trimed s to exception constructor.
  6754. * src/Util.cc (parseInt)(parseLLInt)
  6755. * test/UtilTest.cc
  6756. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Set precision back to 1.
  6758. * src/ConsoleStatCalc.cc (calculateStat)
  6759. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Replaced strtol with Util::parseInt
  6761. * src/ChunkedEncoding.cc
  6762. * src/HttpConnection.cc
  6763. * src/CookieBoxFactory.cc
  6764. * src/ParameterizedStringParser.cc
  6765. * src/Util.cc
  6766. * test/UtilTest.cc
  6767. * test/OptionHandlerTest.cc
  6768. * src/Request.cc
  6769. Throw exception when empty string is given. The message for exception
  6770. changed.
  6771. * src/Util.cc (parseInt)(parseLLInt)
  6772. * src/message.h
  6773. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6775. set to 1.
  6776. * src/ConsoleStatCalc.cc (calculateStat)
  6777. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Preallocate non-requested file which is adjacent forward to requested
  6779. file('requested' files means the files given in --select-file option)
  6780. if they share a same piece.
  6781. This fixes long pause in the file system which doesn't support sparse
  6782. files like FAT32 while downloading.
  6783. * src/MultiFileAllocationIterator.{h, cc}
  6784. * test/MultiFileAllocationIteratorTest.cc
  6785. * src/FileEntry.{h, cc}
  6786. Removed unused _option.
  6787. * src/MultiDiskAdaptor.h
  6788. * test/MultiDiskAdaptorTest.cc
  6789. * src/DefaultPieceStorage.cc
  6790. Set the default value of --seed-ratio to 1.0.
  6791. If 0.0 is given, then seeding continues regardless of share ratio.
  6792. * src/version_usage.cc
  6793. * src/option_processing.cc
  6794. * src/BtSetup.cc
  6795. * doc/aria2c.1.txt
  6796. * doc/aria2c.1
  6797. Fixed: Selective download is not working in BitTorrent
  6798. * src/RequestGroup.cc
  6799. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6800. * src/PieceStorage.h
  6801. * test/MockPieceStorage.h
  6802. * src/UnknownLengthPieceStorage.h
  6803. * src/DefaultPieceStorage.{h, cc}
  6804. * src/Metalink2RequestGroup.cc
  6805. * src/RequestGroup.cc
  6806. * src/Sequence.h
  6807. * test/SequenceTest.cc
  6808. * src/IntSequence.h
  6809. * src/message.h
  6810. * src/Util.{h, cc}
  6811. * test/UtilTest.cc
  6812. Added new function 'parse' to catch exception thrown by subclass's
  6813. parseArg
  6814. * src/OptionHandler.h
  6815. * src/OptionParser.cc
  6816. * src/NameMatchOptionHandler.h
  6817. * src/OptionHandlerImpl.h
  6818. * test/OptionHandlerTest.cc
  6819. Added IntegerRangeOptionHandler. Used for --listen-port and
  6820. --select-file. Now --listen-port accepts range of port.
  6821. * src/OptionHandlerFactory.cc
  6822. * src/version_usage.cc
  6823. * src/OptionHandlerImpl.h
  6824. * src/option_processing.cc
  6825. * src/BtSetup.cc
  6826. * src/PeerListenCommand.{h, cc}
  6827. * doc/aria2c.1.txt
  6828. * doc/aria2c.1
  6829. Implemented operator< for Exception class to provide easy way to print
  6830. exception stack trace.
  6831. * src/Exception.{h, cc}
  6832. * src/main.cc
  6833. * src/option_processing.cc
  6834. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. * src/version_usage.cc
  6836. (showVersion): Reworked.
  6837. (showUsage): Added examples.
  6838. Removed Hint for total length and file name.
  6839. * src/Metalink2RequestGroup.cc
  6840. * src/RequestGroup.{h, cc}
  6841. * src/HttpResponseCommand.cc
  6842. * src/FtpNegotiationCommand.cc
  6843. Now --follow-torrent and --follow-metalink option work properly.
  6844. * src/RequestGroup.cc
  6845. Updated man page
  6846. * doc/aria2c.1.txt
  6847. * doc/aria2c.1
  6848. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6849. Removed.
  6850. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6851. Use Segment::operator==()
  6852. * src/HttpConnection.cc
  6853. * src/Segment.h
  6854. Updated usage
  6855. * src/version_usage.cc
  6856. Added EINTR treatment.
  6857. * src/SocketCore.cc
  6858. * src/AbstractDiskWriter.cc
  6859. Rewritten.
  6860. * src/Util.cc (rangedFileCopy)
  6861. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6862. Fixed typo.
  6863. * src/version_usage.cc
  6864. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Implemented. Now -c option works fine.
  6866. * src/DefaultPieceStorage.cc (markPiecesDone)
  6867. * test/DefaultPieceStorageTest.cc
  6868. Removed.
  6869. * src/SegmentMan.{h, cc}
  6870. (markAllPiecesDone)
  6871. (markPieceDone)
  6872. Synchronized po files with
  6873. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6874. * src/fr.po
  6875. * src/ru.po
  6876. * src/de.po
  6877. * src/ja.po
  6878. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6879. Added ifdef and some modifications to compile without BitTorrent,
  6880. Metalink, MessageDigest
  6881. support.
  6882. * src/PieceHashCheckIntegrityEntry.cc
  6883. * src/MetalinkEntry.h
  6884. * src/version_usage.cc
  6885. * src/main.cc
  6886. * src/DownloadEngine.{h, cc}
  6887. * src/Metalink2RequestGroup.cc
  6888. * src/Peer.cc
  6889. * src/RequestGroup.cc
  6890. * src/MetalinkHelper.cc
  6891. * test/DefaultPieceStorageTest.cc
  6892. * test/MetalinkPostDownloadHandlerTest.cc
  6893. * test/Metalink2RequestGroupTest.cc
  6894. Hide TOTAL SPD when all downloads complete.
  6895. * src/ConsoleStatCalc.cc
  6896. Log target system information.
  6897. * src/main.cc
  6898. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. Now --metalink-location accepts a comma-deliminated list of locations.
  6900. * src/MetalinkEntry.{h, cc}
  6901. * test/MetalinkEntryTest.cc
  6902. * src/version_usage.cc
  6903. * src/Metalink2RequestGroup.cc
  6904. * src/Xml2MetalinkProcessor.cc
  6905. * test/Xml2MetalinkProcessorTest.cc
  6906. * doc/aria2c.1.txt
  6907. * doc/aria2c.1
  6908. * src/Util.cc (toUpper)(toLower): Rewritten.
  6909. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6910. Added the ability to detect duplicate download entry which is about to
  6911. download the same file other RequestGroup is downloading.
  6912. * src/RequestGroup.cc
  6913. * src/HttpResponseCommand.cc
  6914. * src/FtpNegotiationCommand.cc
  6915. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Recalculates download progress when loading a control file,
  6917. if the piece length of DownloadContext is different from the one saved
  6918. in the control file. Currently in-flight pieces are ignored.
  6919. * src/DefaultBtProgressInfoFile.cc
  6920. * test/DefaultBtProgressInfoFileTest.cc
  6921. * src/Util.{h, cc}
  6922. * test/UtilTest.cc
  6923. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Do not rotate tiers in announce-list.
  6925. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6926. AnnounceList::allTiersFailed() used instead to detect whether all
  6927. tiers are tried and failed.
  6928. * test/DefaultBtAnnounceTest.cc
  6929. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6930. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6931. * test/AnnounceListTest.cc
  6932. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6933. clause. Catch RecoverableException instead of DlRetryEx instead.
  6934. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6935. Implemented checksum validation feature(1 checksum for each file)
  6936. The validation takes place after the download.
  6937. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6938. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6939. * src/CheckIntegrityCommand.cc: Changed log message.
  6940. * src/Metalink2RequestGroup.cc: Set checksum to
  6941. SingleFileDownloadContext.
  6942. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6943. PieceHashCheckIntegrity class.
  6944. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6945. PieceHashCheckIntegrity class.
  6946. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6947. * src/IteratableValidator.h: New class.
  6948. * src/message.h
  6949. * src/CheckIntegrityEntry.{h, cc}
  6950. * src/IteratableChunkChecksumValidator.{h, cc}
  6951. * src/SingleFileDownloadContext.h
  6952. * src/DownloadCommand.cc
  6953. --allow-overwrite=true is no longer needed to check file integrity
  6954. before download in BitTorrent download.
  6955. * src/RequestGroup.cc (getInitialCommand)
  6956. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6957. throws exception.
  6958. * src/RequestGroupMan.cc (getInitialCommands)
  6959. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. urlencode the given url inside Request::parseUrl(...)
  6961. * src/Request.{h, cc}
  6962. * src/Util.{h, cc}
  6963. * test/RequestTest.cc
  6964. Removed #!metalink3! notation support because it is deleted from
  6965. the metalink specification.
  6966. * src/Request.{h, cc}
  6967. * test/RequestTest.cc
  6968. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6969. Don't connect server before checking file integrity at startup, if
  6970. filesize and output file path are known.
  6971. * src/AbstractCommand.cc
  6972. * src/StreamFileAllocationEntry.cc
  6973. * src/Metalink2RequestGroup.cc
  6974. * src/RequestGroup.{h, cc}
  6975. * src/HttpResponseCommand.cc
  6976. * src/FtpNegotiationCommand.cc
  6977. Added DownloadFailureException. If it is thrown, RequestGroup should
  6978. halt.
  6979. * src/AbstractCommand.cc
  6980. * src/DownloadFailureException.h
  6981. * src/RequestGroup.cc
  6982. Catch RecoverableException, instead of DlAbortEx.
  6983. * src/RequestGroupMan.cc
  6984. * src/FillRequestGroupCommand.cc
  6985. * src/MetaFileUtil.cc
  6986. * src/IteratableChunkChecksumValidator.cc
  6987. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6988. getGID())
  6989. * src/CheckIntegrityCommand.cc
  6990. * src/message.h
  6991. Print gid instead of idx.
  6992. * src/RequestGroupMan.cc
  6993. Removed exception throwers declaration.
  6994. * src/DirectDiskAdaptor.{h, cc}
  6995. * src/SocketCore.{h, cc}
  6996. * src/MultiDiskAdaptor.{h, cc}
  6997. * src/HttpConnection.{h, cc}
  6998. * src/HttpResponse.{h, cc}
  6999. * src/DiskAdaptor.{h, cc}
  7000. * src/CopyDiskAdaptor.{h, cc}
  7001. * src/MultiDiskAdaptor.{h, cc}
  7002. * src/HttpHeaderProcessor.{h, cc}
  7003. * src/AbstractSingleDiskAdaptor.{h, cc}
  7004. * src/Util.{h, cc}
  7005. * test/UtilTest.cc
  7006. * src/DefaultDiskWriter.{h, cc}
  7007. * src/FtpConnection.{h, cc}
  7008. * src/AbstractDiskWriter.{h, cc}
  7009. Removed duplicate code.
  7010. * src/StreamCheckIntegrityEntry.cc
  7011. Removed unnecessary include.
  7012. * src/DiskWriter.h
  7013. Included Exception.h
  7014. * src/option_processing.cc
  7015. Included 2 files and added doc
  7016. * src/TrackerWatcherCommand.cc
  7017. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7018. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Changed CheckIntegrityEntry interface so that it can define
  7020. the action when all the chunk checksums are valid.
  7021. * src/CheckIntegrityEntry.h
  7022. * src/StreamCheckIntegrityEntry.{h, cc}
  7023. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7024. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7025. to exit rather than doing seeding. So, it would be good to toggle this
  7026. behavior.
  7027. * src/CheckIntegrityCommand.cc
  7028. * src/AbstractCommand.cc
  7029. * src/RequestGroup.cc
  7030. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Reflect the download length of in-flight pieces.
  7032. It makes the download length readout more precise.
  7033. * src/DefaultPieceStorage.{h, cc}
  7034. * test/DefaultPieceStorageTest.cc
  7035. * src/a2functional.h
  7036. * test/a2functionalTest.cc
  7037. Lower CPU load when --max-download-limit is used.
  7038. There is up and down in speed indicator when enabling
  7039. http-pipelining but a download goes well. I think the problem is that
  7040. because http-pipelining is enabled, DownloadCommand is created for
  7041. each segment and in its constructor, PeerStat::downloadStart() is
  7042. called. In PeerStat::downloadStart(), speed calculation object is
  7043. reseted, which makes download speed zero.
  7044. * src/DownloadCommand.cc
  7045. Rewritten using accumulate.
  7046. * src/RequestGroupMan.cc (calculateStat)
  7047. Code clearnup.
  7048. * src/FtpNegotiationCommand.cc
  7049. * src/HttpResponseCommand.cc
  7050. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Fixed: Can not resume: aria2 reports download already finished.
  7052. * src/AbstractCommand.{h, cc}
  7053. * src/HttpResponseCommand.cc
  7054. * src/FtpNegotiateCommand.cc
  7055. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Now a file is stored in the directory specified in .metalnk file
  7057. (file[@name]).
  7058. * src/Metalink2RequestGroup.cc
  7059. Create the directory structure when opening the file if it doesn't
  7060. exist.
  7061. * src/AbstractDiskWriter.cc
  7062. * src/Util.{h, cc}
  7063. * src/File.h
  7064. * test/UtilTest.cc
  7065. Removed file name comparison
  7066. * src/Metalink2RequestGroup.cc
  7067. * src/HttpResponseCommand.cc
  7068. Rewritten using Util::mkdirs()
  7069. * src/FileEntry.cc (setupDir)
  7070. * test/FileEntryTest.cc
  7071. Updated doc
  7072. * src/SingleFileDownloadContext.h
  7073. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Now SleepCommand dispatches nextCommand when halt is requested.
  7075. It avoids a possible long wait after hitting CTRL-C.
  7076. * src/SleepCommand.{h, cc}
  7077. * src/RequestGroupAware.{h, cc}
  7078. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7080. to open listen port, then remove the port number from the tracker
  7081. request.
  7082. * src/DefaultBtAnnounce.cc
  7083. * test/DefaultBtAnnounceTest.cc
  7084. * test/MockPieceStorage.h
  7085. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7086. them more testable.
  7087. * src/DefaultBtAnnounce.{h, cc}
  7088. * src/DefaultBtContext.{h, cc}
  7089. * src/Util.{h, cc}
  7090. * test/DefaultBtAnnounceTest.cc
  7091. * test/DefaultBtContextTest.cc
  7092. * test/UtilTest.cc
  7093. Added 'B' to upload bytes readout.
  7094. * src/ConsoleStatCalc.cc
  7095. Now the listen port for BitTorrent download is opened when it is
  7096. needed.
  7097. * src/DownloadEngineFactory.cc
  7098. * src/BtSetup.{h, cc}
  7099. * src/PeerListenCommand.{h, cc}
  7100. Now an exception thrown while parsing tracker response is now logged.
  7101. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7102. called, which means no retry is made in this case, assuming a tracker
  7103. has a problem.
  7104. * src/TrackerWatcherCommand.cc
  7105. Fixed: downloading a file whose length is unkown fails.
  7106. * src/DownloadCommand.cc
  7107. Simplified prepareForNextSegment()
  7108. * src/DownloadCommand.cc
  7109. Updated
  7110. * po/POTFILES.in
  7111. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Re-implemented a file listing for Metalink, which was dropped while
  7113. http/ftp/torrent integration was being implemented.
  7114. * src/MetalinkHelper.{h, cc}: New class.
  7115. * test/MetalinkHelperTest.cc
  7116. * src/main.cc
  7117. * src/Metalink2RequestGroup.cc
  7118. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Added the ability to display the detailed torrent file information.
  7120. Now -S option gives not only a file listing, but also total download
  7121. length, info hash, announce URI, piece length, the number of pieces,
  7122. and mode(single or multi-torrent).
  7123. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7124. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7125. KiB)
  7126. * test/UtilTest.cc
  7127. * src/main.cc
  7128. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Added ftp://USER:PASSWD@Servername automatic parsing.
  7130. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7131. _password. Recognize username and password in URI.
  7132. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7133. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7134. * src/RequestFactory.{h, cc}: Removed.
  7135. * src/AuthConfigFactory.{h, cc}: New class.
  7136. * src/FtpConnection.cc: Use AuthConfigFactory.
  7137. * src/HttpRequest.cc: Use AuthConfigFactory.
  7138. * test/HttpRequestTest.cc: Updated.
  7139. * test/RequestTest.cc: Updated.
  7140. * test/AuthConfigFactoryTest.cc: New class.
  7141. * test/RequestFactoryTest.cc: Removed.
  7142. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Use RequestGroup::allDownloadFinished() to decide whether the control
  7144. file should be removed or saved.
  7145. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7146. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7147. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Use File::renameTo()
  7149. * src/DefaultBtProgressInfoFile.cc
  7150. Added --no-file-allocation-limit command-line option.
  7151. * src/version_usage.cc
  7152. * src/option_processing.cc
  7153. * src/OptionHandlerFactory.cc
  7154. * src/RequestGroup.{h, cc}
  7155. * src/BtCheckIntegrityEntry.cc
  7156. * src/StreamCheckIntegrityEntry.cc
  7157. * src/prefs.h
  7158. * doc/aria2c.1.txt
  7159. * doc/aria2c.1
  7160. Now prealloc is the default value for --file-allocation option.
  7161. * src/version_usage.cc
  7162. * src/option_processing.cc
  7163. * doc/aria2c.1.txt
  7164. * doc/aria2c.1
  7165. Don't URL-encode user-agent.
  7166. * src/HttpRequest.cc
  7167. Updated translations
  7168. * po/LINGUAS: Added nl for Dutch translation.
  7169. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7170. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7171. * po/POTFILES.in: Updated.
  7172. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Added the ability to recognize url-list in a torrent file.
  7174. The retrieved URLs are attached to the corresponding FileEntry.
  7175. * src/DefaultBtContext.{h, cc}
  7176. * src/FileEntry.{h, cc}
  7177. * test/DefaultBtContextTest.cc
  7178. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7180. after the download finishes.
  7181. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7183. the data smaller than block length.
  7184. A block length can be specified by constructor's argument.
  7185. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7186. Get a missing piece in the range of given FileEntry. This function is
  7187. not used in the program yet.
  7188. * src/Util.h: Added some macros.
  7189. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Added HTTP/1.1 keep alive and pipelining support.
  7191. See --enable-http-keep-alive and --enable-http-pipelining option.
  7192. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7193. Segment.
  7194. * src/HttpDownloadCommand.{h, cc}
  7195. * src/OptionHandlerFactory.cc
  7196. * src/HttpConnection.{h, cc}
  7197. * src/version_usage.cc
  7198. * src/HttpInitiateConnectionCommand.cc
  7199. * src/FtpInitiateConnectionCommand.cc
  7200. * src/Segment.h
  7201. * src/HttpRequestCommand.{h, cc}
  7202. * src/option_processing.cc
  7203. * src/prefs.h
  7204. * src/HttpResponseCommand.cc
  7205. * src/SegmentMan.{h, cc}
  7206. * src/FtpNegotiateCommand.cc
  7207. * src/HttpProxyResponseCommand.cc
  7208. * src/Request.cc
  7209. * src/HttpRequest.cc
  7210. * src/DownloadCommand.cc
  7211. * test/HttpRequestTest.cc
  7212. * test/RequestTest.cc
  7213. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7215. finished.
  7216. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7218. catching it inside the method.
  7219. When no file entry is found in a metalink without querying user
  7220. preferences, throw the exception with the error message that suggests
  7221. metalink file is probably broken.
  7222. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7223. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7225. processed.
  7226. * src/RequestGroupMan.cc (removeStoppedGroup)
  7227. Added debug message.
  7228. * src/BtPostDownloadHandler.cc
  7229. * src/MetalinkPostDownloadHandler.cc
  7230. * src/PostDownloadHandler.{h, cc}
  7231. * src/RequestGroup.cc
  7232. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7234. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7236. stops and there are any unfinished or in-progress downloads.
  7237. Added the legend of "stat".
  7238. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Throw exception when chunck checksum verification fails.
  7240. * src/DownloadCommand.cc (validatePieceHash): New function.
  7241. * src/PiecedSegment.{h, cc} (clear): New function.
  7242. * src/GrowSegment.{h, cc} (clear): New function.
  7243. * src/Segment.h (clear): New function.
  7244. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7245. * test/SegmentTest.cc
  7246. * test/GrowSegmentTest.cc
  7247. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Do not send referer when redirected.
  7249. * src/Request.cc (redirectUrl)
  7250. * test/RequestTest.cc
  7251. * test/HttpRequestTest.cc
  7252. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Implemented BitTorrent/http/ftp integrated download.
  7254. I've rewritten lots of files and now some headers have forward
  7255. class declarations to reduce compile time.
  7256. The implementation is extremely alpha stage, I recommend to use this
  7257. for testing purpose only.
  7258. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Fixed the compilation error on 64bit platform.
  7260. * test/HttpHeaderProcessorTest.cc
  7261. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Merged Ross's patch that fixes compilation problem in MinGW
  7263. * test/DefaultBtProgressInfoFileTest.cc
  7264. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7265. Updated fr.po by sebone
  7266. * po/fr.po
  7267. Updated man page.
  7268. * doc/aria2c.1.txt
  7269. * Release 0.11.3
  7270. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7272. failure in Metalink.
  7273. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7274. Automatically save *.aria2 control file of http/ftp download in every
  7275. 60 seconds.
  7276. * src/AutoSaveCommand.{h, cc}: New class.
  7277. * src/TimeBasedCommand.{h, cc}: New class.
  7278. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7279. Disable parameterized URI support by default. Added -P option to
  7280. enable the feature.
  7281. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7282. * src/OptionHandlerFactory.cc
  7283. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7284. Updated Japanese translation.
  7285. * po/ja.po
  7286. Updated man page.
  7287. * doc/aria2c.1.txt
  7288. * Release 0.11.3-rc
  7289. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7291. it is successful, then renamed to *.aria2.
  7292. This prevents *.aria2 file from being truncated or corrupted when
  7293. file system becomes out of space.
  7294. * src/DefaultBtProgressInfoFile.cc (save)
  7295. * src/SegmentMan.cc (save)
  7296. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7297. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Reduced the fragmentation of bitfield in http/ftp download.
  7299. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7300. * test/BitfieldManTest.cc
  7301. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Added the ability to disable segmented download in .metalink.
  7303. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7304. 'url' tag.
  7305. * src/MetalinkEntry.{h, cc}
  7306. * src/RequestResource.{h, cc}
  7307. * src/MetalinkRequestInfo.cc
  7308. * src/Xml2MetalinkProcessor.cc
  7309. * test/Xml2MetalinkProcessorTest.cc
  7310. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Added parameterized URI support.
  7312. * src/main.cc: -Z option added.
  7313. * src/OptionHandlerFactory.cc
  7314. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7315. * src/PStringDatum.h: New class.
  7316. * src/PStringSegment.{h,cc}: New class.
  7317. * src/PStringNumLoop.h: New class.
  7318. * src/PStringSelect.h: New class.
  7319. * src/NumberDecorator.h: New class.
  7320. * src/FixedWidthNumberDecorator.h: New class.
  7321. * src/AlphaNumberDecorator.h: New class.
  7322. * src/PStringVisitor.h: New class.
  7323. * src/PStringBuildVisitor.{h,cc}: New class.
  7324. * src/ParameterizedStringParser.{h,cc}: New class.
  7325. * src/Util.{h,cc}
  7326. (isNumber): New function.
  7327. (isLowercase): New function.
  7328. (isUppercase): New function.
  7329. (alphaToNum): New function.
  7330. * test/ParameterizedStringParserTest.cc: New class.
  7331. * test/AlphaNumberDecoratorTest.cc: New class.
  7332. * test/PStringBuildVisitorTest.cc: New class.
  7333. * test/UtilTest.cc
  7334. (testIsNumber): New function.
  7335. (testIsLowercase): New function.
  7336. (testIsUppercase): New function.
  7337. (testAlphaToNum): New function.
  7338. Added '\n' after the error message
  7339. * src/RequestInfo.h (printDownloadAbortMessage)
  7340. Added auto file renaming feature in http(s)/ftp download.
  7341. * src/main.cc: Added --auto-file-renaming command-line option.
  7342. * src/OptionHandlerFactory.cc
  7343. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7344. * src/RequestGroup.{h, cc}
  7345. (shouldCancelDownloadForSafety): Rewritten
  7346. (tryAutoFileRenaming): New function.
  7347. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7348. * src/HttpResponseCommand.cc
  7349. (executeInternal): Removed the call to RequestGroupMan::
  7350. isSameFileBeingDownloaded()
  7351. * src/FtpNegotiateCommand.cc
  7352. (recvSize): Removed the call to RequestGroupMan::
  7353. isSameFileBeingDownloaded()
  7354. * test/RequestGroupTest.cc: New class.
  7355. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7357. IO.
  7358. * src/DefaultBtProgressInfoFile.cc
  7359. * src/MetaFileUtil.cc
  7360. * src/SimpleLogger.cc
  7361. * src/SegmentMan.cc
  7362. * src/Util.cc
  7363. * src/Platform.cc
  7364. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7366. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7368. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7369. Fixed the bug that prevents file allocation is not done when
  7370. dowloading multi-torrent file.
  7371. * src/AbstractDiskWriter.cc (openFile)
  7372. Increase the maximum number of -j option from 15 to 45.
  7373. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7374. Added fr.po, thanks to Charles Landemaine.
  7375. * po/fr.po
  7376. * po/LINGUAS
  7377. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7378. gcc 3.4.4 support:
  7379. * src/DefaultBtContext.cc: int32_t -> int
  7380. * src/main.cc: int -> int32_t, int32_t -> int
  7381. * src/messageDigest.h: uint32_t -> unsigned int
  7382. * src/NameResolver.h: int32_t -> int
  7383. * src/PeerConnection.cc: int -> int32_t
  7384. * src/SpeedCalc.cc: int32_t -> int
  7385. * src/TrackerUpdateCommand.h: int -> int32_t
  7386. * src/Util.cc: int32_t -> int
  7387. * src/Util.h: int32_t -> int
  7388. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7389. * test/AnnounceListTest.cc: int -> int32_t
  7390. * test/ChunkedEncodingTest.cc: int -> int32_t
  7391. * test/DataTest.cc: int -> int32_t
  7392. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7393. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7394. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7395. * test/FeatureConfigTest.cc: int -> int32_t
  7396. * test/MetalinkEntryTest.cc: int -> int32_t
  7397. * test/MockBtRequestFactory.h: int -> int32_t
  7398. * test/MockPieceStorage.h: int -> int32_t
  7399. * test/OptionTest.cc: int -> int32_t
  7400. * test/RequestTest.cc: int -> int32_t
  7401. * test/SegmentManTest.cc: int -> int32_t
  7402. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7403. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7404. Move sleep functions to Util class:
  7405. * src/Util.cc
  7406. (sleep): New function.
  7407. (usleep): New function.
  7408. * src/DownloadCommand.cc: sleep -> Util::sleep
  7409. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7410. MinGW build enhancements. The following files are added:
  7411. * src/timegm.{c,h}
  7412. Changes to support the above new files:
  7413. * configure.ac
  7414. * src/Makefile.am
  7415. * src/a2time.h
  7416. * src/Util.cc:
  7417. * src/strptime.c: Added support for %Z option.
  7418. Fixed MinGW non-blocking bug.
  7419. * src/SocketCore.cc
  7420. * src/HttpRequestCommand.cc
  7421. Miscellenous build fixes/enhancements.
  7422. * configure.ac: Added summary report.
  7423. * src/Platform.h: Tweaked #include's.
  7424. * src/a2netcompat.h: Tweaked #include's.
  7425. * src/strptime.h: Tweaked #include's.
  7426. * src/gai_strerror.c: Tweaked #include's.
  7427. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7428. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7429. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7430. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Increased the initial connection size in BitTorrent download to 40.
  7432. * src/BtRuntime.h
  7433. Added the usage message of --peer-id-prefix option.
  7434. * src/main.cc
  7435. * Release 0.11.2
  7436. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. MessageDigestHelper is introduced in order to simplify the use
  7438. of message digest. Removed repeated code.
  7439. The message digest algorithm is now specified by string, like "sha1",
  7440. "md5".
  7441. * src/messageDigest.{h, cc}
  7442. * src/MessageDigestHelper.{h, cc}: New class.
  7443. * src/DefaultPieceStorage.cc
  7444. * src/DefaultBtContext.{h, cc}
  7445. (computeFastSet): New function.
  7446. (setInfoHash): Added for unit testing.
  7447. (setNumPieces): Added for unit testing.
  7448. * src/DefaultBtInteractive.cc
  7449. * src/BtPieceMessage.cc
  7450. * src/Peer.cc
  7451. * src/Checksum.h
  7452. * src/message.h
  7453. * src/IteratableChecksumValidator.h
  7454. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7455. inside it.
  7456. * src/SegmentMan.{h, cc}
  7457. (checkIntegrity): Removed.
  7458. * src/IteratableChunkChecksumValidator.{h, cc}
  7459. * src/Util.h
  7460. (sha1Sum): Removed.
  7461. (simpleMessageDigest): Removed.
  7462. (fileChecksum): Removed.
  7463. (computeFastSet): Removed.
  7464. * src/ShaVisitor.cc
  7465. * src/ChunkChecksum.h
  7466. * src/DownloadCommand.cc
  7467. Removed messageDigest virtual functions.
  7468. * src/MultiDiskAdaptor.{h, cc}
  7469. * src/DiskAdaptor.h
  7470. * src/ByteArrayDiskWriter.h
  7471. * src/DiskWriter.h
  7472. * src/DiskAdaptorWriter.h
  7473. * src/AbstractSingleDiskAdaptor.{h, cc}
  7474. * src/AbstractDiskWriter.{h, cc}
  7475. Fixed comilation error when message digest is disabled.
  7476. * src/MetalinkEntry.{h, cc}
  7477. * src/MetalinkRequestInfo.cc
  7478. Removed srandom and random.
  7479. * src/SimpleRandomizer.h
  7480. Added size() virtual function to DiskAdaptor
  7481. * src/MultiDiskAdaptor.h
  7482. Fixed the bug that causes that files are not opened correctly in
  7483. multi-file torrent.
  7484. * src/TorrentRequestInfo.cc
  7485. * src/MultiDiskAdaptor.cc
  7486. Added SHA256 support
  7487. * src/messageDigest.cc
  7488. * src/Xml2MetalinkProcessor.cc
  7489. Show supported message digest algorithms
  7490. * src/main.cc
  7491. Updated contact info.
  7492. * src/main.cc
  7493. Applied Ross's patch
  7494. * src/a2netcompat.h
  7495. * src/main.cc
  7496. Fixed the bug that prevents a remote metalink from not being processed
  7497. even if '-o foo.metalink' is specified.
  7498. * src/MetalinkRequestInfo.cc
  7499. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Merged Dan's patch:
  7501. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7502. Use va_copy to avoid core dump on amd64:
  7503. * src/SimpleLogger.cc
  7504. Updated contact info.
  7505. * src/main.cc
  7506. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7507. digest is not available.
  7508. * src/MetalinkEntry.h
  7509. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Make a2netcompat.h include a2io.h to fix compilation error:
  7511. * src/a2netcompat.h
  7512. * src/SocketCore.cc: Removed include of a2io.h
  7513. * src/Util.cc: Removed include of a2io.h
  7514. Gather time related functions to a2time.h:
  7515. * src/a2time.h: New file.
  7516. * src/DefaultPeerStorage.cc
  7517. * src/SimpleLogger.cc
  7518. * src/Util.{h, cc}
  7519. * src/SimpleRandomizer.h
  7520. * src/TimeA2.{h,cc}
  7521. * src/DownloadCommand.cc
  7522. * src/main.cc
  7523. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7524. a2netcompat.h:
  7525. * src/NameResolver.cc
  7526. Fixed compilation error without openssl:
  7527. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7528. Added default block to suppress compiler warnings:
  7529. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7530. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7531. MinGW build enhancements. The following files are added:
  7532. * src/gai_strerror.{c,h}
  7533. * src/gettimeofday.{c,h}
  7534. Changes to support the above new files:
  7535. * configure.ac
  7536. * src/Makefile.am
  7537. * src/a2netcompat.h
  7538. * src/TimeA2.cc
  7539. * src/DefaultPeerStorage.cc
  7540. * src/NameResolver.cc: removed mingw_strerror() function.
  7541. * src/SocketCore.cc: removed mingw_strerror() function.
  7542. Miscellaneous MinGW build fixes.
  7543. * src/a2io.h: Use _lseeki64() instead of lseek()
  7544. * src/common.h
  7545. * src/DefaultFileAllocator.cc
  7546. * src/GlowFileAllocator.cc
  7547. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7548. * src/NameResolver.cc
  7549. (callback): Changed int32_t to int.
  7550. (resolve): Changed int32_t to int.
  7551. * src/Platform.cc
  7552. * src/Platform.h
  7553. * test/MultiDiskWriterTest.cc
  7554. * test/PeerMessageUtilTest.cc
  7555. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7556. Other enhancements and fixes.
  7557. * src/HttpRequestCommand.cc
  7558. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7559. * src/SocketCore.cc:
  7560. (error): New function to abstract errno/WSAGetLastError().
  7561. (errorMsg): New function to abstract errno/WSAGetLastError().
  7562. (initiateSecureConnection): Added more detailed error reporting.
  7563. * src/SocketCore.h: Added private variable blocking, to allow
  7564. proper handling of OpenSSL psuedo-errors.
  7565. * src/message.h
  7566. (EX_SSL_INIT_FAILURE)
  7567. (EX_SSL_IO_ERROR)
  7568. (EX_SSL_PROTOCOL_ERROR)
  7569. (EX_SSL_UNKNOWN_ERROR)
  7570. (EX_SSL_CONNECT_ERROR)
  7571. (EX_SOCKET_BLOCKING)
  7572. (EX_SOCKET_NONBLOCKING)
  7573. (EX_SOCKET_UNKNOWN_ERROR)
  7574. * src/Util.cc
  7575. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7576. reserved name.
  7577. (httpGMT): Fixed typo.
  7578. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Merged Ross's win32 patch(manually)
  7580. In the course of merging, following files are added.
  7581. * src/strptime.{h,c}
  7582. * src/libgen.{h,c}
  7583. * src/inet_aton.{h,c}
  7584. * src/Platform.{h,cc}
  7585. * src/localtime_r.{h,c}
  7586. * src/getaddrinfo.{h,c}
  7587. I've gethered network related things, and put them to following file:
  7588. * src/a2netcompat.h
  7589. Also io related things are put to following file:
  7590. * src/a2io.h
  7591. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7592. * src/message.h
  7593. (MSG_ALLOCATION_COMPLETED)
  7594. (EX_TOO_LARGE_FILE)
  7595. (EX_SIZE_MISMATCH)
  7596. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7597. (EX_INVALID_CHUNK_CHECKSUM)
  7598. (EX_INVALID_RANGE_HEADER)
  7599. * src/FileAllocationCommand.cc
  7600. * src/HttpResponse.cc
  7601. * src/RequestGroup.cc
  7602. * src/MultiDiskAdaptor.cc
  7603. * src/OptionHandlerImpl.h
  7604. * src/HttpResponseCommand.cc
  7605. * src/FtpNegotiateCommand.cc
  7606. * src/IteratableChecksumValidator.cc
  7607. * src/SegmentMan.cc
  7608. * src/ChunkChecksumValidator.cc
  7609. Added Randomizer::getRandomNumber(long int)
  7610. * src/Randomizer.h (getRandomNumber)
  7611. * src/SimpleRandomizer.h (getRandomNumber)
  7612. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7613. * src/Util.cc (randomAlpha): Use this new function.
  7614. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Converted int's to in32_t. long long int's are also converted to
  7616. int64_t
  7617. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Fixed the bug that prevents cookies from being sent to the server
  7619. if the domain of cookie is FQDN and starts with ".".
  7620. * src/Cookie.cc (match)
  7621. To add the ability to change peer id.
  7622. * src/DefaultBtContext.h
  7623. (_peerIdPrefix): New variable
  7624. (setPeerIdPrefix): New function.
  7625. * src/torrentRequestInfo.cc
  7626. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7627. DefaultBtContext.
  7628. * src/main.cc (main): Added peer-id-prefix command-line option.
  7629. The usage message is not added yet.
  7630. * src/DefaultBtContext.cc
  7631. (generatePeerId): Use _peerIdPrefix.
  7632. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7633. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. Fixed the bug that prevents filename in content-disposition from
  7635. being retrieved when filename is not quoted.
  7636. * src/Util.cc (getContentDispositionFilename)
  7637. Fixed the bug that causes infinate loop and memory leak when file open
  7638. operation failed.
  7639. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7640. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. Fixed the bug that causes segfault when all URIs specified are
  7642. unsupported.
  7643. * src/RequestGroupMan.cc (getInitialCommands)
  7644. Check if RequestGroup::createNextCommand() returns empty list of
  7645. commands.
  7646. * src/RequestGroup.cc (createNextCommand)
  7647. Change log level from info to error so that users can notice that
  7648. an error occurred.
  7649. Fixed the bug that causes segfault when a zero-sized file is
  7650. downloaded.
  7651. * src/BitfieldMan.cc (isAllBitSet)
  7652. Return true if bitfieldLength is 0.
  7653. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. * src/main.cc
  7655. (showUsage): Added 3 usage examples for metalink download.
  7656. Replace MetalinkChunkChecksum with ChunkChecksum.
  7657. * src/MetalinkChunkChecksum.h: Removed.
  7658. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7659. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7660. * src/Xml2MetalinkProcessor.cc
  7661. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7662. * src/MetalinkRequestInfo.cc (execute)
  7663. * Release 0.11.1
  7664. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7665. Reads URIs from stdin when "-i -" is specified.
  7666. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7667. * src/UriListParser.h, src/UriListParser.cc: New class.
  7668. * src/StreamUriListParser.h: New class.
  7669. * src/FileUriListParser.h: New class.
  7670. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7671. instead of UriFileListParser.
  7672. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Made console readout more readable.
  7674. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7675. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Fix the bug that causes -s option not to work.
  7677. * src/main.cc (main)
  7678. * src/a2algo.h: New file.
  7679. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7680. Create directory structure specified in metalink file.
  7681. * src/RequestGroup.h, src/RequestGroup.cc
  7682. (initAndOpenFile): Create a directory to store files if it does not
  7683. exist.
  7684. (getDir): New function.
  7685. Added ETA and download speed for an individual file to readout.
  7686. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7687. * src/RequestGroup.h
  7688. (calculateDownloadSpeed): New function.
  7689. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Made -S option work with metalink file and provided selective download
  7691. to metalink.
  7692. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7693. (filename): Removed.
  7694. (file): New variable.
  7695. (size): Removed.
  7696. (operator=): Updated.
  7697. (getPath): New function.
  7698. (getLength): New function.
  7699. (toFileEntry): New function.
  7700. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7701. (execute): Use toStream.
  7702. (showFileEntry): Removed.
  7703. * src/MetalinkRequestInfo.h
  7704. (targetFiles): New variable.
  7705. (setTargetFiles): New variable.
  7706. * src/MetalinkRequestInfo.cc
  7707. (execute): Added the ability to print file information included in
  7708. a metalink file.
  7709. Added selective download mode to metalink.
  7710. * src/main.cc
  7711. (showUsage): Updated to denote that -S and --select-file options are
  7712. applicable to metalink.
  7713. * src/FileEntry.h
  7714. (operator=): New function.
  7715. (getBasename): New function.
  7716. (getDirname): New function.
  7717. * src/Util.h, src/Util.cc
  7718. (toStream): New function.
  7719. * src/Xml2MetalinkProcessor.cc: Updated.
  7720. Made aria2 work with metalink with directory structure.
  7721. * src/File.h, src/File.cc
  7722. (getBasename): New function.
  7723. (getDirname): New function.
  7724. * src/RequestGroup.h, src/RequestGroup.cc
  7725. (_topDir): New variable.
  7726. (setTopDir): New function.
  7727. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7728. Rewrote HTTP header parsing with stringstream.
  7729. * src/HttpConnection.h, src/HttpConnection.cc
  7730. (HttpRequestEntry): New class.
  7731. (headerBuf): Removed.
  7732. (headerBufLength): Removed.
  7733. (outstandingHttpRequests): Now its element type is
  7734. HttpRequestEntryHandle.
  7735. (findEndOfHeader): Removed.
  7736. (receiveResponse): Rewritten.
  7737. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7738. Updated doc for -j option to notice that it should be used with -i
  7739. option.
  7740. * src/main.cc (showUsage)
  7741. Removed unused classes.
  7742. * src/RequestInfo.h
  7743. (FileInfo): Removed.
  7744. (checksum): Removed.
  7745. (fileInfo): Removed.
  7746. (setChecksum): Removed.
  7747. (getChecksum): Removed.
  7748. (getFileInfo): Removed.
  7749. Use ISO units.
  7750. * src/ConsoleDownloadEngine.cc
  7751. * src/TorrentConsoleDownloadEngine.cc
  7752. * src/Util.cc (abbrevSize)
  7753. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7754. Added the default listening ports to the help message.
  7755. * src/main.cc (showUsage)
  7756. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Reduce the number of calls to gettimeofday to lower CPU load.
  7758. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7759. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7760. * src/Peer.h (calculateUploadSpeed): New function.
  7761. (calculateDownloadSpeed): New function.
  7762. * src/DefaultPeerStorage.cc
  7763. (CalculateStat): Added _now variable.
  7764. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7765. and Peer::calculateUploadSpeed(const struct timeval&)
  7766. Drop connection if no request or piece message is exchanged in
  7767. a certain interval.
  7768. * src/DefaultBtInteractive.h
  7769. (btRuntime): New variable.
  7770. (inactiveCheckPoint): New variable.
  7771. (checkActiveInteraction): New function.
  7772. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7773. request or piece message is received.
  7774. (checkActiveInteraction): New function.
  7775. (doInteractionProcessing): Call checkActiveInteraction.
  7776. Fixed the bug that causes remote Metalink and Torrent files are not
  7777. processed.
  7778. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7779. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Changed format of log file.
  7781. * src/SimpleLogger.cc
  7782. * Release 0.11.0
  7783. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. * src/AbstractCommand.cc
  7785. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7786. MSG_MAX_TRY from error to info.
  7787. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7788. * src/message.h
  7789. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7790. (MSG_DOWNLOAD_ABORTED): Added %s.
  7791. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7792. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7793. * src/PeerAbstractCommand.cc
  7794. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7795. * src/Request.h
  7796. (cookieBox): Made ShardHandle.
  7797. * src/RequestGroup.h, src/RequestGroup.cc
  7798. (createNextCommandWithAdj): New function.
  7799. * src/FileAllocationCommand.cc
  7800. (executeInternal): Use createNextCommandWithAdj().
  7801. * src/CheckIntegrityCommand.cc
  7802. (executeInternal): Use createNextCommandWithAdj().
  7803. Added --load-cookies command-option.
  7804. * src/OptionHandlerFactory.cc
  7805. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7806. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7807. Now aria2 can handle cookie's expiration date.
  7808. * src/Cookie.h (expires): Changed its type to time_t.
  7809. * src/main.cc: Added --load-cookies command-line option.
  7810. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7811. * src/Util.h, src/Util.cc (httpGMT): New function.
  7812. * src/Request.cc (Request): Initialize cookieBox using
  7813. CookieBoxFactory.
  7814. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7815. * src/CookieParser.h, src/CookieParser.cc: New class.
  7816. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7817. * src/HttpResponseCommand.cc
  7818. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7819. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7820. download.
  7821. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Added -j command-line option.
  7823. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7824. * src/main.cc
  7825. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7826. Rewritten using stringstream.
  7827. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7828. Rewritten using stringstream.
  7829. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Make download size shown in MB, KB.
  7831. * src/ConsoleDownloadEngine.h (sendStatistics)
  7832. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7833. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. Accept incoming connections if download rate is low.
  7835. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7836. (_lowestSpeedLimit): New variable.
  7837. (setLowestSpeedLimit): New function.
  7838. (execute): Accept incoming connections if download rate is low.
  7839. MAX_PEERS is ignored in this case.
  7840. Disable PREF_OUT in multiple concurrent download:
  7841. * src/RequestGroup.h, src/RequestGroup.cc
  7842. (setUserDefinedFilename): New function.
  7843. * src/DownloadEngineFactory.cc
  7844. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7845. concurrent download.
  7846. * src/DefaultSegmentManFactory.cc
  7847. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7848. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7849. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7850. Added its overloaded method.
  7851. * src/RequestGroup.h
  7852. (_numConcurrentCommand): New variable.
  7853. (setNumConcurrentCommand): New function.
  7854. * src/RequestGroup.cc
  7855. Abort download if same file is being downloaded concurrently.
  7856. * src/RequestGroup.h, src/RequestGroupMan.cc
  7857. (isSameFileBeingDownloaded): New function.
  7858. * src/HttpResponseCommand.cc (executeInternal)
  7859. * src/FtpNegotiateCommand.cc (recvSize)
  7860. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7861. * main.cc: Added help message for -i option.
  7862. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7864. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7865. * src/MetalinkEntry.h
  7866. (checksum): Changed to ChecksumHandle
  7867. * src/MetalinkRequestInfo.cc
  7868. (checksum): Changed to ChecksumHandle
  7869. * src/File.cc
  7870. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7871. * src/common.h
  7872. (DIR_OPEN_MODE): New definition
  7873. * src/RequestGroup.cc
  7874. (prepareForNextAction): Added an argument.
  7875. * src/message.h
  7876. (MSG_GOOD_CHECKSUM): New definition
  7877. (MSG_BAD_CHECKSUM): New definition
  7878. * src/HttpResponseCommand.cc
  7879. (handleDefaultEncoding): Continue download sequence in new
  7880. non-segmented download.
  7881. * src/FileAllocationEntry.h
  7882. (_nextDownloadCommand): New variable.
  7883. * src/DownloadCommand.cc
  7884. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7885. available.
  7886. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7887. * src/IteratableChecksumValidator.h,
  7888. src/IteratableChecksumValidator.cc: New class.
  7889. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7890. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Change file mode to 666:
  7892. * src/common.h (OPEN_MODE): New definition.
  7893. * src/File.cc
  7894. * src/Util.cc
  7895. * src/Directry.cc
  7896. * src/AbstractDiskWriter.cc
  7897. Change the level of log message "download aborted" to debug:
  7898. * src/PeerAbstractCommand.cc (execute)
  7899. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7900. * src/TrackerWatcherCommand.cc
  7901. (createCommand): Sleep some seconds after request failed.
  7902. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7903. then abort tracker request.
  7904. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. * Added the simultaneous download feature.
  7906. * src/main.cc: Print "Exception caught: " when exception is caught.
  7907. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7908. * src/ActivePeerConnectionCommand.cc
  7909. * src/PeerInteractionCommand.cc
  7910. * src/BtRuntime.h
  7911. (cuidCounter): Removed.
  7912. (getNewCuid): Removed.
  7913. * src/DownloadEngineFactory.cc
  7914. * src/PeerListenCommand.cc
  7915. * src/TrackerUpdateCommand.cc
  7916. * src/PeerInitiateConnectionCommand.cc
  7917. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. * src/PeerAbstractCommand.cc
  7919. (onAbort): Call PeerStorage::returnPeer()
  7920. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7921. (incomingPeers): New variable.
  7922. (addIncomingPeer): New function.
  7923. (returnPeer): New function.
  7924. (onErasingPeer): New function.
  7925. (addPeer): push_back -> push_front
  7926. (getActivePeers): Rewritten.
  7927. (calculateStat): Rewritten.
  7928. * src/PeerStorage.h
  7929. (TransferStat::copy): New function.
  7930. (TransferStat::TransferStat): New function.
  7931. (TransferStat::operator=): New function.
  7932. (addIncomingPeer): New function.
  7933. (returnPeer): New function.
  7934. * src/PeerListenCommand.cc
  7935. (execute): Use PeerStorage::addIncomingPeer() instead of
  7936. Peer::addPeer().
  7937. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Connect to a peer actively when download speed is lower than specified
  7939. speed in torrent download:
  7940. * src/ActivePeerConnectionCommand.h: New class.
  7941. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7943. * src/main.cc: Fixed the bug that prevents download if .netrc
  7944. doesn't exist.
  7945. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. To cache resolved hostname:
  7947. * src/AbstractCommand.h, src/AbstractCommand.cc
  7948. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7949. Added dns cache.
  7950. * src/FtpInitiateConnectionCommand.cc
  7951. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7952. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7953. NameResolver working without ares.
  7954. * src/TorrentRequestInfo.cc
  7955. (execute): Don't cache dns in torrent download.
  7956. * src/HttpInitiateConnectionCommand.cc
  7957. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7958. * src/DNSCache.h: New class.
  7959. * src/UrlRequestInfo.cc
  7960. (execute): Use dns cache.
  7961. In http request, suppress port number in http request header if port
  7962. is 80 or 443:
  7963. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7964. request header if port is 80 or 443.
  7965. (createProxyRequest): Allways send port number.
  7966. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. To add the command-line option which disables netrc support:
  7968. * src/OptionHandlerFactory.cc
  7969. (createOptionHandlers): Added PREF_NO_NETRC.
  7970. * src/main.cc: Added -n option.
  7971. * src/prefs.h (PREF_NO_NETRC): New definition.
  7972. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7973. V_TRUE.
  7974. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7975. is V_FALSE. This may get configurable in the future release.
  7976. To clear peer's error status by time basis:
  7977. * src/PeerAbstractCommand.cc
  7978. (onAbort): Call Peer::startBadCondition().
  7979. * src/Peer.h, src/Peer.cc
  7980. (error): Removed.
  7981. (_badConditionStartTime): New variable.
  7982. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7983. (startBadCondition): New function.
  7984. (isGood): New function.
  7985. * src/DefaultPeerStorage.cc
  7986. (addPeer): Use Peer::isGood().
  7987. (FindFinePeer): Use Peer::isGood().
  7988. Always include port number in http request header:
  7989. * src/HttpRequest.cc (getHostText): Always include port number in
  7990. http request header.
  7991. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. To the ability to read options from a config file:
  7993. * src/main.cc: Command-line parameter validation is delegated to
  7994. OptionHandler class.
  7995. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7996. * src/Option.h, src/Option.cc (clear): New function.
  7997. * src/OptionParser.h, src/OptionParser.cc: New class.
  7998. * src/OptionHandler.h: New class.
  7999. * src/NameMatchOptionHandler.h: New class.
  8000. * src/OptionHandlerImpl.h: New classes.
  8001. * src/prefs.h: '_' -> '-'
  8002. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8003. (FTP_PASV): New definition.
  8004. * src/Util.h, src/Util.cc (getRealSize): New function.
  8005. To disable netrc support if .netrc file does not have correct
  8006. permissions:
  8007. * src/File.h, src/File.cc (mode): New function.
  8008. To prevent confidential information to be logged:
  8009. * src/HttpConnection.h, src/HttpConnection.cc
  8010. (eraseConfidentialInfo): New function.
  8011. (sendRequest): Call eraseConfidentialInfo().
  8012. (sendProxyRequest): Call eraseConfidentialInfo().
  8013. * src/main.cc: Validate permissions of .netrc file.
  8014. To add --user-agent command-line option:
  8015. * src/main.cc: Added new command line option: --user-agent
  8016. * src/prefs.h (PREF_USER_AGENT): New definition.
  8017. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8018. parameter to HttpRequest object.
  8019. * src/AbstractProxyRequestCommand.cc
  8020. (executeInternal): Set user-agent option parameter to HttpRequest
  8021. object.
  8022. Marged the patches from Dan Fandrich.
  8023. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Use filename and size from Metalink file instead of sending HEAD
  8025. request:
  8026. * src/UrlRequestInfo.h
  8027. (_filename): New variable.
  8028. (_totalLength): New variable.
  8029. (setTotalLength): New variable.
  8030. (setFilename): New variable.
  8031. * src/MetalinkRequestInfo.cc
  8032. (execute): Set filename and size to UrlRequestInfo
  8033. * src/UrlRequestInfo.cc
  8034. (execute): Use filename and size from Metalink instead of seding
  8035. HEAD request to servers.
  8036. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. To add the ability to resume downloading a partially downloaded file
  8038. which is downloaded from the beginning:
  8039. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8040. takes this role.
  8041. * src/main.cc: Added -c option.
  8042. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8043. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8044. * src/prefs.h (PREF_CONTINUE): New definition.
  8045. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8046. * src/DefaultDiskWriter.cc
  8047. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8048. * src/AbstractDiskWriter.h
  8049. (glowFileAllocator): New variable.
  8050. * src/AbstractDiskWriter.cc
  8051. (openExistingFile): Now preallocate file space from the end of the
  8052. existing file if totalLength argument is specified and grater than 0.
  8053. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8054. to download exists in local, continue the download of the file.
  8055. --allow-overwrite=true is assumed in this context.
  8056. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8057. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8058. Throw exception if --check-integrity=true is specified but chunk
  8059. checksums are not provided:
  8060. * src/UrlRequestInfo.cc
  8061. Do not print URLs to stdout:
  8062. * src/UrlRequestInfo.cc
  8063. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. * src/Request.h: Use AuthResolver to get authentication information.
  8065. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8066. set to RequestFactory object.
  8067. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8068. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8069. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8070. create Request object.
  8071. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8072. To integrate Netrc into exsiting classes:
  8073. * src/Request.h
  8074. (_userDefinedAuthConfig): New variable.
  8075. (findNetrcAuthenticator): New function.
  8076. (segment): Removed.
  8077. (setUserDefinedAuthConfig): New function.
  8078. (resolveHttpAuthConfigItem): New function.
  8079. (resolveFtpAuthConfigItem): New function.
  8080. (resolveHttpProxyAuthConfigItem): New function.
  8081. * src/HttpRequest.h
  8082. (authConfig): Removed.
  8083. (proxyAuthConfig): Removed.
  8084. (setAuthConfig): Removed.
  8085. (setProxyAuthConfig): Removed.
  8086. * src/UrlRequest.h
  8087. (getHeadResult): Added a parameter: authConfigHandle
  8088. * src/common.h
  8089. (SingletonHolder.h): New include.
  8090. * src/main.cc
  8091. (Netrc.h): New include.
  8092. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8093. Added initial value of PREF_NETRC_PATH.
  8094. Added the initialization of netrc.
  8095. * src/AuthConfig.h: New class.
  8096. * src/prefs.h
  8097. (PREF_NETRC_PATH): New definition.
  8098. * src/HttpAuthConfig.h: Removed.
  8099. * src/Netrc.cc
  8100. (getRequiredNextToken): New function.
  8101. (skipMacdef): New function.
  8102. (parse): Rewritten.
  8103. * src/Netrc.h
  8104. (getRequiredNextToken): New function.
  8105. (skipMacdef): New function.
  8106. * src/Util.h, src/Util.cc
  8107. (getHomeDir): New function.
  8108. * src/TrackerWatcherComand.cc
  8109. (createRequestCommand): Use AuthConfig.
  8110. * src/FtpConnection.cc
  8111. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8112. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8113. * src/Request.cc
  8114. (findNetrcAuthenticator): New function.
  8115. (resolveHttpAuthConfigItem): New function.
  8116. (resolveFtpAuthConfigItem): New function.
  8117. (resolveHttpProxyAuthConfigItem): New function.
  8118. * src/UrlRequestInfo.cc: Use AuthConfig.
  8119. * src/HttpRequest.cc
  8120. (createRequest): Use authConfig.
  8121. (getProxyAuthString): Use authConfig.
  8122. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8123. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8124. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. To reduce overhead to find commands whose socket is either
  8126. readable or writable in the download engine loop:
  8127. * src/Command.h, src/Command.cc
  8128. (STATUS): New enum.
  8129. (status): New variable.
  8130. (statusMatch): New function.
  8131. (setStatusActive): New function.
  8132. (setStatusInactive): New function.
  8133. * src/DownloadEngine.h, src/DownloadEngine.cc
  8134. (executeCommand): New function.
  8135. (run): Simplified.
  8136. (waitData): Call Command::setStatusActive() when command's socket is
  8137. readable or writable.
  8138. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. To handle Segment as SegmentHandle:
  8140. * src/AbstractCommand.cc (execute): Rewritten.
  8141. * src/SegmentMan.h: Segment -> SegmentHandle
  8142. Introducded HttpResponse class, HttpRequest class to improve code
  8143. extensiveness and make it clear:
  8144. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8145. HttpResponse class.
  8146. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8147. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8148. * src/HttpConnection.cc: Contruction of http request were moved to
  8149. HttpRequest class.
  8150. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8151. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8152. * src/HttpAuthConfig.h: New class.
  8153. * src/Range.h: New class.
  8154. To make FtpTunnel{Request, Response}Command and
  8155. HttpProxy{Request, Response}Command derived from
  8156. AbstractProxy{Request, Response}Command:
  8157. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8158. Derived from AbstractProxyRequestCommand class.
  8159. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8160. Derived from AbstractProxyResponseCommand class.
  8161. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8162. Derived from AbstractProxyRequestCommand class.
  8163. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8164. Derived from AbstractProxyResponseCommand class.
  8165. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8166. : New class.
  8167. * src/AbstractProxyResponseCommand.h,
  8168. src/AbstractProxyResponseCommand.cc: New class.
  8169. To add netrc support:
  8170. * src/Netrc.h, src/Netrc.cc: New class.
  8171. * src/Util.h, src/Util.cc (split): New function.
  8172. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8173. "Content-Range" header instead of "Range" header.
  8174. * src/HttpHeader.h
  8175. (getStatus): Removed.
  8176. (setStatus): Removed.
  8177. * src/Segment.h
  8178. (getPositionToWrite): New function.
  8179. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. * src/HttpHeader.h
  8181. (Range.h): New include.
  8182. (status): New variable.
  8183. (HttpHeader): Initialized status with 0.
  8184. (getStatus): New function.
  8185. (setStatus): New function.
  8186. (getRange): New function.
  8187. (HttpHeaderHandle): New function.
  8188. * src/HttpHeader.cc
  8189. (getRange): New function.
  8190. * src/Request.h
  8191. (RequestWeakHandle): New definition.
  8192. * src/HttpConnection.h
  8193. (HttpConnectionHandle): New type definition.
  8194. * src/HttpConnection.cc
  8195. (receiveResponse): Set HTTP status to headers.
  8196. * src/main.cc
  8197. (showUsage): Fixed typo.
  8198. * src/Segment.h
  8199. (SegmentHandle): New type definition.
  8200. * src/BitfieldMan.h
  8201. (getMissingUnusedLength): New function.
  8202. * src/BitfieldMan.cc
  8203. (getMissingUnusedLength): New function.
  8204. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8205. To fix static initialization order problem:
  8206. * src/BitfieldManFactory.h
  8207. (defaultRandomizer): Removed.
  8208. (factory): New variable.
  8209. (getNewFactory): Removed.
  8210. (getFactoryInstance): New function.
  8211. (setDefaultRandomizer): Rewritten.
  8212. (getDefaultRandomizer): Rewritten.
  8213. * src/BitfieldManFactory.cc
  8214. (defaultRandomizer): Removed.
  8215. (factory): Initialized to 0.
  8216. (BitfieldManFactory): Initialized randomizer to 0.
  8217. * src/DefaultPieceStorage.cc
  8218. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8219. * src/Peer.cc
  8220. (Peer): getNewFactory() -> getFactoryInstance()
  8221. * src/SegmentMan.cc
  8222. (initBitfield): getNewFactory() -> getFactoryInstance()
  8223. * src/Piece.cc
  8224. (Piece): getNewFactory() -> getFactoryInstance()
  8225. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. To fix the bug that causes crash on Max OS X:
  8227. * src/SimpleRandomizer.h
  8228. (getInstance): Create new instance if the static variable is null.
  8229. * src/SimpleRandomizer.cc
  8230. (randomizer): Initialized to 0.
  8231. * src/BitfieldManFactory.h
  8232. (getNewFactory): Removed the call to setRandomizer().
  8233. To fix the miscalculation of the range of checksum:
  8234. * src/BitfieldMan.h
  8235. (isBitSetOffsetRange): New function.
  8236. * src/BitfieldMan.cc
  8237. (isBitSetOffsetRange): New function.
  8238. * src/SegmentMan.cc
  8239. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8240. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8241. * Release 0.10.1
  8242. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. To lower CPU usage in BitTorrent download when --max-upload-limit
  8244. command-line option specified:
  8245. * src/DefaultBtMessageDispatcher.cc
  8246. (sendMessages): Calculate uploading speed only when current message
  8247. is uploading data and is not sent yet.
  8248. * src/DefaultPeerStorage.h
  8249. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8250. * src/HttpResponseCommand.cc
  8251. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8252. This fixes compile error in Soralis 10.
  8253. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. To fix segfault in Metalink download:
  8255. * src/UrlRequestInfo.h
  8256. (filename): Removed.
  8257. (totalLength): Removed.
  8258. (setTotalLength): Removed.
  8259. (setFilename): Removed.
  8260. * src/MetalinkRequestInfo.cc
  8261. (execute): Do not set filename and totalLength to reqInfo.
  8262. Set chunk checksum to reqInfo if it is not null.
  8263. * src/HttpResponseCommand.cc
  8264. (executeInternal): Fixed filename in log.
  8265. (handleDefaultEncoding): Removed the call to initBitfield() and
  8266. markAllPiecesDone().
  8267. (handleOtherEncoding): Added HEAD method handling.
  8268. * src/FtpNegotiateCommand.cc
  8269. (executeInternal): Added SEQ_HEAD_OK handling.
  8270. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8271. return false.
  8272. * src/FtpNegotiateCommand.h
  8273. (SEQ_HEAD_OK): New definition.
  8274. * src/SegmentMan.cc
  8275. (initBitfield): Delete bitfield.
  8276. (isChunkChecksumValidationReady): Fixed the condition.
  8277. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8278. works fine.
  8279. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. * src/Xml2MetalinkProcessor.h
  8281. (xpathExists): New function.
  8282. * src/Xml2MetalinkProcessor.cc
  8283. (xpathExists): New function.
  8284. Not to send HEAD request if filename and size are available in Metalink
  8285. file:
  8286. * src/UrlRequestInfo.h
  8287. (filename): New variable.
  8288. (totalLength): New variable.
  8289. (setTotalLength): New function.
  8290. (setFilename): New function.
  8291. * src/MetalinkRequestInfo.cc
  8292. (execute): Set filename and size to UrlRequestInfo.
  8293. * src/MetalinkEntry.cc
  8294. (MetalinkEntry): Initialize size with 0.
  8295. * src/UrlRequestInfo.cc
  8296. (execute): Set filename and size to SegmentMan.
  8297. Not to download rest of the files after selected files are downloaded
  8298. in BitTorrent:
  8299. * src/PieceStorage.h
  8300. (allDownloadFinished): New function.
  8301. * src/DefaultBtAnnounce.cc
  8302. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8303. downloadFinished.
  8304. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8305. * src/DefaultPieceStorage.cc
  8306. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8307. Commented out the call to finishSelectiveDownloadingMode().
  8308. (downloadFinished): Call isFilteredAllBitSet() instead of
  8309. isAllBitSet().
  8310. (allDownloadFinished): New function.
  8311. * src/DefaultBtInteractive.cc
  8312. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8313. downloadFinished().
  8314. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8315. * src/TorrentDownloadEngine.cc
  8316. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8317. * src/BitfieldMan.h
  8318. (isFilteredAllBitSet): New function.
  8319. * src/ShareRatioSeedCriteria.h
  8320. (PieceStorage.h): New include.
  8321. (pieceStorage): New variable.
  8322. (evaluate):
  8323. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8324. * src/BitfieldMan.cc
  8325. (isFilteredAllBitSet): New function.
  8326. (isAllBitSet): Filter is not took into account.
  8327. Rename --force-truncate as --allow-overwrite:
  8328. * src/TorrentRequestInfo.cc
  8329. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8330. * src/main.cc
  8331. (showUsage): --force-truncate -> --allow-overwrite
  8332. * src/message.h
  8333. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8334. * src/prefs.h
  8335. (PREF_FORCE_TRUNCATE): Removed.
  8336. (PREF_ALLOW_OVERWRITE): New definition.
  8337. * src/SegmentMan.cc
  8338. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8339. * src/MetalinkRequestInfo.cc
  8340. (execute): Queueing message are now logged in info level.
  8341. * src/common.h
  8342. (LONG_LONG_MAX): Removed.
  8343. (LONG_LONG_MIN): Removed.
  8344. * src/HttpResponseCommand.cc
  8345. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8346. * src/FtpNegotiateCommand.cc
  8347. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8348. * src/main.cc
  8349. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8350. command-line option.
  8351. (main): Added --check-integriy and --realtime-chunk-checksum
  8352. command-line option.
  8353. --force-truncate -> --allow-overwrite
  8354. Set initial value of --check-integrity option to false.
  8355. Don't show usage when error occurs while persing command-line options.
  8356. Removed deprecated --upload-limit option.
  8357. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8359. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8360. * src/BtAllowedFastMessage.cc:
  8361. * src/BtBitfieldMessage.cc
  8362. * src/BtCancelMessage.cc
  8363. * src/BtChokeMessage.cc
  8364. * src/BtHaveAllMessage.cc
  8365. * src/BtHaveMessage.cc
  8366. * src/BtHaveNoneMessage.cc
  8367. * src/BtInterestedMessage.cc
  8368. * src/BtNotInterestedMessage.cc
  8369. * src/BtPieceMessage.cc
  8370. * src/BtPortMessage.cc
  8371. * src/BtRejectMessage.cc
  8372. * src/BtRequestMessage.cc
  8373. * src/BtSuggestPieceMessage.cc
  8374. * src/BtUnchokeMessage.cc
  8375. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8376. files are affected.
  8377. * src/ChunkChecksumValidator.cc
  8378. * src/SegmentMan.cc
  8379. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. To add chunk checksum validation:
  8381. * src/MetalinkEntry.h
  8382. (MetalinkChunkChecksum.h): New include.
  8383. (chunkChecksum): New variable.
  8384. * src/Request.h
  8385. (method): New variable.
  8386. (setMethod): New function.
  8387. (getMethod): New function.
  8388. (METHOD_GET): New static constant.
  8389. (METHOD_HEAD): New static constant.
  8390. * src/Xml2MetalinkProcessor.h
  8391. (getPieceHash): New function.
  8392. * src/PieceStorage.h
  8393. (markAllPiecesDone): New function.
  8394. (checkIntegrity): New function.
  8395. * src/FileAllocator.h
  8396. (NullFileAllocationMonitor.h): New include.
  8397. (FileAllocator): Initialize fileAllocationMonitor with new
  8398. NullFileAllocationMonitor().
  8399. * src/MultiDiskAdaptor.h
  8400. (messageDigest.h): Remove include.
  8401. (ctx): Removed.
  8402. (hashUpdate): Added ctx.
  8403. (MultiDiskAdaptor): Removed ctx.
  8404. (sha1Sum): Renamed as messageDigest.
  8405. (messageDigest): New function.
  8406. * src/UrlRequestInfo.h
  8407. (HeadResult): New class.
  8408. (digestAlgo): New variable.
  8409. (chunkChecksumLength): New variable.
  8410. (chunkChecksums): New variable.
  8411. (getHeadResult): New function.
  8412. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8413. (setDigestAlgo): New function.
  8414. (setChunkChecksumLength): New function.
  8415. (setChunkChecksums): New function.
  8416. * src/DefaultPieceStorage.cc
  8417. (DiskAdaptorWriter.h): New include.
  8418. (ChunkChecksumValidator.h): New include.
  8419. (markAllPiecesDone): New function.
  8420. (checkIntegrity): New function.
  8421. * src/DefaultBtContext.h
  8422. (getPieceHashes): New function.
  8423. * src/TorrentRequestInfo.cc
  8424. (execute): Try to validate chunk checksum if file already exists and
  8425. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8426. * src/messageDigest.h
  8427. (~MessageDigestContext): Added digestFree().
  8428. * src/MetalinkRequestInfo.cc
  8429. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8430. * src/DiskAdaptor.h
  8431. (messageDigest.h): New include.
  8432. (sha1Sum): Renamed as messageDigest.
  8433. (messageDigest): New function.
  8434. * src/DownloadCommand.h
  8435. (PeerStat.h): New include.
  8436. (maxDownloadSpeedLimit): New variable.
  8437. (startupIdleTime): New variable.
  8438. (lowestDownloadSpeedLimit): New variable.
  8439. (peerStat): New variable.
  8440. (setMaxDownloadSpeedLimit): New function.
  8441. (setStartupIdleTime): New function.
  8442. (setLowestDownloadSPeedLimit): New function.
  8443. * src/BtContext.h
  8444. (getPieceHashes): New function.
  8445. * src/main.cc
  8446. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8447. option to true for testing purpose.
  8448. * src/BtPieceMessage.cc
  8449. (checkPieceHash): Use messageDigest
  8450. * src/DownloadEngine.cc
  8451. (SetDescriptor): Removed.
  8452. (AccumulateActiveCommand): Removed.
  8453. (waitData): Rewritten.
  8454. (updateFdSet): Rewritten.
  8455. * src/MultiDiskAdaptor.cc
  8456. (hashUpdate): Added ctx.
  8457. (sha1Sum): Renamed as messageDigest.
  8458. (messageDigest): New function.
  8459. * src/BitfieldMan.h
  8460. (isBitRangeSet): New function.
  8461. (unsetBitRange): New function.
  8462. * src/ByteArrayDiskWriter.h
  8463. (sha1Sum): Renamed as messageDigest.
  8464. (messageDigest): New function.
  8465. * src/ConsoleDownloadEngine.cc
  8466. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8467. * src/DiskWriter.h
  8468. (messageDigest.h): New include.
  8469. (sha1Sum): Renamed as messageDigest.
  8470. (messageDigest): New function.
  8471. * src/ChunkChecksumValidator.h: New class.
  8472. * src/DiskAdaptorWriter.h: New class.
  8473. * src/prefs.h
  8474. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8475. (PREF_CHECK_INTEGRITY): New definition.
  8476. * src/HttpResponseCommand.cc
  8477. (handleDefaultEncoding): Added method "HEAD" handling.
  8478. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8479. (handleOtherEncoding):
  8480. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8481. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8482. startupIdleTime, lowestDownloadSpeedLimit to command.
  8483. * src/SegmentMan.h
  8484. (getSegmentEntryByIndex): New function.
  8485. (getSegmentEntryByCuid): New function.
  8486. (getSegmentEntryIteratorByCuid): New function.
  8487. (diskWriter): DiskWriter -> DiskWriterHandle
  8488. (pieceHashes): New variable.
  8489. (chunkHashLength): New variable.
  8490. (digestAlgo): New variable.
  8491. (FindPeerStat): Removed.
  8492. (getPeerStat): Rewritten.
  8493. (markAllPiecesDone): New function.
  8494. (checkIntegrity): New function.
  8495. (tryChunkChecksumValidation): New function.
  8496. (isChunkChecksumValidationReady): New function.
  8497. * src/BitfieldMan.cc
  8498. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8499. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8500. blocks to 0.
  8501. (isBitRangeSet): New function.
  8502. (unsetBitRange): New function.
  8503. * src/FtpNegotiateCommand.cc
  8504. (executeInternal): Set maxDownloadSpeedLimit,
  8505. startupIdleTime, lowestDownloadSpeedLimit to command.
  8506. (recvSize): Added method "HEAD" handling.
  8507. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8508. * src/AbstractSingleDiskAdaptor.cc
  8509. (sha1Sum): Renamed as messageDigest.
  8510. (messageDigest): New function.
  8511. * src/AbstractSingleDiskAdaptor.h
  8512. (sha1Sum): Renamed as messageDigest.
  8513. (messageDigest): New function.
  8514. * src/Util.h
  8515. (indexRange): New function.
  8516. * src/MetalinkEntry.cc
  8517. (MetalinkEntry): Initialized chunkChecksum to 0.
  8518. * src/ShaVisitor.cc
  8519. (~ShaVisitor): Removed the call to ctx.digestFree().
  8520. * src/SegmentMan.cc
  8521. (ChunkChecksumValidator.h): New include.
  8522. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8523. to DIGEST_ALGO_SHA1.
  8524. (~SegmentMan): Removed diskWriter.
  8525. (FindSegmentEntryByIndex): Removed.
  8526. (FindSegmentEntryByCuid): Removed.
  8527. (checkoutSegment): Rewritten.
  8528. (findSlowerSegmentEntry): Rewritten.
  8529. (getSegment): Rewritten.
  8530. (updateSegment): Rewritten.
  8531. (completeSegment): Rewritten.
  8532. (markAllPiecesDone): New function.
  8533. (checkIntegrity): New function.
  8534. (isChunkChecksumValidationReady): New function.
  8535. (tryChunkChecksumValidation): New function.
  8536. * src/Xml2MetalinkProcessor.cc
  8537. (getEntry): Get size and set it to entry.
  8538. Get chunk checksum and set it to entry.
  8539. (getPieceHash): New function.
  8540. * src/Util.cc
  8541. (sha1Sum): Removed ctx.digestFree()
  8542. (fileChecksum): Removed ctx.digestFree()
  8543. (indexRange): New function.
  8544. * src/Request.cc
  8545. (METHOD_GET): New variable.
  8546. (METHOD_HEAD): New variable.
  8547. (Request): Added method.
  8548. * src/UrlRequestInfo.cc
  8549. (FatalException.h): New include.
  8550. (message.h): New include.
  8551. (operator<<): Added operator<< for class HeadResult.
  8552. (getHeadResult): New function.
  8553. (execute): Get filename and size in separate download engine.
  8554. * src/ChunkChecksumValidator.cc: New class.
  8555. * src/DownloadCommand.cc:
  8556. (DownloadCommand): Added peerStat.
  8557. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8558. the value from Option.
  8559. The buffer size is now 16KB.
  8560. Use peerStat member instead of getting it from SegmentMan.
  8561. Use startupIdleTime member instead of gettingit from Option.
  8562. Added chunk checksum validation.
  8563. * src/AbstractDiskWriter.cc
  8564. (AbstractDiskWriter): Removed ctx.
  8565. (~AbstractDiskWriter): Removed ctx.digestFree()
  8566. (writeDataInternal): Returns the return value of write.
  8567. (readDataInternal): Returns the return value of read.
  8568. (sha1Sum): Renamed as messageDigest
  8569. (messageDigest): New function.
  8570. * src/AbstractDiwkWriter.h
  8571. (messageDigest.h): Removed include.
  8572. (ctx): Removed.
  8573. (sha1Sum): Renamed as messageDigest
  8574. (messageDigest): New function.
  8575. * src/DefaultPieceStorage.h
  8576. (markAllPiecesDone): New function.
  8577. (checkIntegrity): New function.
  8578. * src/NullFileAllocationMonitor.h: New class.
  8579. * src/MetalinkChunkChecksum.h: New class.
  8580. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. To decrease CPU usage in bittorrent download, calculation results in
  8582. BitfieldMan were cached and realtime fetching PeerObject was removed
  8583. with WeakHandle introduced. Option values are set to the objects
  8584. by setter before download begins.
  8585. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8586. * src/DefaultBtRequestFactory.h
  8587. (dispatcher): BtMessageDispatcherHandle ->
  8588. BtMessageDispatcherWeakHandle.
  8589. (messageFactory): New variable.
  8590. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8591. BtMessageDispatcherWeakHandle.
  8592. (setBtMessageFactory): New function.
  8593. * src/DefaultBtMessageDispatcher.cc:
  8594. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8595. from Option.
  8596. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8597. feating the value from Option.
  8598. Use messageFactory member.
  8599. * src/PeerInteractionCommand.cc
  8600. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8601. Add reverse dependencies to factory object.
  8602. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8603. dispatcher.
  8604. Set messageFactory to receiver.
  8605. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8606. btInteractive.
  8607. Set receiver to peerObject.
  8608. Set maxDownloadSpeedLimit to this.
  8609. (executeInternal): Use maxDownloadSpeedLimit member.
  8610. * src/BtChokeMessage.cc
  8611. (doReceivedAction): Use dispatcher, requestFactory member.
  8612. (onSendComplete): Use dispatcher member.
  8613. * src/PeerInteractionCommand.h
  8614. (maxDownloadSpeedLimit): New variable.
  8615. * src/DefaultBtMessageReceiver.h
  8616. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8617. (dispatcher):
  8618. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8619. (messageFactory): New variable.
  8620. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8621. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8622. (setDispatcher):
  8623. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8624. (setBtMessageFactory): New function.
  8625. * src/DefaultBtInteractive.cc
  8626. (initiateHandshake): Use messageFactory member.
  8627. (addBitfieldMessageToQueue): Use messageFactory member.
  8628. (addAllowedFastMessageToQueue): Use messageFactory member.
  8629. (decideChoking): Use messageFactory member.
  8630. (checkHave): Use messageFactory member.
  8631. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8632. (receiveMessages): Use maxDownloadSpeedLimit member.
  8633. (decideInterest): Use messageFactory member.
  8634. * src/BtRequestMessage.cc
  8635. (doReceivedAction): Use messageFactory, dispatcher member.
  8636. (onQueued): Use dispatcher member.
  8637. * src/BtPieceMessage.cc
  8638. (doReceivedAction): Use dispatcher member.
  8639. (send): Use peerConnection member.
  8640. (onWrongPiece): Use requestFactory member.
  8641. (handleChokingEvent): Use messageFactory, dispatcher member.
  8642. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8643. * src/BtMessageDispatcher.h
  8644. (BtMessageDispatcherWeakHandle): New type definition.
  8645. * src/SimpleBtMessage.cc
  8646. (send): Use peerConnection member.
  8647. * src/BtRejectMessage.cc
  8648. (doReceivedAction): Use dispatcher member.
  8649. * src/DefaultBtMessageDispatcher.h
  8650. (Option.h): Removed include.
  8651. (messageFactory): New variable.
  8652. (option): Removed.
  8653. (maxUploadSpeedLimit): New variable.
  8654. (requestTimeout): New variable.
  8655. (DefaultBtMessageDispatcher): Removed option.
  8656. Added maxUploadSpeedLimit, requestTimeout.
  8657. (setOption): Removed.
  8658. (getOption): Removed.
  8659. (setMaxUploadSpeedLimit): New function.
  8660. (setRequestTimeout): New function.
  8661. (setBtMessageFactory): New function.
  8662. * src/DefaultBtInteractive.h
  8663. (btMessageReceiver):
  8664. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8665. (dispatcher):
  8666. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8667. (btRequestFactory):
  8668. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8669. (peerConnection):
  8670. PeerConnectionHandle -> PeerConnectionWeakHandle
  8671. (messageFactory): New variable.
  8672. (option): Removed.
  8673. (keepAliveInterval): New variable.
  8674. (maxDownloadSpeedLimit): New variable.
  8675. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8676. (setBtMessageReceiver):
  8677. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8678. (setDispatcher):
  8679. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8680. (setBtRequestFactory):
  8681. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8682. (setPeerConnection):
  8683. PeerConnectionHandle -> PeerConnectionWeakHandle
  8684. (setOption): Removed.
  8685. (setKeepAliveInterval): New function.
  8686. (setMaxDownloadSpeedLimit): New function.
  8687. (setBtMessageFactory): New function.
  8688. * src/BitfieldMan.h
  8689. (cachedNumMissingBlock): New variable.
  8690. (cachedNumFilteredBlock): New variable.
  8691. (cachedCompletedLength): New variable.
  8692. (cachedFilteredComletedLength): New variable.
  8693. (cachedFilteredTotalLength): New variable.
  8694. (countMissingBlockNow): New function.
  8695. (countFilteredBlockNow): New function.
  8696. (getFilteredTotalLengthNow): New function.
  8697. (getCompletedLengthNow): New function.
  8698. (getFilteredCompletedLengthNow): New function.
  8699. (updateCache): New function.
  8700. * src/AbstractBtMessage.h
  8701. (BtMessageDispatcher.h): New include.
  8702. (PeerConnection.h): New include.
  8703. (BtRequestFactory.h): New include
  8704. (BtMessageFactory.h): New include.
  8705. (dispatcher): New variable.
  8706. (messageFactory): New variable.
  8707. (peerConnection: New variable.
  8708. (setBtMessageDispatcher): New function.
  8709. (setPeerConnection): New function.
  8710. (setBtMessageFactory): New function.
  8711. (setBtRequestFactory): New function.
  8712. * src/DefaultBtMessageFactory.cc
  8713. (setCommonProperty): Set dispatcher, requestFactory, this,
  8714. peerConnection to msg.
  8715. * src/BtRegistry.h
  8716. (BT_MESSAGE_RECEIVER): New macro.
  8717. * src/PeerConnection.h
  8718. (PeerConnectionWeakHandle): New type definition.
  8719. * src/BtMessageFactory.h
  8720. (BtMessageFactoryWeakHandle): New type definition.
  8721. * src/BitfieldMan.cc
  8722. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8723. cachedCompletedLength, cachedFilteredComletedLength,
  8724. cachedFilteredTotalLength.
  8725. Call updateCache().
  8726. (countMissingBlock): Return cachedNumMissingBlock.
  8727. (countMissingBlockNow): New function.
  8728. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8729. (countFilteredBlockNow): New function.
  8730. (setBit): Call updateCache().
  8731. (unsetBit): Call updateCache().
  8732. (setBitfield): Call updateCache().
  8733. (clearAllBit): Call updateCache().
  8734. (setAllBit): Use setBitInternal instead of setBit.
  8735. Call updateCache().
  8736. (addFilter): Call updateCache().
  8737. (enableFilter): Call updateCache().
  8738. (disableFilter): Call updateCache().
  8739. (clearFilter): Call updateCache().
  8740. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8741. (getFilteredTotalLengthNow): New function.
  8742. (getCompletedLength): Return cachedCompletedLength.
  8743. (getCompletedLengthNow): New function.
  8744. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8745. (getFilteredCompletedLengthNow): New function.
  8746. (updateCache): New function.
  8747. * src/BtMessageReceiver.h
  8748. (BtMessageReceiverWeakHandle): New type definition.
  8749. * src/DefaultBtMessageReceiver.cc
  8750. (receiveHandshake): Use messageFactory member.
  8751. (sendHandshake): Use messageFactory member.
  8752. (receiveMessage): Use messageFactory member.
  8753. * src/DefaultBtMessageFactory.h
  8754. (dispatcher): New variable.
  8755. (requestFactory): New variable.
  8756. (peerConnection): New variablle.
  8757. (setBtMessageDispatcher): New function.
  8758. (setBtRequestFactory): New function.
  8759. (setPeerConnection): New function.
  8760. * src/SharedHandle.h
  8761. (RefCount): New class.
  8762. (WeakHandle): New class.
  8763. * src/PeerObject.h
  8764. (BtMessageReceiver.h): New include.
  8765. (PeerObject): Added btMessageReceiver.
  8766. (btMessageReceiver): New variable.
  8767. * src/Util.cc
  8768. (countBit): Simplified.
  8769. * src/BtCancelMessage.cc
  8770. (doReceivedAction): Use dispatcher member.
  8771. * src/BtRequestFactory.h
  8772. (BtRequestFactoryWeakHandle): New type definition.
  8773. * src/PeerStorage.h
  8774. (downloadSpeed): int -> uint32_t
  8775. (uploadSpeed): int -> uint32_t
  8776. (sessionDownloadLength): long long int -> uint64_t
  8777. (sessionUploadLength): long long int -> uint64_t
  8778. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. To add RecoverableException, FatalException:
  8780. * src/AbstractCommand.cc
  8781. (onAbort): Exception -> RecoverableException
  8782. * src/PeerAbstractCommand.h
  8783. (RecoverableException.h): New include.
  8784. (onAbort): Exception -> RecoverableException.
  8785. * src/PeerInteractionCommand.cc
  8786. (onAbort): Exception -> RecoverableException.
  8787. * src/PeerAbstractCommand.cc
  8788. (execute): Exception -> RecoverableException.
  8789. (onAbort): Exception -> RecoverableException.
  8790. * src/TorrentRequestInfo.cc
  8791. (execute): Exception -> RecoverableException.
  8792. * src/MetalinkRequestInfo.cc
  8793. (execute): Exception -> RecoverableException.
  8794. * src/MetaFileUtil.cc: RecoverableException.
  8795. * src/AbstractCommand.h
  8796. (onAbort): Exception -> RecoverableException.
  8797. * src/DlRetryEx.h: Exception -> RecoverableException.
  8798. * src/DlAbortEx.h: Exception -> RecoverableException.
  8799. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8800. * src/Util.cc: Exception -> RecoverableException.
  8801. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8802. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8803. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8804. To make ID static const int
  8805. * src/BtInterestedMessage.h
  8806. (ID_t): Removed.
  8807. (ID): New variable.
  8808. (getId): Made non-const.
  8809. * src/BtPieceMessage.h
  8810. (ID_t): Removed.
  8811. (ID): New variable.
  8812. (getId): Made non-const.
  8813. * src/BtChokeMessage.h
  8814. (ID_t): Removed.
  8815. (ID): New variable.
  8816. (getId): Made non-const.
  8817. * src/BtHaveAllMessage.h
  8818. (ID_t): Removed.
  8819. (ID): New variable.
  8820. (getId): Made non-const.
  8821. * src/BtKeepAliveMessage.h
  8822. (ID_t): Removed.
  8823. (ID): New variable.
  8824. (getId): Made non-const.
  8825. * src/BtHandshakeMessage.h
  8826. (ID): New variable.
  8827. (getId): Made non-const.
  8828. * src/BtSuggestPieceMessage.h
  8829. (ID_t): Removed.
  8830. (ID): New variable.
  8831. (getId): Made non-const.
  8832. * src/BtPortMessage.h
  8833. (ID_t): Removed.
  8834. (ID): New variable.
  8835. (getId): Made non-const.
  8836. * src/AbstractBtMessage.h
  8837. (id): Removed.
  8838. (AbstractBtMessage): Removed id.
  8839. (getId): Removed.
  8840. * src/BtHaveMessage.h
  8841. (ID_t): Removed.
  8842. (ID): New variable.
  8843. (getId): Made non-const.
  8844. * src/BtAllowedFastMessage.h
  8845. (ID_t): Removed.
  8846. (ID): New variable.
  8847. (getId): Made non-const.
  8848. * src/BtCancelMessage.h
  8849. (ID_t): Removed.
  8850. (ID): New variable.
  8851. (getId): Made non-const.
  8852. * src/BtNotInterestedMessage.h
  8853. (ID_t): Removed.
  8854. (ID): New variable.
  8855. (getId): Made non-const.
  8856. * src/BtChokeMessage.h
  8857. (ID_t): Removed.
  8858. (ID): New variable.
  8859. (getId): Made non-const.
  8860. * src/BtRejectMessage.h
  8861. (ID_t): Removed.
  8862. (ID): New variable.
  8863. (getId): Made non-const.
  8864. * src/BtBitfieldMessage.h
  8865. (ID_t): Removed.
  8866. (ID): New variable.
  8867. (getId): Made non-const.
  8868. * src/BtUnchokeMessage.h
  8869. (ID_t): Removed.
  8870. (ID): New variable.
  8871. (getId): Made non-const.
  8872. * src/BtRequestMessage.h
  8873. (ID_t): Removed.
  8874. (ID): New variable.
  8875. (getId): Made non-const.
  8876. * src/BtHaveMessage.h
  8877. (ID_t): Removed.
  8878. (ID): New variable.
  8879. (getId): Made non-const.
  8880. To add --force-truncate command-line option and a check whether
  8881. the file already exists:
  8882. * src/DirectDiskAdaptor.h
  8883. (getFilePath): Made virtual public.
  8884. * src/MultiDiskAdaptor.h
  8885. (File.h): New include.
  8886. (DiskWriterEntry::fileEntry): Made private.
  8887. (DiskWriterEntry::fileExists): New function.
  8888. (DiskWriterEntry::getFileEntry): New function.
  8889. (fileExists): New function.
  8890. (getFilePath): New function.
  8891. * src/TorrentRequestInfo.cc
  8892. (FatalException.h): New include.
  8893. (message.h): New include.
  8894. (RecoverableException.h): New include.
  8895. (execute): Added a check whether file is already exists or not.
  8896. * src/DiskAdaptor.h
  8897. (fileExists): New function.
  8898. (getFilePath): New function.
  8899. * src/main.cc
  8900. (showUsage): Added an explanation of --force-truncate command-line
  8901. option.
  8902. (main): Added --force-truncate command-line option.
  8903. * src/Exception.h
  8904. (setMsg): buf[256] -> buf[1024]
  8905. * src/CopyDiskWriter.h
  8906. (getFilePath): Made public virtual.
  8907. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8908. (fileExists): New function.
  8909. * src/DownloadEngineFactory.cc
  8910. (newTorrentConsoleEngine): Don't open file here.
  8911. * src/message.h
  8912. (EX_FILE_ALREADY_EXISTS): New definition.
  8913. * src/prefs.h
  8914. (PREF_FOECE_TRUNCATE): New definition.
  8915. * src/HttpResponseCommand.cc
  8916. (handleDefaultEncoding): Added a check whether the file already exists.
  8917. * src/SegmentMan.h
  8918. (fileExists): New function.
  8919. (shouldCancelDownloadForSafety): New function.
  8920. * src/FtpNegotiateCommand.cc
  8921. (recvSize): Added a check whether the file already exists.
  8922. * src/AbstractSingleDiskAdaptor.cc
  8923. (File.h): New include.
  8924. (fileExists): New function.
  8925. * src/AbstractSingleDiskAdaptor.h
  8926. (getFilePath): Removed.
  8927. (fileExists): New function.
  8928. * src/SegmentMan.cc
  8929. (fileExists): New function.
  8930. (shouldCancelDownloadForSafety): New function.
  8931. To fix regression bug in torrent downloading:
  8932. * src/DefaultBtRequestFactory.cc
  8933. (doChokedAction): New function.
  8934. * src/DefaultBtRequestFactory.h
  8935. (doChokedAction): New function.
  8936. * src/DefaultBtMessageDispatcher.cc
  8937. (doChokedAction): Do not delete request if its target is in allowed
  8938. fast set.
  8939. * src/DefaultBtInteractive.cc
  8940. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8941. (sendKeepAlive): Send keep alive message even if the outgoing message
  8942. queue is not empty.
  8943. (decideInterest): Simplified the code.
  8944. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8945. it is already called when BtChokeMessage is received from a peer.
  8946. * src/BtRequestFactory.h
  8947. (doChokedAction): New function.
  8948. To clean up code:
  8949. * src/PeerInteractionCommand.h
  8950. (executeInternal): Added virtual keyword explicitly.
  8951. (prepareForRetry): Added virtual keyword explicitly.
  8952. (prepareForNextPeer): Added virtual keyword explicitly.
  8953. (onAbort): Added virtual keyword explicitly.
  8954. * src/RequestSlot.cc
  8955. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8956. * src/BtPieceMessage.cc
  8957. (doReceivedAction): Added a debug log of piece's bitfield.
  8958. * src/Piece.h
  8959. (getBitfieldLength): New function.
  8960. * src/ByteArrayDiskWriter.cc
  8961. (clear): Added buf = 0 to avoid double free corruption.
  8962. * src/FileAllocator.cc
  8963. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8964. Added cp.reset().
  8965. * src/BitfieldMan.h
  8966. (operator=): Rewritten.
  8967. * src/BitfieldMan.cc
  8968. (BitfieldMan): Initialized bitfield, useBitfield.
  8969. * src/PeerConnection.cc
  8970. (receiveMessage): Added a call to socket->readable() after getting
  8971. message length to avoid possible EOF.
  8972. * src/Util.cc
  8973. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8974. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. To add an ability to pre-allocate file space:
  8976. * src/DirectDiskAdaptor.h: Rewritten.
  8977. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8978. * src/MultiDiskAdaptor.h: Rewritten.
  8979. * src/DefaultPieceStorage.cc
  8980. (MultiDiskWriter.h): Removed include.
  8981. (PreAllocationDiskWriter.h): Removed include.
  8982. (FileAllocationMonitor.h): New include.
  8983. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8984. (initStorage): Rewritten.
  8985. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8986. * src/FileAllocator.h: New class.
  8987. * src/FileAllocator.cc: New class.
  8988. * src/FileAllocationMonitor.h: New class.
  8989. * src/FileAllocationMonitor.cc: New class.
  8990. * src/ConsoleFileAllocationMonitor.h: New class.
  8991. * src/ConsoleFileAllocationMonitor.cc: New class.
  8992. * src/AbstractSingleDiskAdaptor.h: New class.
  8993. * src/AbstractSingleDiskAdaptor.cc: New class.
  8994. * src/DiskAdaptor.h
  8995. (Directory.h): Removed include.
  8996. (DiskWriter.h): Removed include.
  8997. (FileEntry.h): Removed include.
  8998. (diskWriter): Removed.
  8999. (DiskAdaptor): Removed diskWriter.
  9000. (openFile): Made pure virtual.
  9001. (closeFile): Made pure virtual.
  9002. (openExistingFile): Made pure virtual.
  9003. (initAndOpenFile): Made pure virtual.
  9004. (writeData): Made pure virtual.
  9005. (readData): Made pure virtual.
  9006. (sha1Sum): Made pure virtual.
  9007. (getStoreDir): Returns const reference of storeDir.
  9008. (DiskAdaptorHandle): New type definition.
  9009. * src/main.cc
  9010. (ConsoleFileAllocationMonitor.h): New include.
  9011. (showUsage): Added default value description of -s option.
  9012. Added the description of --file-allocation option.
  9013. (main): Set default value of --file-allocation option to 'none'.
  9014. Added --file-allocation command-line option.
  9015. Setup FileAllocationMonitorFactory.
  9016. * src/FtpInitiateConnectionCommand.cc
  9017. (executeInternal): Removed diskWriter related processing, which was
  9018. moved to FtpNegotiationCommand.cc.
  9019. * src/DirectDiskAdaptor.cc
  9020. (getFilePath): Made non-const.
  9021. * src/CopyDiskAdaptor.h
  9022. (DiskAdaptor.h): Removed include.
  9023. (DiskWriter.h): Removed include.
  9024. (AbstractSingleDiskAdaptor.h): New include.
  9025. (getFilePath): Made non-const. Added virtual keyword.
  9026. (CopyDiskAdaptor): Removed diskWriter.
  9027. (getTempFile): Returns const reference.
  9028. (CopyDiskAdaptorHandle): New type definition.
  9029. * src/ByteArrayDiskWriter.cc
  9030. (clear): Simplified.
  9031. (initAndOpenFile): Rewritten.
  9032. (openFile): Call initAndOpenFile()
  9033. * src/MultiDiskAdaptor.cc: Rewritten.
  9034. * src/DownloadEngineFactory.cc
  9035. (FileAllocator.h): New include.
  9036. (FileAllocationMonitor.h): New include.
  9037. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9038. create DefaultDiskWriter with file allocator.
  9039. * src/DiskWriter.h
  9040. (initAndOpenFile): Added totalLength argument.
  9041. (openFile): Added totalLength argument.
  9042. * src/prefs.h
  9043. (PREF_FILE_ALLOCATION): New definition.
  9044. (V_PREALLOC): New definition.
  9045. (V_NONE): New definition.
  9046. * src/HttpResponseCommand.cc
  9047. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9048. size.
  9049. * src/FtpNegotiateCommand.cc
  9050. (Util.h): New include.
  9051. (recvSize): Open file here.
  9052. * src/Util.h
  9053. (ullitos): New function.
  9054. * src/CopyDiskWriter.h
  9055. (getFilePath): Made non-const.
  9056. * src/DefaultDiskWriter.h
  9057. (Option.h): New include.
  9058. (totalLength): Removed.
  9059. (DefaultDiskWriter): Removed totalLength.
  9060. (initAndOpenFile): Added totalLength argument.
  9061. (DefaultDiskWriterHandle): New type definition.
  9062. (createNewDiskWriter): New function.
  9063. * src/Util.cc
  9064. (ullitos): New function.
  9065. * src/DefaultDiskWriter.cc
  9066. (message.h): New include.
  9067. (FileAllocator.h): New include.
  9068. (prefs.h): New include.
  9069. (Util.h): New include.
  9070. (DefaultDiskWriter): Removed totalLength.
  9071. (initAndOpenFile): Added file allocation.
  9072. (createNewDiskWriter): New function. Just for temporary solution.
  9073. It will be rewritten later.
  9074. * src/DiskAdaptor.cc
  9075. (DiskAdaptor): Removed diskWriter.
  9076. * src/AbstractDiskWriter.cc
  9077. (LogFactory.h): New include.
  9078. (AbstractDiskWriter): Added fileAllocator, logger.
  9079. (openFile): Added totalLength argument.
  9080. * src/AbstractDiskWriter.h
  9081. (FileAllocator.h): New include.
  9082. (Logger.h): New include.
  9083. (fileAllocator): New variable.
  9084. (logger): New variable.
  9085. (openFile): Added totalLength argument. Added virtual keyword
  9086. explicitly.
  9087. (openExistingFile): Added totalLength argument. Added virtual keyword
  9088. explicitly.
  9089. (closeFile): Added virtual keyword explicitly.
  9090. (sha1Sum): Added virtual keyword explicitly.
  9091. (writeData): Added virtual keyword explicitly.
  9092. (readData): Added virtual keyword explicitly.
  9093. (setFileAllocator): New function.
  9094. * src/DefaultPieceStorage.h
  9095. (FileAllocator.h): New include.
  9096. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9097. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9098. * src/FileProgressMonitor.h: New class.
  9099. To compile aria2 on PC-BSD:
  9100. * src/DefaultBtContext.cc
  9101. (libgen.h): New include.
  9102. To fix memory leak:
  9103. * src/Exception.h
  9104. (~Exception): Delete cause. Fixed memory leak.
  9105. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Rewritten a portion of bittorrent implementation:
  9107. * src/BtMessageValidator.h: New class.
  9108. * src/BtBitfieldMessageValidator.h: New class.
  9109. * src/BtHandshakeMessageValidator.h: New class.
  9110. * src/BtRequestMessageValidator.h: New class.
  9111. * src/BtSuggestPieceMessageValidator.h: New class.
  9112. * src/BtAllowedFastMessageValidator.h: New class.
  9113. * src/BtRejectMessageValidator.h: New class.
  9114. * src/BtCancelMessageValidator.h: New class.
  9115. * src/BtPieceMessageValidator.h: New class.
  9116. * src/BtHaveMessageValidator.h: New class.
  9117. * src/BtEventListener.h: New class.
  9118. * src/AbstractBtEventListener.h: New class.
  9119. * src/BtEvent.h: New class.
  9120. * src/BtChokingEvent.h: New class.
  9121. * src/BtChokedEvent.h: New class.
  9122. * src/BtCancelSendingPieceEvent.h: New class.
  9123. * src/BtAbortOutstandingRequestEvent.h: New class.
  9124. * src/Randomizer.h: New class.
  9125. * src/SimpleRandomizer.h: New class.
  9126. * src/BtMessage.h: New class.
  9127. * src/AbstractBtMessage.h: New class.
  9128. * src/SimpleBtMessage.h: New class.
  9129. * src/BtHaveMessage.h: New class.
  9130. * src/BtInterestedMessage.h: New class.
  9131. * src/BtAllowedFastMessage.h: New class.
  9132. * src/BtUnchokeMessage.h: New class.
  9133. * src/BtCancelMessage.h: New class.
  9134. * src/BtNotInterestedMessage.h: New class.
  9135. * src/BtChokeMessage.h: New class.
  9136. * src/BtHaveNoneMessage.h: New class.
  9137. * src/BtHandshakeMessage.h: New class.
  9138. * src/BtSuggestPieceMessage.h: New class.
  9139. * src/BtHaveMessage.h: New class.
  9140. * src/BtPieceMessage.h: New class.
  9141. * src/BtHaveAllMessage.h: New class.
  9142. * src/BtKeepAliveMessage.h: New class.
  9143. * src/BtPortMessage.h: New class.
  9144. * src/BtRejectMessage.h: New class.
  9145. * src/BtBitfieldMessage.h: New class.
  9146. * src/BtRequestMessage.h: New class.
  9147. * src/DefaultBtRequestFactory.h: New class.
  9148. * src/DefaultBtMessageReceiver.h: New class.
  9149. * src/BtInteractive.h: New class.
  9150. * src/BtMessageDispatcher.h: New class.
  9151. * src/DefaultBtMessageDispatcher.h: New class.
  9152. * src/DefaultBtInteractive.h: New class.
  9153. * src/BitfieldManFactory.h: New class.
  9154. * src/HandleRegistry.h: New class.
  9155. * src/BtMessageFactory.h: New class.
  9156. * src/BtMessageReceiver.h: New class.
  9157. * src/DefaultBtMessageFactory.h: New class.
  9158. * src/PeerObject.h: New class.
  9159. * src/BtRequestFactory.h: New class.
  9160. * src/SuggestPieceMessage.h: Removed.
  9161. * src/PortMessage.h: Removed.
  9162. * src/SuggestPieceMessage.h: Removed.
  9163. * src/KeepAliveMessage.h: Removed.
  9164. * src/HandshakeMessage.h: Removed.
  9165. * src/PeerInteraction.h: Removed.
  9166. * src/UnchokeMessage.h: Removed.
  9167. * src/PieceMessage.h: Removed.
  9168. * src/RequestMessage.h: Removed.
  9169. * src/InterestedMessage.h: Removed.
  9170. * src/HaveMessage.h: Removed.
  9171. * src/CancelMessage.h: Removed.
  9172. * src/RejectMessage.h: Removed.
  9173. * src/AllowedFastMessage.h: Removed.
  9174. * src/HaveNoneMessage.h: Removed.
  9175. * src/SimplePeerMessage.h: Removed.
  9176. * src/HaveAllMessage.h: Removed.
  9177. * src/BitfieldMessage.h: Removed.
  9178. * src/PeerMessageFactory.h: Removed.
  9179. * src/NotInterestedMessage.h: Removed.
  9180. * src/ChokeMessage.h: Removed.
  9181. * src/PeerMessage.h: Removed.
  9182. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9183. To know root cause of exception:
  9184. * src/Exception.h
  9185. (cause): New variable.
  9186. (Exception): Added a parameter.
  9187. (getMsg): Return const reference to msg.
  9188. (getCause): New function.
  9189. * src/DlRetryEx.h
  9190. (DlRetryEx): Added a parameter 'cause'.
  9191. Added an overloaded constructor.
  9192. (DlAbortEx): Added a parameter 'cause'.
  9193. Added an overloaded constructor.
  9194. * src/SimpleLogger.cc
  9195. (writeLog): Log nested exception messages recursively.
  9196. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. * src/DefaultBtProgressInfoFile.cc
  9198. (load): Fixed memory leak when the infohash doesn't match.
  9199. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. * src/DefaultPeerStorage.cc
  9201. (calculateStat): Simplified the code by combining 2 loops into 1.
  9202. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9204. for BitTorrent download:
  9205. * src/PeerAbstractCommand.cc
  9206. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9207. * src/main.cc:
  9208. (timeoutSpecified): Removed.
  9209. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9210. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9211. * src/TorrentRequestInfo.cc
  9212. (timeoutSpecified): Removed.
  9213. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9214. timeout value.
  9215. * src/prefs.h
  9216. (PREF_BT_TIMEOUT): New definition.
  9217. Delete unused variables:
  9218. * src/TorrentRequestInfo.cc
  9219. (requestInfo): Removed.
  9220. Move setSignalHander to Util::setGlobalSignalHandler:
  9221. * src/TorrentRequestInfo.cc:
  9222. setSignalHander -> Util::setGlobalSignalHandler
  9223. * src/main.cc
  9224. (setSignalHander): Removed.
  9225. (main): setSignalHander -> Util::setGlobalSignalHandler
  9226. * src/Util.h
  9227. (setGlobalSignalHandler): New function.
  9228. * src/Util.cc
  9229. (setGlobalSignalHandler): New function.
  9230. * src/UrlRequestInfo.cc:
  9231. setSignalHander -> Util::setGlobalSignalHandler
  9232. Reset peer status in order to exit gracefully:
  9233. * src/PeerAbstractCommand.cc
  9234. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9235. To fix the bug that causes the number of bytes uploaded is not saved
  9236. to .aria2 file:
  9237. * src/DefaultPeerStorage.h
  9238. (removedPeerSessionDownloadLength): New variable.
  9239. (removedPeerSessionUploadLength): New variable.
  9240. * src/DefaultPeerStorage.cc
  9241. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9242. removedPeerSessionUploadLength(0).
  9243. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9244. through all peers, and then add removedPeerSessionDownloadLength(
  9245. removedPeerSessionUploadLength) to it.
  9246. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9247. (to) the peer to removedPeerSessionDownloadLength
  9248. (removedPeerSessionUploadLength).
  9249. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. To add Metalink location option:
  9251. * src/MetalinkRequestInfo.cc
  9252. (execute): Call MetalinkEntry::setLocationPreference()
  9253. * src/main.cc
  9254. (showUsage): Added the help message for --metalink-location option.
  9255. (main): Added --metalink-location option.
  9256. * src/prefs.h
  9257. (PREF_METALINK_LOCATION): New definition.
  9258. * src/MetalinkEntry.cc
  9259. (AddLocationPreference): New function object.
  9260. (setLocationPreference): New function.
  9261. * src/Xml2MetalinkProcessor.cc
  9262. (getResource): Set location attribute to MetalinkResource
  9263. To show URLs to download
  9264. * src/UrlRequestInfo.h
  9265. (printUrls): New function.
  9266. To add multiple <file> Metalink support:
  9267. * src/MetalinkEntry.h
  9268. (MetalinkResources): Removed.
  9269. (setLocationPreference): New function.
  9270. (MetalinkEntryHandle): New type definition.
  9271. (MetalinkEntries): New type definition.
  9272. * src/Xml2MetalinkProcessor.h
  9273. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9274. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9275. (parseFile): Metalinker* -> MetalinkerHandle
  9276. * src/UrlRequestInfo.h
  9277. (execute): RequestInfo* -> RequestInfos
  9278. * src/MetalinkRequestInfo.cc
  9279. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9280. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9281. (execute): RequestInfo* -> RequestInfos
  9282. Added multiple <file> support. Print filename when it is queued.
  9283. * src/MetalinkRequestInfo.h
  9284. (execute): RequestInfo* -> RequestInfos
  9285. (getDownloadEngine): Removed.
  9286. * src/RequestInfo.h
  9287. (RequestInfoHandle): New type definition.
  9288. (RequestInfos): New type definition.
  9289. (execute): RequestInfo* -> RequestInfos
  9290. (getDownloadEngine): Removed.
  9291. * src/MetalinkResource.h
  9292. (MetalinkResourceHandle): New type definition.
  9293. (MetalinkResources): New type definition.
  9294. * src/MetalinkEntry.cc
  9295. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9296. because the element is now of type MetalinkResourceHandle.
  9297. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9298. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9299. (dropUnsupportedResource): Removed the deletion of the elements of
  9300. resources because the element is now of type MetalinkResourceHandle.
  9301. * src/Xml2MetalinkProcessor.cc
  9302. (parseFile): Metalinker* -> MetalinkerHandle
  9303. MetalinkEntry* -> MetalinkEntryHandle
  9304. Removed try-catch block.
  9305. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9306. MetalinkResource* -> MetalinkResourceHandle
  9307. Removed try-catch block.
  9308. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9309. Free result by using xmlXPathFreeObject()
  9310. * src/Metalinker.cc
  9311. (~Metalinker): Removed the deletion of entries.
  9312. MetalinkEntry* -> MetalinkEntryHandle
  9313. (queryEntry): Add multiple <file> Metalink support.
  9314. * src/Metalinker.h
  9315. (MetalinkEntries): Removed.
  9316. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9317. * src/MetalinkProcessor.h
  9318. (parseFile): Metalinker* -> MetalinkerHandle
  9319. Bug fixes:
  9320. * src/PeerChokeCommand.cc
  9321. (execute): cat01->cat02
  9322. * src/DefaultPieceStorage.cc
  9323. (DefaultPieceStorage): Added diskAdaptor(0)
  9324. * src/TrackerWatcherComand.cc:
  9325. (execute): Use btAnnounce->noMoreAnnounce()
  9326. to determin whether the function returns true or not.
  9327. * src/TrackerUpdateCommand.cc:
  9328. (execute): Use btAnnounce->noMoreAnnounce()
  9329. to determin whether the function returns true or not.
  9330. * src/FtpConnection.cc
  9331. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9332. This is the fix of the busy loop bug.
  9333. * src/DownloadCommand.cc
  9334. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9335. cached PeerStat.
  9336. The value of "name" entry in torrent file is now set by
  9337. *DiskAdaptor::setTopDir(...) methods.
  9338. * src/MultiDiskAdaptor.h
  9339. (topDir): New variable.
  9340. (setTopDir): New function.
  9341. (getTopDir): New function.
  9342. * src/MultiDiskAdaptor.cc
  9343. (getFilePath): Concat storDir, "/" and topDir.
  9344. (mkdir): Use getFilePath() to get the directory path for output.
  9345. * src/DefaultPieceStorage.cc
  9346. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9347. CopyDiskAdaptor.
  9348. * src/CopyDiskAdaptor.h
  9349. (topDir): New variable.
  9350. (setTopDir): New function.
  9351. (getTopDir): New function.
  9352. * src/CopyDiskAdaptor.cc
  9353. (fixFilename): Updated.
  9354. Misc
  9355. * src/UrlRequestInfo.h
  9356. (e): Removed.
  9357. (UrlRequestInfo): Removed e.
  9358. (getDownloadEngine): Removed.
  9359. * src/UrlRequestInfo.cc
  9360. (handler): Rewritten.
  9361. (printUrls): New function.
  9362. (execute): Call printUrls().
  9363. * src/HandshakeMessage.cc
  9364. (check): peerinteraction->getBtContext() -> btContext
  9365. * src/PeerInteraction.h
  9366. (getBtContext): Removed.
  9367. * src/TorrentRequestInfo.h
  9368. (execute): RequestInfo* -> RequestInfos
  9369. (getDownloadEngine): Removed.
  9370. * src/TorrentRequestInfo.cc
  9371. (haltRequested): Removed.
  9372. (btHaltRequested): New variable.
  9373. (torrentHandler): haltRequested -> btHaltRequested
  9374. (execute): RequestInfo* -> RequestInfos
  9375. * src/TorrentConsoleDownloadEngine.cc
  9376. (afterEachIteration): haltRequested -> btHaltRequested.
  9377. * src/ConsoleDownloadEngine.h
  9378. (initStatistics): Added virtual.
  9379. (calculateStatistics): Added virtual.
  9380. (onEndOfRun): Added virtual.
  9381. (afterEachIteration): Added virtual.
  9382. * src/ConsoleDownloadEngine.cc
  9383. (haltRequested): New variable.
  9384. (afterEachIteration): New function.
  9385. * src/main.cc
  9386. (requestInfo): Removed.
  9387. * src/SegmentMan.cc
  9388. (findSlowerSegmentEntry): Refactored.
  9389. * Release 0.9.0
  9390. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9392. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9393. * src/TorrentMan.h: Removed.
  9394. * src/TorrentMan.cc: Removed.
  9395. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9396. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9397. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9398. * src/PeerAbstractCommand.cc: Use btRuntime.
  9399. * src/BtContextAwareCommand.h: New class.
  9400. * src/FileEntry.h: Added accessor methods for following variables.
  9401. (path): Made private.
  9402. (length): Made private.
  9403. (offset): Made private.
  9404. (extracted): Made private.
  9405. (requested): Made private.
  9406. (FileEntries): New definition.
  9407. (FileEntryHandle): New definition.
  9408. * src/FileEntry.cc: New file.
  9409. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9410. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9411. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9412. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9413. * src/PieceStorage.h: New file.
  9414. * src/PeerInteractionCommand.h: Use btContext.
  9415. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9416. btRuntime.
  9417. * src/DefaultBtProgressInfoFile.h: New file.
  9418. * src/DefaultBtProgressInfoFile.cc: New file.
  9419. * src/File.cc
  9420. (Util.h): New include.
  9421. (mkdirs): New function.
  9422. * src/MultiDiskAdaptor.h
  9423. (mkdir): New function.
  9424. * src/PeerListProcessor.h
  9425. (Peers): Removed.
  9426. * src/PeerInteraction.h
  9427. (torrentMan): Removed.
  9428. (btContext): New variable.
  9429. (peerStorage): New variable.
  9430. (pieceStorage): New variable.
  9431. (btAnnounce): New variable.
  9432. (getTorrentMan): Removed.
  9433. (getBtContext): New function.
  9434. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9435. btAnnounce.
  9436. * src/HandshakeMessage.h
  9437. (TorrentMan.h): Removed.
  9438. * src/HandshakeMessage.cc: Use btContext.
  9439. * src/DefaultBtAnnounce.cc: New file.
  9440. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9441. * src/DefaultPieceStorage.cc: New file.
  9442. * src/DefaultBtContext.h: New file.
  9443. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9444. Use the accessor methods of FileEntry.
  9445. * src/CookieBox.cc: Updated to use Util::slice().
  9446. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9447. * src/common.h (SharedHandle.h): New include.
  9448. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9449. pieceStorage.
  9450. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9451. * src/DiskAdaptor.h
  9452. (topDir): Removed.
  9453. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9454. (setTopDir): Removed.
  9455. (getTopDir): Removed.
  9456. * src/BtContext.h: New file.
  9457. * src/DefaultPeerStorage.h: New file.
  9458. * src/PieceMessage.h (TorrentMan.h): Removed.
  9459. * src/RequestMessage.h (TorrentMan.h): Removed.
  9460. * src/TorrentDownloadEngine.h
  9461. (uploadLength): New variable.
  9462. (btContext): New variable.
  9463. (btRuntime): New variable.
  9464. (pieceStorage): New variable.
  9465. (peerStorage): New variable.
  9466. (btAnnounce): New variable.
  9467. (btProgressInfoFile): New variable.
  9468. (torrentMan): Removed.
  9469. (setBtContext): New function.
  9470. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9471. peerStorage, btAnnounce, btProgressInfoFile.
  9472. * src/Piece.h
  9473. (toString): New function.
  9474. (Pieces): New type definition.
  9475. * src/Peer.h
  9476. (active): New variable.
  9477. (Peer): Added active.
  9478. (activate): Set active to true.
  9479. (deactivate): Set active to false.
  9480. (isActive): New function.
  9481. (Peers): New type definition.
  9482. * src/DirectDiskAdaptor.cc
  9483. (getFilePath): Use the accessor methods of FileEntry.
  9484. * src/TorrentConsoleDownloadEngine.h
  9485. (afterEachIteration): New function.
  9486. * src/TorrentConsoleDownloadEngine.cc
  9487. (haltRequested): New variable.
  9488. (sendStatistics): Use pieceStorage, btRuntime.
  9489. (afterEachIteration): New function.
  9490. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9491. * src/Directry.h
  9492. (Directory): New function.
  9493. (DirectoryHandle): New type definition.
  9494. * src/BtProgressInfoFile.h: New file.
  9495. * src/RequestMessage.cc: Use pieceStorage.
  9496. * src/BtRuntime.h: New file.
  9497. * src/DefaultBtContext.cc: New file.
  9498. * src/BitfieldMan.h
  9499. (getCompletedLength): New function(private).
  9500. (getCompletedLength): New function.
  9501. (getFilteredCompletedLength): New function.
  9502. * src/BitfieldMan.h
  9503. (getCompletedLength): New function(private).
  9504. (getCompletedLength): New function.
  9505. (getFilteredCompletedLength): New function.
  9506. * src/MultiDiskAdaptor.cc
  9507. (mkdir): New function.
  9508. (openFile): Call mkdir().
  9509. (initAndOpenFile): Call mkdir().
  9510. * src/CancelMessage.h
  9511. (TorrentMan.h): Removed.
  9512. * src/RejectMessage.h
  9513. (TorrentMan.h): Removed.
  9514. * src/DownloadEngineFactory.cc
  9515. (DefaultPieceStorage.h): New include.
  9516. (DefaultPeerStorage.h): New include.
  9517. (DefaultBtAnnounce.h): New include.
  9518. (DefaultBtProgressInfoFile.h): New include.
  9519. (newTorrentConsoleEngine): Rewritten.
  9520. * src/ShareRatioSeedCriteria.h
  9521. (torrentMan): Removed.
  9522. (btContext): New variable.
  9523. (peerStorage): New variable.
  9524. (btRuntime): New variable.
  9525. (evaluate): Use btContext, btRuntime, peerStorage.
  9526. * src/AnnounceTier.h: New file.
  9527. * src/BtAnnounce.h: New file.
  9528. * src/BtRegistry.h: New file.
  9529. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9530. * src/PeerConnection.h (TorrentMan.h): Removed.
  9531. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9532. * src/Util.h
  9533. (slice): Added an argument.
  9534. * src/Util.cc
  9535. (slice): Added an argument to control whether trim is made or not.
  9536. * src/PeerStorage.h: New file.
  9537. * src/BtRegistry.cc: New file.
  9538. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9539. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9540. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9541. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9542. * src/TorrentRequestInfo.h
  9543. (e): Removed.
  9544. (showFileEntry): Added an argument.
  9545. (getDownloadEngine): Return 0.
  9546. * src/DefaultBtAnnounce.h: New file.
  9547. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9548. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9549. * src/PeerMessageFactory.h
  9550. (btContext): New variable.
  9551. (pieceStorage): New variable.
  9552. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9553. btAnnounce.
  9554. * src/DiskAdaptor.cc
  9555. (DiskAdaptor): Removed topDir.
  9556. (~DiskAdaptor): Removed topDir.
  9557. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9558. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9559. * src/File.h (mkdirs): New function.
  9560. * src/DefaultPeerStorage): New file.
  9561. * src/DownloadEngineFactory.h
  9562. (newTorrentConsoleEngine): Use btContext.
  9563. * src/BtContextAwareCommand.cc: New file.
  9564. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9565. * src/PeerMessage.h
  9566. (btContext): New variable.
  9567. (peerStorage): New variable.
  9568. (pieceStorage): New variable.
  9569. (setBtContext): New function.
  9570. * src/Directry.cc
  9571. (Directory): New function.
  9572. (createDir): Do nothing if name.size() == 0.
  9573. * src/AnnounceList.h
  9574. (AnnounceTier): Removed.
  9575. (AnnounceTiers): Removed.
  9576. * src/DefaultPieceStorage.h: New file.
  9577. * src/Piece.cc (toString): New function.
  9578. To fix typo:
  9579. * src/main.cc (showVersion): Fixed typo.
  9580. To fix compile warning:
  9581. * src/DelegatingPeerListProcessor.cc
  9582. (canHandle): Added "return false".
  9583. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9585. make the process of announce request testable.
  9586. * src/TrackerWatcherCommand.h
  9587. (TimeA2.h): Removed.
  9588. (interval): Removed.
  9589. (checkPoint): Removed.
  9590. (createRequestCommand): Added an argument 'url'.
  9591. (TrackerWatherCommand): Removed interval.
  9592. (createCommand): New function.
  9593. * src/DownloadEngineFactory.cc
  9594. (newTorrentConsoleEngine): Updated according to the changes in
  9595. TrackerWatherCommand.
  9596. * src/TorrentMan.cc
  9597. (DelegatingPeerListProcessor.h): New includes.
  9598. (TorrentMan): Added the initialization of announceInterval.
  9599. (isStoppedAnnounceReady): New function.
  9600. (isCompletedAnnounceReady): New function.
  9601. (isDefaultAnnounceReady): New function.
  9602. (isAnnounceReady): New function.
  9603. (getAnnounceUrl): New function.
  9604. (announceStart): New function.
  9605. (announceFailure): New function.
  9606. (announceSuccess): New function.
  9607. (isAllAnnounceFailed): New function.
  9608. (resetAnnounce): New function.
  9609. (processAnnounceResponse): New function.
  9610. (needMorePeerConnection): New function.
  9611. (noMoreAnnounce): New function.
  9612. * src/TrackerUpdateCommand.h
  9613. (getTrackerResponse): int->size_t
  9614. * src/TorrentMan.h
  9615. (isStoppedAnnounceReady): New function.
  9616. (isCompletedAnnounceReady): New function.
  9617. (isDefaultAnnounceReady): New function.
  9618. (announceInterval): New variable.
  9619. (isAnnounceReady): New function.
  9620. (getAnnounceUrl): New function.
  9621. (announceStart): New function.
  9622. (announceFailure): New function.
  9623. (announceSuccess): New function.
  9624. (isAllAnnounceFailed): New function.
  9625. (resetAnnounce): New function.
  9626. (processAnnounceResponse): New function.
  9627. (needMorePeerConnection): New function.
  9628. (noMoreAnnounce): New function.
  9629. * src/TrackerWatcherCommand.cc
  9630. (TrackerWatherCommand): Removed interval and checkPoint.
  9631. (execute): Rewritten.
  9632. (createCommand): New function.
  9633. (createRequestCommand): Rewritten.
  9634. * src/TrackerUpdateCommand.cc
  9635. (MetaFileUtil.h): Removed.
  9636. (DelegatingPeerListProcessor.h): Removed.
  9637. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9638. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9639. Request -> RequestHandle:
  9640. * src/HttpResponseCommand.h: Request->RequestHandle
  9641. * src/AbstractCommand.cc: Request->RequestHandle
  9642. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9643. * src/HttpRequestCommand.cc: Request->RequestHandle
  9644. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9645. * src/AbstractCommand.h: Request->RequestHandle
  9646. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9647. * src/HttpResponseCommand.cc: Request->RequestHandle
  9648. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9649. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9650. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9651. * src/HttpConnection.h: Request->RequestHandle
  9652. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9653. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9654. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9655. * src/DownloadCommand.h: Request->RequestHandle
  9656. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9657. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9658. * src/HttpRequestCommand.h: Request->RequestHandle
  9659. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9660. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9661. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9662. * src/HttpDownloadCommand.h: Request->RequestHandle
  9663. * src/FtpConnection.cc: Request->RequestHandle
  9664. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9665. * src/UrlRequestInfo.cc: Request->RequestHandle
  9666. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9667. * src/HttpConnection.h: Request->RequestHandle
  9668. * src/DownloadCommand.cc: Request->RequestHandle
  9669. * src/FtpConnection.h: Request->RequestHandle
  9670. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9671. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9672. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9673. * src/Request.h
  9674. (SharedHandle.h): New include.
  9675. (RequestHandle): New type definition.
  9676. (Requests): Redefined.
  9677. To add MULTITRACKER support:
  9678. * src/TrackerWatcherCommand.h
  9679. (createRequestCommand): New function.
  9680. * src/DownloadEngineFactory.cc
  9681. (newTorrentConsoleEngine): Removed req.
  9682. * src/prefs.h
  9683. (PREF_TRACKER_MAX_TRIES): New definition.
  9684. * src/TorrentMan.cc
  9685. (TorrentMan): Removed req. Added trackerNumTry.
  9686. (~TorrentMan): Removed req.
  9687. (setupInternal1): Added announceList.
  9688. * src/TorrentRequestInfo.cc
  9689. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9690. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9691. * src/main.cc
  9692. (main): Added PREF_TRACKER_MAX_TRIES.
  9693. * src/TorrentMan.h
  9694. (Request.h): Removed.
  9695. (AnnounceList.h): New include.
  9696. (trackerNumTry): New variable.
  9697. (req): Removed.
  9698. (announceList): New variable.
  9699. * src/TrackerWatcherCommand.cc
  9700. (execute): Rewritten.
  9701. (createRequestCommand): New function.
  9702. * src/TrackerUpdateCommand.cc
  9703. (execute): Updated with the use of AnnounceList.
  9704. * src/AnnounceList.cc: New class.
  9705. * src/AnnounceList.h: New class.
  9706. To fix typo:
  9707. * src/prefs.h
  9708. (PREF_MAX_TRIES): max_try->max_tries
  9709. To not to decode "+" as space in URL decode:
  9710. * src/Util.cc
  9711. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9712. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. To add timeout to async name resolution:
  9714. * src/AbstractCommand.h
  9715. (nameResolveFinished): New function. This is not elegant way. It needs
  9716. to be more refined.
  9717. (nameResolverCheck): New variable.
  9718. * src/AbstractCommand.cc
  9719. (AbstractCommand): Added nameResolverCheck.
  9720. (execute): Added the check whether the name resolution has finished.
  9721. (setNameResolverCheck): Set nameResolverCheck to true.
  9722. (disableNameResolverCheck): Set nameResolverCheck to false.
  9723. (nameResolverFinished): New function.
  9724. * src/FtpInitiateConnectionCommand.h
  9725. (nameResolverFinished): New function.
  9726. * src/FtpInitiateConnectionCommand.cc
  9727. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9728. * src/HttpInitiateConnectionCommand.h
  9729. (nameResolverFinished): New function.
  9730. * src/HttpInitiateConnectionCommand.cc
  9731. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9732. * src/prefs.h
  9733. (PREF_DNS_TIMEOUT): New definition.
  9734. * src/main.cc
  9735. (main): Added PREF_DNS_TIMEOUT.
  9736. To add the support for a non-compact response from a tracker:
  9737. * src/PeerListProcessor.h: New class.
  9738. * src/DefaultPeerListProcessor.h: New class.
  9739. * src/DefaultPeerListProcessor.cc: New class.
  9740. * src/CompactPeerListProcessor.h: New class.
  9741. * src/CompactPeerListProcessor.cc: New class.
  9742. * src/DelegatingPeerListProcessor.h: New class.
  9743. * src/DelegatingPeerListProcessor.cc: New class.
  9744. * src/TorrentMan.cc
  9745. (addPeer): New function(overload).
  9746. (addPeer): Delete unused peers only when new peer is added.
  9747. * src/TorrentMan.h
  9748. (PeerListProcessor.h): Included.
  9749. (Peers): Removed.
  9750. (addPeer): New function(overload).
  9751. * src/TrackerUpdateCommand.cc
  9752. (netinet/in.h): Removed.
  9753. (DelegatingPeerListProcessor.h): Included.
  9754. (execute): Updated to use DelegatingPeerListProcessor.
  9755. To fix the memory leak in TorrentMan::peers:
  9756. * src/PeerAbstractCommand.cc
  9757. (onAbort): Added peer->resetStatus().
  9758. * src/Peer.h
  9759. (resetStatus): Made public.
  9760. To improve the precision of the speed calculation:
  9761. * src/SpeedCalc.h
  9762. (nextInterval): New variable.
  9763. * src/SpeedCalc.cc
  9764. (reset): Added nextInterval.
  9765. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9766. (changeSw): Set nextInterval to 15 seconds relative to the current
  9767. instant time.
  9768. * src/main.cc
  9769. (showVersion): Updated.
  9770. (showUsage): Updated.
  9771. * Release 0.8.1
  9772. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. * src/main.cc
  9774. (showUsage): Commented out --min-segment-size option.
  9775. (main): Commented out --min-segment-size option.
  9776. * Release 0.8.0
  9777. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. * src/*.{h,cc}:
  9779. Added an exception to the license which allows linking with OpenSSL.
  9780. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9781. * src/AbstractCommand.cc
  9782. (execute): Check whether the download has finished before checking
  9783. socket status.
  9784. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9785. Do not exit even if no segment is available.
  9786. * src/prefs.h
  9787. (PREF_STARTUP_IDLE_TIME): New definition.
  9788. * src/PeerInteractionCommand.cc
  9789. (executeInternal): Removed max speed limit. Because it performs bad.
  9790. (receiveMessages): Added max speed limit. This was better than above,
  9791. but still a little bit to be desired. Sometimes the download speed
  9792. became much faster than I specified.
  9793. * src/SpeedCalc.h
  9794. (start): New variable.
  9795. (accumulatedLength): New variable.
  9796. (getAvgSpeed): New function.
  9797. * src/SpeedCalc.cc
  9798. (reset): Added start, accumulatedLength.
  9799. (update): Added calculation of an average speed.
  9800. (getAvgSpeed): New function.
  9801. * src/DownloadCommand.h
  9802. (sw): Removed.
  9803. * src/main.cc
  9804. (main): Added PREF_STARTUP_IDLE_TIME.
  9805. * src/PeerStat.h
  9806. (STATUS): Added REQUEST_IDLE.
  9807. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9808. (getAvgDownloadSpeed): New function
  9809. (requestIdle): New function.
  9810. * src/SegmentMan.h
  9811. (SegmentEntryHandle): New type definition.
  9812. (SegmentEntries): Now holds SegmentEntryHandle.
  9813. (findSlowerSegmentEntry): New funtion.
  9814. * src/SegmentMan.cc
  9815. (save): Updated according to the changes in SegmentEntries.
  9816. (read): Updated according to the changes in SegmentEntries.
  9817. (FindSegmentEntryByIndex): Updated according to the changes in
  9818. SegmentEntries.
  9819. (FindSegmentEntryByCuid): Updated according to the changes in
  9820. SegmentEntries.
  9821. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9822. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9823. Renamed uitr as itr.
  9824. (findSlowerSegmentEntry): New function.
  9825. (getSegment): Updated according to the changes in SegmentEntries.
  9826. Added the feature that cancels the segment with slow server and fast
  9827. one takes it over.
  9828. (cancelSegment): Updated according to the changes in SegmentEntries.
  9829. (getDownloadLength): Updated according to the changes in
  9830. SegmentEntries.
  9831. (init): Assigned 0 to bitfield after deleting it.
  9832. * src/DownloadCommand.cc
  9833. (STARTUP_IDLE_TIME): Removed.
  9834. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9835. * src/PeerChokeCommand.cc
  9836. (optUnchokingPeer): Updated according to the changes in Peer.
  9837. (ResetDelta): Removed.
  9838. (UploadFaster): Updated according to the changes in Peer.
  9839. (DownloadFaster): Updated according to the changes in Peer.
  9840. (execute): I clarify the meaning of "upload" and "download" here.
  9841. "upload" means the transfer from localhost to remote host.
  9842. "download" means the transfer from remote host to localhost.
  9843. Based on this rule, I swapped orderByUploadRate and
  9844. orderByDownloadRate.
  9845. * src/PeerInteractionCommand.cc
  9846. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9847. (executeInternal): Removed the argument of
  9848. peerInteraction->sendMessages().
  9849. (receiveMessages): Rewritten download speed limit.
  9850. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9851. * src/HttpResponseCommand.cc
  9852. (handleDefaultEncoding): If file size is unknown in torrent request,
  9853. do not call segmentMan->initBitfield() here.
  9854. Disabled persistent connection feature in torrent request.
  9855. * src/UrlRequestInfo.h
  9856. (UrlRequestInfo): Removed const qualifier from option.
  9857. * src/TorrentMan.h
  9858. (TransferStat): New class.
  9859. (deltaDownloadLength): Removed.
  9860. (deltaUploadLength): Removed.
  9861. (addDeltaDownloadLength): Removed.
  9862. (getDeltaDownloadLength): Removed.
  9863. (resetDeltaDownloadLength): Removed.
  9864. (addDeltaUploadLength): Removed.
  9865. (getDeltaUploadLength): Removed.
  9866. (resetDeltaUploadLength): Removed.
  9867. (addActivePeer): Added peer->activate().
  9868. (deleteActivePeer): Added peer->deactivate().
  9869. (calculateStat): New function.
  9870. * src/TorrentMan.cc
  9871. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9872. (calculateStat): New function.
  9873. * src/PeerInteraction.h
  9874. (uploadLimit): Removed.
  9875. (option): New variable.
  9876. (setUploadLimit): Removed.
  9877. (getUploadSpeed): Removed.
  9878. (sendMessages): Removed the argument "currentUploadSpeed".
  9879. * src/PeerInteraction.cc
  9880. (prefs.h): Included.
  9881. (PeerInteraction): Removed uploadLimit. Added option.
  9882. (sendMessages): Rewritten upload speed limit.
  9883. (sendHandshake): Removed the argument from sendMessages().
  9884. (sendBitfield): Removed the argument from sendMessages().
  9885. * src/PeerAbstractCommand.cc
  9886. (execute): Commented out the portion of upload limit.
  9887. (onAbort): Removed peer->resetStatus().
  9888. * src/TorrentRequestInfo.cc
  9889. (timeoutSpecified): Declared extern.
  9890. (execute): Set timeout to 180 if timeout is not specified by.
  9891. command-line.
  9892. * src/PieceMessage.cc
  9893. (receivedAction): Added peer->updateDownloadLength().
  9894. Removed peer->addPeerUpload().
  9895. Removed torrentMan->addDeltaDownloadLength().
  9896. (send): Added peer->updateUploadLength().
  9897. Removed peer->addPeerDownload().
  9898. Removed torrentMan->addDeltaUploadLength().
  9899. * src/main.cc
  9900. (timeoutSpecified): New variable.
  9901. (main): Set timeoutSpecified to false.
  9902. If the command-line option "--upload-limit" is specified, then
  9903. timeoutSpecified is set to true. This option will remain in the next
  9904. release, but be deprecated in the future release.
  9905. * src/TorrentRequestInfo.h
  9906. (TorrentRequestInfo): Removed const qualifier from op.
  9907. * src/PeerStat.h
  9908. (uploadSpeed): New variable.
  9909. (PeerStat): Added default value to cuid.
  9910. (calculateUploadSpeed): New function.
  9911. (updateUploadLength): New function.
  9912. (getMaxUploadSpeed): New function.
  9913. (getAvgUploadSpeed): New function.
  9914. (reset): Added uploadSpeed. Set status to IDLE.
  9915. * src/TorrentDownloadEngine.h
  9916. (cp): Declared as Time.
  9917. (sessionDownloadLengthArray): Removed.
  9918. (sessionUploadLengthArray): Removed.
  9919. (currentCp): Removed.
  9920. (lastCalcStat): New variable
  9921. (lastElapsed): Removed.
  9922. (sessionDownloadLength): Removed.
  9923. (calculateStat): New function.
  9924. * src/TorrentDownloadEngine.cc
  9925. (initStatistics): Removed lastElapsed, cp[],
  9926. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9927. currentCp, sessionDownloadLength.
  9928. Added cp.reset() and lastCalcStat.reset().
  9929. (calculateSpeed): Changed the name of the argument.
  9930. (calculateStatistics): Rewritten.
  9931. (calculateStat): New function.
  9932. * src/Peer.h
  9933. (PeerStat.h): Included.
  9934. (peerUpload): Removed.
  9935. (peerDownload): Removed.
  9936. (peerStat): New variable.
  9937. (sessionUploadLength): New variable.
  9938. (sessionDownloadLength): New variable.
  9939. (deltaUpload): Removed.
  9940. (deltaDownload): Removed.
  9941. (resetStatus): Made private.
  9942. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9943. Removed peerUpload, peerDownload.
  9944. (updateUploadLength): New function.
  9945. (addDeltaUpload): Removed.
  9946. (updateDownloadLength): New function.
  9947. (resetDeltaUpload): Removed.
  9948. (getDeltaUpload): Removed.
  9949. (addDeltaDownload): Removed.
  9950. (calculateUploadSpeed): New function.
  9951. (resetDeltaDownload): Removed.
  9952. (getDeltaDownload): Removed.
  9953. (calculateDownloadSpeed): New function.
  9954. (getSessionUploadLength): New function.
  9955. (getSessionDownloadLength): New function.
  9956. (activate): New function.
  9957. (deactivate): New function.
  9958. (addPeerUpload): Removed.
  9959. (setPeerUpload): Removed.
  9960. (getPeerUpload): Removed.
  9961. (addPeerDownload): Removed.
  9962. (setPeerDownload): Removed.
  9963. (getPeerDownload): Removed.
  9964. * src/Peer.cc
  9965. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9966. * src/MetalinkRequestInfo.h
  9967. (MetalinkRequestInfo): Removed const qualifier from op.
  9968. * src/RequestInfo.h
  9969. (op): Removed const qualifier.
  9970. (RequestInfo): Removed const qualifier from op.
  9971. * src/prefs.h
  9972. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9973. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9974. * src/PeerInteractionCommand.cc
  9975. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9976. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9977. * src/PeerInteraction.cc
  9978. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9979. * src/main.cc
  9980. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9981. Added the description of "--max-download-limit" option.
  9982. Removed the description of "--upload-limit" option.
  9983. Added the description of "--max-upload-limit" option.
  9984. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9985. Added "--max-download-limit" option and "--max-upload-limit" option.
  9986. Added the warning message if "--upload-limit" option is used.
  9987. * src/DownloadCommand.cc
  9988. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9989. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. To rewrite segment download mechanism for HTTP/FTP download.
  9991. Use BitfieldMan to manage segment download.
  9992. * src/HttpResponseCommand.h
  9993. (executeInternal): Pass the reference of segment.
  9994. * src/AbstractCommand.cc
  9995. (prepareForRetry): Call segmentMan->cancelSegment here.
  9996. (onAbort): Call segmentMan->cancelSegment here.
  9997. * src/HttpDownloadCommand.cc
  9998. (prepareForNextSegment): New function.
  9999. * src/DownloadEngineFactory.cc
  10000. (newConsoleEngine): Removed splitter.
  10001. (newTorrentConsoleEngine): Removed splitter.
  10002. * src/Request.h
  10003. (segment): Renamed from seg.
  10004. * src/FtpInitiateConnectionCommand.h
  10005. (executeInternal): Pass the reference of segment.
  10006. * src/AbstractCommand.h
  10007. (executeInternal): Pass the reference of segment.
  10008. * src/pref.h
  10009. (PREF_SEGMENT_SIZE): New definition.
  10010. * src/HttpProxyRequestCommand.h
  10011. (executeInternal): Pass the reference of segment.
  10012. * src/HttpResponseCommand.cc
  10013. (checkResponse): Allowed status 206 when a request range starts 0.
  10014. (handleDefaultEncoding): Rewritten the code related to Segment.
  10015. (handleOtherEncoding): Rewritten the code related to Segment.
  10016. * src/SegmentMan.h
  10017. (SegmentEntry): New class.
  10018. (SegmentEntries): New type definition.
  10019. (bitfield): New variable.
  10020. (usedSegmentEntries): New variable.
  10021. (onNullBitfield): New function.
  10022. (checkoutSegment): New function.
  10023. (segments): Removed.
  10024. (splitter): Removed.
  10025. (unregisterId): Removed.
  10026. (getSegment): New function(overload)
  10027. (getDownloadedSize): Removed.
  10028. (cancelSegment): New function.
  10029. (completeSegment): New function.
  10030. (initBitfield): New function.
  10031. (hasSegment): New function.
  10032. (getDownloadLength): New function.
  10033. * src/BitfieldMan.h
  10034. (getStartIndex): New function.
  10035. (getEndIndex): New function.
  10036. (getMissingUnusedIndex): New function(overload).
  10037. (getSparseMissingUnusedIndex): New function.
  10038. * src/BitfieldMan.cc
  10039. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10040. (getMissingUnusedIndex): New function(overload).
  10041. (Range): New class.
  10042. (getStartIndex): New function.
  10043. (getEndIndex): New function.
  10044. (getSparseMissingUnusedIndex): New function.
  10045. (isBitSetInternal): Return false if the given index is less than 0.
  10046. * src/HttpInitiateConnectionCommand.h
  10047. (executeInternal): Pass the reference of segment.
  10048. * src/FtpNegotiateCommand.h
  10049. (executeInternal): Pass the reference of segment.
  10050. * src/FtpNegotiateCommand.cc
  10051. (recvSize): Initialize bitfield here.
  10052. * src/FtpTunnelResponseCommand.h
  10053. (executeInternal): Pass the reference of segment.
  10054. * src/HttpConnection.cc
  10055. (createRequest): Rewritten range header processing.
  10056. * src/DownloadCommand.h
  10057. (executeInternal): Pass the reference of segment.
  10058. (prepareForRetry): Removed.
  10059. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10060. function.
  10061. * src/main.cc
  10062. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10063. * src/SegmentMan.cc
  10064. (SegmentMan): Added bitfield. Removed splitter.
  10065. (~SegmentMan): Added bitfield. Removed splitter.
  10066. (unregisterId): Removed.
  10067. (getSegment): Rewritten.
  10068. (updateSegment): Rewritten.
  10069. (save): Rewritten.
  10070. (read): Rewritten.
  10071. (finished): Rewritten.
  10072. (getDownloadedSize): Removed.
  10073. (initBitfield): New function.
  10074. (FindSegmentEntryByIndex): New function object.
  10075. (FindSegmentEntryByCuid): New function object.
  10076. (checkoutSegment): New function.
  10077. (onNullBitfield): New function.
  10078. (getSegment): New function(overload).
  10079. (CancelSegment): New function object.
  10080. (cancelSegment): New function.
  10081. (completeSegment): New function.
  10082. (hasSegment): New function.
  10083. (getDownloadLength): New function.
  10084. * src/FtpInitiateConnectionCommand.cc
  10085. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10086. * src/Segment.h: Rewritten.
  10087. * src/Segment.cc (operator<<): New function.
  10088. * src/HttpDownloadCommand.h
  10089. (prepareForNextSegment): New function.
  10090. * src/Request.cc
  10091. (resetUrl): Made segment null.
  10092. * src/DownloadEngine.cc
  10093. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10094. * src/HttpProxyRequestCommand.h
  10095. (executeInternal): Pass the reference of segment.
  10096. * src/DownloadCommand.cc
  10097. (executeInternal): Rewritten the code related to Segment.
  10098. (prepareForRetry): Removed.
  10099. (prepareForNextSegment): Rewritten.
  10100. * src/FtpTunnelResponseCommand.h
  10101. (executeInternal): Pass the reference of segment.
  10102. To add HTTP 1.1 persistent connection support(experimental)
  10103. * src/HttpRequestCommand.cc
  10104. (executeInternal): Disable keep alive if it is disabled by
  10105. configuration.
  10106. * src/Request.h
  10107. (keepAlive): New variable.
  10108. (isKeepAlive): New function.
  10109. (setKeepAlive): New function.
  10110. * src/pref.h
  10111. (PREF_HTTP_KEEP_ALIVE): New definition.
  10112. * src/HttpResponseCommand.cc
  10113. (executeInternal): Check the remote server supports keep alive.
  10114. * src/HttpConnection.cc
  10115. (createRequest): Send "Connection: close" only if keep alive is
  10116. disabled.
  10117. * src/main.cc
  10118. (main):
  10119. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10120. To add max download speed limit:
  10121. * src/pref.h
  10122. (PREF_MAX_SPEED_LIMIT): New definition.
  10123. * src/PeerInteractionCommand.cc
  10124. (executeInternal): Added max download speed limit. Not tested yet.
  10125. * src/SegmentMan.h
  10126. (PeerStats): New type definition.
  10127. (peerStats): New variable.
  10128. (registerPeerStat): New function.
  10129. (FindPeerStat): New function object.
  10130. (getPeerStat): New function.
  10131. (calculateDownloadSpeed): New function.
  10132. * src/SpeedCalc.h: New class.
  10133. * src/SpeedCalc.cc: New class.
  10134. * src/main.cc
  10135. (main):
  10136. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10137. download speed is not restricted).
  10138. * src/PeerStat.h: New class.
  10139. * src/SegmentMan.cc
  10140. (registerPeerStat): New function.
  10141. (calculateDownloadSpeed): New function.
  10142. * src/DownloadCommand.cc
  10143. (STARTUP_IDLE_TIME): New definition.
  10144. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10145. downloadStart.
  10146. (~DownloadCommand): Call peerStat->downloadStop.
  10147. (executeInternal): Added download speed limitter. Rewritten lowest
  10148. speed limitter.
  10149. * src/HttpConnection.cc
  10150. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10151. * src/AbstractCommand.cc
  10152. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10153. Added hostname to the error message.
  10154. * src/ConsoleDownloadEngine.cc
  10155. (calculateStatistics): Initialize psize with dlSize.
  10156. * src/PieceMessage.cc
  10157. (receivedAction): Do not call peerInteraction->abortPiece here.
  10158. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10159. * src/BitfieldMan.h
  10160. (clearAllUseBit): New function.
  10161. (setAllUseBit): New function.
  10162. * src/BitfieldMan.cc
  10163. (clearAllBit): Do not clear useBitfield here.
  10164. (clearAllUseBit): New function.
  10165. (setAllUseBit): New function.
  10166. * src/Piece.cc
  10167. (clearAllBlock): Call bitfield->clearAllUseBit().
  10168. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10169. To make filename URL-decoded:
  10170. * src/HttpResponseCommand.h: Updated doc.
  10171. * src/HttpResponseCommand.cc
  10172. (determinFilename): Made filename URL-decoded.
  10173. * src/FtpInitiateConnectionCommand.cc
  10174. (executeInternal): Made filename URL-decoded.
  10175. * src/Util.h (urldecode): New function.
  10176. * src/Util.cc (urldecode): New function.
  10177. To fix a bug that caused assertion failure in ares_strerror:
  10178. * src/NameResolver.cc (callback): Fixed the bug.
  10179. * Release 0.7.3
  10180. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. To add --seed-time and --seed-ratio command-line option:
  10182. * src/Option.h (getAsDouble): New function.
  10183. * src/Option.cc (getAsDouble): New function.
  10184. * src/SeedCheckCommand.h: New class.
  10185. * src/SeedCheckCommand.cc: New class.
  10186. * src/DownloadEngineFactory.cc
  10187. (SeedCheckCommand.h): Included.
  10188. (UnionSeedCriteria.h): Included.
  10189. (TimeSeedCriteria.h): Included.
  10190. (ShareRatioSeedCriteria.h): Included.
  10191. (newTorrentConsoleEngine): Added the processing of seed option.
  10192. * src/SeedCriteria.h: New class.
  10193. * src/ShareRatioSeedCriteria.h: New class.
  10194. * src/TimeSeedCriteria.h: New class.
  10195. * src/UnionSeedCriteria.h: New class.
  10196. * src/prefs.h
  10197. (PREF_SEED_TIME): New definition.
  10198. (PREF_SEED_RATIO): New definition.
  10199. * src/main.cc
  10200. (showUsage): Added --seed-time and --seed-ratio option.
  10201. (main): Added --seed-time and --seed-ratio option.
  10202. Made default log file name "/dev/null".
  10203. * src/SharedHandle.h
  10204. (SharedHandle): Copy constructor. Made it assignable from the
  10205. SharedHandle of the subclasses.
  10206. (operator=): Made it assignable from the SharedHandle of the
  10207. subclasses.
  10208. (getRefCount): New function.
  10209. To add notice log level and the switch to write log to stdout. This
  10210. switch is configurable per log level.
  10211. * src/Logger.h
  10212. (notice): New function.
  10213. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10214. constant.
  10215. * src/LogFactory.cc
  10216. (getInstance): The use of NullLogger was removed. A log message with
  10217. notice log level was made written to stdout along with log file.
  10218. * src/NullLogger.h
  10219. (notice): New function.
  10220. * src/SimpleLogger.h
  10221. (writeHeader): Added the 'file' argument.
  10222. (writeLog): Added the 'file' argument.
  10223. (writeFile): New function.
  10224. (stdoutField): New variable.
  10225. (SimpleLogger): Removed the default constructor.
  10226. (SimpleLogger): Made the default value of logfile 0.
  10227. (debug): Added 'virtual' keyword.
  10228. (info): Added 'virtual' keyword.
  10229. (warn): Added 'virtual' keyword.
  10230. (error): Added 'virtual' keyword.
  10231. (notice): New function.
  10232. (setStdout): New function.
  10233. * src/SimpleLogger.cc
  10234. (WRITE_LOG): Replaced writeLog with writeFile.
  10235. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10236. (SimpleLogger): Removed the default constructor.
  10237. (setStdout): New function.
  10238. (writeLog): Added the handling of NOTICE log level.
  10239. (writeFile): New function.
  10240. (notice): New function.
  10241. * src/TorrentMan.h: Updated doc.
  10242. * src/BitfieldMan.h: Updated doc.
  10243. * src/TrackerWatcherCommand.cc
  10244. (execute): Return true if error occurred in the request to the tracker
  10245. and halt is requested.
  10246. * src/TrackerUpdateCommand.cc
  10247. (execute): Return true if error occurred in the request to the tracker
  10248. and halt is requested.
  10249. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10250. DownloadEngine:
  10251. * src/TorrentConsoleDownloadEngine.h
  10252. (onSelectiveDownloadingCompletes): Removed.
  10253. * src/TorrentConsoleDownloadEngine.cc
  10254. (onSelectiveDownloadingCompletes): Removed.
  10255. * src/TorrentDownloadEngine.h
  10256. (onEndOfRun): Added 'virtual' keyword.
  10257. (afterEachIteration): Removed.
  10258. (onSelectiveDownloadingCompletes): Removed.
  10259. * src/TorrentDownloadEngine.cc
  10260. (onEndOfRun): Removed filenameFixed.
  10261. (afterEachIteration): Removed.
  10262. * src/TorrentMan.cc
  10263. (completePiece): Call onDownloadComplete here.
  10264. (onDownloadComplete): Added 2 log messages.
  10265. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10266. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10267. * src/NameResolver.h: Added the prototype declaration of callback().
  10268. To support c-ares library:
  10269. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10270. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10271. * src/FtpInitiateConnectionCommand.h:
  10272. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10273. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10274. * src/HttpInitiateConnectionCommand.h:
  10275. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10276. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10277. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10278. #1542285 by tizianomueller)
  10279. * src/HttpInitiateConnectionCommand.cc:
  10280. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10281. * src/FtpInitiateConnectionCommand.cc:
  10282. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10283. * src/DownloadEngine.h:
  10284. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10285. * src/DownloadEngine.cc:
  10286. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10287. To fix the bug that causes compilation failure with metalink-support
  10288. disabled(bug#1543587):
  10289. * src/main.cc: Fixed with the patch by tizianomueller.
  10290. * Release 0.7.2
  10291. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. * src/main.cc
  10293. (main): Added a message to inform users that aria2 is starting to
  10294. verify checksum.
  10295. * src/RequestInfo.cc
  10296. (printDownloadAbortMessage): Added a message to inform users that
  10297. transfer can be resumed.
  10298. * src/FeatureConfig.cc
  10299. (FEATURE_ASYNC_DNS): New definition.
  10300. (FeatureConfig): Added aysnc DNS entry.
  10301. To replace CommandUuid with Command* in SocketEntry and
  10302. NameResolverEntry:
  10303. * src/DownloadEngine.h
  10304. (CommandUuids): Removed.
  10305. (SocketEntry::commandUuid): Removed.
  10306. (SocketEntry::command): New variable.
  10307. (SocketEntry::SocketEntry): Updated.
  10308. (SocketEntry::operator==): Updated.
  10309. (NameResolverEntry::commandUuid): Removed.
  10310. (NameResolverEntry::command): New variable.
  10311. (NameResolverEntry::NameResolverEntry): Updated.
  10312. (NameResolverEntry::operator==): Updated.
  10313. (waitData): Changed the argument type.
  10314. (addSocketForReadCheck): Changed the argument type.
  10315. (deleteSocketForReadCheck): Changed the argument type.
  10316. (addSocketForWriteCheck): Changed the argument type.
  10317. (deleteSocketForWriteCheck): Changed the argument type.
  10318. (addNameResolverCheck): Changed the argument type.
  10319. (deleteNameResolverCheck): Changed the argument type.
  10320. * src/DownloadEngine.cc
  10321. (FindCommand): Removed.
  10322. (run): Removed activeUuid. Added activeCommands instead.
  10323. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10324. (AccumulateActiveCommand): New function object.
  10325. (waitData): Use AccumulateActiveCommand.
  10326. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10327. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10328. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10329. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10330. (addNameResolverCheck): Use Command instead of CommandUuid.
  10331. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10332. * src/AbstractCommand.cc
  10333. (disableReadCheckSocket): Updated according to the changes in
  10334. DownloadEngine.
  10335. (setReadCheckSocket): Updated according to the changes in
  10336. DownloadEngine.
  10337. (disableWriteCheckSocket): Updated according to the changes in
  10338. DownloadEngine.
  10339. (setWriteCheckSocket): Updated according to the changes in
  10340. DownloadEngine.
  10341. (setNameResolverCheck): Updated according to the changes in
  10342. DownloadEngine.
  10343. (disableNameResolverCheck): Updated according to the changes in
  10344. DownloadEngine.
  10345. * src/AbstractCommand.cc
  10346. (disableReadCheckSocket): Updated according to the changes in
  10347. DownloadEngine.
  10348. (setReadCheckSocket): Updated according to the changes in
  10349. DownloadEngine.
  10350. (disableWriteCheckSocket): Updated according to the changes in
  10351. DownloadEngine.
  10352. (setWriteCheckSocket): Updated according to the changes in
  10353. DownloadEngine.
  10354. * release 0.7.1
  10355. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10356. To handle the case where some BitTorrent tracker requires all letters
  10357. except for [A-Za-z0-9] is URL encoded.
  10358. * src/Util.h
  10359. (torrentUrlencode): New function.
  10360. * src/Util.cc
  10361. (ctype.h): Included.
  10362. (torrentUrlencode): New function.
  10363. * src/TrackerWatcherCommand.cc
  10364. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10365. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10366. To add asynchronous DNS support(libares):
  10367. * src/AbstractCommand.h
  10368. (setNameResolverCheck): New function.
  10369. (disableNameResolverCheck): New function
  10370. (resolveHostname): New function.
  10371. * src/AbstractCommand.cc
  10372. (setNameResolverCheck): New function.
  10373. (disableNameResolverCheck): New function
  10374. (resolveHostname): New function.
  10375. * src/FtpInitiateConnectionCommand.h
  10376. (nameResolver): New function.
  10377. * src/FtpInitiateConnectionCommand.cc
  10378. (Util.h): Included.
  10379. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10380. disableWriteCheckSocket.
  10381. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10382. (executeInternal): Added async DNS support.
  10383. * src/HttpInitiateConnectionCommand.h
  10384. (nameResolver): New function.
  10385. * src/HttpInitiateConnectionCommand.cc
  10386. (DlRetryEx.h): Included.
  10387. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10388. disableWriteCheckSocket.
  10389. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10390. (executeInternal): Added async DNS support.
  10391. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10392. by extern "C" declaration.
  10393. * src/NameResolver.cc: New class.
  10394. * src/Util.h:
  10395. (isNumberAndDotsNotation): New function
  10396. * src/Util.cc
  10397. (isNumberAndDotsNotation): New function.
  10398. * src/DownloadEngine.h
  10399. (NameResolver.h): Included.
  10400. (NameResolverEntry): New class.
  10401. (NameResolverEntries): New type definition.
  10402. (addNameResolverCheck): New function.
  10403. (deleteNameResolverCheck): New function.
  10404. * src/DownloadEngine.cc
  10405. (run): Initialize cp with 0.
  10406. (SetDescriptor::operator()): Added for NameResolverEntry.
  10407. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10408. (waitData): Check nameResolver entries.
  10409. (updateFdSet): Update fds in nameResolver entries.
  10410. (addNameResolverCheck): New function.
  10411. (deleteNameResolverCheck): new function.
  10412. * src/PeerInteractionCommand.cc
  10413. (executeInternal): Fixed wrong socket handling.
  10414. * src/main.cc
  10415. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10416. * src/Util.cc
  10417. (fileChecksum): Removed the call to ctx.digestReset().
  10418. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. * po/ru.po: Azamat sent me Russian translation.
  10420. * src/FtpNegotiateCommand.cc
  10421. (recvGreeting): Call disableWriteCheckSocket just after
  10422. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10423. (recvRetr): Recognized status code 125 as a acceptable response code.
  10424. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10425. case-insesitive filesystem(BUG#1531057).
  10426. * src/Time.h: Renamed as TimeA2.h.
  10427. * src/Time.cc: Renamed as TimeA2.cc.
  10428. * src/TimeA2.h: New class.
  10429. * src/TimeA2.cc: New class.
  10430. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10431. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10432. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10433. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10434. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10435. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10436. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10437. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10438. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10439. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10440. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10441. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10442. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10443. * release 0.7.0
  10444. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. * src/PeerChokeCommand.h
  10446. (PeerChokeCommand): Rearranged the arguments.
  10447. * src/PeerChokeCommand.cc
  10448. (PeerChokeCommand): Rearranged the arguments.
  10449. * src/MetalinkEntry.h
  10450. (Checksum.h): Included.
  10451. (md5): Removed.
  10452. (sha1): Removed.
  10453. (checksum): New variable.
  10454. (operator=): Updated.
  10455. (check): Removed.
  10456. * src/prefs.h
  10457. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10458. (PREF_FOLLOW_TORRENT): New definition.
  10459. (PREF_SELECT_FILE): New definition.
  10460. (PREF_FOLLOW_METALINK): New definition.
  10461. * src/MetalinkResource.h
  10462. (TYPE_HTTPS): Added to enum TYPE.
  10463. * src/TorrentMan.cc
  10464. (~TorrentMan): Rewritten.
  10465. * src/MultiDiskWriter.cc
  10466. (MultiDiskAdaptor): Updated according to the changes in
  10467. MessageDigestContext.
  10468. (~MultiDiskAdaptor): Updated according to the changes in
  10469. MessageDigestContext.
  10470. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10471. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10472. * src/Util.h
  10473. (fileChecksum): Updated according to the changes in
  10474. MessageDigestContext.
  10475. * src/Util.cc
  10476. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10477. (fileChecksum): Updated according to the changes in
  10478. MessageDigestContext.
  10479. * src/messageDigest.h: Rewritten.
  10480. * src/MetalinkEntry.cc
  10481. (check): Removed.
  10482. (Supported): Updated.
  10483. (dropUnsupportedResource): Fixed a memory leak.
  10484. * src/ShaVisitor.cc
  10485. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10486. (~ShaVisitor): Updated according to the changes in
  10487. MessageDigestContext.
  10488. (visit): Updated according to the changes in MessageDigestContext.
  10489. * src/main.cc
  10490. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10491. command-line option added.
  10492. * src/DownloadEngine.h
  10493. (SocketEntry): New class.
  10494. (SocketEntries): New definition.
  10495. (PairFind): Removed.
  10496. (SockCmdMap): Removed.
  10497. * src/DownloadEngine.cc
  10498. (DownloadEngine): Rewritten.
  10499. (~DownloadEngine): Rewritten.
  10500. (run): Renamed activeCommandUuids as activeUuids.
  10501. (SetDescriptor): Rewritten.
  10502. (AccumulateActiveCommandUuid): Removed.
  10503. (AccumulateActiveUuid): New function object.
  10504. (waitData): Rewritten.
  10505. (updateFdSet): Rewritten.
  10506. (addSocket): Rewritten.
  10507. (deleteSocket): Rewritten.
  10508. (addSocketForReadCheck): Rewritten.
  10509. (deleteSocketForReadCheck): Rewritten.
  10510. (addSocketForWriteCheck): Rewritten.
  10511. (deleteSocketForWriteCheck): Rewritten.
  10512. * src/Xml2MetalinkProcessor.cc
  10513. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10514. * src/DownloadCommand.cc
  10515. (executeInternal): Added the check routine for lowest speed limit.
  10516. * src/AbstractDiskWriter.cc
  10517. (AbstractDiskWriter): Updated according to the changes in
  10518. MessageDigestContext.
  10519. (~AbstractDiskWriter): Updated according to the changes in
  10520. MessageDigestContext.
  10521. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10522. * src/RequestInfo.h: New class.
  10523. * src/UrlRequestInfo.h: New class.
  10524. * src/UrlRequestInfo.cc: New class.
  10525. * src/TorrentRequestInfo.h: New class.
  10526. * src/TorrentRequestInfo.cc: New class.
  10527. * src/MetalinkRequestInfo.h: New class.
  10528. * src/MetalinkRequestInfo.cc: New class.
  10529. * src/Checksum.h: New class.
  10530. * src/DownloadEngineFactory.h: New class.
  10531. * src/DownloadEngineFactory.cc: New class.
  10532. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. * src/Option.h
  10534. (getAsBool): New function.
  10535. * src/Option.cc
  10536. (prefs.h): Included.
  10537. (defined): 0-length value is now recognized as undefined.
  10538. (getAsInt): Rewritten.
  10539. (getAsLLInt): Rewritten.
  10540. (getAsBool): New function.
  10541. * src/FeatureConfig.h: Rewritten.
  10542. * src/FeatureConfig.cc: Rewritten.
  10543. * src/prefs.h
  10544. (PREF_STDOUT_LOG): New definition.
  10545. (PREF_LOG): New definition.
  10546. (PREF_DIR): New definition.
  10547. (PREF_OUT): New definition.
  10548. (PREF_SPLIT): New definition.
  10549. (PREF_DAEMON): New definition.
  10550. (PREF_REFERER): New definition.
  10551. (PREF_TORRENT_FILE): New definition.
  10552. (PREF_LISTEN_PORT): New definition.
  10553. (PREF_METALINK_FILE): New definition.
  10554. (PREF_METALINK_VERSION): New definition.
  10555. (PREF_METALINK_LANGUAGE): New definition.
  10556. (PREF_METALINK_OS): New definition.
  10557. (PREF_METALINK_SERVERS): New definition.
  10558. * src/main.cc
  10559. (main): Following command-line parameters are now put into Option
  10560. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10561. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10562. metalinkLanguage, metalinkOs, metalinkServers
  10563. To fix the bug that aria2 can not handle http response header properly.
  10564. * src/HttpHeader.cc
  10565. (put): Made name lowercased.
  10566. (defined): Made name lowercased.
  10567. (getFirst): Made name lowercased.
  10568. (get): Made name lowercased.
  10569. (getFirstAsInt): Rewritten.
  10570. (getFirstAsLLInt): Rewritten.
  10571. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10572. * src/TorrentMan.h:
  10573. (advertisePiece): Updated doc.
  10574. (getAdvertisedPieceIndexes): Updated doc.
  10575. (removeAdvertisedPiece); New function.
  10576. * src/TorrentMan.cc
  10577. (FindElapsedHave): New function object.
  10578. (removeAdvertisedPiece): New function.
  10579. * src/HaveEraseCommand.h: New class.
  10580. * src/HaveEraseCommand.cc: New class.
  10581. * src/FeatureConfig.h: New class.
  10582. * src/FeatureConfig.cc: New class.
  10583. * src/Request.h
  10584. (defaultPorts): Removed.
  10585. * src/Request.cc
  10586. (FeatureConfig.h): Included.
  10587. (Request): Removed the statements related to defaultPorts.
  10588. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10589. A default port number is now retrieved from FeatureConfig.
  10590. * src/main.cc
  10591. (HaveEraseCommand.h): Included.
  10592. (showVersion): Added the output of feature list.
  10593. (main): Added HaveEraseCommand to command queue in BitTorrent
  10594. downloading.
  10595. * src/PeerInteractionCommand.h
  10596. (chokeCheckPoint): Commented out.
  10597. (periodicExecPoint): New variable.
  10598. * src/PeerInteractionCommand.cc
  10599. (executeInternal): Following methods are now called in at least every
  10600. 0.5 seconds to reduce CPU usage:
  10601. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10602. checkHave(), sendKeepAlive().
  10603. (checkLongTimePeerChoking): Commented out.
  10604. * src/BitfieldMan.h
  10605. (getNthBitIndex): Changed the method signature.
  10606. (getMissingIndexRandomly): Changed the method signature.
  10607. * src/BitfieldMan.cc
  10608. (getNthBitIndex): Rewritten
  10609. (getMissingIndexRandomly): Rewritten.
  10610. (hasMissingPiece): Rewritten.
  10611. (getMissingIndex): Refactored.
  10612. (getMissingUnusedIndex); Refactored.
  10613. (getMissingIndex): Refactored.
  10614. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10615. * src/PeerMessage.h
  10616. (Piece.h): Included.
  10617. (SharedHandle.h): Included.
  10618. (invalidate): New variable.
  10619. (uploading): New variable.
  10620. (isInvalidate): New function.
  10621. (isUploading): New function.
  10622. (onPush): New function.
  10623. (onChoked): New function.
  10624. (onCanceled): New function.
  10625. (onAbortPiece): New function.
  10626. (PeerMessageHandle): New type definition.
  10627. * src/PeerMessage.cc
  10628. (PeerMessage): Added the initialization for invalidate and uploading.
  10629. * src/CancelMessage.h
  10630. (CancelMessage): Rewritten.
  10631. * src/RejectMessage.h
  10632. (RejectMessage): Rewritten.
  10633. * src/Metalinker.h
  10634. (operator=): Defined.
  10635. * src/MetaEntry.h
  10636. (operator=): Defined.
  10637. * src/MetalinkResource.h
  10638. (operator=): Defined.
  10639. * src/AllowedFastMessage.h
  10640. (AllowedFastMessage): Rewritten.
  10641. * src/HandshakeMessage.h
  10642. (HandshakeMessage): New function(overload).
  10643. * src/HandshakeMessage.cc
  10644. (HandshakeMessage): Rewritten.
  10645. (init): New function.
  10646. * src/HaveMessage.h
  10647. (HaveMessage): Rewritten.
  10648. * src/Time.h
  10649. (operator=): Defined the function body here.
  10650. * src/Time.cc
  10651. (operator=): Removed.
  10652. * src/SocketCore.h
  10653. (operator==): Defined here.
  10654. (operator!=): Defined here.
  10655. (operator<): Defined here.
  10656. * src/SocketCore.cc
  10657. (operator==): Removed.
  10658. (operator<): Removed.
  10659. * src/BitfieldMan.h
  10660. (operator=): Defined the function body here.
  10661. * src/BitfieldMan.cc
  10662. (operator=): Removed.
  10663. * src/TorrentMan.h
  10664. (deleteErrorPeer): Removed.
  10665. (deleteUnusedPeer); New function.
  10666. * src/TorrentMan.cc
  10667. (addPeer): Call deleteUnusedPeer.
  10668. (deleteErrorPeer): Removed.
  10669. (deleteUnusedPeer): New function.
  10670. * src/PeerAbstractCommand.h
  10671. (setNoCheck): New function.
  10672. (noCheck): New variable.
  10673. * src/PeerAbstractCommand.cc
  10674. (PeerAbstractCommand): Added the initialization of noCheck.
  10675. (execute): Added a check for noCheck.
  10676. (setNoCheck): New function.
  10677. * src/Util.h
  10678. (stdio.h): Included.
  10679. * src/Util.cc
  10680. (unistd.h): Included.
  10681. * src/DefaultDiskWriter.cc
  10682. (unistd.h): Included.
  10683. * src/Peer.h
  10684. (operator==): Defined the function body here.
  10685. (operator!=): Defined the function body here.
  10686. * src/Peer.cc
  10687. (operator==): Removed.
  10688. (operator!=): Removed.
  10689. * src/Piece.h
  10690. (Piece): Defined the function body here(copy constructor).
  10691. (operator=): Defined the function body here.
  10692. (operator==): Defined the function body here.
  10693. * src/Piece.cc
  10694. (Piece): Removed(copy constructor).
  10695. (operator=): Removed.
  10696. (operator==): Removed.
  10697. * src/PeerMessageUtil.h
  10698. (ChokeMessage.h): Removed.
  10699. (UnchokeMessage.h): Removed.
  10700. (InterestedMessage.h): Removed.
  10701. (NotInterestedMessage.h): Removed.
  10702. (HaveMessage.h): Removed.
  10703. (BitfieldMessage.h): Removed.
  10704. (RequestMessage.h): Removed.
  10705. (CancelMessage.h): Removed.
  10706. (PieceMessage.h): Removed.
  10707. (HandshakeMessage.h): Removed.
  10708. (KeepAliveMessage.h): Removed.
  10709. (PortMessage.h): Removed.
  10710. (HaveAllMessage.h): Removed.
  10711. (HaveNoneMessage.h): Removed.
  10712. (PeerConnection.h): Removed.
  10713. (HandshakeMessage.h): Included.
  10714. * src/BitfieldMessage.h
  10715. (init): New function.
  10716. (BitfieldMessage): Rewritten.
  10717. (BitfieldMessage): New function(overload).
  10718. * src/RequestSlot.h
  10719. (operator=): Defined the function body here.
  10720. (operator==): Defined the function body here.
  10721. * src/RequestSlot.cc
  10722. (operator=): Removed.
  10723. (operator==): Removed.
  10724. To remove the dependency on the PeerMessage subclass from
  10725. PeerInteraction:
  10726. * src/PeerMessageFactory.h: New class.
  10727. * src/PeerMessageFactory.cc: New class.
  10728. * src/SimplePeerMessage.cc
  10729. (send): If invalidate is true then do nothing.
  10730. * src/PeerInteractionCommand.cc
  10731. (HandshakeMessage.h): Included.
  10732. (KeepAliveMessage.h): Included.
  10733. (ChokeMessage.h): Included.
  10734. (UnchokeMessage.h): Included.
  10735. (HaveMessage.h): Included.
  10736. (executeInternal): Call setNoCheck().
  10737. Removed setWriteCheckSocket(socket).
  10738. * src/PeerInteraction.h
  10739. (ChokeMessage.h): Removed.
  10740. (UnchokeMessage.h): Removed.
  10741. (InterestedMessage.h): Removed.
  10742. (NotInterestedMessage.h): Removed.
  10743. (HaveMessage.h): Removed.
  10744. (BitfieldMessage.h): Removed.
  10745. (RequestMessage.h): Removed.
  10746. (CancelMessage.h): Removed.
  10747. (PieceMessage.h): Removed.
  10748. (HandshakeMessage.h): Removed.
  10749. (KeepAliveMessage.h): Removed.
  10750. (PortMessage.h): Removed.
  10751. (HaveAllMessage.h): Removed.
  10752. (HaveNoneMessage.h): Removed.
  10753. (RejectMessage.h): Removed.
  10754. (AllowedFastMessage.h): Removed.
  10755. (SuggestPieceMessage.h): Removed.
  10756. (PeerMessageFactory.h): Included.
  10757. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10758. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10759. (PeerMessageFactory): New variable.
  10760. (createPeerMessage): Removed.
  10761. (createHandshakeMessage): Removed.
  10762. (setPeerMessageCommonProperty): Removed.
  10763. (addRequestSlot): New function.
  10764. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10765. (getPeerMessageFactory): New function.
  10766. (createRequestMessage): Removed.
  10767. (createCancelMessage): Removed.
  10768. (createPieceMessage): Removed.
  10769. (createHaveMessage): Removed.
  10770. (createChokeMessage): Removed.
  10771. (createUnchokeMessage): Removed.
  10772. (createInterestedMessage): Removed.
  10773. (createNotInterestedMessage): Removed.
  10774. (createBitfieldMessage): Removed.
  10775. (createKeepAliveMessage): Removed.
  10776. (createHaveAllMessage): Removed.
  10777. (createHaveNoneMessage): Removed.
  10778. (createRejectMessage): Removed.
  10779. (createAllowedFastMessage): Removed.
  10780. * src/PeerInteraction.cc
  10781. (PeerInteraction): Allocate PeerMessageFactory here.
  10782. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10783. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10784. PieceMessage::ID.
  10785. (addMessage): Simplified by using PeerMessage::onPush().
  10786. (addRequestSlot): New function.
  10787. (rejectAllPieceMessageInQueue): Simplified by using
  10788. PeerMessage::onChoked().
  10789. (rejectPieceMessageInQueue): Simplified by using
  10790. PeerMessage::onCanceled().
  10791. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10792. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10793. (createHandshakeMessage): Removed.
  10794. (createPeerMessage): Removed.
  10795. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10796. (setPeerMessageCommonProperty): Removed.
  10797. (createRequestMessage): Removed.
  10798. (createCancelMessage): Removed.
  10799. (createPieceMessage): Removed.
  10800. (createHaveMessage): Removed.
  10801. (createChokeMessage): Removed.
  10802. (createUnchokeMessage): Removed.
  10803. (createInterestedMessage): Removed.
  10804. (createNotInterestedMessage): Removed.
  10805. (createBitfieldMessage): Removed.
  10806. (createKeepAliveMessage): Removed.
  10807. (createHaveAllMessage): Removed.
  10808. (createHaveNoneMessage): Removed.
  10809. (createRejectMessage): Removed.
  10810. (createAllowedFastMessage): Removed.
  10811. * src/PieceMessage.h
  10812. (createRejectMessage): New function.
  10813. (PieceMessage): Rewritten.
  10814. (onChoked): New function.
  10815. (onCanceled): New function.
  10816. * src/PieceMessage.cc
  10817. (send): If invalidate is true then do nothing, just return.
  10818. (createRejectMessage): New function.
  10819. (onChoked): New function.
  10820. (onCanceled): New function.
  10821. * src/RequestMessage.h
  10822. (RequestMessage): Rewritten.
  10823. (onPush): New function.
  10824. (onAbortPiece): New function.
  10825. * src/RequestMessage.cc
  10826. (onPush): New function.
  10827. (onAbortPiece): New function.
  10828. Update fd_set when a socket is added or deleted in order to improve
  10829. performance:
  10830. * src/DownloadEngine.h
  10831. (rfdset): New variable.
  10832. (wfdset): New variable.
  10833. (updateFdSet): New function.
  10834. * src/DownloadEngine.cc
  10835. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10836. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10837. (waitData): Copy rfdset and wfdset.
  10838. (updateFdSet): New function.
  10839. (addSocket): Call updateFdSet.
  10840. (deleteSocket): Call updateFdSet.
  10841. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. To add the support for Metalink3.0 backward compatible links:
  10843. * src/Request.h
  10844. (SAFE_CHARS): Added '#'.
  10845. (METALINK_MARK): New definition.
  10846. * src/Request.cc
  10847. (parseUrl): Added the support for Metalink3.0 backward compatible
  10848. links.
  10849. etc
  10850. * src/PeerInteraction.cc
  10851. (MsgPushBack): Removed.
  10852. (sendMessages): Use STL copy and back_inserter.
  10853. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10854. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10855. * src/TorrentMan.h
  10856. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10857. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. * src/SharedHandle.h: New class.
  10859. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10860. * src/HttpResponseCommand.h
  10861. (HttpResponseCommand): Wrapped Socket.
  10862. * src/SocketCore.h
  10863. (operator==): New function.
  10864. (operator!=): New function.
  10865. (operator<): New function.
  10866. (getSockfd): New function.
  10867. (isOpen): New function.
  10868. (writeData): New function.
  10869. * src/SocketCore.cc
  10870. (operator==): New function.
  10871. (operator!=): New function.
  10872. (operator<): New function.
  10873. * src/AbstractCommand.h
  10874. (socket): Changed its type to SocketHandle.
  10875. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10876. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10877. (disableReadCheckSocket): New function.
  10878. (disableWriteCheckSocket): New function.
  10879. (readCheckTarget): Changed its type to SocketHandle.
  10880. (writeCheckTarget): Changed its type to SocketHandle.
  10881. (AbstractCommand): Replaced Socket with SocketHandle.
  10882. * src/AbstractCommand.cc
  10883. (AbstractCommand): Replaced Socket with SocketHandle.
  10884. (~AbstractCommand): Removed the deallocation for Socket object.
  10885. (disableReadCheckSocket): New function.
  10886. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10887. (disableWriteCheckSocket): New function.
  10888. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10889. * src/HttpDownloadCommand.cc
  10890. (DownloadCommand): Replaced Socket with SocketHandle.
  10891. * src/PeerAbstractCommand.h
  10892. (socket): Changed its type to SocketHandle.
  10893. (peer): Changed its type to PeerHandle.
  10894. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10895. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10896. (disableReadCheckSocket): New function.
  10897. (disableWriteCheckSocket): New function.
  10898. (readCheckTarget): Changed its type to SocketHandle.
  10899. (writeCheckTarget): Changed its type to SocketHandle.
  10900. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10901. Replaced Peer with PeerHandle.
  10902. * src/HttpRequestCommand.cc
  10903. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10904. Use disableReadCheckSocket.
  10905. * src/PeerInitiateConnectionCommand.h
  10906. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10907. * src/PeerChokeCommand.cc
  10908. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10909. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10910. (execute): Use PeerHandle.
  10911. * src/PeerConnection.h
  10912. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10913. (socket): Changed its type to SocketHandle.
  10914. (PeerConnection): Replaced Socket with SocketHandle.
  10915. * src/PeerConnection.cc
  10916. (PeerConnection): Replaced Socket with SocketHandle.
  10917. * src/PeerInteractionCommand.h
  10918. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10919. Replaced Peer with PeerHandle.
  10920. * src/PeerInteractionCommand.cc
  10921. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10922. Replaced Peer with PeerHandle.
  10923. (executeInternal): Use disableWriteCheckSocket.
  10924. Use HandshakeMessageHandle.
  10925. (receiveMessages): Use PeerMessageHandle.
  10926. (prepareForNextPeer): Use PeerHandle.
  10927. * src/HttpProxyRequestCommand.h
  10928. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10929. * src/HttpResponseCommand.cc
  10930. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10931. * src/TorrentMan.cc
  10932. (nullPeer): Added external reference.
  10933. (~TorrentMan): Removed the deallocation of the elements of peers.
  10934. (addPeer): Rewritten.
  10935. (isPeerAvailable): Use nullPeer.
  10936. (deleteOldpeers): Replaced with deleteErrorPeer.
  10937. (deleteErrorPeer): New function.
  10938. (getPeer): Use PeerHandle and nullPeer.
  10939. (hasMissingPiece): Replaced Peer with PeerHandle.
  10940. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10941. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10942. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10943. (getMissingPiece): Replaced Peer with PeerHandle.
  10944. * src/FtpNegotiateCommand.cc
  10945. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10946. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10947. (recvGreeting): Use disableWriteCheckSocket.
  10948. (recvPasv): Removed the allocation of Socket.
  10949. Use disableReadCheckSocket.
  10950. (sendRestPasv): Use disableWriteCheckSocket.
  10951. (recvRetr): Changed assertion.
  10952. * src/PeerInteraction.h
  10953. (SharedHandle.h): Included SharedHandle.h.
  10954. (PeerMessageHandle): New type definition.
  10955. (HandshakeMessageHandle): New type definition.
  10956. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10957. (peer): Changed its type to PeerHandle.
  10958. (createHandshakeMessage): Replaced HandshakeMessage with
  10959. HandshakeMessageHandle.
  10960. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10961. (PeerInteraction): Replaced Peer with PeerHandle.
  10962. Replaced Socket with SocketHandle.
  10963. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10964. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10965. (receiveHandshake): Replaced HandshakeMessage with
  10966. HandshakeMessageHandle.
  10967. * src/PeerInteraction.cc
  10968. (PeerInteraction): Replaced Peer with PeerHandle.
  10969. Replaced Socket with SocketHandle.
  10970. (~PeerInteraction): Removed the deallocation of the elements of
  10971. messageQueue.
  10972. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10973. (isSendingMessageInProgress): Replaced PeerMessage with
  10974. PeerMessageHandle.
  10975. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10976. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10977. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10978. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10979. (abortPiece): Use PeerMessageHandle.
  10980. (receiveHandshake): Replaced HandshakeMessage with
  10981. HandshakeMessageHandle. Removed try-catch block.
  10982. (createHandshakeMessage): Replaced HandshakeMessage with
  10983. HandshakeMessageHandle.
  10984. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10985. Removed try-catch block.
  10986. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10987. * src/HttpProxyResponseCommand.cc
  10988. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10989. * src/FtpTunnelResponseCommand.h
  10990. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10991. * src/HttpConnection.cc
  10992. (HttpConnection): Replaced Socket with SocketHandle.
  10993. * src/PeerAbstractCommand.cc
  10994. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10995. (~PeerAbstractCommand): Removed the deallocation of socket.
  10996. Use disableReadCheckSocket, disableWriteCheckSocket.
  10997. (disableReadCheckSocket): New function.
  10998. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10999. (disableWriteCheckSocket): New function.
  11000. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11001. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11002. * src/FtpTunnelRequestCommand.cc
  11003. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11004. (~FtpTunnelRequestCommand): Corrected indentation.
  11005. * src/DownloadCommand.h
  11006. (DownloadCommand): Replaced Socket with SocketHandle.
  11007. * src/PeerListenCommand.cc
  11008. (PeerListenCommand): Removed the initialization of socket.
  11009. (~PeerListenCommand): Removed the deallocation of socket.
  11010. (bindPort): Use SocketHandle.
  11011. (execute): Use SocketHandle and PeerHandle.
  11012. * src/FtpDowndloadCommand.cc
  11013. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11014. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11015. * src/main.cc
  11016. (main): Corrected indentation.
  11017. * src/HttpInitiateConnectionCommand.cc
  11018. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11019. (executeInternal): Removed the allocation of socket.
  11020. * src/HttpRequestCommand.h
  11021. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11022. * src/FtpNegotiationCommand.h
  11023. (dataSocket): Changed its type to SocketHandle.
  11024. (serverSocket): Changed its type to SocketHandle.
  11025. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11026. * src/TorrentMan.h
  11027. (MAX_PEER_UPDATE): Removed.
  11028. (MAX_PEERS): New definition.
  11029. (Peers): The element is now of type PeerHandle.
  11030. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11031. (getPeer): Replaced Peer with PeerHandle.
  11032. (deleteOldErrorPeers): Removed.
  11033. (deleteErrorPeer): New function.
  11034. (hasMissingPiece): Replaced Peer with PeerHandle.
  11035. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11036. (getMissingPiece): Replaced Peer with PeerHandle.
  11037. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11038. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11039. (addActivePeer): Replaced Peer with PeerHandle.
  11040. (deleteActivePeer): Replaced Peer with PeerHandle.
  11041. Added a check for the return value of find.
  11042. * src/FtpTunnelResponseCommand.cc
  11043. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11044. * src/FtpInitiateConnectionCommand.cc
  11045. (executeInternal): Removed the allocation of socket.
  11046. * src/DownloadEngine.h
  11047. (Sockets): An element is now of type SocketHandle.
  11048. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11049. (CommandUuids): New type definition.
  11050. (rsockets): Changed its type to SockCmdMap.
  11051. (wsockets): Changed its type to SockCmdMap.
  11052. (addSocket): Rewritten.
  11053. (deleteSocket): Rewritten.
  11054. (addSocketForReadCheck): Rewritten.
  11055. (deleteSocketForReadCheck): Rewritten.
  11056. (addSocketForWriteCheck): Rewritten.
  11057. (deleteSocketForWriteCheck): Rewritten.
  11058. (PairFind): New template class.
  11059. * src/HttpDownloadCommand.h
  11060. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11061. * src/FtpConnection.cc
  11062. (FtpConnection): Replaced Socket with SocketHandle.
  11063. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11064. block.
  11065. * src/InitiateConnectionCommandFactory.cc
  11066. (DlAbortEx.h): Included DlAbortEx.h.
  11067. (createInitiateConnectionCommand): Throw exception if the protocol of
  11068. requested URI is not supported.
  11069. * src/Peer.cc
  11070. (nullPeer): Changed its type to PeerHandle.
  11071. (operator==): New function.
  11072. (operator!=): New function.
  11073. * src/Peer.h
  11074. (SharedHandle.h): Included SharedHandle.h.
  11075. (operator==): New function.
  11076. (operator!=): New function.
  11077. (Peer): Added the default constructor.
  11078. Use resetStatus() to initialize member variables.
  11079. (nullPeer): Removed.
  11080. * src/TrackerUpdateCommand.cc
  11081. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11082. with MIN_PEERS.
  11083. * src/PeerListenCommand.h
  11084. (socket): Changed its type to SocketHandle.
  11085. * src/Command.h
  11086. (CommandUuid): New type definition.
  11087. (uuid): New variable.
  11088. (uuidGen): New variable.
  11089. (Command): Added the initialization of uuid.
  11090. (getUuid): New function.
  11091. * src/Socket.h
  11092. (Socket): Removed.
  11093. (SocketHandle): New type definition.
  11094. * src/DownloadEngine.h
  11095. (FindCommand): New function object.
  11096. (run): The portion of socket check was rewritten.
  11097. (SetDescriptor): New function object.
  11098. (AccumulateActiveCommandUuid): New function object.
  11099. (waitData): Rewritten.
  11100. (addSocket): Rewritten.
  11101. (deleteSocket): Rewritten.
  11102. (addSocketForReadCheck): Rewritten.
  11103. (addSocketForWriteCheck): Rewritten.
  11104. (deleteSocketForReadCheck): Rewritten.
  11105. (deleteSocketForWriteCheck): Rewritten.
  11106. * src/HttpProxyResponseCommand.h
  11107. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11108. * src/HttpConnection.h
  11109. (socket): Changed its type to SocketHandle.
  11110. (HttpConnection): Replaced Socket with SocketHandle.
  11111. * src/PeerInitiateConnectionCommand.cc
  11112. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11113. (executeInternal): Removed the allocation of socket.
  11114. (prepareForNextPeer): Use PeerHandle.
  11115. * src/PeerMessage.h
  11116. (peer): Changed its type to PeerHandle.
  11117. (getPeer): Replaced Peer with PeerHandle.
  11118. (setPeer): Replaced Peer with PeerHandle.
  11119. * src/DownloadCommand.cc
  11120. (DownloadCommand): Replaced Socket with SocketHandle.
  11121. * src/FtpConnection.h
  11122. (socket): Changed its type to SocketHandle.
  11123. (FtpConnection): Replaced Socket with SocketHandle.
  11124. (sendPort); Replaced Socket with SocketHandle.
  11125. * src/FtpDowndloadCommand.h
  11126. (ctrlSocket): Changed its type to SocketHandle.
  11127. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11128. * src/HttpProxyRequestCommand.cc
  11129. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11130. * src/FtpTunnelRequestCommand.h
  11131. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11132. etc
  11133. * src/PeerChokeCommand.h
  11134. (setAllPeerChoked): Removed.
  11135. (setAllPeerResetDelta): Removed.
  11136. * src/PeerChokeCommand.cc
  11137. (setAllPeerChoked): Removed.
  11138. (ChokePeer): New function object.
  11139. (setAllPeerResetDelta): Removed.
  11140. (ResetDelta): New function object.
  11141. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11142. (execute): Show download speed when the local node is a seeder.
  11143. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11144. using STL.
  11145. * src/TrackerWatcherCommand.h
  11146. (MIN_PEERS): Removed.
  11147. * src/TorrentMan.cc
  11148. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11149. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11150. To fix the bug that .aria2 file is not saved if downloading is stopped
  11151. by the errors:it results that aria2 can not resume downloading:
  11152. * src/main.cc
  11153. (normalDownload): Added the call to save().
  11154. (main): Added the deletion of the elements in 'reserved'.
  11155. To fix log:
  11156. * src/PeerInteraction.cc
  11157. (receiveHandshake): Fixed log.
  11158. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11159. To improve download performance in BitTorrent:
  11160. * src/TorrentMan.cc
  11161. (getPeer): Check the number of connections. Return nullPeer if
  11162. it is greater than MAX_PEER_UPDATE.
  11163. This code was originally here, but was removed in 0.5.1.
  11164. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. To improve the conditional compilation:
  11166. * src/MultiDiskWriter.h:
  11167. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11168. * src/MultiDiskWriter.cc:
  11169. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11170. * src/Util.h:
  11171. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11172. Added ENABLE_BITTORRENT around computeFastSet().
  11173. * src/Util.cc:
  11174. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11175. Added ENABLE_BITTORRENT around computeFastSet().
  11176. * src/messageDigest.h:
  11177. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11178. * src/ShaVisitor.h:
  11179. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11180. * src/ShaVisitor.cc:
  11181. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11182. * src/main.cc:
  11183. Added ENABLE_BITTORRENT around includes and blocks related to
  11184. BitTorrent.
  11185. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11186. digest support is not available.
  11187. * src/AbstractDiskWriter.h:
  11188. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11189. * src/AbstractDiskWriter.cc:
  11190. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11191. * src/MetalinkEntry.cc
  11192. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11193. support is not available.
  11194. To add command-line options for Metalink:
  11195. * src/main.cc:
  11196. Added metalink-version, metalink-language, metalink-os,
  11197. follow-metalink.
  11198. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11199. * src/main.cc: Use these definition.
  11200. * Release 0.6.0
  11201. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11202. To add Metalink support(http/ftp only):
  11203. * src/AbstractCommand.h
  11204. (tryReserved): New function.
  11205. * src/AbstractCommand.cc
  11206. (execute): Call tryReserved().
  11207. (tryReserved): New function.
  11208. * src/Request.h
  11209. (Requests): New type definition.
  11210. * src/SegmentMan.h
  11211. (reserved): New variable.
  11212. * src/Util.h
  11213. (fileChecksum): New function.
  11214. (toUpper): New function.
  11215. (toLower): New function.
  11216. * src/Util.cc
  11217. (messageDigest.h): Included.
  11218. (trim): Trim \r\n\t.
  11219. (fileChecksum): New function.
  11220. (toUpper): New function.
  11221. (toLower): New function.
  11222. * src/main.cc
  11223. (normalDownload): New function.
  11224. (main): Added 2 command-line options: metalink-file,
  11225. metalink-connection. Their usage has not been written yet.
  11226. * src/MetalinkProcessor.h: New class.
  11227. * src/Xml2MetalinkProcessor.h: New class.
  11228. * src/Xml2MetalinkProcessor.cc: New class.
  11229. * src/MetalinkEntry.h: New class.
  11230. * src/MetalinkEntry.cc: New class.
  11231. * src/MetalinkResource.h: New class.
  11232. * src/MetalinkResource.cc: New class.
  11233. To add md5 message digest checking:
  11234. * src/messageDigest.h: Rewritten.
  11235. * src/MultiDiskWriter.cc: Updated according to the changes in
  11236. messageDigest.h.
  11237. * src/ShaVisitor.cc: Updated according to the changes in
  11238. messageDigest.h.
  11239. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11240. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11241. messageDigest.h.
  11242. To fix a bug that causes segfault when the payload length in peer
  11243. message is less than 0:
  11244. * src/PeerConnection.cc:
  11245. (receiveMessage): Fixed the bug.
  11246. * src/PeerMessageUtil.cc
  11247. (checkLength): Throw an exception if length is less than or equals to
  11248. 0.
  11249. To add new interfaces to Base64 encoding/decoding:
  11250. * src/Base64.h
  11251. (part_encode): Changed the method signature.
  11252. (encode): New function(overload).
  11253. (decode): New function(overload).
  11254. * src/Base64.cc
  11255. (part_encode): Rewritten.
  11256. (encode): Rewritten.
  11257. (encode): New function(overload).
  11258. To prevent a peer to download same piece if there is an error in
  11259. checksum:
  11260. * src/PieceMessage.cc
  11261. (receivedAction): Call peerInteraction->abortPiece().
  11262. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11263. To fix the bug that causes same have message is sent many times to
  11264. a single peer.
  11265. * src/Time.cc
  11266. (isNewer): Use Util::difftv().
  11267. * src/Util.cc
  11268. (difftv): Added a cast to (long long int).
  11269. * src/TorrentMan.cc
  11270. (advertisePiece): Use push_front.
  11271. (getAdvertisedPieceIndexes): A performance improvement was made.
  11272. To fix the bug that sends tracker requests without a sleep interval
  11273. when the number of connections is less than 15.
  11274. * src/TrackerWatcherCommand.cc
  11275. (execute): Now the number of connections is not a factor to decide
  11276. whether or not a tracker request should be sent or not.
  11277. * src/Time.h
  11278. (setTimeInSec): New function.
  11279. * src/Time.cc
  11280. (setTimeInSec): New function.
  11281. etc.
  11282. * src/ChokeMessage.cc
  11283. (receivedAction): Removed peer->snubbing = false
  11284. * src/PeerConnection.h
  11285. (receiveHandshake): Updated doc.
  11286. * src/TorrentMan.h
  11287. (getAdvertisedPieceIndexes): Updated the method signature.
  11288. * src/TorrentMan.cc
  11289. (getAdvertisedPieceIndexes): Updated the method signature.
  11290. * src/Time.h
  11291. (getTimeInMicros): Added a cast to (long long int).
  11292. (getTimeInMillis): Added a cast to (long long int).
  11293. * Release 0.5.2
  11294. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11295. To make a listening socket non-block:
  11296. * src/SocketCore.h
  11297. (setNonBlockingMode): New function.
  11298. * src/SocketCore.cc
  11299. (setNonBlockingMode): New function.
  11300. (beginListen): Added a call to setNonBlockingMode().
  11301. (acceptConnection): Call setNonBlockingMode().
  11302. (setBlockingMode): Updated.
  11303. To handle tracker's NAT-checking:
  11304. * src/PeerConnection.cc
  11305. (receiveHandshake): 'msg' param is filled with received data and
  11306. its length is assigned to 'length' param, even if all handshake
  11307. message is not yet received.
  11308. * src/PeerInteractionCommand.cc
  11309. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11310. a new peer connects to localhost.
  11311. A call to peerInteraction->sendHandshake() was removed because
  11312. it is called from peerInteraction->receiveHandshake(true).
  11313. * src/PeerInteraction.h
  11314. (quickReplied): New variable.
  11315. (receiveHandshake): Added an argument.
  11316. * src/PeerInteraction.cc
  11317. (PeerInteraction): Added the initialization of quickReplied.
  11318. (receiveHandshake): Send handshake message as soon as the info hash
  11319. in a handshake message from a peer is correct.
  11320. To change the random part of peer id and key parameter:
  11321. * src/TorrentMan.h
  11322. (key): New variable.
  11323. * src/TorrentMan.cc
  11324. (setupInternal1): Use Util::randomAlpha() to generate random part
  11325. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11326. key is also generated by Util::randomAlpha() and it is now 8 character
  11327. long.
  11328. * src/Util.h
  11329. (randomAlpha): New function.
  11330. * src/Util.cc
  11331. (randomAlpha): New function.
  11332. * src/TrackerWatcherCommand.cc
  11333. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11334. Added no_peer_id=1.
  11335. Set snubbing flag to false when a choke message is received from a
  11336. snubbed peer.
  11337. * src/ChokeMessage.cc
  11338. (receivedAction): Set snubbing flag to false.
  11339. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11340. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11341. * src/SimpleLogger.h (writeHeader): New function.
  11342. * src/SimpleLogger.cc (writeHeader): New function.
  11343. (writeLog): Fixed the bug that causes segfaults if exception message
  11344. contains an unescaped "%" character.
  11345. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11346. when a tracker request fails.
  11347. * src/Request.cc (parseUrl): Query string is now handled properly.
  11348. * Release 0.5.1
  11349. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11350. To add Time class which represents a specific instant in time and
  11351. its precision is microseconds. Time checking procedures were rewritten
  11352. using this object.
  11353. * src/Time.h: New class.
  11354. * src/Time.cc: New class.
  11355. * src/AbstractCommand.h
  11356. (updateCheckPoint): Removed.
  11357. (isTimeoutDetected): Removed.
  11358. (checkPoint): Changed the type to Time.
  11359. (timeout): New variable.
  11360. (setTimeout): New function.
  11361. * src/AbstractCommand.cc
  11362. (AbstractCommand): Removed the initialization of checkPoint.
  11363. Added the initialization of timeout.
  11364. (updateCheckPoint): Removed.
  11365. (isTimeoutDetected): Removed.
  11366. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11367. * src/PeerChokeCommand.h
  11368. (checkPoint): Changed the type to Time.
  11369. * src/PeerChokeCommand.cc
  11370. (PeerChokeCommand): Removed the initialization of checkPoint.
  11371. (execute): Rewritten using Time object.
  11372. * src/TrackerWatcherCommand.h
  11373. (checkPoint): Changed the type to Time.
  11374. * src/TrackerWatcherCommand.cc
  11375. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11376. (execute): Rewritten.
  11377. * src/ConsoleDownloadEngine.h
  11378. (cp): Changed the type to Time.
  11379. (startup): Changed the type to Time.
  11380. * src/ConsoleDownloadEngine.cc
  11381. (initStatistics): Use cp.reset(), startup.reset().
  11382. (calculateStatistics): Rewritten using Time object.
  11383. * src/PeerAbstractCommand.h
  11384. (updateCheckPoint): Removed.
  11385. (isTimeoutDetected): Removed.
  11386. (checkPoint): Changed the type to Time.
  11387. * src/PeerAbstractCommand.cc
  11388. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11389. (updateCheckPoint): Removed.
  11390. (isTimeoutDetected): Removed.
  11391. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11392. * src/PeerInteractionCommand.cc
  11393. (PeerInteractionCommand): Removed the initializations of struct
  11394. timeval variables.
  11395. * src/PeerInteractionCommand.h
  11396. (keepAliveCheckPoint): Changed the type to Time.
  11397. (chokeCheckPoint): Changed the type to Time.
  11398. (freqCheckPoint): Changed the type to Time.
  11399. (haveCheckTime): Changed the type to Time.
  11400. * src/PeerInteractionCommand.cc
  11401. (executeInternal): Rewritten using Time object.
  11402. (detectMessageFlooding): Rewritten using Time object.
  11403. (checkLongTimePeerChoking): Rewritten using Time object.
  11404. (sendKeepAlive): Rewritten using Time object.
  11405. (checkHave): Rewritten using Time object.
  11406. * src/SleepCommand.h
  11407. (checkPoint): Changed the type to Time.
  11408. * src/SleepCommand.cc
  11409. (SleepCommand): Removed the initialization of checkPoint.
  11410. (execute): Rewritten using Time object.
  11411. * src/TorrentAutoSaveCommand.h
  11412. (checkPoint): Changed the type to Time.
  11413. * src/TorrentAutoSaveCommand.cc
  11414. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11415. (execute): Rewritten.
  11416. * src/DownloadCommand.h
  11417. (sw): Changed the type to Time.
  11418. * src/DownloadCommand.cc
  11419. (DownloadCommand): Removed the initialization of sw.
  11420. (executeInternal): Rewritten.
  11421. * src/RequestSlot.h
  11422. (dispatchedTime): Changed the type to Time.
  11423. * src/RequestSlot.cc
  11424. (RequestSlot): Removed the call to setDispatchedTime().
  11425. (setDispatchedTime): Rewirtten.
  11426. (isTimeout): Rewritten.
  11427. (getLatencyInMillis): Rewritten.
  11428. * src/TorrentDownloadEngine.h
  11429. (cp): Changed the type to Time[2].
  11430. (startup): Changed the type to Time.
  11431. * src/TorrentDownloadEngine.cc
  11432. (initStatistics): Rewritten.
  11433. (calculateStatistics): Rewritten.
  11434. * src/DownloadEngine.cc
  11435. (run): Rewritten.
  11436. To detect all attempts to connect to the tracker are failed:
  11437. * src/AbstractCommand.cc
  11438. (execute): Increment e->segmentMan->errors if a command aborted.
  11439. * src/SegmentMan.h
  11440. (errors): New variable.
  11441. * src/SegmentMan.cc
  11442. (SegmentMan): Added the initialization of errors.
  11443. (init): Added the initialization of errors.
  11444. * src/TrackerWatcherCommand.cc
  11445. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11446. request was failed.
  11447. To handle snubbed peers:
  11448. * src/PeerChokeCommand.cc
  11449. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11450. (execute): Snubbed peers don't get unchoked.
  11451. * src/PeerInteraction.h
  11452. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11453. * src/PeerInteraction.cc
  11454. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11455. back the requested 16k block in 60 seconds.
  11456. * src/PieceMessage.cc
  11457. (receivedAction): A peer's snubbed state is cleard if it sends
  11458. the requested 16k block in 60 seconds.
  11459. * src/Peer.h
  11460. (snubbing): New variable.
  11461. * src/Peer.cc
  11462. (resetStatus): Added snubbed = false.
  11463. To fix the bug that causes have message is not sent:
  11464. * src/PeerInteractionCommand.cc
  11465. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11466. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11467. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11468. * src/TorrentMan.h
  11469. (HaveEntry): New class.
  11470. (advertisePiece): Rewritten.
  11471. (getAdvertisedPieceIndexes): Rewritten.
  11472. (Haves): Changed the type.
  11473. (getAdvertisedPieceIndexes): Added an argument.
  11474. Others:
  11475. * src/TorrentMan.h
  11476. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11477. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11478. * src/TorrentMan.cc
  11479. (getPeer): Don't check the number of connections here.
  11480. (setupInternal1): Changed peerId.
  11481. * src/PeerInteractionCommand.h
  11482. (KEEP_ALIVE_INTERVAL): New definition.
  11483. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11484. * src/main.cc
  11485. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11486. * src/DownloadEngine.h: Removed unnecessary header includes.
  11487. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. To fix the bug that causes segfaults if a tracker returns a zero-length
  11489. list as "peers":
  11490. * src/TrackerUpdateCommand.cc
  11491. (execute): Added a check to see wether the type of peers is Data*.
  11492. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11493. * Release 0.5.0
  11494. To fix compile issue with gcc3:
  11495. * src/CancelMessage.h
  11496. (ID): Renamed as ID_t
  11497. (ID_t): New enum.
  11498. * src/RejectMessage.h
  11499. (ID): Renamed as ID_t
  11500. (ID_t): New enum.
  11501. * src/SuggestPieceMessage.h
  11502. (ID): Renamed as ID_t
  11503. (ID_t): New enum.
  11504. * src/AllowedFastMessage.h
  11505. (ID): Renamed as ID_t
  11506. (ID_t): New enum.
  11507. * src/PortMessage.h
  11508. (ID): Renamed as ID_t
  11509. (ID_t): New enum.
  11510. * src/HaveNoneMessage.h
  11511. (ID): Renamed as ID_t
  11512. (ID_t): New enum.
  11513. * src/KeepAliveMessage.h
  11514. (ID): Renamed as ID_t
  11515. (ID_t): New enum.
  11516. * src/HaveAllMessage.h
  11517. (ID): Renamed as ID_t
  11518. (ID_t): New enum.
  11519. * src/UnchokeMessage.h
  11520. (ID): Renamed as ID_t
  11521. (ID_t): New enum.
  11522. * src/BitfieldMessage.h
  11523. (ID): Renamed as ID_t
  11524. (ID_t): New enum.
  11525. * src/PieceMessage.h
  11526. (ID): Renamed as ID_t
  11527. (ID_t): New enum.
  11528. * src/RequestMessage.h
  11529. (ID): Renamed as ID_t
  11530. (ID_t): New enum.
  11531. * src/NotInterestedMessage.h
  11532. (ID): Renamed as ID_t
  11533. (ID_t): New enum.
  11534. * src/ChokeMessage.h
  11535. (ID): Renamed as ID_t
  11536. (ID_t): New enum.
  11537. * src/InterestedMessage.h
  11538. (ID): Renamed as ID_t
  11539. (ID_t): New enum.
  11540. * src/HaveMessage.h
  11541. (ID): Renamed as ID_t
  11542. (ID_t): New enum.
  11543. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11544. * src/PeerAbstractCommand.h
  11545. (beforeSocketCheck): Removed.
  11546. * src/PeerAbstractCommand.cc
  11547. Modified in order to call executeInternal() even if socket check
  11548. and upload limit check fail.
  11549. * src/PeerInteractionCommand.h
  11550. (keepAlive): Removed.
  11551. (sendKeepAlive): New function.
  11552. (checkHave): New function.
  11553. (beforeSocketCheck): Removed.
  11554. * src/PeerInteractionCommand.cc
  11555. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11556. calls to checkHave() and sendKeepAlive().
  11557. (keepAlive): Renamed to sendKeepAlive().
  11558. (sendKeepAlive): New function.
  11559. (beforeSocketCheck): Removed.
  11560. (checkHave): New function.
  11561. * src/BitfieldMan.cc
  11562. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11563. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11564. 0.
  11565. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11566. * src/TorrentMan.h
  11567. (UsedPieces): Removed.
  11568. (Pieces): New type definition.
  11569. * src/Piece.h: Updated doc.
  11570. * src/Peer.h
  11571. (totalLength): Removed.
  11572. * src/Peer.cc
  11573. (updateLatency): Fixed the latency calculation.
  11574. * src/TorrentMan.cc
  11575. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11576. than or equal to MAX_PEER_LIST_SIZE.
  11577. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11578. then return false.
  11579. (deleteOldErrorPeers): Rewritten.
  11580. (deleteUsedPiece): Fixed the miss use of STL remove.
  11581. * src/PeerInteraction.h
  11582. (Pieces): Removed.
  11583. (deleteTimeoutRequestSlot): Removed.
  11584. (deleteCompletedRequestSlot): Removed.
  11585. (checkRequestSlot): New function.
  11586. * src/PeerInteraction.cc
  11587. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11588. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11589. (checkRequestSlot): New function.
  11590. * src/DownloadEngine.cc
  11591. (run): Clear activeSockets before calling waitData().
  11592. (waitData): Removed a call to activeSockets.clear().
  11593. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11594. To attempt to handle EINTR:
  11595. * src/SocketCore.cc
  11596. (isReadable): Added EINTR handling.
  11597. (isWritable): Added EINTR handling.
  11598. To improve the performance:
  11599. * src/AbstractCommand.cc
  11600. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11601. * src/PeerInteractionCommand.h
  11602. (receiveMessage): Renamed as receiveMessages().
  11603. (receiveMessages): New function.
  11604. * src/PeerInteractionCommand.cc
  11605. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11606. () function. detectMessageFlooding() is moved here.
  11607. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11608. (). The flooding detection for have message is comment out.
  11609. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11610. Util::difftv().
  11611. (receiveMessage): Renamed as receiveMessages().
  11612. (receiveMessages): New function.
  11613. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11614. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11615. * src/SleepCommand.cc
  11616. (execute): Use Util::difftvsec() instead of Util::difftv().
  11617. * src/BitfieldMan.h
  11618. (getNthBitIndex): New function.
  11619. (hasMissingPiece): New function.
  11620. (getAllMissingIndexes): New function.
  11621. * src/BitfieldMan.cc
  11622. (countSetBit): Rewritten.
  11623. (getNthBitIndex): New function.
  11624. (getMissingIndexRandomly): Rewritten.
  11625. (hasMissingPiece): New function.
  11626. (getAllMissingIndexes): New function.
  11627. * src/TorrentMan.cc
  11628. (hasMissingPiece): New function.
  11629. (deleteUsedPiece): Rewritten using STL.
  11630. * src/PeerInteraction.cc
  11631. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11632. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11633. (addRequests): Updated the number of pending requests.
  11634. * src/PeerAbstractCommand.cc
  11635. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11636. (execute): Returns true if TorrentMan::isHalt() is true.
  11637. Corrected the condition of upload limit checking.
  11638. * src/Util.h
  11639. (countBit): New function.
  11640. * src/Util.cc
  11641. (nbits): New variable.
  11642. (countBit): New function.
  11643. * src/DownloadEngine.h
  11644. (SockCmdMap): New type definition.
  11645. (waitData): Added an argument.
  11646. (addSocket): Added an argument.
  11647. (addSocketForReadCheck): Added an argument.
  11648. (addSocketForWriteCheck): Added an argument.
  11649. * src/DownloadEngine.cc
  11650. (run): Executes only commands whose sockets are ready to read or write.
  11651. All commands are executed in every 1 second.
  11652. (waitData): Calls select() again if it returned
  11653. EINTR.
  11654. (addSocket): Saves socket and command object pair to the map.
  11655. (deleteSocket): Deletes socket and command object pair from the map.
  11656. (addSocketForReadCheck): Added an argument.
  11657. (addSocketForWriteCheck): Added an argument.
  11658. * src/DownloadCommand.cc
  11659. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11660. To send "event=stopped" to the tracker when the application finishes:
  11661. * src/PeerChokeCommand.h
  11662. (checkPoint): New variable.
  11663. * src/PeerChokeCommand.cc
  11664. (PeerChokeCommand): Added the initialization of checkPoint.
  11665. (execute): The interval check is now done by checkPoint, not
  11666. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11667. * src/TorrentMan.h
  11668. (halt): New function.
  11669. (hasMissingPiece): New function.
  11670. (isHalt): New function.
  11671. (setHalt): New function.
  11672. * src/TorrentMan.cc
  11673. (TorrentMan): Added the initialization of halt.
  11674. * src/TorrentAutoSaveCommand.h
  11675. (checkPoint): New variable.
  11676. * src/PeerListenCommand.cc
  11677. (execute): Returns true if TorrentMan::isHalt() is true.
  11678. * src/main.cc
  11679. (setSignalHander): Added flags argument.
  11680. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11681. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11682. Removed printDownloadAbortMessage() after torrent downloading loop.
  11683. * src/TorrentAutoSaveCommand.cc
  11684. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11685. (execute): Returns true if TorrentMan::isHalt() is true.
  11686. The interval check is now done by checkPoint, not SleepCommand.
  11687. * src/TrackerWatcherCommand.cc
  11688. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11689. event=stopped.
  11690. * src/TrackerUpdateCommand.cc
  11691. (prepareForRetry): Do not use SleepCommand here.
  11692. (execute): Returns true if TorrentMan::isHalt() is true.
  11693. Others:
  11694. * src/TorrentMan.cc
  11695. (getMissingPieceIndex): Updated log message.
  11696. * src/PeerInteraction.cc
  11697. (createPeerMessag): Updated log message.
  11698. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11699. To add the ability to download several pieces in mix in a command and
  11700. increase the number of request slots according to request-cancel
  11701. latency:
  11702. * src/PeerInteractionCommand.cc
  11703. (executeInternal): The number of messages to be received at a time
  11704. is increased from 10 to 50.
  11705. * src/LogFactory
  11706. (getInstance): Added NullLogger.
  11707. * src/NullLogger.h: New class.
  11708. * src/BitfieldMan.h
  11709. (getMissingIndex): New function.
  11710. * src/BitfieldMan.cc
  11711. (getMissingIndex): New function.
  11712. * src/TorrentMan.h
  11713. (checkOutPiece): New function.
  11714. (getMissingPieceIndex): New function.
  11715. (getMissingFastPieceIndex): New function.
  11716. (getMissingFastPiece): New function.
  11717. * src/TorrentMan.cc
  11718. (updatePiece): Rewritten using STL.
  11719. (syncPiece): Rewritten using STL.
  11720. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11721. checkOutPiece().
  11722. (getMissingPieceIndex): New function.
  11723. (getMissingFastPieceIndex): New function.
  11724. (getMissingFastPiece): New function.
  11725. (checkOutPiece): New function.
  11726. * src/PeerInteraction.h
  11727. (Pieces): New type definition.
  11728. (piece): Removed.
  11729. (pieces): New variable.
  11730. (getNewPieceAndSendInterest): Added the "piece" argument.
  11731. (abortPiece): Added the "piece" argument.
  11732. (abortAllPieces): New function.
  11733. (isInRequestSlot): New function.
  11734. (hasDownloadPiece): Added the "index" argument.
  11735. (setDownloadPiece): Removed.
  11736. (getDownloadPiece): Added the "index" argument.
  11737. (updatePiece): New function.
  11738. (createRequestMessage): Added the "index" argument.
  11739. * src/PeerInteraction.cc
  11740. (onChoked): Rewritten.
  11741. (abortPiece): Rewirtten.
  11742. (abortAllPieces): New function.
  11743. (deleteTimeoutRequestSlot): Rewritten.
  11744. Clarified code a little bit.
  11745. (deleteCompletedRequestSlot): Rewritten.
  11746. (isInRequestSlot): New function.
  11747. (syncPiece): Rewritten.
  11748. (updatePiece): New function.
  11749. (getNewPieceAndSendInterest): Rewritten.
  11750. (addRequests): Rewritten.
  11751. (getDownloadPiece): Rewritten.
  11752. (hasDownloadPiece): Rewritten.
  11753. (createRequestMessage): Added the "index" argument.
  11754. * src/common.h
  11755. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11756. (DIV_FLOOR): New definition.
  11757. * src/PieceMessage.cc
  11758. (receivedAction): Update request-piece latency here.
  11759. * src/RequestSlot.h
  11760. (getLatencyInMillis): New function.
  11761. * src/RequestSlot.cc
  11762. (isTimeout): Rewritten using getLatencyInMillis.
  11763. (getLatencyInMillis): New function.
  11764. * src/Piece.h
  11765. (operator==): New function.
  11766. (getMissingBlockIndex): New function.
  11767. * src/Piece.cc
  11768. (operator==): New function.
  11769. (getMissingBlockIndex): New function.
  11770. * src/Peer.h
  11771. (DEFAULT_LATENCY): New definition.
  11772. (latency): New variable.
  11773. (updateLatency): New function.
  11774. (getLatency): New function.
  11775. * src/Peer.cc
  11776. (resetStatus): Reset latecy.
  11777. (updateLatency): New function.
  11778. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. * src/SocketCore.cc
  11780. (isReadable): Added secure to the condition.
  11781. * src/HttpConnection.cc
  11782. (receiveResponse): Fixed a bug that causes no response header
  11783. exception.
  11784. * src/Peer.h
  11785. (getFastSet): Fixed the return value type.
  11786. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. To remove a wait from download loop:
  11788. * src/DownloadEngine.cc
  11789. (run): Comment out shortSleep.
  11790. To rewrite the message handling:
  11791. * src/SimplePeerMessage.h: New class.
  11792. * src/SimplePeerMessage.cc: New class.
  11793. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11794. (msg): New variable.
  11795. (create): New function.
  11796. (send): Removed.
  11797. (getMessage): New function.
  11798. (getMessageLength): New function.
  11799. * src/CancelMessage.cc
  11800. (create): New function.
  11801. (receivedAction): Replaced deleteRequestMessageInQueue with
  11802. rejectPieceMessageInQueue.
  11803. (send): Removed.
  11804. (getMessage): New function.
  11805. (getMessageLength): New function.
  11806. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11807. (msg): New variable.
  11808. (msgLength): New variable.
  11809. (~BitfieldMessage): Deleted msg.
  11810. (send): Removed.
  11811. (getMessage): New function.
  11812. (getMessageLength): New function.
  11813. * src/BitfieldMessage.cc
  11814. (create): New function.
  11815. (send): Removed.
  11816. (getMessage): New function.
  11817. (getMessageLength): New function.
  11818. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11819. (msg): New variable.
  11820. (sendPredicate): New function.
  11821. (onSendComplete): New function.
  11822. (send): Removed.
  11823. (getMessage): New function.
  11824. (getMessageLength): New function.
  11825. (create): New function.
  11826. * src/ChokeMessage.cc
  11827. (create): New function.
  11828. (send): Removed.
  11829. (sendPredicate): New function.
  11830. (getMessage): New function.
  11831. (getMessageLength): New function.
  11832. (onSendComplete): New function.
  11833. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11834. (msg): New variable.
  11835. (send): Removed.
  11836. (getMessage): New function.
  11837. (getMessageLength): New function.
  11838. * src/KeepAliveMessage.cc
  11839. (send): Removed.
  11840. (getMessage): New function.
  11841. (getMessageLength): New function.
  11842. * src/PortMessage.h
  11843. (create): New function.
  11844. (receivedAction): Updated log message.
  11845. * src/PortMessage.cc: New file.
  11846. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11847. (msg): New variable.
  11848. (sendPredicate): New function.
  11849. (onSendComplete): New function.
  11850. (create): New function.
  11851. (send): Removed.
  11852. (getMessage): New function.
  11853. (getMessageLength): New function.
  11854. * src/UnchokeMessage.cc
  11855. (create): New function.
  11856. (send): Removed.
  11857. (sendPredicate): New function.
  11858. (getMessage): New function.
  11859. (getMessageLength): New function.
  11860. (onSendComplete): New function.
  11861. * src/PieceMessage.h
  11862. (leftPieceDataLength): Removed.
  11863. (leftDataLength): New variable.
  11864. (headerSend): New variable.
  11865. (pendingCount): New variable.
  11866. (msgHeader): New variable.
  11867. (sendPieceData): New function.
  11868. (incrementPendingCount): New function.
  11869. (isPendingCountMax): New function.
  11870. (create): New function.
  11871. (getMessageHeader): New function.
  11872. (getMessageHeaderLength): New function.
  11873. * src/PieceMessage.cc
  11874. (create): New function.
  11875. (getMessageHeader): New function.
  11876. (getMessageHeaderLength): New function.
  11877. (send): Rewritten.
  11878. (sendPieceData): New function.
  11879. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11880. (msg): New variable.
  11881. (create): New function.
  11882. (getMessage): New function.
  11883. (getMessageLength): New function.
  11884. * src/HaveMessage.cc
  11885. (create): New function.
  11886. (send): Removed.
  11887. (sendPieceData): New function.
  11888. (getMessage): New function.
  11889. (getMessageLength): New function.
  11890. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11891. (msg): New variable.
  11892. (create): New function.
  11893. (send): Removed.
  11894. (getMessage): New function.
  11895. (getMessageLength): New function.
  11896. * src/RequestMessage.cc
  11897. (create): New function.
  11898. (receivedAction): Added the handling of fast extension.
  11899. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11900. (send): Removed.
  11901. (getMessage): New function.
  11902. (getMessageLength): New function.
  11903. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11904. (msg): New variable.
  11905. (sendPredicate): New function.
  11906. (onSendComplete): New function.
  11907. (create): New function.
  11908. (getMessage): New function.
  11909. (getMessageLength): New function.
  11910. * src/InterestedMessage.cc
  11911. (create): New function.
  11912. (send): Removed.
  11913. (sendPieceData): New function.
  11914. (getMessage): New function.
  11915. (getMessageLength): New function.
  11916. (onSendComplete): New function.
  11917. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11918. (msg): New variable.
  11919. (sendPieceData): New function.
  11920. (onSendComplete): New function.
  11921. (create): New function.
  11922. (send): Removed.
  11923. (getMessage): New function.
  11924. (getMessageLength): New function.
  11925. * src/NotInterestedMessage.cc
  11926. (create): New function.
  11927. (send): Removed.
  11928. (sendPredicate): New function.
  11929. (getMessage): New function.
  11930. (getMessageLength): New function.
  11931. (onSendComplete): New function.
  11932. * src/AllowedFastMessage.h: New class.
  11933. * src/AllowedFastMessage.cc: New class.
  11934. * src/RejectMessage.h: New class.
  11935. * src/RejectMessage.cc: New class.
  11936. * src/SuggestPieceMessage.h: New class.
  11937. * src/SuggestPieceMessage.cc: New class.
  11938. * src/HaveAllMessage.h: New class.
  11939. * src/HaveAllMessage.cc: New class.
  11940. * src/HaveNoneMessage.h: New class.
  11941. * src/HaveNoneMessage.cc: New class.
  11942. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11943. (msg): New variable.
  11944. (reserved): New variable.
  11945. (create): New function.
  11946. (getId): New function.
  11947. (receivedAction): New function.
  11948. (getMessage): New function.
  11949. (getMessageLength): New function.
  11950. (isFastExtensionSupported): New function.
  11951. * src/HandshakeMessage.cc
  11952. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11953. (create): New function.
  11954. (getMessage): New function.
  11955. (getMessageLength): New function.
  11956. (toString): Added the output of reserved field.
  11957. (check): Added const qualifier.
  11958. (isFastExtensionSupported): New function.
  11959. * src/PeerMessageUtil.h
  11960. (createChokeMessage): Removed.
  11961. (createUnchokeMessage): Removed.
  11962. (createInterestedMessage): Removed.
  11963. (createNotInterestedMessage): Removed.
  11964. (createHaveMessage): Removed.
  11965. (createBitfieldMessage): Removed.
  11966. (createRequestMessage): Removed.
  11967. (createCancelMessage): Removed.
  11968. (createPieceMessage): Removed.
  11969. (createPortMessage): Removed.
  11970. (createChokeMessage): Removed.
  11971. (createUnchokeMessage): Removed.
  11972. (createInterestedMessage): Removed.
  11973. (createNotInterestedMessage): Removed.
  11974. (createHaveMessage): Removed.
  11975. (createBitfieldMessage): Removed.
  11976. (createRequestMessage): Removed.
  11977. (createCancelMessage): Removed.
  11978. (createPieceMessage): Removed.
  11979. (createKeepAliveMessage): Removed.
  11980. (createHandshakeMessage): Removed.
  11981. (setIntParam): New function.
  11982. (createPeerMessageString): New function.
  11983. * src/PeerMessageUtil.cc
  11984. (createChokeMessage): Removed.
  11985. (createUnchokeMessage): Removed.
  11986. (createInterestedMessage): Removed.
  11987. (createNotInterestedMessage): Removed.
  11988. (createHaveMessage): Removed.
  11989. (createBitfieldMessage): Removed.
  11990. (createRequestMessage): Removed.
  11991. (createCancelMessage): Removed.
  11992. (createPieceMessage): Removed.
  11993. (createPortMessage): Removed.
  11994. (createRequestMessage): Removed.
  11995. (createCancelMessage): Removed.
  11996. (createPieceMessage): Removed.
  11997. (createHaveMessage): Removed.
  11998. (createChokeMessage): Removed.
  11999. (createUnchokeMessage): Removed.
  12000. (createInterestedMessage): Removed.
  12001. (createNotInterestedMessage): Removed.
  12002. (createBitfieldMessage): Removed.
  12003. (createKeepAliveMessage): Removed.
  12004. (createHandshakeMessage): Removed.
  12005. (setIntParam): New function.
  12006. (createPeerMessageString): New function.
  12007. * src/PeerConnection.h
  12008. (peer): Removed.
  12009. (torrentMan): Removed.
  12010. (createNLengthMessage): Removed.
  12011. (setIntParam): Removed.
  12012. (writeOutgoingMessageLog): Removed all overloaded functions.
  12013. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12014. (sendMessage): New function.
  12015. (sendHandshake): Removed.
  12016. (sendKeepAlive): Removed.
  12017. (sendChoke): Removed.
  12018. (sendUnchoke): Removed.
  12019. (sendInterested): Removed.
  12020. (sendNotInterested): Removed.
  12021. (sendHave): Removed.
  12022. (sendBitfield): Removed.
  12023. (sendRequest): Removed.
  12024. (sendPiece): Removed.
  12025. (sendPieceHeader): Removed.
  12026. (sendPieceData): Removed.
  12027. (sendCancel): Removed.
  12028. (getPeer): Removed.
  12029. * src/PeerConnection.cc
  12030. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12031. (sendHandshake): Removed.
  12032. (sendKeepAlive): Removed.
  12033. (createNLengthMessage): Removed.
  12034. (setIntParam): Removed.
  12035. (writeOutgoingMessageLog): Removed all overloaded functions.
  12036. (sendChoke): Removed.
  12037. (sendUnchoke): Removed.
  12038. (sendInterested): Removed.
  12039. (sendNotInterested): Removed.
  12040. (sendHave): Removed.
  12041. (sendBitfield): Removed.
  12042. (sendRequest): Removed.
  12043. (sendPiece): Removed.
  12044. (sendPieceHeader): Removed.
  12045. (sendPieceData): Removed.
  12046. (sendMessage): New function.
  12047. (sendCancel): Removed.
  12048. * src/PeerInteractionCommand.cc
  12049. (PeerInteractionCommand): Call setUploadLimit.
  12050. (executeInternal): Call setUploadLimit.
  12051. Added the handling of "inProgress" state of handshake message.
  12052. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12053. sendNow().
  12054. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12055. sendNow().
  12056. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12057. * src/TorrentMan.h
  12058. (PEER_ID_LENGTH): New definition.
  12059. (hasAllPieces): New function.
  12060. * src/TorrentMan.cc
  12061. (getMissingPiece): Added the handling of fast extension.
  12062. (cancelPiece): Call updatePiece().
  12063. (hasAllPieces): New function.
  12064. * src/PeerInteraction.h
  12065. (fastSet): New variable.
  12066. (getNewPieceAndSendInterest): Changed the return type to void.
  12067. (send): Renamed as sendMessages.
  12068. (deleteAllRequestSlot): Removed.
  12069. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12070. (cancelAllRequest): Removed all overloaded functions.
  12071. (deleteAllRequestSlot): Removed.
  12072. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12073. (rejectPieceMessageInQueue): New function.
  12074. (rejectAllPieceMessageInQueue): New function.
  12075. (onChoked): New function.
  12076. (isSendingMessageInProgress): New function.
  12077. (getCorrespondingRequestSlot): Changed its arguments.
  12078. (isInFastSet): New function.
  12079. (addFastSetIndex): New function.
  12080. (addRequests): New function.
  12081. (sendNow): Removed.
  12082. (trySendNow): Removed.
  12083. (sendBitfield): New function.
  12084. (sendAllowdFast): New function.
  12085. (createHaveAllMessage): New function.
  12086. (createHaveNoneMessage): New function.
  12087. (createRejectMessage): New function.
  12088. (createAllowedFastMessage): New function.
  12089. * src/PeerInteraction.cc
  12090. (send): Renamed as sendMessages.
  12091. (sendMessages): New function.
  12092. (MsgPushBack): New class.
  12093. (isSendingMessageInProgress): New function.
  12094. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12095. (rejectAllPieceMessageInQueue): New function.
  12096. Added the handling of fast extension.
  12097. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12098. (rejectPieceMessageInQueue): New function.
  12099. Added the handling of fast extension.
  12100. (deleteRequestSlot): Replaced for loop with std::find.
  12101. (onChoked): New function.
  12102. (deleteAllRequestSlot): Removed.
  12103. (abortPiece): Rewirtten.
  12104. (deleteTimeoutRequestSlot): Updated log messages.
  12105. (getCorrespondingRequestSlot): Changed its arguments.
  12106. (cancelAllRequest): Removed all overloaded functions.
  12107. (receiveHandshake): Added the check to see whether an incoming peer
  12108. supports fast extension.
  12109. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12110. PeerMessageUtil.
  12111. (createPeerMessage): Use create() of each message class instead of
  12112. PeerMessageUtil.
  12113. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12114. AllowedFastMessage were added.
  12115. (getNewPieceAndSendInterest): Changed its return value type to void.
  12116. Added the handling of fast extension.
  12117. (addRequests): New function.
  12118. (sendNow): Removed.
  12119. (sendHandshake): Rewritten.
  12120. (trySendNow): Removed.
  12121. (sendBitfield): New function.
  12122. (sendAllowdFast): New function.
  12123. (isInFastSet): New function.
  12124. (addFastSetIndex): New function.
  12125. (createRequestMessage): Use RequestMessage::create instead of
  12126. PeerMessageUtil.
  12127. (createCancelMessage): Use CancelMessage::create instead of
  12128. PeerMessageUtil.
  12129. (createPieceMessage): Use PieceMessage::create instead of
  12130. PeerMessageUtil.
  12131. (createHaveMessage): Use HaveMessage::create instead of
  12132. PeerMessageUtil.
  12133. (createChokeMessage): Use ChokeMessage::create instead of
  12134. PeerMessageUtil.
  12135. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12136. PeerMessageUtil.
  12137. (createInterestedMessage): Use InterestedMessage::create instead of
  12138. PeerMessageUtil.
  12139. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12140. of PeerMessageUtil.
  12141. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12142. PeerMessageUtil.
  12143. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12144. PeerMessageUtil.
  12145. (createHaveAllMessage): New function.
  12146. (createHaveNoneMessage): New function.
  12147. (createRejectMessage): New function.
  12148. (createAllowedFastMessage: New function.
  12149. * src/Util.h
  12150. (sha1Sum): New function.
  12151. (computeFastSet): New function.
  12152. * src/Util.cc
  12153. (sha1Sum): New function.
  12154. (computeFastSet): New function.
  12155. * src/Peer.h
  12156. (fastExtensionEnabled): New variable.
  12157. (fastSet): New variable.
  12158. (setAllBitfield): New function.
  12159. (setFastExtensionEnabled): New function.
  12160. (isFastExtensionEnabled): New function.
  12161. (addFastSetIndex): New function.
  12162. (getFastSet): New function.
  12163. (isInFastSet): New function.
  12164. (countFastSet): New function.
  12165. * src/Peer.cc
  12166. (isInFastSet): New function.
  12167. (addFastSetIndex): New function.
  12168. (setAllBitfield): New function.
  12169. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12170. sockets.
  12171. * src/PeerAbstractCommand.cc
  12172. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12173. and uploadLimit.
  12174. (execute): Changed the procedure of checking sockets. The upload speed
  12175. checking were added.
  12176. (setUploadLimit): New function.
  12177. (setUploadLimitCheck): New function.
  12178. * src/PeerAbstractCommand.h
  12179. (setUploadLimit): New function.
  12180. (setUploadLimitCheck): New function.
  12181. (uploadLimit): New variable.
  12182. (uploadLimitCheck): New variable.
  12183. To contact a tracker regularly:
  12184. * src/TrackerWatcherCommand.h (interval): New variable.
  12185. (checkPoint): New variable.
  12186. (TrackerWatcherCommand): Added interval argument.
  12187. * src/TrackerWatcherCommand.cc
  12188. (TrackerWatcherCommand): Initialized checkPoint.
  12189. (execute): Now a tracker is contacted in every specified period.
  12190. If peer list is not needed, send request with numwant=0.
  12191. * src/TrackerUpdateCommand.cc
  12192. (execute): Updated log messages.
  12193. * src/DownloadEngine.cc
  12194. (~DownloadEngine): Removed two asserts.
  12195. (waitData): Uncommented wfds. May be a bug fix.
  12196. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12197. * src/PeerInteractionCommand.h
  12198. (checkInactiveConnection): Removed.
  12199. * src/PeerInteractionCommand.cc
  12200. (executeInternal): Removed following function calls:
  12201. detectMessageFlooding(), checkLongTimePeerChoking and
  12202. checkInactiveConnection().
  12203. (checkInactiveConnection): Removed.
  12204. (detectMessageFlooding): Removed function call to
  12205. checkInactiveConnection().
  12206. * src/PeerMessageUtil.h
  12207. (createChokeMessage): New function. Overload.
  12208. (createUnchokeMessage): New function. Overload.
  12209. (createInterestedMessage): New function. Overload.
  12210. (createNotInterestedMessage): New function. Overload.
  12211. (createHaveMessage): New function. Overload.
  12212. (createBitfieldMessage): New function. Overload.
  12213. (createRequestMessage): New function. Overload.
  12214. (createCancelMessage): New function. Overload.
  12215. (createPieceMessage): New function. Overload.
  12216. (createKeepAliveMessage): New function. Overload.
  12217. * src/PeerMessageUtil.cc
  12218. (createChokeMessage): New function. Overload.
  12219. (createUnchokeMessage): New function. Overload.
  12220. (createInterestedMessage): New function. Overload.
  12221. (createNotInterestedMessage): New function. Overload.
  12222. (createHaveMessage): New function. Overload.
  12223. (createBitfieldMessage): New function. Overload.
  12224. (createRequestMessage): New function. Overload.
  12225. (createCancelMessage): New function. Overload.
  12226. (createPieceMessage): New function. Overload.
  12227. (createKeepAliveMessage): New function. Overload.
  12228. * src/SendMessageQueue.cc
  12229. (createRequestMessage): Use PeerMessageUtil.
  12230. (createCancelMessage): Use PeerMessageUtil.
  12231. (createPieceMessage): Use PeerMessageUtil.
  12232. (createHaveMessage): Use PeerMessageUtil.
  12233. (createChokeMessage): Use PeerMessageUtil.
  12234. (createUnchokeMessage): Use PeerMessageUtil.
  12235. (createInterestedMessage): Use PeerMessageUtil.
  12236. (createNotInterestedMessage): Use PeerMessageUtil.
  12237. (createBitfieldMessage): Use PeerMessageUtil.
  12238. (createKeepAliveMessage): Use PeerMessageUtil.
  12239. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12240. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12241. * src/PeerInteraction.h: New class.
  12242. * src/PeerInteraction.cc: New class.
  12243. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12244. Each peer message has its own class.
  12245. * src/PendingMessages.h: Removed.
  12246. * src/PendingMessages.cc: Removed. The sending process was moved to
  12247. each message class.
  12248. * src/RequestSlotMan.h: Removed.
  12249. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12250. SendMessageQueue.
  12251. * src/RequestMessage.h: New class.
  12252. * src/RequestMessage.cc: New class.
  12253. * src/CancelMessage.h: New class.
  12254. * src/CancelMessage.cc: New class.
  12255. * src/BitfieldMessage.h: New class.
  12256. * src/BitfieldMessage.cc: New class.
  12257. * src/ChokeMessage.h: New class.
  12258. * src/ChokeMessage.cc: New class.
  12259. * src/KeepAliveMessage.h: New class.
  12260. * src/KeepAliveMessage.cc: New class.
  12261. * src/PortMessage.h: New class.
  12262. * src/UnchokeMessage.h: New class.
  12263. * src/UnchokeMessage.cc: New class.
  12264. * src/PieceMessage.h: New class.
  12265. * src/PieceMessage.cc: New class.
  12266. * src/HaveMessage.h: New class.
  12267. * src/HaveMessage.cc: New class.
  12268. * src/BitfieldMessage.h: New class.
  12269. * src/BitfieldMessage.cc: New class.
  12270. * src/NotInterestedMessage.h: New class.
  12271. * src/NotInterestedMessage.cc: New class.
  12272. * src/InterestedMessage.h: New class.
  12273. * src/InterestedMessage.cc: New class.
  12274. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12275. (getSendMessageQueue): New function.
  12276. (setSendMessageQueue): New function.
  12277. * src/HandshakeMessage.cc: New class.
  12278. * src/PeerConnection.h (receiveMessage): Changed return value and
  12279. arguments.
  12280. (receiveHandshake): Changed return value and arguments.
  12281. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12282. here.
  12283. (receiveHandshake): Do not create handshake class here.
  12284. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12285. (piece): Removed.
  12286. (syncPiece): Removed.
  12287. (sendInterest): Removed.
  12288. (sendMessages): Removed.
  12289. (createRequestPendingMessage): Removed.
  12290. (checkPieceHash): Removed.
  12291. (erasePieceOnDisk): Removed.
  12292. (getNewPieceAndSendInterest): Removed.
  12293. (onGotNewPice): Removed.
  12294. (onGotWrongPiece): Removed.
  12295. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12296. Removed peerConnection, piece.
  12297. (~PeerInteractionCommand): Removed peerConnection.
  12298. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12299. (syncPiece): Moved to SendMessageQueue.
  12300. (decideChoking): Removed PendingMessage.
  12301. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12302. The action after receiving peer message was moved to each message
  12303. class.
  12304. (onGotNewPice): Moved to SendMessageQueue.
  12305. (onGotWrongPiece): Moved to SendMessageQueue.
  12306. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12307. (sendInterest): Moved to SendMessageQueue.
  12308. (createRequestPendingMessage): Removed.
  12309. (sendMessages): Moved to SendMessageQueue.
  12310. (onAbort): Use SendMessageQueue::abortPiece()
  12311. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12312. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12313. (checkPieceHash): Moved to SendMessageQueue.
  12314. (erasePieceOnDisk): Moved to SendMessageQueue.
  12315. * src/PeerMessageUtil.h
  12316. (createBitfieldMessage): Removed.
  12317. (createHaveMessage): Changed return value and arguments.
  12318. (createBitfieldMessage): Changed return value and arguments.
  12319. (createRequestCancelMessage): Removed.
  12320. (createPieceMessage): Changed return value and arguments.
  12321. (getShortIntParam): New function.
  12322. (checkIndex): Changed arguments.
  12323. (checkBegin): Changed arguments.
  12324. (checkLength): Changed arguments.
  12325. (checkPieceOffset): Removed.
  12326. (checkRange): New function.
  12327. (checkBitfield): Changed arguments.
  12328. (createPeerMessage): Removed.
  12329. (checkIntegrity): Removed.
  12330. (createHandshakeMessage): Changed arguments.
  12331. (createChokeMessage): New function.
  12332. (createUnchokeMessage): New function.
  12333. (createInterestedMessage): New function.
  12334. (createNotInterestedMessage): New function.
  12335. (createRequestMessage): New function.
  12336. (createCancelMessage): New function.
  12337. (createPortMessage): New function.
  12338. * src/PeerMessageUtil.cc
  12339. (createBitfieldMessage): Removed.
  12340. (createHaveMessage): Changed return value and arguments.
  12341. (createBitfieldMessage): Changed return value and arguments.
  12342. (createRequestCancelMessage): Removed.
  12343. (createPieceMessage): Changed return value and arguments.
  12344. (getShortIntParam): New function.
  12345. (checkIndex): Changed arguments.
  12346. (checkBegin): Changed arguments.
  12347. (checkLength): Changed arguments.
  12348. (checkPieceOffset): Removed.
  12349. (checkRange): New function.
  12350. (checkBitfield): Changed arguments.
  12351. (createPeerMessage): Removed.
  12352. (checkIntegrity): Removed.
  12353. (createHandshakeMessage): Changed arguments.
  12354. (createChokeMessage): New function.
  12355. (createUnchokeMessage): New function.
  12356. (createInterestedMessage): New function.
  12357. (createNotInterestedMessage): New function.
  12358. (createRequestMessage): New function.
  12359. (createCancelMessage): New function.
  12360. (createPortMessage): New function.
  12361. * src/PeerMessage.h
  12362. (id): Removed.
  12363. (index): Removed.
  12364. (begin): Removed.
  12365. (length): Removed.
  12366. (bitfield): Removed.
  12367. (bitfieldLength): Removed.
  12368. (block): Removed.
  12369. (blockLength): Removed.
  12370. (inProgress): New variable.
  12371. (cuid): New variable.
  12372. (peer): New variable.
  12373. (sendMessageQueue): New variable.
  12374. (logger): New variable.
  12375. (setBitfield): Removed.
  12376. (getBitfield): Removed.
  12377. (setBlock): Removed.
  12378. (getBlock): Removed.
  12379. (getBitfieldLength): Removed.
  12380. (getBlockLength): Removed.
  12381. (isInProgress): New function.
  12382. (toString): Made pure virtual.
  12383. (check): New function.
  12384. (send): New function.
  12385. (receivedAction): New function.
  12386. (getId): Made pure virtual.
  12387. (setId): Removed.
  12388. (getIndex): Removed.
  12389. (setIndex): Removed.
  12390. (getBegin): Removed.
  12391. (setBegin): Removed.
  12392. (getLength): Removed.
  12393. (setLength): Removed.
  12394. (getCuid): New function.
  12395. (setCuid): New function.
  12396. (getPeer): New function.
  12397. (setPeer): New function.
  12398. (getSendMessageQueue): New function.
  12399. (setSendMessageQueue): New function.
  12400. (ID): Removed.
  12401. * src/PeerMessage.cc
  12402. (setBitfield): Removed.
  12403. (setBlock): Removed.
  12404. (toString): Removed.
  12405. * src/TorrentMan.h
  12406. (getPieceLength): New function.
  12407. (getPieceLength): New function.
  12408. * src/SendMessageQueue.h
  12409. (REQUEST_TIME_OUT): New definition.
  12410. (RequestSlots): New definition.
  12411. (MessageQueue): New definition.
  12412. (requestSlotMan): Removed.
  12413. (pendingMessages): Removed.
  12414. (requestSlots): New variable.
  12415. (messageQueue): New variable.
  12416. (torrentMan): New variable.
  12417. (peerConnection): New variable.
  12418. (peer): New variable.
  12419. (piece): New variable.
  12420. (getNewPieceAndSendInterest): New function.
  12421. (createPeerMessage): New function.
  12422. (createHandshakeMessage): New function.
  12423. (send): Made private.
  12424. (setPeerMessageCommonProperty): New function.
  12425. (deleteAllRequestSlot): New function.
  12426. (deleteRequestMessageInQueue): New function.
  12427. (cancelAllRequest): Made private.
  12428. (cancelAllRequest): Made private.
  12429. (countRequestSlot): Made private.
  12430. (addPendingMessage): Removed.
  12431. (deletePendingPieceMessage): Removed.
  12432. (deletePendingRequestMessage): Removed.
  12433. (addMessage): New function.
  12434. (deletePieceMessageInQueue): New function.
  12435. (deleteTimeoutRequestSlot): Changed argument.
  12436. (deleteCompletedRequestSlot): Changed argument.
  12437. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12438. (getCorrespondingRequestSlot): New function.
  12439. (countPendingMessage): Removed.
  12440. (countMessageInQueue): New function.
  12441. (getTorrentMan): New function.
  12442. (getPeerConnection): New function.
  12443. (hasDownloadPiece): New function.
  12444. (getDownloadPiece): New function.
  12445. (setDownloadPiece): New function.
  12446. (syncPiece): New function.
  12447. (sendMessages): New function.
  12448. (sendNow): New function.
  12449. (trySendNow): New function.
  12450. (abortPiece): New function.
  12451. (sendHandshake): New function.
  12452. (receiveMessage): New function.
  12453. (receiveHandshake): New function.
  12454. (createRequestMessage): New function.
  12455. (createCancelMessage): New function.
  12456. (createPieceMessage): New function.
  12457. (createHaveMessage): New function.
  12458. (createChokeMessage): New function.
  12459. (createUnchokeMessage): New function.
  12460. (createInterestedMessage): New function.
  12461. (createNotInterestedMessage): New function.
  12462. (createBitfieldMessage): New function.
  12463. (createKeepAliveMessage): New function.
  12464. * src/SendMessageQueue.cc
  12465. (SendMessageQueue): Removed requestSlotMan.
  12466. Instantiated peerConnection here.
  12467. (~SendMessageQueue): Removed requestSlotMan.
  12468. Added deletion of peerConnection and the contents of messageQueue.
  12469. (send): Updated according to the change of messageQueue.
  12470. (addPendingMessage): Renamed to addMessage.
  12471. (addMessage): New function.
  12472. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12473. (deletePieceMessageInQueue): New function.
  12474. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12475. (deleteRequestMessageInQueue): New function.
  12476. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12477. here.
  12478. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12479. (...) was moved here.
  12480. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12481. moved here.
  12482. (deleteCompletedRequestSlot):
  12483. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12484. (getCorrespondingRequestSlot):
  12485. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12486. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12487. (countPendingMessage): Renamed to countMessageInQueue.
  12488. (countMessageInQueue): New function.
  12489. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12490. (receiveHandshake): New function.
  12491. (createHandshakeMessage): New function.
  12492. (receiveMessage): New function.
  12493. (createPeerMessage): New function.
  12494. (syncPiece): New function.
  12495. (getNewPieceAndSendInterest): New function.
  12496. (sendMessages): New function.
  12497. (sendNow): New function.
  12498. (trySendNow): New function.
  12499. (sendHandshake): New function.
  12500. (abortPiece): New function.
  12501. (getDownloadPiece): New function.
  12502. (getPeerMessageCommonProperty): New function.
  12503. (createRequestMessage): New function.
  12504. (createCancelMessage): New function.
  12505. (createPieceMessage): New function.
  12506. (createHaveMessage): New function.
  12507. (createChokeMessage): New function.
  12508. (createUnchokeMessage): New function.
  12509. (createInterestedMessage): New function.
  12510. (createNotInterestedMessage): New function.
  12511. (createBitfieldMessage): New function.
  12512. (createKeepAliveMessage): New function.
  12513. To add simple Content-Disposition support:
  12514. * src/HttpResponseCommand.h (determinFilename): New function.
  12515. * src/HttpResponseCommand.cc (executeInternal):
  12516. Use determinFilename(headers) instead of req->getFile() when comparing
  12517. filename.
  12518. (determinFilename): New function.
  12519. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12520. req->getFile().
  12521. (handleOtherEncoding): Use determinFilename(headers) instead of
  12522. req->getFile().
  12523. * src/Util.h (getContentDispositionFilename): New function.
  12524. * src/Util.cc (getContentDispositionFilename): New function.
  12525. * src/LogFactory.h (release): New function.
  12526. * src/LogFactory.cc (release): New function.
  12527. To fix a bug that causes out-of-bound exception when HTTP status
  12528. line is wrong:
  12529. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12530. size.
  12531. * src/common.h (Deleter): New class.
  12532. * src/SegmentMan.cc
  12533. (~SegmentMan): Added deletion of splitter and diskWriter.
  12534. * src/DownloadEngine.h
  12535. (Commands): Use deque.
  12536. (clearQueue): New function.
  12537. * src/DownloadEngine.cc
  12538. (~DownloadEngine): Added deletion of segmentMan.
  12539. (cleanQueue): New function.
  12540. * src/TorrentDownloadEngine.h
  12541. (TorrentDownloadEngine): The implementation was moved to
  12542. TorrentDownloadEngine.cc.
  12543. (~TorrentDownloadEngine): The implementation was moved to
  12544. TorrentDownloadEngine.cc.
  12545. * src/TorrentDownloadEngine.cc
  12546. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12547. * src/main.cc
  12548. (clearRequest): Removed.
  12549. (handler): Added deletion of e.
  12550. (torrentHandler): Added deletion of te.
  12551. (main): Do not share splitter.
  12552. Use Deleter instead of clearRequest.
  12553. Deletion of classes were updated.
  12554. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12555. * src/main.cc (main): Fixed typo.
  12556. * src/message.h: Fixed typo.
  12557. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12558. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12559. To add --select-file command-line option:
  12560. * src/Util.cc
  12561. (unfoldRange): New function.
  12562. (getNum): New function.
  12563. (unfoldSubRange): New function
  12564. * src/main.cc
  12565. (showUsage): Added help message.
  12566. (main): Added --select-file command-line option. Updated the layout of
  12567. file listing.
  12568. * src/common.h
  12569. (Integers): New definition.
  12570. * src/SocketCore.cc
  12571. (writeData): Removed timeout argument.
  12572. (readData): Removed timeout argument.
  12573. (peekData): Removed timeout argument.
  12574. * src/Socket.cc
  12575. (writeData): Removed timeout argument.
  12576. (readData): Removed timeout argument.
  12577. (peekData): Removed timeout argument.
  12578. * Release 0.4.1
  12579. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12580. To deploy upload rate based choking algorithm:
  12581. * src/PeerInteractionCommand.cc
  12582. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12583. peer currently used.
  12584. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12585. download completes. Simplified.
  12586. (receiveMessage): Updated.
  12587. * src/TorrentMan.h
  12588. (activePeers): New variable.
  12589. (addActivePeer): New function.
  12590. (getActivePeers): New function.
  12591. (deleteActivePeer): New function.
  12592. * src/TorrentMan.cc
  12593. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12594. * src/PeerAbstractCommand.cc
  12595. (onAbort): Use peer->resetStatus().
  12596. * src/main.cc
  12597. (PeerChokeCommand.h): Included.
  12598. (main): Added the instance of ChokingCommand to the command queue.
  12599. * src/Peer.h
  12600. (amChoking): Renamed from amChocking
  12601. (chokingRequired): New variable.
  12602. (optUnchoking): New variable.
  12603. (deltaUpload): New variable.
  12604. (deltaDownload): New variable.
  12605. (addDeltaUpload): New function.
  12606. (resetDeltaUpload): New function.
  12607. (addDeltaDownload): New function.
  12608. (resetDeltaDownload): New function.
  12609. (addPeerUpload): Added a call to addDeltaUpload.
  12610. (addPeerDownload): Added a call to addDeltaDownload.
  12611. * src/Peer.cc
  12612. (shouldBeChoking): Renamed from shouldChoke.
  12613. (resetStatus): New function.
  12614. * src/PeerChokeCommand.h: New class.
  12615. * src/PeerChokeCommand.cc: New class.
  12616. To add lazy upload speed limiter:
  12617. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12618. statistics calculation to TorrentDownloadEngine.
  12619. * src/TorrentConsoleDownloadEngine.cc
  12620. (sendStatistics): Renamed from printStatistics.
  12621. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12622. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12623. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12624. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12625. calculation.
  12626. (sendStatistics): New function as pure virtual function.
  12627. (getUploadSpeed): New function.
  12628. * src/TorrentDownloadEngine.cc
  12629. (initStatistics): New function.
  12630. (calculateSpeed): New function.
  12631. (calculateStatistics): New function.
  12632. * src/SendMessageQueue.h
  12633. (uploadLength): New variable.
  12634. (send): Added an argument.
  12635. (setUploadLimit): New function.
  12636. (getUploadLimit): New function.
  12637. * src/SendMessageQueue.cc
  12638. (send): Added upload speed limiter.
  12639. * src/prefs.h
  12640. (PREF_UPLOAD_LIMIT): New definition.
  12641. * src/PeerInteractionCommand.cc
  12642. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12643. * src/main.cc
  12644. (main): Added --upload-limit option
  12645. For bug fixes:
  12646. * src/main.cc
  12647. (showUsage): Corrected --listen-port help
  12648. Other changes:
  12649. * src/TorrentMan.cc
  12650. (getPeer): Return nullPeer if connection is grather than
  12651. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12652. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12653. To add some useful information to the exception message:
  12654. * src/SocketCore.cc : Updated messages.
  12655. * src/SegmentMan.cc :
  12656. * src/TorrentMan.cc : Updated messages.
  12657. * src/MultiDiskWriter.cc : Updated messages.
  12658. * src/Util.cc : Updated messages.
  12659. * src/AbstractDiskWriter.cc : Updated messages.
  12660. * src/PreAllocationDiskWriter.cc : Updated messages.
  12661. * src/message.cc : Added new messages. Updated some messages.
  12662. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12663. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12664. Updated threshold from 30 to 15.
  12665. * src/AbstractDiskWriter.h (filename): New variable.
  12666. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12667. (createFile): Assigned filename.
  12668. * src/main.cc: Updated the help message for http-auth-scheme.
  12669. * Release 0.4.0
  12670. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12671. To add TrackerUpdateCommand with which replaces
  12672. CompactTrackerResponseProcessor:
  12673. * src/TrackerWatcherCommand.h (req): Removed.
  12674. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12675. if the number of peer connections are less than 30.
  12676. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12677. * src/SegmentMan.h (diskWriter): New function.
  12678. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12679. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12680. (main): Use TrackerUpdateCommand.
  12681. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12682. (req): New variable.
  12683. (setTrackerResponseProcessor): Removed.
  12684. (getTrackerResponseProcessor): Removed.
  12685. (processTrackerResponse): Removed.
  12686. * src/DownloadEngine.h (diskWriter): Removed.
  12687. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12688. to torrentMan->processTrackerResponse().
  12689. To add Util::expandBuffer:
  12690. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12691. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12692. * src/Util.h (expandBuffer): New function.
  12693. To fix the bug that causes segmentation fault when "-l ." is specified
  12694. in command-line option:
  12695. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12696. (openFile): New function.
  12697. (closeFile): New function.
  12698. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12699. (~SimpleLogger): Call closeFile();
  12700. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12701. * src/main.cc (main): Added a check to see logger is configured
  12702. properly.
  12703. To enable HTTP authentication without specifying "--http-auth-scheme"
  12704. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12705. * src/HttpConnection.cc (createRequest): Send Authorization header
  12706. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12707. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12708. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12709. * src/Peer.cc (shouldChoke): Updated algorithm.
  12710. * src/message.h (EX_AUTH_FAILED): New definition.
  12711. (EX_FILE_OPEN): New definition.
  12712. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12713. if status == 401.
  12714. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12715. if req->isTorrent == true.
  12716. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12717. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12718. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12719. (createFile): Updated message.
  12720. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12721. To add a readout of estimated remaining time to normal HTTP/FTP
  12722. downloads:
  12723. * src/ConsoleDownloadEngine.h (startup): New variable.
  12724. (startupLength): New variable.
  12725. (isStartupLengthSet): New variable.
  12726. (avgSpeed): New variable.
  12727. (eta): New variable.
  12728. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12729. estimated remaining time.
  12730. (initStatistics): Initialized newly added variables.
  12731. (calculateStatistics): Calculate average speed and estimated remaining
  12732. time.
  12733. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12734. * src/TrackerDownloadCommand.h: Removed.
  12735. * src/TrackerDownloadCommand.cc: Removed.
  12736. * src/TrackerInitCommand.h: Removed.
  12737. * src/TrackerInitCommand.cc: Removed.
  12738. * src/TrackerUpdateCommand.h: Removed.
  12739. * src/TrackerUpdateCommand.cc: Removed.
  12740. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12741. url written in TrackerInitCommand was moved here. Do not create
  12742. tracker request command if torrentMan->trackers != 0.
  12743. * src/CompactTrackerResponseProcessor.h: New class.
  12744. * src/CompactTrackerResponseProcessor.cc: New class.
  12745. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12746. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12747. Decoupled TorrentDownloadEngine from this.
  12748. * src/SegmentMan.h (init): New function.
  12749. * src/SegmentMan.cc (init): New function.
  12750. * src/TorrentMan.h (responseProcessor): New variable.
  12751. (trackers): New variable.
  12752. (setTrackerResponseProcessor): New function.
  12753. (getTrackerResponseProcessor): New function.
  12754. (processTrackerResponse): New function.
  12755. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12756. (processTrackerResponse): New function.
  12757. * src/main.cc (main): Use ByteArrayDiskWriter and
  12758. CompactTrackerResponseProcessor.
  12759. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12760. processTrackerResponse().
  12761. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12762. readout.
  12763. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12764. which indicates download has completed.
  12765. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12766. (closeFile): fd >= 0, not fd > 0
  12767. * src/main.cc (main): Added short cut for show-files.
  12768. Added short cut for torrent-file.
  12769. Added new command-line option listen-port.
  12770. Updated i18n messages.
  12771. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12772. To add LogFactory which creates singleton logger:
  12773. * src/LogFactory.h: New class.
  12774. * src/LogFactory.cc: New class.
  12775. * src/Command.h (logger): New variable.
  12776. (Constructor): Use LogFactory.
  12777. * src/AbstractCommand.cc: Use Command::logger
  12778. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12779. Use LogFactory.
  12780. * src/SegmentSplitter.h : Made logger protected.
  12781. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12782. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12783. * src/DownloadEngine.h : Made logger protected.
  12784. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12785. * src/PeerInteractionCommand.cc : Use Command::logger.
  12786. * src/HttpResponseCommand.cc : Use Command::logger.
  12787. * src/SegmentMan.h : Made logger private.
  12788. * src/TorrentMan.h : Made logger private.
  12789. * src/TorrentMan.cc : Use LogFactory.
  12790. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12791. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12792. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12793. Use LogFactory.
  12794. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12795. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12796. Use LogFactory.
  12797. * src/DownloadCommand.cc : Use Command::logger.
  12798. * src/PeerAbstractCommand.cc : Use Command::logger.
  12799. * src/PeerListenCommand.cc : Use Command::logger.
  12800. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12801. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12802. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12803. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12804. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12805. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12806. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12807. Use LogFactory.
  12808. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12809. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12810. Use LogFactory.
  12811. * src/main.cc (main): Use LogFactory.
  12812. * src/DiskAdaptor.h (logger): New variable.
  12813. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12814. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12815. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12816. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12817. parameter to a tracker request.
  12818. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12819. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12820. * src/main.cc (setSignalHander): New function.
  12821. (main): Added a handler for SIGTERM.
  12822. (handler): Updated message.
  12823. (torrentHandler): Updated message.
  12824. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12825. * src/TorrentConsoleDownloadEngine.cc
  12826. (onPartialDownloadingCompletes): Renamed as
  12827. onSelectiveDownloadingCompletes.
  12828. (onSelectiveDownloadingCompletes): Updated message.
  12829. To add DiskAdaptor which abstract DiskWriter family:
  12830. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12831. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12832. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12833. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12834. MultiDiskAdaptor.h.
  12835. (readFileEntry): Changed its arguments.
  12836. (setup): setupDiskWriter is merged into this function.
  12837. (setupDiskWriter): Removed.
  12838. (setFileFilter): New function.
  12839. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12840. made in readFileEntry.
  12841. (getFilePath): Removed.
  12842. (getTempFilePath): Removed.
  12843. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12844. (fixFilename): Removed.
  12845. (copySingleFile): Removed.
  12846. (splitMultiFile): Removed.
  12847. (deleteTempFile): Removed.
  12848. (setFileEntriesToDownload): Removed.
  12849. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12850. (isSelectiveDownloadingMode): New function.
  12851. (setAllMultiFileRequestedState): Removed.
  12852. (finishPartialDownloadingMode): Renamed as
  12853. finishSelectiveDownloadingMode.
  12854. (finishSelectiveDownloadingMode): New function.
  12855. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12856. (getSelectedTotalLength): New function.
  12857. (onDownloadComplete): Use diskAdaptor.
  12858. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12859. (Range): Removed.
  12860. (setMultiFileEntries): Renamed as setFileEntries.
  12861. (setFileEntries): New function.
  12862. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12863. (pieceLength): New variable.
  12864. * src/main.cc (printDownloadCompeleteMessage): New function.
  12865. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12866. (main): Renamed torrent-show-files to show-files.
  12867. Rewritten file contents listing.
  12868. * src/TorrentMan.h (FileEntry): Removed.
  12869. (multiFileTopDir): Removed.
  12870. (multiFileEntries): Removed.
  12871. (diskWriter): Removed.
  12872. (diskAdaptor): New variable.
  12873. * src/DefaultDiskWriter.h (totalLength): New variable.
  12874. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12875. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12876. diskWriter.
  12877. * src/TorrentConsoleDownloadEngine.h
  12878. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12879. (partialTotalLength): Renamed as selectedTotalLength.
  12880. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12881. openExistingFile, otherwise call initAndOpenFile.
  12882. (closeFile): fd > 0, not fd != 0.
  12883. * src/DirectDiskAdaptor.h: New class.
  12884. * src/DirectDiskAdaptor.cc: New class.
  12885. * src/MultiDiskAdaptor.h: New class.
  12886. * src/MultiDiskAdaptor.cc: New class.
  12887. * src/CopyDiskAdaptor.h: New class.
  12888. * src/CopyDiskAdaptor.cc: New class.
  12889. * src/DiskAdaptor.h: New class.
  12890. * src/DiskAdaptor.cc: New class.
  12891. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12892. (PREF_SHOW_FILES): New definition.
  12893. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12894. To add the ability to download multi torrent into respective files
  12895. directly:
  12896. * src/DiskWriter.h (openFile): New function.
  12897. (seek): Removed.
  12898. * src/MultiDiskWriter.h: New class.
  12899. * src/MultiDiskWriter.cc: New class.
  12900. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12901. protected.
  12902. (openFile): New function.
  12903. * src/AbstractDiskWriter.cc (openFile): New function.
  12904. * src/prefs.h (V_FALSE): New definition.
  12905. (PREF_DIRECT_FILE_MAPPING): New definition.
  12906. * src/TorrentMan.h (setupDiskWriter): New function.
  12907. (setAllMultiFileRequestedState): New function.
  12908. (onDownloadComplete): New function.
  12909. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12910. (setupDiskWriter): New function.
  12911. (getFilePath): Updated.
  12912. (getTempFilePath): Updated.
  12913. (getSegmentFilePath): Updated.
  12914. (fixFilename): Updated.
  12915. (deleteTempFile): Updated.
  12916. (setAllMultiFileRequestedState): New function.
  12917. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12918. (finishPartialDownloadingMode): Reset requested flags.
  12919. (onDownloadComplete): New function.
  12920. * src/main.cc: Added --direct-file-mapping option.
  12921. Use TorrentMan::setupDiskWriter().
  12922. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12923. onDownloadComplete().
  12924. To fix ETA bug:
  12925. * src/Util.h (difftvsec): New function.
  12926. * src/Util.cc (difftvsec): New function.
  12927. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12928. type of "elapsed" instead of long long int.
  12929. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12930. The updates of statistics takes place every 1 seconds.
  12931. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12932. (calculateSpeed): Changed its argument signature.
  12933. * src/PeerMessage.cc (toString): Fixed message.
  12934. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12935. To print ETA:
  12936. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12937. completion handling when dealing with
  12938. TorrentMan::isPartialDownloadingMode() == true.
  12939. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12940. New function.
  12941. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12942. (sessionDownloadLength): New variable.
  12943. (avgSpeed): New variable.
  12944. (eta): New variable.
  12945. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12946. new variables: eta, avgSpeed, startup.
  12947. (calculateSpeed): Calculate average speed and ETA.
  12948. (printStatistics): Added ETA.
  12949. * src/Util.h (secfmt): New function.
  12950. * src/Util.cc (secfmt): New function.
  12951. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12952. To detect "keep alive" flooding:
  12953. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12954. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12955. variable: keepAliveCount.
  12956. (detectMessageFlooding): Added "keep alive" flooding detection.
  12957. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12958. received.
  12959. To add the ability to download only specified files in multi-file
  12960. torrent:
  12961. * src/BitfieldMan.h (filterBitfield): New variable.
  12962. (filterEnabled): New variable.
  12963. (setFilterBit): New function.
  12964. (enableFilter): New function.
  12965. (disableFilter): New function.
  12966. (isFilterEnabled): New function.
  12967. (getFilteredTotalLength): New function.
  12968. (getCompletedLength): New function.
  12969. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12970. filterBitfield, filterEnabled.
  12971. (CopyConstructor): Added filterBitfield and filterEnabled.
  12972. (operator==): Added filterBitfield and filterEnabled.
  12973. (Destructor): Added filterBitfield.
  12974. (getMissingIndex): Use filterBitfield.
  12975. (getMissingUnusedIndex): Use filterBitfield.
  12976. (getFirstMissingUnusedIndex): Use filterBitfield.
  12977. (getFirstMissingUnusedIndex): Use filterBitfield.
  12978. (getAllMissingIndexes): Use filterBitfield.
  12979. (countMissingBlock): Use filterBitfield.
  12980. (countBlock): Use filterBitfield.
  12981. (setBitInternal): Added new argument on.
  12982. (setUseBit): Use setBitInternal.
  12983. (unsetUseBit): Use setBitInternal.
  12984. (setBit): Use setBitInternal.
  12985. (unsetBit): Use setBitInternal.
  12986. (isAllBitSet): Use filterBitfield.
  12987. (setFilterBit): New function.
  12988. (addFilter): New function.
  12989. (enableFilter): New function.
  12990. (disableFilter): New function.
  12991. (clearFilter): New function.
  12992. (isFilterEnabled): New function.
  12993. (getFilteredTotalLength): New function.
  12994. (getCompletedLength): New function.
  12995. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12996. Initalized newly added variables.
  12997. [FileEntry](offset): New variable.
  12998. [FileEntry](extracted): New variable.
  12999. [FileEntry](requested): New variable.
  13000. (readFileEntry): New function.
  13001. (option): New variable.
  13002. (splitMultiFile): Removed const qualifier.
  13003. (fixFilename): Removed const qualifier.
  13004. (readFileEntryFromMetaInfoFile): New function.
  13005. (finishPartialDownloadingMode): New function.
  13006. (isPartialDownloadingMode): New function.
  13007. (setFileEntriesToDownload): New function.
  13008. (getCompletedLength): New function.
  13009. (getPartialTotalLength): New function.
  13010. * src/TorrentMan.cc (readFileEntry): New function.
  13011. (setup): Use readFileEntry. If no-preallocation option is specified,
  13012. use DefaultDiskWriter.
  13013. (readFileEntryFromMetaInfoFile): New function.
  13014. (fixFilename): Removed const qualifier.
  13015. (splitMultiFile): Removed const qualifier.
  13016. (setFileEntriesToDownload): New function.
  13017. (isPartialDownloadingMode): New function.
  13018. (finishPartialDownloadingMode): New function.
  13019. (getCompletedLength): New function.
  13020. (getPartialTotalLength): New function.
  13021. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13022. New variable.
  13023. (partialTotalLength): New variable.
  13024. (downloadLength): New variable.
  13025. (totalLength): New variable.
  13026. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13027. Added log.
  13028. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13029. partialTotalLength, downloadLength, totalLength.
  13030. (calculate): Calculate downloadLength and totalLength.
  13031. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13032. * src/main.cc (addCommand): Changed argument signature.
  13033. (main): Added new variable: args. Added new option "torrent-show-files"
  13034. "no-preallocation". Usage is not updated yet.
  13035. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13036. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13037. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13038. Attempt to add the ability to listing file entries in a .torrent file.
  13039. This feature is not yet complete.
  13040. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13041. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13042. (getName): New function.
  13043. * src/TorrentMan.h (getMultiFileEntries): New function.
  13044. (getName): New function.
  13045. * src/main.cc (main): Use above 2 funtion.
  13046. * Release 0.3.2
  13047. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13048. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13049. (detectMessageFlooding): Updated threshold value.
  13050. (checkLongTimePeerChoking): Updated timeout value.
  13051. (getNewPieceAndSendInterest): Added debug log.
  13052. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13053. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13054. (getPeer): Updated.
  13055. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13056. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13057. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13058. is localhost.
  13059. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13060. * src/PendingMessage.cc (processMessage): Not to send piece message
  13061. if peer is not interested in the pieces localhost has.
  13062. * src/Peer.cc (shouldChoke): Updated.
  13063. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13064. * src/Util.cc (isPowerOf): New function.
  13065. * src/Util.h (isPowerOf): New function.
  13066. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13067. whether or not it is power of 2.
  13068. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13069. Added new class SendMessageQueue that includes PendingMessages and
  13070. RequestSlotMan.
  13071. * src/SendMessageQueue.h: New class.
  13072. * src/SendMessageQueue.cc: New class.
  13073. * src/PendingMessage.h: Added new member variable blockIndex and its
  13074. accessors.
  13075. (createRequestMessage): Updated.
  13076. * src/PendingMessage.cc (createRequestMessage): Updated.
  13077. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13078. SendMessageQueue.
  13079. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13080. (receiveMessage): Updated with SendMessageQueue.
  13081. (deletePendingPieceMessage): Removed.
  13082. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13083. (sendInterest): Updated with SendMessageQueue.
  13084. (createRequestPendingMessage): Updated with SendMessageQueue.
  13085. (sendMessages): Updated with SendMessageQueue.
  13086. (onAbort): Updated with SendMessageQueue.
  13087. (keepAlive): Updated with SendMessageQueue.
  13088. (beforeSocketCheck): Updated SendMessageQueue.
  13089. * src/PeerInteractionCommand (sendMessages): Shuffle
  13090. missingBLockIndexes before using it.
  13091. Added its own timeout for peer connection.
  13092. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13093. setter.
  13094. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13095. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13096. Added setTimeout() call.
  13097. (executeInternal): Added setTimeout() call.
  13098. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13099. Added timeout.
  13100. (isTimeoutDetected): Updated.
  13101. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13102. option.
  13103. Added *simple* message flooding checker.
  13104. * src/PeerInteractionCommand.cc (executeInternal):
  13105. Added detectMessageFlooding() call.
  13106. (detectMessageFlooding): New function.
  13107. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13108. (beforeSocketCheck): Added detectMessageFlooding() call.
  13109. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13110. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13111. Removed deletePendingPieceMessage(), getRequestSlot(),
  13112. deleteRequestSlot(), deleteAllRequestSlot().
  13113. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13114. Added checkLongTimePeerChoking() call.
  13115. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13116. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13117. if duplicate == false.
  13118. The parameter "uploaded" and "downloaded" in the tracker request are
  13119. the size since the client sent the "started" event to the tracker.
  13120. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13121. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13122. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13123. getSessionDownloadedSize(), getSessionUploadedSize().
  13124. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13125. getSessionUploadedSize() instead of getDownloadedSize(),
  13126. getUploadedSize().
  13127. * src/PendingMessage.cc (processMessage): Do not send request message
  13128. if the peer is choking the client.
  13129. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13130. less than interval.
  13131. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13132. * configure.in: Added gnutls support. Added several CPP macros.
  13133. * m4/openssl.m4: Added.
  13134. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13135. readData(), peekData(). Added gnutls support.
  13136. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13137. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13138. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13139. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13140. Instead, added a check for whether setup method has executed
  13141. successfully.
  13142. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13143. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13144. * src/Makefile.am: Updated.
  13145. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13146. using whether OpenSSL or gcrypt, depending on the result of configure
  13147. script.
  13148. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13149. messageDigest.h.
  13150. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13151. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13152. Fixed memory leak.
  13153. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13154. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13155. Removed instantiation of TrackerInitCommand. Instead,
  13156. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13157. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13158. ENABLE_SSL.
  13159. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13160. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13161. If a piece is already acquired by another command, delete the request
  13162. slots for the piece.
  13163. * src/TrackerUpdateCommand.cc (execute):
  13164. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13165. Added a check whether peer list is null.
  13166. Fixed the bug that causes sending completed event to the tracker
  13167. several times.
  13168. * src/TrackerInitCommand.cc (execute):
  13169. Fixed the bug that causes sending completed event to the tracker
  13170. several times.
  13171. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13172. by using messageDigest.h.
  13173. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13174. * PeerConnection.cc: Replaced log message "keep-alive" with
  13175. "keep alive".
  13176. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13177. localhost long time.
  13178. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13179. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13180. at most 100 failure entry from the list. If with duplicate = false,
  13181. MAX_PEER_LIST is not checked.
  13182. * PeerListenCommand.cc: Fixed the argument order of log message.
  13183. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13184. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13185. Added warn().
  13186. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13187. Implemented warn().
  13188. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13189. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13190. * Request.h: Added AFTER_COMPLETED event.
  13191. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13192. instead of downloaded size and progress(%) after download completes.
  13193. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13194. message to the peer if it is interested in what localhost has
  13195. downloaded.
  13196. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13197. destination instead of just renaming it.
  13198. * TorrentMan.cc: Added deleteTempFile().
  13199. * PeerAbstractCommand.cc: do not stop execution after download
  13200. completes. This makes localhost a seeder.
  13201. * Util.{h,cc}: Added fileCopy().
  13202. * PeerListenCommand.cc: do not stop execution after download completes.
  13203. This makes localhost a seeder.
  13204. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13205. Added TorrentMan::deleteTempFile() to torrentHandler.
  13206. Initialized the variable dir as ".".
  13207. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13208. Deleted renameSingleFile().
  13209. Added copySingleFile(), deleteTempFile().
  13210. * DownloadEngine.h: Added virtual function afterEachIteration().
  13211. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13212. in onEndOfRun() to afterEachIteration().
  13213. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13214. true.
  13215. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13216. In rangedFileCopy(), added try-catch block to properly close file
  13217. descriptors.
  13218. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13219. Added afterEachIteration(), isFilenameFixed().
  13220. * Peer.cc: Changed choking strategy.
  13221. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13222. * TrackerInitCommand.cc: Send completed event only once.
  13223. * DownloadEngine.cc: Added a call to afterEachIteration().
  13224. * TrackerUpdateCommand.cc: Do not stop execution after download
  13225. completes.
  13226. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13227. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13228. received from a tracker.
  13229. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13230. Decreased the number of failure peers to delete to 0(just comment out
  13231. the line).
  13232. * Release 0.3.1
  13233. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13234. * PeerInteractionCommand.cc: added a call to
  13235. TorrentMan::unadvertisePiece in Destructor.
  13236. * PeerInteractionCommand.cc: make have message sent immediately
  13237. if the size of pending message queue is zero.
  13238. * TorrentMan.cc: set the maximum size of peer list to 250.
  13239. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13240. to deque.
  13241. * Util.cc: fixed rangedFileCopy.
  13242. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13243. to Constructor. Also, moved digest cleanup to Destructor.
  13244. * MetaFileUtil.cc: fixed memory leak
  13245. * replaced std::vector with std::deque.
  13246. * AbstractCommand.cc: casted timeout value to long long int.
  13247. * ChunkedEncoding.cc: fixed memory leak.
  13248. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13249. * SleepCommand.cc: casted timeout value to long long int.
  13250. * Data.cc: fixed memory leak.
  13251. * Data.cc: fixed toLLInt().
  13252. * BitfieldMan.cc: fixed memory leak.
  13253. * TorrentMan.cc: initialized storeDir to ".".
  13254. * TorrentMan.cc: fixed memory leak.
  13255. * TorrentMan.cc: corrected file paths of splitted files.
  13256. * PeerAbstractCommand.cc: casted timeout to long long int.
  13257. * main.cc: added delete(req) and delete(te->diskWriter).
  13258. * RequestSlot.cc: casted timeout value to long long int.
  13259. * Request.cc: fixed memory leak.
  13260. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13261. have the piece.
  13262. * Peer.{h,cc}: added hasPiece(int index).
  13263. * main.cc: corrected addCommand.
  13264. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13265. * BitTorrent protocol support added.
  13266. * Release 0.3.0
  13267. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13268. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13269. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13270. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13271. decoding did not work properly.
  13272. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13273. * DownloadEngine.h: included sys/time.h
  13274. * DownloadEngine.cc: remove sys/time.h
  13275. * Makefile.am (SUBDIRS): Add intl.
  13276. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13277. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13278. * main.cc: correct help message for --http-auth-scheme.
  13279. * main.cc: changed e-mail address for bug reports.
  13280. * ja.po: added japanese translation.
  13281. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13282. * SimpleLogger.cc: flush log file instead of stdout.
  13283. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13284. * main.cc: Fixed command-line option: max-tries
  13285. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13286. does not equal to seg.sp.
  13287. * DownloadCommand.cc: If EOF is got from the server and the total size
  13288. of file is not zero, then throw DlRetryEx.
  13289. * main.cc: Set the minium value of min-segment-size to 1024.
  13290. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13291. fails because of a regression since 0.2.0 release.
  13292. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13293. * HttpConnection.cc:
  13294. * common.h: defined the user agent name as macro
  13295. * DownloadEngine.{h, cc}:
  13296. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13297. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13298. * main.cc: Download complete/abort message is now generated by main.
  13299. * Makefile.am (SUBDIRS): Add m4.
  13300. (ACLOCAL_AMFLAGS): New variable.
  13301. (EXTRA_DIST): New variable.
  13302. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13303. * gettext: added gettext functionality
  13304. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13305. * AbstractCommand.cc:
  13306. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13307. unregister its cuid from SegmentMan.
  13308. * DownloadEngine.cc: .aria2 file was written when a downloading
  13309. failed with errors.
  13310. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13311. Added "User-Agent" header to CONNECT proxy request.
  13312. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13313. properly.
  13314. * Logger.h:
  13315. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13316. * ChunkedEncoding.cc: Added #include directive for strings.h
  13317. * Release 0.2.1
  13318. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13319. * Util.{h,cc}: added startsWith().
  13320. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13321. Util::endsWith().
  13322. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13323. * common.h: added #include directive of limit.h.
  13324. * DownloadEngine.cc: added #include directive of sys/time.h and
  13325. algorithm.
  13326. * Exception.h: added #include directive of stdio.h.
  13327. * AbstractCommand.h: added #include directive of sys/time.h.
  13328. * DownloadCommand.h: added #include directive of sys/time.h.
  13329. * *.h: added #include directive of common.h to all base classes.
  13330. subclasses' one was removed.
  13331. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13332. does not define these macros.
  13333. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13334. * Release 0.2.0
  13335. * main.cc:
  13336. * HttpInitiateConnectionCommand.{h,cc}:
  13337. * prefs.h:
  13338. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13339. We can now use GET command in http proxy.
  13340. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13341. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13342. that splits slowest segment of SegmentMan::commands vector.
  13343. This is the default split algorithm of aria2.
  13344. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13345. that splits first segment of SegmentMan::commands vector.
  13346. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13347. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13348. * Segment.h:
  13349. * SegmentMan.cc: Added speed field to Segment.h
  13350. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13351. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13352. * message.h: Change file size related %d to %lld.
  13353. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13354. * FtpInitiateConnectionCommand.{h,cc}:
  13355. * FtpNegotiationCommand.{h,cc}:
  13356. * FtpDownloadCommand.{h,cc}:
  13357. * FtpConnection.{h,cc}: Added FTP support
  13358. * SimpleLogger.cc: Log message now includes time information.
  13359. * main.cc: The value of --http-auth-scheme option is chagned from
  13360. 'BASIC' to 'basic'
  13361. * main.cc: Added --timeout command-line option.
  13362. * main.cc: Added --min-segment-size command-line option.
  13363. * main.cc: Added --max-retries command-line option.
  13364. * prefs.h: option string constants are now defined in prefs.h
  13365. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13366. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13367. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13368. with version 0.1.0's one.
  13369. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13370. * configure.in: Added --enable-ssl option to configure script.
  13371. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13372. cannot permit absoluteURI as Request-URI.
  13373. * HttpConnection.cc: Added Referer support.
  13374. * main.cc: Added referer command-line option.
  13375. * main.cc: Added rety-wait command-line option.
  13376. * Exception.h: Fixed formating bug in Exception::setMsg()
  13377. * SocketCore.{h,cc}:
  13378. * Socket.{h, cc}:
  13379. * Request.cc:
  13380. * InitiateConnectionCommandFactory.cc:
  13381. * HttpRequestCommand.cc: Added HTTPS support.
  13382. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13383. for SocketCore.
  13384. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13385. size is wrong
  13386. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13387. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13388. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13389. * Release 0.1.0